emailservices/emailserver/cmailhandlerplugin/inc/cmailcpssettings.h
branchRCL_3
changeset 14 b13141f05c3d
parent 13 8592a65ad3fb
child 16 b5fbb9b25d57
equal deleted inserted replaced
13:8592a65ad3fb 14:b13141f05c3d
    81 
    81 
    82     /**
    82     /**
    83      * Gets array of external mailboxes from widget settings
    83      * Gets array of external mailboxes from widget settings
    84      * @param aAccounts on completion, contains the necessary information of
    84      * @param aAccounts on completion, contains the necessary information of
    85      * external mailboxes that currently should have a widget
    85      * external mailboxes that currently should have a widget
       
    86      * transfers ownership of accounts to caller
    86      */
    87      */
    87     void GetExtMailboxesL( RPointerArray<CMailExternalAccount>& aAccounts );
    88     void GetExtMailboxesL( RPointerArray<CMailExternalAccount>& aAccounts );
    88 
    89 
    89     /**
    90     /**
    90      * Adds mailbox to widget settings
    91      * Adds mailbox to widget settings
   130      */
   131      */
   131     void GetContentId( TInt aMailboxId, TInt aNext, TDes16& aValue );
   132     void GetContentId( TInt aMailboxId, TInt aNext, TDes16& aValue );
   132     
   133     
   133     /**
   134     /**
   134      * 
   135      * 
       
   136      */    
       
   137     TInt WidgetCountByMailbox( TInt aMailboxId );
       
   138     
       
   139     /**
       
   140      * 
   135      */	
   141      */	
   136 	TBool IsSelected( TInt aId );
   142 	TBool IsSelected( TInt aId );
   137 	
   143 	
   138     /**
   144     /**
   139      * 
   145      * 
   178     void ToggleWidgetNewMailIconL( TBool aIconOn, const TFSMailMsgId& aMailBox ); 
   184     void ToggleWidgetNewMailIconL( TBool aIconOn, const TFSMailMsgId& aMailBox ); 
   179 
   185 
   180     /**
   186     /**
   181      *
   187      *
   182      */    
   188      */    
   183     TBool GetNewMailState( const TFSMailMsgId& aMailBox );
   189     TBool GetNewMailStateL( const TFSMailMsgId& aMailBox, TInt aUnreadCount );
   184 
   190 
   185     /**
   191     /**
   186      * Find next free CenRep key to store setting.
   192      * Find next free CenRep key to store setting.
   187      * @param aContentId Id of widget instance
   193      * @param aContentId Id of widget instance
   188      * @return true if account is associated to content id, false if not
   194      * @return true if account is associated to content id, false if not
   242      * @return KErrNotFound if aValue points to non-existent mailbox
   248      * @return KErrNotFound if aValue points to non-existent mailbox
   243      */
   249      */
   244     TInt ResolveMailbox( const TInt aMailboxId, TFSMailMsgId& aMsg ); 
   250     TInt ResolveMailbox( const TInt aMailboxId, TFSMailMsgId& aMsg ); 
   245 
   251 
   246     /**
   252     /**
       
   253      * Finds mailbox if plugin id is set - more efficient than Resolve mailbox
       
   254      * 
       
   255      * @param aMsg      mailbox both PluginId and Id is checked
       
   256      * @return KErrNone if mailbox exists  
       
   257      * @return KErrNotFound aMsg.Id() points to non-existent mailbox
       
   258      **/
       
   259     TInt CheckMailboxExistence( TFSMailMsgId& aMsg );
       
   260 
       
   261     /**
   247      * Gets array of CenRep keys representing mailboxes configured to widget
   262      * Gets array of CenRep keys representing mailboxes configured to widget
   248      * @param aKeys array of keys
   263      * @param aKeys array of keys
   249      */
   264      */
   250     void GetMailboxNonZeroKeysL( RArray<TUint32>& aKeys );
   265     void GetMailboxNonZeroKeysL( RArray<TUint32>& aKeys );
   251     
   266     
   261      * @param aContentId Id of widget instance
   276      * @param aContentId Id of widget instance
   262      */	
   277      */	
   263     TInt GetSettingToAssociate( const TDesC& aContentId );
   278     TInt GetSettingToAssociate( const TDesC& aContentId );
   264 
   279 
   265     /**
   280     /**
       
   281      * Returns CMailExternalAccount::NewL() according to cenrep key aKey
   266      * @param aKey
   282      * @param aKey
   267      */
   283      */
   268     CMailExternalAccount* GetExtMailboxL( TInt aKey );
   284     CMailExternalAccount* GetExtMailboxL( TInt aKey );
   269     
   285     
   270 private: // data
   286 private: // data