meetingrequest/mrgui/mrfieldbuilderplugin/inc/cmrsaveandopenattachmentcommand.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 save and open attachment
       
    15  *
       
    16 */
       
    17 
       
    18 #ifndef CMRSAVEANDOPENATTACHMENTCOMMAND_H
       
    19 #define CMRSAVEANDOPENATTACHMENTCOMMAND_H
       
    20 
       
    21 #include <e32base.h>
       
    22 #include <aknserverapp.h>
       
    23 #include "cmrattachmentcommand.h"
       
    24 
       
    25 // Forward declarations
       
    26 class CCalEntry;
       
    27 class CDocumentHandler;
       
    28 
       
    29 /**
       
    30  * CMRSaveAttachmentCommand is responsible for saving attachment
       
    31  */
       
    32 NONSHARABLE_CLASS( CMRSaveAndOpenAttachmentCommand ) : 
       
    33         public CMRAttachmentCommand
       
    34     {
       
    35 public: // Construction and destructors
       
    36     
       
    37     static CMRSaveAndOpenAttachmentCommand* NewL( CDocumentHandler& aDocHandler );
       
    38     ~CMRSaveAndOpenAttachmentCommand();
       
    39     
       
    40 public: // CMRAttachmentCommand
       
    41 
       
    42     void ExecuteAttachmentCommandL(
       
    43             CCalEntry& aEntry,
       
    44             TInt aAttachmentIndex );
       
    45     
       
    46 private: // Implementation
       
    47     CMRSaveAndOpenAttachmentCommand( CDocumentHandler& aDocHandler );
       
    48     void ConstructL();
       
    49 
       
    50 private:
       
    51     
       
    52     /// Ref: Document handler
       
    53     CDocumentHandler& iDocHandler;
       
    54     
       
    55     };
       
    56 
       
    57 #endif // CMRSAVEANDOPENATTACHMENTCOMMAND_H
       
    58 
       
    59 // EOF