email/mail/EditorSrc/MsgMailEditorRemoveAttachment.h
changeset 0 72b543305e3a
equal deleted inserted replaced
-1:000000000000 0:72b543305e3a
       
     1 /*
       
     2 * Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *     E-mail attachment remove operation.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef MSGMAILEDITORREMOVEATTACMENT_H
       
    21 #define MSGMAILEDITORREMOVEATTACMENT_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <msvapi.h> // CMsvOperation
       
    25 
       
    26 // CLASS DECLARATION
       
    27 class CImEmailMessage;
       
    28 class CMsvEntry;
       
    29 
       
    30 /**
       
    31 *  E-mail attachment remove operation.
       
    32 */
       
    33 class CMsgMailEditorRemoveAttachmentOp :public CMsvOperation
       
    34     {
       
    35     public:  // Constructors and destructor
       
    36         /**
       
    37         * CMsgMailEditorRemoveAttachmentOp::NewLC()
       
    38         * @param aMsvSession reference to the Session object
       
    39         * @param aObserverRequestStatus status of the operation
       
    40         * @param aMsgId message that contains attachment to be removed
       
    41         * @param aAttachmentId attachment to be removed.
       
    42         */
       
    43         static CMsgMailEditorRemoveAttachmentOp* NewLC(
       
    44             CMsvSession& aMsvSession, 
       
    45             TRequestStatus& aObserverRequestStatus, const TMsvId aMsgId, 
       
    46             const TMsvId aAttachmentId);
       
    47 
       
    48         /**
       
    49         * Destructor.
       
    50         */
       
    51         virtual ~CMsgMailEditorRemoveAttachmentOp();
       
    52         
       
    53     public: // Functions from base classes
       
    54         /// From CMsvOperation
       
    55         virtual const TDesC8& ProgressL();        
       
    56         
       
    57     protected:  // Functions from base classes
       
    58         /**
       
    59         * From CActive
       
    60         */
       
    61         virtual void DoCancel();
       
    62 
       
    63         /**
       
    64         * From CActive
       
    65         */
       
    66         virtual void RunL();
       
    67     private:
       
    68         /**
       
    69         * C++ default constructor.
       
    70         */
       
    71         CMsgMailEditorRemoveAttachmentOp(CMsvSession& aMsvSession, 
       
    72             TRequestStatus& aObserverRequestStatus);
       
    73 
       
    74         /**
       
    75         * Symbian constructor
       
    76         * Sets operation active.
       
    77         */
       
    78         void ConstructL(const TMsvId aMsgId, const TMsvId aAttachmentId);
       
    79 
       
    80     private:    // Data
       
    81         /**
       
    82         * Own: Entry which has attachment
       
    83         */
       
    84         CMsvEntry* iMsgEntry;
       
    85 
       
    86         /**
       
    87         * Own: Mail message which has attachment
       
    88         */
       
    89         CImEmailMessage* iEmailMsg;
       
    90 
       
    91         /**
       
    92         * Package buffer
       
    93         */
       
    94         TPckgBuf<TMsvLocalOperationProgress> iProgress;
       
    95 
       
    96     };
       
    97 
       
    98 #endif      // MSGMAILEDITORREMOVEATTACMENT_H
       
    99             
       
   100 // End of File