messagingapp/msgui/appengine/inc/conversationsengine.h
changeset 25 84d9eb65b26f
parent 23 238255e8b033
child 27 e4592d119491
child 37 518b245aa84c
equal deleted inserted replaced
23:238255e8b033 25:84d9eb65b26f
   101      * @param msgIdList, message list.
   101      * @param msgIdList, message list.
   102      */  
   102      */  
   103     void deleteMessages(QList<int>& msgIdList);
   103     void deleteMessages(QList<int>& msgIdList);
   104 
   104 
   105     /**
   105     /**
       
   106      * Delete all draft messages.
       
   107      */
       
   108     void deleteAllDraftMessages();
       
   109 
       
   110     /**
   106      * Marks all the unread conversations to read
   111      * Marks all the unread conversations to read
   107      * @param conversationId, conversationId
   112      * @param conversationId, conversationId
   108      * @return returns true if call is successful
   113      * @return returns true if call is successful
   109      */        
   114      */        
   110     bool markConversationRead(qint64 conversationId);
   115     bool markConversationRead(qint64 conversationId);
   115      * @return returns true if call is successful
   120      * @return returns true if call is successful
   116      */      
   121      */      
   117     bool markMessagesRead(QList<int>& msgIdList);
   122     bool markMessagesRead(QList<int>& msgIdList);
   118     
   123     
   119     /**
   124     /**
   120      * Get Contact details firstname/lastname.
   125      * Get Contact details name.
   121      * @param conversationId, conversationId
   126      * @param conversationId, conversationId
   122      * @param firstName, First Name
   127      * @param displayName, Name
   123      * @param lastName, Last Name
       
   124      */  
   128      */  
   125     void getContactDetails(qint64 conversationId,
   129     void getContactDetails(qint64 conversationId,
   126         QString& firstName,
   130         QString& displayName,
   127         QString& lastName,
       
   128         QString& address);
   131         QString& address);
   129 
   132 
   130     /**
   133     /**
   131      * Get conversationId for a given address.
   134      * Get conversationId for a given address.
   132      * @param address, Phone number
   135      * @param address, Phone number
   163 
   166 
   164     /**
   167     /**
   165      *  Starts fetching remaing conversations
   168      *  Starts fetching remaing conversations
   166      */
   169      */
   167     void fetchMoreConversations();
   170     void fetchMoreConversations();
   168     
   171 
       
   172     /**
       
   173      *  Resend a failed message
       
   174 	 *@param  messageId qint32 the Id of the message to be sent
       
   175 	 *@return bool true if succeeded
       
   176      */
       
   177     bool resendMessage(qint32 messageId);
       
   178 
       
   179     /**
       
   180      * Download a specified message
       
   181      * @param messageId qint32 the Id of the message 
       
   182      * @return KErrNone if Download request is successful, 
       
   183      *         KErrNotFound if settings are not available,
       
   184      *         KErrGeneral for other cases
       
   185      */
       
   186     int downloadMessage(qint32 messageId);  
       
   187 
       
   188     /**
       
   189      * Query if the download operation be performed for
       
   190      * a message notification entry
       
   191      * @param aId, message notification id
       
   192      * @return true if download operation is possible
       
   193      */
       
   194     bool downloadOperationSupported(qint32 messageId);
       
   195 	
       
   196     /**
       
   197      * Mark message as read and get the message type
       
   198      * @param messageId  message Id 
       
   199      * @param msgType message type is written to this.
       
   200      * @param msgType message sub type is written to this.
       
   201      */
       
   202     void markAsReadAndGetType( qint32 messageId,
       
   203                                int& msgType,
       
   204                                int& msgSubType);
   169 private:
   205 private:
   170 
   206 
   171     /**
   207     /**
   172      * Constructor
   208      * Constructor
   173      */
   209      */