internetradio2.0/uiinc/mirlistboxarray.h
changeset 0 09774dfdd46b
equal deleted inserted replaced
-1:000000000000 0:09774dfdd46b
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef MIRLISTBOXARRAY_H
       
    19 #define MIRLISTBOXARRAY_H
       
    20 
       
    21 #include <bamdesca.h>
       
    22 
       
    23 
       
    24 
       
    25 class MIRListBoxArray : public MDesCArray
       
    26     {
       
    27  public:
       
    28     /**
       
    29      * NewL()
       
    30      * Static constructor.
       
    31      */
       
    32     static MIRListBoxArray* NewL();
       
    33 
       
    34     /**
       
    35      * NewLC()
       
    36      * Static constructor.
       
    37      */
       
    38     static MIRListBoxArray* NewLC();
       
    39     /**
       
    40      * ConstructL()
       
    41      * 2nd phase constructor
       
    42      */
       
    43     void ConstructL();
       
    44 	/*
       
    45 	 *  MIRListBoxArray()
       
    46 	 * default constructor
       
    47 	 */
       
    48     MIRListBoxArray();
       
    49 	/*
       
    50 	* SetListArray()
       
    51 	* sets the listarray
       
    52 	*/
       
    53 	void SetListArray(CDesCArray* aListArray);
       
    54 	/*
       
    55 	* SetItemAtZero()
       
    56 	* sets the lastplayed flag and string
       
    57 	*/
       
    58 	void SetItemAtZero(TBool aAdFlag,HBufC& aString,TBool aMainView= EFalse);
       
    59 	/*
       
    60 	* MdcaCount()
       
    61 	* returns the count of the listarray
       
    62 	*/
       
    63 	TInt MdcaCount() const ;
       
    64  	/*
       
    65 	* MdcaPoint()
       
    66 	* returns string at the particular index
       
    67 	*/
       
    68 	TPtrC MdcaPoint(TInt aIndex) const ;
       
    69 	/*
       
    70 	* SetFlag()
       
    71 	* sets the flag whether count in the filtered model as incremented r not
       
    72 	*/
       
    73 	void SetFlag(TBool aFlag)  ;
       
    74 	/*
       
    75 	* SetIndexFlag()
       
    76 	* sets the Index flag when the index is not giving the correct element
       
    77 	*/
       
    78 	void SetIndexFlag(TBool aFlag)  ;
       
    79 	/*
       
    80 	* GetIndexFlag()
       
    81 	* Gets the index flag that is set.
       
    82 	*/
       
    83 	TBool GetIndexFlag();
       
    84  	/*
       
    85 	* iListArray()
       
    86 	* instance of CDesCArray
       
    87 	*/
       
    88 	CDesCArray* iListArray;
       
    89  	/*
       
    90 	* iLastPlayed
       
    91 	* saves the lastplayed status into this
       
    92 	*/
       
    93 	TBool iLastPlayed;
       
    94  	/*
       
    95 	* iLastPlayedString
       
    96 	* sets the lastplayed string into this
       
    97 	*/
       
    98     HBufC* iLastPlayedString;
       
    99  	/*
       
   100 	* iFlag
       
   101 	* sets when the count 
       
   102 	*/
       
   103  	TBool iFlag;
       
   104  	/*
       
   105 	* iIndexFlag
       
   106 	*  
       
   107 	*/
       
   108 	TBool iIndexFlag;
       
   109     };
       
   110 #endif // MIRLISTBOXARRAY_H
       
   111