meetingrequest/mricalviewer/inc/cesmricalviewerresolvemrmethodsync.h
changeset 0 8466d47a6819
equal deleted inserted replaced
-1:000000000000 0:8466d47a6819
       
     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 CESMRICALVIEWERRESOLVEMRMETHODSYNC_H
       
    20 #define CESMRICALVIEWERRESOLVEMRMETHODSYNC_H
       
    21 
       
    22 //<cmail>
       
    23 #include "mesmricalviewerobserver.h"
       
    24 #include "cesmricalviewercommandbase.h"
       
    25 #include "tesmrinputparams.h"
       
    26 
       
    27 #include "esmricalviewerdefs.hrh"
       
    28 //</cmail>
       
    29 
       
    30 class CESMRInfoIcalRetrieverCmd;
       
    31 
       
    32 /**
       
    33  * Command for resolving meeting request method synchronously.
       
    34  *
       
    35  * @see TESMRInputParams
       
    36  */
       
    37 NONSHARABLE_CLASS( CESMRIcalViewerResolveMRMethodSyncCmd ) :
       
    38     public CESMRIcalViewerCommandBase,
       
    39     public MESMRIcalViewerObserver
       
    40     {
       
    41 public: // Construction and destruction
       
    42 
       
    43     /**
       
    44      * Creates and initializes new CESMRIcalViewerLoadMRDataCmd command.
       
    45      * @param aCalSession Reference to calendar session.
       
    46      * @param aMailClient Reference to mailclient object.
       
    47      * @param aMRMethod Reference to MR Method
       
    48      */
       
    49     static CESMRIcalViewerResolveMRMethodSyncCmd* NewL(
       
    50             CCalSession& aCalSession,
       
    51             CFSMailClient& aMailClient,
       
    52             TESMRMeetingRequestMethod& aMRMethod );
       
    53 
       
    54     /**
       
    55      * C++ destructor.
       
    56      */
       
    57     ~CESMRIcalViewerResolveMRMethodSyncCmd();
       
    58 
       
    59 public: // From MESMRIcalViewerObserver
       
    60     void OperationCompleted(
       
    61             MESMRIcalViewerObserver::TIcalViewerOperationResult aResult );
       
    62     void OperationError(
       
    63             MESMRIcalViewerObserver::TIcalViewerOperationResult aResult );
       
    64 
       
    65 public: // From MESMRIcalViewerCommand
       
    66     void ExecuteCommandL(
       
    67             CFSMailMessage& aMessage,
       
    68             MESMRIcalViewerObserver& aObserver );
       
    69     void CancelCommand();
       
    70 
       
    71 private: // Implementation
       
    72     CESMRIcalViewerResolveMRMethodSyncCmd(
       
    73             CCalSession& aCalSession,
       
    74             CFSMailClient& aMailClient,
       
    75             TESMRMeetingRequestMethod& aMRMethod );
       
    76     void ConstructL();
       
    77 
       
    78 private: // Data
       
    79     /// Ref: Reference to input parameters
       
    80     TESMRInputParams iESMRInputParams;
       
    81     /// Ref: Refefence to mail client objecy
       
    82     CFSMailClient& iMailClient;
       
    83     /// Own: Command for retrieving MRINFO data
       
    84     CESMRInfoIcalRetrieverCmd* iMRInfoRetrieverCmd;
       
    85     /// Ref: Meeting request method
       
    86     TESMRMeetingRequestMethod& iMRMethod;
       
    87     };
       
    88 
       
    89 #endif // CESMRICALVIEWERRESOLVEMRMETHODSYNC_H
       
    90 
       
    91 // EOF