emailuis/uicomponents/inc/fstreelist.h
changeset 3 a4d6f1ea0416
parent 2 5253a20d2a1e
equal deleted inserted replaced
2:5253a20d2a1e 3:a4d6f1ea0416
    51 
    51 
    52 /** An array of tree list observers */
    52 /** An array of tree list observers */
    53 typedef RPointerArray<MFsTreeListObserver> RFsTreeListObservers;
    53 typedef RPointerArray<MFsTreeListObserver> RFsTreeListObservers;
    54 
    54 
    55 /**
    55 /**
    56  * CFsTreeList is a component for creating and displaying hierarchical list
    56  * Batch updates for the tree.
       
    57  */
       
    58 class MFsTreeBatchProcessing
       
    59     {
       
    60 public:
       
    61     /**
       
    62      * Begin batch update. During batch update changes to the world
       
    63      * will not be updated on screen until the EndUpdateL is called.
       
    64      */
       
    65     virtual void BeginUpdate() = 0;
       
    66     
       
    67     /**
       
    68      * End batch update. All changes done between BeginUpdate and EndUpdateL
       
    69      * will be shown on screen.
       
    70      */
       
    71     virtual void EndUpdateL() = 0;
       
    72     };
       
    73 
       
    74 /**
       
    75  * CFsTreeList is a component for creating and displaying hierarchical list 
    57  * using tree data structure.
    76  * using tree data structure.
    58  *
    77  *
    59  * @code
    78  * @code
    60  *
    79  *
    61  * @endcode
    80  * @endcode
    62  *
    81  *
    63  * @lib
    82  * @lib
    64  */
    83  */
    65 class CFsTreeList  : public CBase, MFsTreeVisualizerObserver
    84 class CFsTreeList  : public CBase, MFsTreeVisualizerObserver, MFsTreeBatchProcessing
    66     {
    85     {
       
    86 public: // from MFsTreeBatchProcessing
       
    87     
       
    88     /**
       
    89      * @see MFsTreeBatchProcessing::BeginUpdate
       
    90      */
       
    91     void BeginUpdate();
       
    92 
       
    93     /**
       
    94      * @see MFsTreeBatchProcessing::EndUpdateL
       
    95      */
       
    96     void EndUpdateL();
       
    97     
    67 public: // Construction
    98 public: // Construction
    68 
    99 
    69 
   100 
    70     /** Pre-defined types of markability in list */
   101     /** Pre-defined types of markability in list */
    71     enum TFsTreeListMarkType
   102     enum TFsTreeListMarkType