idlefw/plugins/mcsplugin/publisher/inc/mcsplugindata.h
branchRCL_3
changeset 18 bd874ee5e5e2
parent 0 79c6a41cd166
child 19 502e5d91ad42
equal deleted inserted replaced
9:d0529222e3f0 18:bd874ee5e5e2
    23 #include <e32base.h>
    23 #include <e32base.h>
    24 #include <badesca.h>
    24 #include <badesca.h>
    25 #include <mhomescreensettingsobserver.h>
    25 #include <mhomescreensettingsobserver.h>
    26 #include <hspluginsettings.h>
    26 #include <hspluginsettings.h>
    27 #include <propertymap.h>
    27 #include <propertymap.h>
       
    28 #include <mcsmenu.h>
    28 
    29 
    29 class TMenuItem;
    30 class TMenuItem;
    30 class CMCSPluginEngine;
    31 class CMCSPluginEngine;
    31 class CMCSPluginWatcher;
    32 class CMCSPluginWatcher;
    32 
    33 
   164      * 
   165      * 
   165      * @param aEvent
   166      * @param aEvent
   166      * @param aPluginName
   167      * @param aPluginName
   167      * @param aPluginUid
   168      * @param aPluginUid
   168      * @param aPluginId
   169      * @param aPluginId
   169      * @return TInt
   170      */
   170      */
   171     void SettingsChangedL( const TDesC8& aEvent,  const TDesC8& aPluginName,
   171     TInt SettingsChangedL( const TDesC8& aEvent,  const TDesC8& aPluginName,
       
   172                            const TDesC8& aPluginUid, const TDesC8& aPluginId );
   172                            const TDesC8& aPluginUid, const TDesC8& aPluginId );
   173 
   173 
       
   174     /**
       
   175      * CreateBkmMenuItemsL
       
   176      * @param void
       
   177      * @return void
       
   178      */
       
   179     void CreateBkmMenuItemsL();
   174 private:
   180 private:
   175 
   181 
   176     /**
   182     /**
   177     * Part of the two phased construction
   183     * Part of the two phased construction
   178     *
   184     *
   187      * @return TMenuItem
   193      * @return TMenuItem
   188      */
   194      */
   189     TMenuItem CreateMenuItemL(
   195     TMenuItem CreateMenuItemL(
   190         RPointerArray<HSPluginSettingsIf::CPropertyMap>& aProperties );
   196         RPointerArray<HSPluginSettingsIf::CPropertyMap>& aProperties );
   191 
   197 
       
   198     /**
       
   199      * GetMCSPluginFolderIdL
       
   200      * 
       
   201      * @return TInt
       
   202      */
       
   203     TInt GetMCSPluginFolderIdL();
   192 private: // data
   204 private: // data
   193 
   205 
   194     // Menu items, which are defined in settings
   206     // Menu items, which are defined in settings
   195     // Own
   207     // Own
   196     RArray<TMCSData> iData;
   208     RArray<TMCSData> iData;
   197 
   209 
   198     // Plugin settings
   210     // Plugin settings. NOT OWNED!
   199     HSPluginSettingsIf::CHomescreenSettings* iPluginSettings;
   211     HSPluginSettingsIf::CHomescreenSettings* iPluginSettings;
   200 
   212 
   201     // Reference to MCS plug-in engine
   213     // Reference to MCS plug-in engine
   202     CMCSPluginEngine& iEngine;
   214     CMCSPluginEngine& iEngine;
   203 
   215 
   204     // Reference to instance uid of HSPS widget
   216     // Reference to instance uid of HSPS widget
   205     const TDesC8& iInstanceUid;
   217     const TDesC8& iInstanceUid;
       
   218 
       
   219     // MCS asynchronous operation watcher, owned 
       
   220     CMCSPluginWatcher* iSaveWatcher;
       
   221 
       
   222     // MCS resource handle, owned 
       
   223     RMenu iMenu;
   206     };
   224     };
   207 
   225 
   208 #endif // CMCSPLUGINDATA_H
   226 #endif // CMCSPLUGINDATA_H