menufw/menufwui/mmwidgets/inc/mmsubcellssetupcode.h
changeset 4 4d54b72983ae
parent 0 f72a12da539e
equal deleted inserted replaced
3:fb3763350a08 4:4d54b72983ae
    36  *    used before.
    36  *    used before.
    37  * 2. AddSubcellInfo() - for every subcell being set up
    37  * 2. AddSubcellInfo() - for every subcell being set up
    38  *    and in the same order.
    38  *    and in the same order.
    39  * 3. AddTemplateInfo
    39  * 3. AddTemplateInfo
    40  * 4. AddIsCurrentInfo
    40  * 4. AddIsCurrentInfo
    41  * It was assumed that there would never be more than 6
    41  * It is currently possible to store information about up to 21
    42  * MmTemplateContants::KSubCellsCount subcells. If that
    42  * subcells (type of iCode is TUint64 and single subcell info
    43  * should ever change, consider changing the type of iCode
    43  * takes 3 bits). It can be easily proven that CMmListBoxItemDrawer
    44  * member to TUint64.
    44  * will never try to store more than
       
    45  * (2 * MmTemplateContants::KSubCellsCount) subcell infos
       
    46  * (2 * 6 = 12; 12 <= 21, so everything is fine).
    45  * Default assignment operator and copy constructor are ok
    47  * Default assignment operator and copy constructor are ok
    46  * for this class.
    48  * for this class.
    47  */
    49  */
    48 NONSHARABLE_CLASS( TMmSubcellsSetupCode )
    50 NONSHARABLE_CLASS( TMmSubcellsSetupCode )
    49     {
    51     {
    56     enum TSubcellType
    58     enum TSubcellType
    57         {
    59         {
    58         ENoSubcell = 0,
    60         ENoSubcell = 0,
    59         EGraphicsSubcell = 1,
    61         EGraphicsSubcell = 1,
    60         ETextSubcell = 2,
    62         ETextSubcell = 2,
    61         EBackdropSubcell = 3
    63         EBackdropSubcell = 3,
       
    64         ESkippedSubcell = 4
    62         };
    65         };
    63 public:
    66 public:
    64     /**
    67     /**
    65      * Standard C++ constructor.
    68      * Standard C++ constructor.
    66      */
    69      */
   104 
   107 
   105 protected: // data
   108 protected: // data
   106     /**
   109     /**
   107      * The subcells setup code.
   110      * The subcells setup code.
   108      */
   111      */
   109     TUint32 iCode;
   112     TUint64 iCode;
   110     };
   113     };
   111 
   114 
   112 #include "mmsubcellssetupcode.inl"
   115 #include "mmsubcellssetupcode.inl"
   113 
   116 
   114 #endif // MMSUBCELLSSETUPCODE_H 
   117 #endif // MMSUBCELLSSETUPCODE_H