messagingapp/msgutils/unieditorutils/unieditorplugins/unieditormmsplugin/inc/unieditormmsplugin_p.h
changeset 56 f42d9a78f435
parent 46 b1f0785c289d
equal deleted inserted replaced
55:5b3b2fa8c3ec 56:f42d9a78f435
    22 #include <cmsvrecipientlist.h>
    22 #include <cmsvrecipientlist.h>
    23 #include "unieditorplugininterface.h"
    23 #include "unieditorplugininterface.h"
    24 #include "convergedmessage.h"
    24 #include "convergedmessage.h"
    25 #include "convergedmessageid.h"
    25 #include "convergedmessageid.h"
    26 #include "UniDataModel.h"
    26 #include "UniDataModel.h"
       
    27 #include "UniEditorGenUtils.h"
       
    28 
    27 // DATA TYPES
    29 // DATA TYPES
    28 
    30 
    29 // FORWARD DECLARATIONS
    31 // FORWARD DECLARATIONS
    30 
    32 
    31 class CClientMtmRegistry;
    33 class CClientMtmRegistry;
   228     
   230     
   229     /**
   231     /**
   230      * Populates converged message for default case
   232      * Populates converged message for default case
   231      */
   233      */
   232     void convertFromDefaultHandlerL(ConvergedMessage* aMessage);
   234     void convertFromDefaultHandlerL(ConvergedMessage* aMessage);
       
   235     
       
   236     /**
       
   237      * Handles own-number identification/deletion for composing reply-all
       
   238      * to a message
       
   239      * @param sourcemsg, message on which own-number logic is applied
       
   240      * @param targetmsg, message to which trimmed address list is committed
       
   241      */
       
   242     void removeOwnNumberForReplyAll(
       
   243             ConvergedMessage* sourcemsg, 
       
   244             ConvergedMessage* targetmsg);
       
   245     
       
   246     /**
       
   247      * Helper method to make a copy of address list
       
   248      * @param addrList, list of addresses to make a copy of
       
   249      * @return ConvergedMessageAddressList, copy of list of addresses
       
   250      */
       
   251     ConvergedMessageAddressList copyAddrList(
       
   252             ConvergedMessageAddressList addrList);
       
   253 
       
   254     /**
       
   255      * Helper method to resolve contacts in an addresslist
       
   256      * @param addrList, list of addresses whose contacts need to be resolved
       
   257      */
       
   258     void resolveContacts(ConvergedMessageAddressList addrList);
       
   259     
       
   260     /**
       
   261      * Helper method to check if a given address is self-address or not
       
   262      * @param address, address to be verified
       
   263      * @param selfAddrList, list of self-addresses
       
   264      * @return bool, true if address is a self-address
       
   265      */
       
   266     bool isSelfAddress(QString address,QStringList selfAddrList);
       
   267 
   233 
   268 
   234 private:
   269 private:
   235     // Data
   270     // Data
   236     CMsvSession* iSession;
   271     CMsvSession* iSession;
   237     CClientMtmRegistry* iMtmRegistry;
   272     CClientMtmRegistry* iMtmRegistry;
   253     CMsgMediaInfo* iInsertingMedia;
   288     CMsgMediaInfo* iInsertingMedia;
   254     // owned
   289     // owned
   255     CEikRichTextEditor* iEditor;
   290     CEikRichTextEditor* iEditor;
   256     // owned
   291     // owned
   257     CMDXMLDocument* iDom;
   292     CMDXMLDocument* iDom;
       
   293     // owned
       
   294     UniEditorGenUtils* iGenUtils;
   258 };
   295 };
   259 
   296 
   260 #endif   // __UNIEDITORMMSPLUGINPRIVATE_H
   297 #endif   // __UNIEDITORMMSPLUGINPRIVATE_H
   261 
   298 
   262 // End of File
   299 // End of File