00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef C_AKNSINGLESTYLETREELIST_H
00021 #define C_AKNSINGLESTYLETREELIST_H
00022
00023
00024 #include <akntreelist.h>
00025
00026
00075 NONSHARABLE_CLASS( CAknSingleStyleTreeList ) : public CAknTreeList
00076 {
00077
00078 public:
00079
00085 enum TIconType
00086 {
00088 ELeaf = 0,
00090 EHighlightedLeaf = 1,
00092 EExpandedNode = 2,
00094 EHighlightedExpandedNode = 3,
00096 ECollapsedNode = 4,
00098 EHighlightedCollapsedNode = 5,
00100 EOptionalIcon1 = 6,
00102 EHighlightedOptionalIcon1 = 7,
00104 EOptionalIcon2 = 8,
00106 EHighlightedOptionalIcon2 = 9
00107 };
00108
00110 enum TOrdering
00111 {
00113 EAscendingAlphabeticalOrdering,
00115 EDescendingAlphabeticalOrdering
00116 };
00117
00119 enum TSingleStyleItemFlags
00120 {
00122 EPersistent = 0x01,
00124 EMarked = 0x02,
00126 EExpanded = 0x04,
00128 ENonEmpty = 0x08
00129 };
00130
00139 IMPORT_C static CAknSingleStyleTreeList* NewL();
00140
00152 IMPORT_C static CAknSingleStyleTreeList* NewL(
00153 const CCoeControl& aContainer );
00154
00163 IMPORT_C static CAknSingleStyleTreeList* NewLC();
00164
00173 IMPORT_C static CAknSingleStyleTreeList* NewLC(
00174 const CCoeControl& aContainer );
00175
00179 virtual ~CAknSingleStyleTreeList();
00180
00204 IMPORT_C TAknTreeItemID AddLeafL( TAknTreeItemID aParent,
00205 const TDesC& aText, TUint32 aFlags, TBool aDrawNow );
00206
00230 IMPORT_C TAknTreeItemID AddNodeL( TAknTreeItemID aParent,
00231 const TDesC& aText, TUint32 aFlags, TBool aDrawNow );
00232
00243 IMPORT_C void SortL( TOrdering aOrdering, TBool aDrawNow );
00244
00263 IMPORT_C void SetTextL( TAknTreeItemID aItem, const TDesC& aText,
00264 TBool aDrawNow );
00265
00275 IMPORT_C const TDesC& Text( TAknTreeItemID aItem ) const;
00276
00301 IMPORT_C void SetIcon( TAknTreeItemID aItem, TIconType aType,
00302 TInt aIconId, TBool aDrawNow );
00303
00317 IMPORT_C TInt Icon( TAknTreeItemID aItem, TIconType aType ) const;
00318
00319
00320
00327 void SetFlags( TUint32 aFlags );
00328
00329 private:
00330
00334 CAknSingleStyleTreeList();
00335
00339 void ConstructL();
00340
00346 void ConstructL( const CCoeControl& aContainer );
00347
00348 };
00349
00350
00351 #endif // C_AKNSINGLESTYLETREELIST_H