meetingrequest/mrgui/mrfieldbuilderplugin/inc/cmrremoveattachmentcommand.h
branchRCL_3
changeset 12 4ce476e64c59
child 16 b5fbb9b25d57
equal deleted inserted replaced
11:0396474f30f5 12:4ce476e64c59
       
     1 /*
       
     2 * Copyright (c) 2009 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:  MR Attachment field command to remove attachment
       
    15  *
       
    16 */
       
    17 
       
    18 #ifndef CMRREMOVEATTACHMENTCOMMAND_H
       
    19 #define CMRREMOVEATTACHMENTCOMMAND_H
       
    20 
       
    21 #include <e32base.h>
       
    22 #include <aknserverapp.h>
       
    23 #include "cmrattachmentcommand.h"
       
    24 
       
    25 // Forward declarations
       
    26 class CCalEntry;
       
    27 
       
    28 /**
       
    29  * CMRRemoveAttachmentCommand is responsible for removing attachment from entry
       
    30  */
       
    31 NONSHARABLE_CLASS( CMRRemoveAttachmentCommand ) : 
       
    32         public CMRAttachmentCommand,
       
    33         public MAknServerAppExitObserver
       
    34     {
       
    35 public: // Construction and destruction
       
    36     
       
    37     static CMRRemoveAttachmentCommand* NewL();
       
    38     ~CMRRemoveAttachmentCommand();
       
    39     
       
    40 public: // From CMRAttachmentCommand
       
    41 
       
    42     void ExecuteAttachmentCommandL(
       
    43             CCalEntry& aEntry,
       
    44             TInt aAttachmentIndex );
       
    45     
       
    46 private: // Implementation
       
    47     CMRRemoveAttachmentCommand();
       
    48     void ConstructL();
       
    49 
       
    50     };
       
    51 
       
    52 #endif // CMRREMOVEATTACHMENTCOMMAND_H
       
    53 
       
    54 // EOF