meetingrequest/mrgui/mrfieldbuilderplugin/inc/cmrattachmentcommand.h
branchRCL_3
changeset 12 4ce476e64c59
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 CMRATTACHMENTCOMMAND_H
       
    19 #define CMRATTACHMENTCOMMAND_H
       
    20 
       
    21 #include <e32base.h>
       
    22 #include <apmstd.h>
       
    23 #include "esmrdef.h"
       
    24 
       
    25 // Forward declarations
       
    26 class CCalEntry;
       
    27 class CESMRRichTextLink;
       
    28 class RFile;
       
    29 
       
    30 /**
       
    31  * CMRAttachmentCommandHandler is responsible for handling attachment
       
    32  * related commands.
       
    33  */
       
    34 NONSHARABLE_CLASS( CMRAttachmentCommand ) : public CBase
       
    35     {
       
    36 public: // Destruction
       
    37     
       
    38     /**
       
    39      * C++ destructor
       
    40      */
       
    41     virtual ~CMRAttachmentCommand();
       
    42     
       
    43 public: // Interface
       
    44 
       
    45     /**
       
    46      * Executes attachment command.
       
    47      * @param aEntry Reference to attachemnt entry
       
    48      * @param aAttachmentIndex Index of attachment to be processed
       
    49      */
       
    50     virtual void ExecuteAttachmentCommandL(
       
    51             CCalEntry& aEntry,
       
    52             TInt aAttachmentIndex ) = 0;
       
    53     
       
    54 protected:
       
    55 
       
    56     CMRAttachmentCommand();
       
    57     TDataType GetMimeType( RFile& aFile );
       
    58     
       
    59 private:   
       
    60     };
       
    61 
       
    62 #endif // CMRATTACHMENTCOMMAND_H
       
    63 
       
    64 // EOF