aknsinglestyletreelist.h

Go to the documentation of this file.
00001 /*
00002 * ============================================================================
00003 *  Name        : aknsinglestyletreelist.h
00004 *  Part of     : UI Framework Core / Avkon
00005 *  Description : Single style hierarchical list.
00006 *  Version     : %version: 3 %
00007 *
00008 *  Copyright © 2006, 2007 Nokia.  All rights reserved.
00009 *  This material, including documentation and any related computer
00010 *  programs, is protected by copyright controlled by Nokia.  All
00011 *  rights are reserved.  Copying, including reproducing, storing,
00012 *  adapting or translating, any or all of this material requires the
00013 *  prior written consent of Nokia.  This material also contains
00014 *  confidential information which may not be disclosed to others
00015 *  without the prior written consent of Nokia.
00016 * ============================================================================
00017 * Template version: 4.1
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 // from base class CAknTreeList
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

Copyright © Nokia Corporation 2001-2007
Back to top