ipsservices/ipssosplugin/inc/ipsplgcreatereplymessageoperation.h
changeset 23 2dc6caa42ec3
parent 20 ecc8def7944a
equal deleted inserted replaced
20:ecc8def7944a 23:2dc6caa42ec3
    27 * Email operation to create a new reply message asynchronously.
    27 * Email operation to create a new reply message asynchronously.
    28 */
    28 */
    29 NONSHARABLE_CLASS ( CIpsPlgCreateReplyMessageOperation ) : public CIpsPlgCreateMessageOperation
    29 NONSHARABLE_CLASS ( CIpsPlgCreateReplyMessageOperation ) : public CIpsPlgCreateMessageOperation
    30     {
    30     {
    31 public:
    31 public:
    32     
    32     //<qmail> comments + aSmtpService -> reference
    33     /**
    33     /**
    34     * Constructor.
    34     * Two-phased constructor
       
    35     * 
       
    36     * @param aSmtpService               contains SMTP message services
       
    37     * @param aMsvSession                client/server session to MsvServer
       
    38     * @param aObserverRequestStatus     operations observer status
       
    39     * @param aPartList                  specifies one or more parts of a message
       
    40     * @param aMailBoxId                 id's for mailbox and plugin
       
    41     * @param aOriginalMessageId         id of message to be forward
       
    42     * @param aOperationObserver         observes the progress of this operation
       
    43     * @param aRequestId                 identifier for this instance of operation, 
       
    44     *                                   assigned by the client
       
    45     * @return CIpsPlgCreateForwardMessageOperation* self pointer                                  
    35     */
    46     */
    36     static CIpsPlgCreateReplyMessageOperation* NewL(
    47     static CIpsPlgCreateReplyMessageOperation* NewL(
    37         CIpsPlgSmtpService* aSmtpService,
    48         CIpsPlgSmtpService& aSmtpService,
    38         CMsvSession& aMsvSession,
    49         CMsvSession& aMsvSession,
    39         TRequestStatus& aObserverRequestStatus,
    50         TRequestStatus& aObserverRequestStatus,
    40         TMsvPartList aPartList,
    51         TMsvPartList aPartList,
    41         TFSMailMsgId aMailBoxId,
    52         TFSMailMsgId aMailBoxId,
    42         TMsvId aOriginalMessageId,
    53         TMsvId aOriginalMessageId,
    43         MFSMailRequestObserver& aOperationObserver,
    54         MFSMailRequestObserver& aOperationObserver,
    44         TInt aRequestId );
    55         TInt aRequestId );
    45         
    56 //</qmail>        
    46     /**
    57     /**
    47     * Destructor.
    58     * Destructor.
    48     */
    59     */
    49     virtual ~CIpsPlgCreateReplyMessageOperation();
    60     virtual ~CIpsPlgCreateReplyMessageOperation();
    50     
    61     
    51 private:
    62 private:
    52 
    63 
    53     /**
    64     /**
    54     * Constructor.
    65     * Constructor.
    55     */
    66     */
       
    67 //<qmail>	
    56     CIpsPlgCreateReplyMessageOperation(
    68     CIpsPlgCreateReplyMessageOperation(
    57         CIpsPlgSmtpService* aSmtpService,
    69         CIpsPlgSmtpService& aSmtpService,
    58         CMsvSession& aMsvSession,
    70         CMsvSession& aMsvSession,
    59         TRequestStatus& aObserverRequestStatus,
    71         TRequestStatus& aObserverRequestStatus,
    60         TMsvPartList aPartList,
    72         TMsvPartList aPartList,
    61         TFSMailMsgId aMailBoxId,
    73         TFSMailMsgId aMailBoxId,
    62         TMsvId aOriginalMessageId, 
    74         TMsvId aOriginalMessageId, 
    63         MFSMailRequestObserver& aOperationObserver,
    75         MFSMailRequestObserver& aOperationObserver,
    64         TInt aRequestId );
    76         TInt aRequestId );
    65 
    77 //</qmail>
    66     /**
    78     /**
    67     * From CActive
    79     * From CActive
    68     */
    80     */
    69     void RunL();
    81     void RunL();
    70     
    82     
    71     void StartMessageCreationL();
    83     void StartMessageCreationL();
    72 
    84     //<qmail>
       
    85     /**
       
    86     * Copy recipients from original message to new one 
       
    87     * 
       
    88     * @param aHeader            IM header of original message
       
    89     * @param aNewMessage        Reply message where recipients added
       
    90     */ 
       
    91     void RecipientsCallToOrderL(
       
    92             CImHeader* aHeader,
       
    93             CFSMailMessage* aNewMessage );
       
    94 //</qmail>
    73 private:
    95 private:
    74     TMsvId iOriginalMessageId;
    96     TMsvId iOriginalMessageId;
    75     };
    97     };
    76 
    98 
    77 
    99