emailservices/emailserver/cmailhandlerplugin/inc/cmailcpsif.h
branchRCL_3
changeset 14 b13141f05c3d
parent 13 8592a65ad3fb
equal deleted inserted replaced
13:8592a65ad3fb 14:b13141f05c3d
    30 #include <hscontentinfo.h>
    30 #include <hscontentinfo.h>
    31 #include <hscontentinfoarray.h>
    31 #include <hscontentinfoarray.h>
    32 
    32 
    33 #include "cmailcpshandler.h"
    33 #include "cmailcpshandler.h"
    34 #include "cmailcpsifconsts.h"
    34 #include "cmailcpsifconsts.h"
       
    35 
       
    36 /**
       
    37 *
       
    38 */
       
    39 class TInstIdInfo
       
    40 	{
       
    41 public:
       
    42     TBuf<KMaxDescLen> iCid;
       
    43 	TBool             iUpdateNeeded;
       
    44 	TBool             iWizardPublished;
       
    45 	};
       
    46 
    35 
    47 
    36 /**
    48 /**
    37  *  CMail ContentPublishingService interface class
    49  *  CMail ContentPublishingService interface class
    38  *  Class implementing interface towards LIW FW and Content Publishing Service
    50  *  Class implementing interface towards LIW FW and Content Publishing Service
    39  *
    51  *
   179 	
   191 	
   180     /**
   192     /**
   181      * 
   193      * 
   182      */	
   194      */	
   183 	void AddWidgetToHomescreenL( const TFSMailMsgId aMailbox );
   195 	void AddWidgetToHomescreenL( const TFSMailMsgId aMailbox );
       
   196     /**
       
   197      * 
       
   198      */
       
   199     TInt GetWidgetInstanceId(const TDesC& aContentId);
       
   200 
       
   201     /**
       
   202      * 
       
   203      */
       
   204     void SetUpdateNeeded( const TInt aInstance, const TBool aValue );
       
   205 
       
   206     /**
       
   207      * 
       
   208      */
       
   209     TBool UpdateNeeded( const TInt aInstance );
   184 
   210 
   185 private:
   211 private:
   186     
   212     
   187     CMailCpsIf( CMailCpsHandler* aMailCpsHandler );
   213     CMailCpsIf( CMailCpsHandler* aMailCpsHandler );
   188     void ConstructL();
   214     void ConstructL();
   247      * @param aId of the published data
   273      * @param aId of the published data
   248      */
   274      */
   249     void RemoveL( TUint aId );
   275     void RemoveL( TUint aId );
   250 
   276 
   251     /**
   277     /**
   252      * 
       
   253      */	    
       
   254     TInt FindWidgetInstanceId(const TDesC& aContentId);
       
   255 
       
   256     /**
       
   257      * Resets all the published content values on HomeScreen database
   278      * Resets all the published content values on HomeScreen database
   258      */
   279      */
   259     void ResetPublishedDataL( const TDesC& aContentId );
   280     void ResetPublishedDataL( const TDesC& aContentId );
   260 
   281 
   261     //
   282     //
   265     virtual void NotifyViewListChanged(); // MHsContentControl
   286     virtual void NotifyViewListChanged(); // MHsContentControl
   266     virtual void NotifyAppListChanged(); // MHsContentControl
   287     virtual void NotifyAppListChanged(); // MHsContentControl
   267     
   288     
   268 public:
   289 public:
   269 	//
   290 	//
   270     RPointerArray<HBufC>    iInstIdList;
   291     RArray<TInstIdInfo>     iInstIdList;
   271 private:
   292 private:
   272 	CMailCpsHandler*		iMailCpsHandler; //uses
   293     CMailCpsHandler*        iMailCpsHandler; //uses
   273     // LIW IF
   294     // LIW IF
   274     MLiwInterface* 			iMsgInterface;
   295     MLiwInterface*          iMsgInterface;
   275     // LIW Service handler
   296     // LIW Service handler
   276     CLiwServiceHandler* 	iServiceHandler;
   297     CLiwServiceHandler*     iServiceHandler;
   277     // resource file offset
   298     // resource file offset
   278     TInt                    iResourceFileOffset;
   299     TInt                    iResourceFileOffset;
   279     // UIDS of the published entities
   300     // UIDS of the published entities
   280     TUint 					iMailboxNameUid;
   301     TUint                   iMailboxNameUid;
   281     // message count of a mailbox
   302     // message count of a mailbox
   282     TUint 					iMessageCountUid;
   303     TUint                   iMessageCountUid;
   283     // row count
   304     // row count
   284     TUint 					iRowCountUid;
   305     TUint                   iRowCountUid;
   285     // message header details id
   306     // message header details id
   286     TUint 					iMsgUid;
   307     TUint                   iMsgUid;
   287     // setup text and action id
   308     // setup text and action id
   288     TUint 					iSetupUid;
   309     TUint                   iSetupUid;
   289 	// is content allowed to publish	
   310     // is content allowed to publish	
   290 	TBool 					iAllowedToPublish[KMaxMailboxCount];
   311     TBool                   iAllowedToPublish[KMaxMailboxCount];
   291 	// From configuration: are homescreen notifications observed or ignored
   312     // From configuration: are homescreen notifications observed or ignored
   292 	TBool                   iIgnoreHsNotifications;
   313     TBool                   iIgnoreHsNotifications;
   293 	
   314     //
   294 	CHsCcApiClient*         iContentControlClient;
   315 	CHsCcApiClient*         iContentControlClient;
   295     };
   316     };
   296 
   317 
   297 #endif /*CMAILCPSIF_H_*/
   318 #endif /*CMAILCPSIF_H_*/