idlefw/plugins/wrtdataplugin/inc/wrtdata.h
branchRCL_3
changeset 8 d0529222e3f0
parent 3 ff572005ac23
child 15 a0713522ab97
equal deleted inserted replaced
4:1a2a00e78665 8:d0529222e3f0
    17 
    17 
    18 
    18 
    19 #ifndef WRTDATA_H
    19 #ifndef WRTDATA_H
    20 #define WRTDATA_H
    20 #define WRTDATA_H
    21 
    21 
    22 // INCLUDE FILES
    22 // System includes
    23 #include <liwcommon.h> 
    23 #include <liwcommon.h> 
    24 #include <AknsItemID.h>
    24 #include <AknsItemID.h>
       
    25 
       
    26 // User includes
       
    27 #include <hscontentpublisher.h>
    25 #include "wrtdatapluginconst.h"
    28 #include "wrtdatapluginconst.h"
    26 #include "aicontentpublisher.h"
    29 
    27 
    30 // Forward declarations
    28 // FORWARD DECLARATIONS
       
    29 class MLiwInterface;
    31 class MLiwInterface;
    30 class CLiwServiceHandler;
    32 class CLiwServiceHandler;
    31 class CWrtDataObserver;
    33 class CWrtDataObserver;
    32 class CWrtDataPlugin;
    34 class CWrtDataPlugin;
    33 
    35 
    34 // CLASS DECLARATION
       
    35 /**
    36 /**
    36  *  @ingroup group_wrtdataplugin
    37  *  @ingroup group_wrtdataplugin
    37  *
    38  *
    38  *  Wrt data
    39  *  Wrt data
    39  *
    40  *
    40  *  @since S60 v3.2
    41  *  @since S60 5.2
    41  */
    42  */
    42 class CWrtData : public CBase
    43 NONSHARABLE_CLASS( CWrtData ) : public CBase
    43    {
    44     {    
    44 
    45 public:
    45    public:
    46     // constructor and destructor
    46         
    47     
    47         /**
    48     static CWrtData* NewL( CWrtDataPlugin* aPlugin );
    48         * Part of the two phased construction
    49 
    49         *
    50     ~CWrtData();
    50         * @param aPlugin refrence of the plugin
       
    51         * @return none
       
    52         */
       
    53         static CWrtData* NewL(CWrtDataPlugin* aPlugin);
       
    54         
       
    55         /**
       
    56         * Destructor
       
    57         *
       
    58         * @param none
       
    59         * @return none
       
    60         */
       
    61         ~CWrtData();
       
    62     
    51     
    63    public : 
    52    public : 
    64     
    53     
    65         /**
    54         /**
    66         * Configures the subscriber and data to subscribe.
    55         * Configures the subscriber and data to subscribe.
   167         * Deactivate the publisher
   156         * Deactivate the publisher
   168         * 
   157         * 
   169         * @param None
   158         * @param None
   170         * @return void
   159         * @return void
   171         */
   160         */
   172         void DeActivateL();
   161         void DeActivateL();      
   173         
       
   174         /**
       
   175         * InActiveL 
       
   176         * 
       
   177         * @param None
       
   178         * @return void
       
   179         */
       
   180         void InActiveL();        
       
   181         
   162         
   182         /**
   163         /**
   183         * OnLineL 
   164         * OnLineL 
   184         * 
   165         * 
   185         * @param None
   166         * @param None
   273         * @return ETure/EFalse
   254         * @return ETure/EFalse
   274         */   
   255         */   
   275         void CreateIconFromUidL(TInt& aHandle, TInt& aMaskHandle, const TUid& aAppUid );
   256         void CreateIconFromUidL(TInt& aHandle, TInt& aMaskHandle, const TUid& aAppUid );
   276 
   257 
   277     private :   
   258     private :   
   278         
   259     // data
   279         // Subscriber interface
   260     
   280         // own
   261     /** Subscriber interface, owned */    
   281         MLiwInterface* iInterface;
   262     MLiwInterface* iInterface;     
   282           
   263     /** Data Observer to CPS, owned */
   283         // Data Observer to CPS
   264     CWrtDataObserver* iObserver;   
   284         // Own
   265     /** Service handler, owned */    
   285         CWrtDataObserver* iObserver;
   266     CLiwServiceHandler* iServiceHandler;
   286        
   267     /** Command name in configuration Array, owned */
   287         // Service handler 
   268     HBufC8* iCommandName;      
   288         // Own
   269     /** Reference of the wrt data plugin, not owned */    
   289         CLiwServiceHandler* iServiceHandler;
   270     CWrtDataPlugin* iPlugin;    
   290     
   271     /** Menu item names, owned */    
   291         // Command name in configuration Array
   272     RPointerArray<HBufC16> iMenuItems;     
   292         HBufC8* iCommandName;
   273     /** Trigger names for the menu items, owned */    
   293           
   274     RPointerArray<HBufC8> iMenuTriggers;    
   294         // Reference of the wrt data plugin
   275     /** Content id, owned */
   295         // Not owned
   276     HBufC* iContentId;
   296         CWrtDataPlugin* iPlugin;
       
   297         
       
   298         // Menu item names
       
   299         // Own
       
   300         RPointerArray<HBufC16> iMenuItems; 
       
   301         
       
   302         // Trigger names for the menu items
       
   303         // Own
       
   304         RPointerArray<HBufC8> iMenuTriggers;
       
   305         
       
   306         // Widgets content id.
       
   307         // Own
       
   308         HBufC* iContentId;
       
   309  
       
   310     };
   277     };
   311 
   278 
   312 #endif /*WRTDATA_H*/
   279 #endif /*WRTDATA_H*/