idlehomescreen/widgetmanager/inc/wmwidgetloaderao.h
branchRCL_3
changeset 28 d721605b30d0
parent 26 1b758917cafc
equal deleted inserted replaced
26:1b758917cafc 28:d721605b30d0
    30 class CWmPersistentWidgetOrder;
    30 class CWmPersistentWidgetOrder;
    31 class RWidgetRegistryClientSession;
    31 class RWidgetRegistryClientSession;
    32 
    32 
    33 // CLASS DECLARATIONS
    33 // CLASS DECLARATIONS
    34 
    34 
       
    35 class MWmWidgetloaderObserver
       
    36     {
       
    37 public:
       
    38     /**
       
    39      * Notifies client when widget list is succesfully loaded
       
    40      *
       
    41      * @param aWidgetListChanged true if widget list changed
       
    42      */
       
    43     virtual void LoadDoneL( TBool aWidgetListChanged ) = 0;
       
    44     };
       
    45     
    35 /**
    46 /**
    36  * Active object to load widgets into list
    47  * Active object to load widgets into list
    37  */
    48  */
    38 NONSHARABLE_CLASS( CWmWidgetLoaderAo ) : public CActive
    49 NONSHARABLE_CLASS( CWmWidgetLoaderAo ) : public CActive
    39     {
    50     {
    40     
    51     
    41 public:
    52 public:
    42 	/**
    53     /**
    43      * Static constructor
    54      * Static constructor
    44      */
    55      */
    45 	static CWmWidgetLoaderAo* NewL(
    56     static CWmWidgetLoaderAo* NewL(
    46 	        CWmPlugin& aWmPlugin,
    57             CWmPlugin& aWmPlugin,
    47 	        CWmListBox& aTargetList );
    58             CWmListBox& aTargetList );
    48 	
    59     
    49     /**
    60     /**
    50      * Destructor.
    61      * Destructor.
    51      */
    62      */
    52 	~CWmWidgetLoaderAo();
    63     ~CWmWidgetLoaderAo();
    53 
    64 
    54     /**
    65     /**
    55      * Starts the load process by activating the AO
    66      * Starts the load process by activating the AO
    56      */
    67      */
    57     void StartLoading();
    68     void StartLoading();
    59     /**
    70     /**
    60      * Is loading ongoing.
    71      * Is loading ongoing.
    61      */
    72      */
    62     TBool IsLoading();
    73     TBool IsLoading();
    63 
    74 
       
    75     /**
       
    76      * Set MWmWidgetloaderObserver observer
       
    77       */
       
    78     void SetObserver( MWmWidgetloaderObserver* aObserver );
    64 private:
    79 private:
    65     
    80     
    66     /**
    81     /**
    67      * Constructor
    82      * Constructor
    68      */
    83      */
   148     RWidgetRegistryClientSession* iWidgetRegistry;
   163     RWidgetRegistryClientSession* iWidgetRegistry;
   149     
   164     
   150     /** persistent widget order */
   165     /** persistent widget order */
   151     CWmPersistentWidgetOrder* iWidgetOrder;
   166     CWmPersistentWidgetOrder* iWidgetOrder;
   152     
   167     
   153 	/** uid of currently unistalled widget */
   168     /** uid of currently unistalled widget */
   154     TUid iUninstallUid;
   169     TUid iUninstallUid;
   155     
   170     
   156     /** switch for loading operation */
   171     /** switch for loading operation */
   157     TBool iLoading;
   172     TBool iLoading;
       
   173     
       
   174     /** Notifies client when widget list is fully loaded */
       
   175     MWmWidgetloaderObserver* iObserver;
       
   176     
       
   177     /** tells if widgetlist has changed */
       
   178     TBool iWidgetListChanged;
   158     };
   179     };
   159 
   180 
   160 #endif // WMWIDGETLOADERAO_H_
   181 #endif // WMWIDGETLOADERAO_H_