meetingrequest/mrgui/mrfieldbuilderplugin/inc/cmropenattachmentcommand.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 for editor and viewer
       
    15  *
       
    16 */
       
    17 
       
    18 #ifndef CMROPENATTACHMENTCOMMAND_H
       
    19 #define CMROPENATTACHMENTCOMMAND_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  * CMROpenAttachmentCommand is responsible for opening attachment.
       
    31  */
       
    32 NONSHARABLE_CLASS( CMROpenAttachmentCommand ) :
       
    33         public CMRAttachmentCommand
       
    34     {
       
    35 public: // Destruction
       
    36 
       
    37     /**
       
    38      * Creates and initializes new CMROpenAttachmentCommand object.
       
    39      * Ownership is transferred to caller.
       
    40      *
       
    41      * @return Pointer to CMROpenAttachmentCommand object.
       
    42      */
       
    43     static CMROpenAttachmentCommand* NewL( CDocumentHandler& aDocHandler );
       
    44     ~CMROpenAttachmentCommand();
       
    45 
       
    46 public: // From base class CMRAttachmentCommand
       
    47     void ExecuteAttachmentCommandL(
       
    48             CCalEntry& aEntry,
       
    49             TInt aAttachmentIndex );
       
    50 
       
    51 private: // Implementation
       
    52     CMROpenAttachmentCommand( CDocumentHandler& aDocHandler );
       
    53     void ConstructL();
       
    54 
       
    55 private:
       
    56 
       
    57     /// Ref: Document handler
       
    58     CDocumentHandler& iDocHandler;
       
    59     };
       
    60 
       
    61 #endif // CMROPENATTACHMENTCOMMAND_H
       
    62 
       
    63 // EOF