00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef C_AKNSINGLECOLUMNSTYLETREELIST_H
00021 #define C_AKNSINGLECOLUMNSTYLETREELIST_H
00022
00023
00024 #include <akntreelist.h>
00025
00026
00096 NONSHARABLE_CLASS( CAknSingleColumnStyleTreeList ) : public CAknTreeList
00097 {
00098
00099 public:
00100
00103 enum TItemType
00104 {
00106 ENone = 0,
00108 ETreeRoot = 1,
00110 ESimpleDataRow = 2,
00112 ECoreDataRow = 3,
00114 ESubtitleRow = 4
00115 };
00116
00119 enum TItemFlags
00120 {
00122 EPersistent = 0x01,
00124 EMarked = 0x02,
00126 EExpanded = 0x04,
00128 ENonEmpty = 0x08,
00130 EEmphasis = 0x10,
00132 EMarkingDisabled = 0x20
00133 };
00134
00139 enum TIconType
00140 {
00143 ELeaf = 0,
00146 EHighlightedLeaf = 1,
00148 EExpandedNode = 2,
00150 EHighlightedExpandedNode = 3,
00152 ECollapsedNode = 4,
00154 EHighlightedCollapsedNode = 5,
00156 EOptionalIcon1 = 6,
00158 EHighlightedOptionalIcon1 = 7,
00160 EOptionalIcon2 = 8,
00163 EHighlightedOptionalIcon2 = 9
00164 };
00165
00174 IMPORT_C static CAknSingleColumnStyleTreeList* NewL();
00175
00187 IMPORT_C static CAknSingleColumnStyleTreeList* NewL(
00188 const CCoeControl& aContainer );
00189
00198 IMPORT_C static CAknSingleColumnStyleTreeList* NewLC();
00199
00208 IMPORT_C static CAknSingleColumnStyleTreeList* NewLC(
00209 const CCoeControl& aContainer );
00210
00214 virtual ~CAknSingleColumnStyleTreeList();
00215
00241 IMPORT_C TAknTreeItemID AddSimpleDataRowL( TAknTreeItemID aParent,
00242 const TDesC& aText, TUint32 aFlags, TBool aDrawNow );
00243
00273 IMPORT_C TAknTreeItemID AddCoreDataRowL( TAknTreeItemID aParent,
00274 const TDesC& aFirstColumn, const TDesC& aSecondColumn, TUint32 aFlags,
00275 TBool aDrawNow );
00276
00307 IMPORT_C TAknTreeItemID AddCoreDataRowL( TAknTreeItemID aParent,
00308 const TDesC& aFirstColumnd, const TDesC& aSecondColumn,
00309 const TDesC& aThirdColumn, TUint32 aFlags, TBool aDrawNow );
00310
00333 IMPORT_C TAknTreeItemID AddSubtitleRowL( TAknTreeItemID aParent,
00334 const TDesC& aText, TUint32 aFlags, TBool aDrawNow );
00335
00343 IMPORT_C const TDesC& Text( TAknTreeItemID aItem ) const;
00344
00356 IMPORT_C const TDesC& Text( TAknTreeItemID aItem, TInt aColumnIndex ) const;
00357
00370 IMPORT_C void SetTextL( TAknTreeItemID aItem, const TDesC& aText,
00371 TBool aDrawNow );
00372
00393 IMPORT_C void SetTextL( TAknTreeItemID aItem, const TDesC& aText,
00394 TInt aColumnIndex, TBool aDrawNow );
00395
00407 IMPORT_C TBool IsEmphasised( TAknTreeItemID aItem ) const;
00408
00422 IMPORT_C void SetEmphasis( TAknTreeItemID aItem, TBool aEmphasis,
00423 TBool aDrawNow );
00424
00436 IMPORT_C TBool IsThirdColumnEnabled( TAknTreeItemID aItem ) const;
00437
00453 IMPORT_C void EnableThirdColumn( TAknTreeItemID aItem, TBool aEnable,
00454 TBool aDrawNow );
00455
00469 IMPORT_C TInt Icon( TAknTreeItemID aItem, TIconType aType ) const;
00470
00496 IMPORT_C void SetIcon( TAknTreeItemID aItem, TIconType aType,
00497 TInt aIconId, TBool aDrawNow );
00498
00508 IMPORT_C TItemType ItemType( TAknTreeItemID aItem ) const;
00509
00510
00511
00518 void SetFlags( TUint32 aFlags );
00519
00526 void HandleResourceChange( TInt aType );
00527
00528 private:
00529
00533 CAknSingleColumnStyleTreeList();
00534
00538 void ConstructL();
00539
00545 void ConstructL( const CCoeControl& aContainer );
00546
00550 void UpdateIndention();
00551
00552 private:
00553
00554 };
00555
00556
00557 #endif // C_AKNSINGLECOLUMNSTYLETREELIST_H