emailservices/emailserver/cmailhandlerplugin/inc/cmailcpsif.h
branchRCL_3
changeset 8 e1b6206813b4
parent 0 8466d47a6819
child 10 f5907b1a1053
equal deleted inserted replaced
4:e7aa27f58ae1 8:e1b6206813b4
    18 
    18 
    19 #ifndef CMAILCPSIF_H_
    19 #ifndef CMAILCPSIF_H_
    20 #define CMAILCPSIF_H_
    20 #define CMAILCPSIF_H_
    21 
    21 
    22 // LIW interface
    22 // LIW interface
    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 
    28 
    29 #include "cmailcpshandler.h"
    29 #include "cmailcpshandler.h"
    30 #include "cmailcpsifconsts.h"
    30 #include "cmailcpsifconsts.h"
    65                                     const TInt aMailBoxCount,
    65                                     const TInt aMailBoxCount,
    66                                     TFSMailMsgId aMailBoxId,
    66                                     TFSMailMsgId aMailBoxId,
    67                                     TFSMailMsgId aFolderId );
    67                                     TFSMailMsgId aFolderId );
    68 
    68 
    69     /**
    69     /**
       
    70      * Publishes mailbox name to widget and action related to widget
       
    71      * @param aInstance specifies the widget instance on homescreen
       
    72      * @param aMailboxName specifies the text to be published
       
    73      * @param aAction specifies the action identifier that will be sent back
       
    74      *        when user presses the widget
       
    75      */
       
    76     void PublishMailboxNameL(
       
    77         const TInt aInstance, 
       
    78         const TDesC& aMailboxName,
       
    79         const TDesC8& aAction );
       
    80 
       
    81     /**
    70      * Resets mailbox name from widget
    82      * Resets mailbox name from widget
    71      * @param aRowNumber specifies the row on widget UI
    83      * @param aRowNumber specifies the row on widget UI
    72      */
    84      */
    73 //    void ResetActiveMailboxNameL( const TInt aRowNumber );
    85 //    void ResetActiveMailboxNameL( const TInt aRowNumber );
    74 
    86 
    82     /**
    94     /**
    83      * 
    95      * 
    84      */
    96      */
    85     void PublishMailboxIconL( const TInt aInstance, const TInt aRowNumber, const TInt aIcon, TFSMailMsgId aMailBoxId );
    97     void PublishMailboxIconL( const TInt aInstance, const TInt aRowNumber, const TInt aIcon, TFSMailMsgId aMailBoxId );
    86 
    98 
       
    99     /**
       
   100      * Publishes mailbox icon based on given resource path
       
   101      * @param aInstance specifies the widget
       
   102      * @param aIconResourcePath specifies the icon resource
       
   103      *  (e.g. "mif(z:\\resource\\apps\\myemailplugin.mif 16384 16385)")
       
   104      */
       
   105     void PublishMailboxIconL( const TInt aInstance, const TDesC& aIconPath );
       
   106 
       
   107     /**
       
   108      * 
       
   109      */
       
   110     void PublishIconReferenceL(
       
   111         const TDesC& aContentId,
       
   112         const TDesC& aContentType,
       
   113         const TDesC8& aKey,
       
   114         const TDesC& aIconPath );
       
   115     
    87     /**
   116     /**
    88      * 
   117      * 
    89      */    
   118      */    
    90     void PublishMailDetailL(
   119     void PublishMailDetailL(
    91             const TInt aInstance,
   120             const TInt aInstance,
   116 
   145 
   117     /**
   146     /**
   118      * 
   147      * 
   119      */	
   148      */	
   120 	TInt HandleNotifyL(
   149 	TInt HandleNotifyL(
   121         TInt aErrorCode,
   150         TInt aCmdId,
   122         TInt aEventId,
   151         TInt aEventId,
   123         CLiwGenericParamList& aEventParamList,
   152         CLiwGenericParamList& aEventParamList,
   124         const CLiwGenericParamList& aInParamList );
   153         const CLiwGenericParamList& aInParamList );
   125 
   154 
   126     /**
   155     /**
   151     void ConstructL();
   180     void ConstructL();
   152 
   181 
   153     /**
   182     /**
   154      * adds resource file
   183      * adds resource file
   155      */
   184      */
   156     void CMailCpsIf::AllocateResourcesL();
   185     void AllocateResourcesL();
   157     
   186     
   158     /**
   187     /**
   159      * initializes the LIW IF
   188      * initializes the LIW IF
   160      * @return instance of LIW IF
   189      * @return instance of LIW IF
   161      */
   190      */
   215 
   244 
   216     /**
   245     /**
   217      * 
   246      * 
   218      */	    
   247      */	    
   219     TInt FindWidgetInstanceId(const TDesC& aContentId);
   248     TInt FindWidgetInstanceId(const TDesC& aContentId);
       
   249     
       
   250     /**
       
   251      * Resets all the published content values on HomeScreen database
       
   252      */
       
   253     void ResetPublishedDataL( const TDesC& aContentId );
       
   254 
   220 public:
   255 public:
   221 	//
   256 	//
   222     RPointerArray<HBufC>    iInstIdList;
   257     RPointerArray<HBufC>    iInstIdList;
   223 private:
   258 private:
   224 	CMailCpsHandler*		iMailCpsHandler; //uses
   259 	CMailCpsHandler*		iMailCpsHandler; //uses