emailservices/emailserver/cmailhandlerplugin/inc/cmailcpsif.h
branchRCL_3
changeset 17 8592a65ad3fb
parent 12 f5907b1a1053
child 19 b13141f05c3d
equal deleted inserted replaced
16:4ce476e64c59 17:8592a65ad3fb
    23 #include <liwservicehandler.h>
    23 #include <liwservicehandler.h>
    24 #include <liwvariant.h>
    24 #include <liwvariant.h>
    25 #include <liwgenericparam.h>
    25 #include <liwgenericparam.h>
    26 #include <fbs.h>
    26 #include <fbs.h>
    27 #include <data_caging_path_literals.hrh>
    27 #include <data_caging_path_literals.hrh>
       
    28 #include <hsccapiclient.h>
       
    29 #include <hscontentcontrol.h>
       
    30 #include <hscontentinfo.h>
       
    31 #include <hscontentinfoarray.h>
    28 
    32 
    29 #include "cmailcpshandler.h"
    33 #include "cmailcpshandler.h"
    30 #include "cmailcpsifconsts.h"
    34 #include "cmailcpsifconsts.h"
    31 
    35 
    32 /**
    36 /**
    34  *  Class implementing interface towards LIW FW and Content Publishing Service
    38  *  Class implementing interface towards LIW FW and Content Publishing Service
    35  *
    39  *
    36  *  @lib fsmailserver.exe
    40  *  @lib fsmailserver.exe
    37  *  @since S60 v5.1
    41  *  @since S60 v5.1
    38  */
    42  */
    39 NONSHARABLE_CLASS( CMailCpsIf ) : public CBase, public MLiwNotifyCallback
    43 NONSHARABLE_CLASS( CMailCpsIf ) : public CBase,
       
    44                                   public MHsContentControl,
       
    45                                   public MLiwNotifyCallback
    40     {
    46     {
    41 public:
    47 public:
    42     /**
    48     /**
    43      * Two-phased constructor.
    49      * Two-phased constructor.
    44      */
    50      */
   168 
   174 
   169     /**
   175     /**
   170      * 
   176      * 
   171      */	
   177      */	
   172 	TInt GetWidgetInstanceCount();
   178 	TInt GetWidgetInstanceCount();
       
   179 	
       
   180     /**
       
   181      * 
       
   182      */	
       
   183 	void AddWidgetToHomescreenL( const TFSMailMsgId aMailbox );
   173 
   184 
   174 private:
   185 private:
   175     
   186     
   176     CMailCpsIf( CMailCpsHandler* aMailCpsHandler );
   187     CMailCpsIf( CMailCpsHandler* aMailCpsHandler );
   177     void ConstructL();
   188     void ConstructL();
   245     /**
   256     /**
   246      * Resets all the published content values on HomeScreen database
   257      * Resets all the published content values on HomeScreen database
   247      */
   258      */
   248     void ResetPublishedDataL( const TDesC& aContentId );
   259     void ResetPublishedDataL( const TDesC& aContentId );
   249 
   260 
       
   261     //
       
   262     // -------------------------- from base classes-----------------------------
       
   263     //
       
   264     virtual void NotifyWidgetListChanged(); // MHsContentControl
       
   265     virtual void NotifyViewListChanged(); // MHsContentControl
       
   266     virtual void NotifyAppListChanged(); // MHsContentControl
       
   267     
   250 public:
   268 public:
   251 	//
   269 	//
   252     RPointerArray<HBufC>    iInstIdList;
   270     RPointerArray<HBufC>    iInstIdList;
   253 private:
   271 private:
   254 	CMailCpsHandler*		iMailCpsHandler; //uses
   272 	CMailCpsHandler*		iMailCpsHandler; //uses
   270     TUint 					iSetupUid;
   288     TUint 					iSetupUid;
   271 	// is content allowed to publish	
   289 	// is content allowed to publish	
   272 	TBool 					iAllowedToPublish[KMaxMailboxCount];
   290 	TBool 					iAllowedToPublish[KMaxMailboxCount];
   273 	// From configuration: are homescreen notifications observed or ignored
   291 	// From configuration: are homescreen notifications observed or ignored
   274 	TBool                   iIgnoreHsNotifications;
   292 	TBool                   iIgnoreHsNotifications;
       
   293 	
       
   294 	CHsCcApiClient*         iContentControlClient;
   275     };
   295     };
   276 
   296 
   277 #endif /*CMAILCPSIF_H_*/
   297 #endif /*CMAILCPSIF_H_*/