meetingrequest/mricalviewer/inc/cesmricalvieweremailsynccmd.h
branchRCL_3
changeset 64 3533d4323edc
parent 0 8466d47a6819
equal deleted inserted replaced
63:d189ee25cf9d 64:3533d4323edc
       
     1 /*
       
     2 * Copyright (c) 2007-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:  Resolve meeting request method sync command
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CESMRICALVIEWEREMAILSYNCCMD_H
       
    20 #define CESMRICALVIEWEREMAILSYNCCMD_H
       
    21 
       
    22 //<cmail>
       
    23 #include "mesmricalviewerobserver.h"
       
    24 #include "mesmricalviewercallback.h"
       
    25 #include "cesmricalviewercommandbase.h"
       
    26 #include "tesmrinputparams.h"
       
    27 
       
    28 #include "esmricalviewerdefs.hrh"
       
    29 //</cmail>
       
    30 
       
    31 /**
       
    32  * Command for resolving meeting request method synchronously.
       
    33  *
       
    34  * @see TESMRInputParams
       
    35  */
       
    36 NONSHARABLE_CLASS( CESMRIcalViewerEmailSyncCmd ) :
       
    37     public CESMRIcalViewerCommandBase
       
    38     {
       
    39 public: // Construction and destruction
       
    40 
       
    41     /**
       
    42      * Creates and initializes new CESMRIcalViewerEmailSyncCmd command.
       
    43      * @param aOperation Operation to be executed.
       
    44      * @param aCalSession Reference to calendar session.
       
    45      * @param aCallback Reference to ESMRIcalViewer callback
       
    46      */
       
    47     static CESMRIcalViewerEmailSyncCmd* NewL(
       
    48             TESMRIcalViewerOperationType aOperation,
       
    49             CCalSession& aCalSession,
       
    50             MESMRIcalViewerCallback& aCallback );
       
    51 
       
    52     /**
       
    53      * C++ destructor.
       
    54      */
       
    55     ~CESMRIcalViewerEmailSyncCmd();
       
    56 
       
    57 public: // From MESMRIcalViewerCommand
       
    58     void ExecuteCommandL(
       
    59             CFSMailMessage& aMessage,
       
    60             MESMRIcalViewerObserver& aObserver );
       
    61     void CancelCommand();
       
    62 
       
    63 private: // Implementation
       
    64     CESMRIcalViewerEmailSyncCmd(
       
    65             TESMRIcalViewerOperationType aOperation,
       
    66             CCalSession& aCalSession,
       
    67             MESMRIcalViewerCallback& aCallback );
       
    68     void ConstructL();
       
    69 
       
    70 private: // Data
       
    71     /// Ref: Reference to FS Email callback
       
    72     MESMRIcalViewerCallback& iCallback;
       
    73     /// Own: Email operation
       
    74     TESMRIcalViewerOperationType iOperation;
       
    75     /// Own: Result structure
       
    76     MESMRIcalViewerObserver::TIcalViewerOperationResult iResult;
       
    77     };
       
    78 
       
    79 #endif // CESMRICALVIEWEREMAILSYNCCMD_H
       
    80 
       
    81 // EOF