meetingrequest/mricalviewer/inc/cesmricalviewerresolvemrmethodasync.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:  Resolving meeting request method asynchronoysly
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CESMRICALVIEWERRESOLVEMRMETHODASYNC_H
       
    20 #define CESMRICALVIEWERRESOLVEMRMETHODASYNC_H
       
    21 
       
    22 //<cmail>
       
    23 #include "mesmricalviewerobserver.h"
       
    24 #include "cesmricalviewerasynccommand.h"
       
    25 #include "tesmrinputparams.h"
       
    26 #include "esmricalviewerdefs.hrh"
       
    27 //</cmail>
       
    28 
       
    29 class CFSMailClient;
       
    30 
       
    31 /**
       
    32  * Command for resolving meeting request method asynchronously
       
    33  * Resolved method is reported to caller via MESMRIcalViewerObserver
       
    34  * interface.
       
    35  */
       
    36 NONSHARABLE_CLASS( CESMRIcalViewerResolveMRMethodASyncCmd ) :
       
    37     public CESMRIcalViewerAsyncCommand,
       
    38     public MESMRIcalViewerObserver
       
    39     {
       
    40 public: // Construction and destruction
       
    41 
       
    42     /**
       
    43      * Creates and initializes new CESMRIcalViewerLoadMRDataCmd command.
       
    44      * @param aCalSession Reference to calendar session.
       
    45      * @param aESMRInputParams Reference to parameter structure
       
    46      */
       
    47     static CESMRIcalViewerResolveMRMethodASyncCmd* NewL(
       
    48             CCalSession& aCalSession,
       
    49             CFSMailClient& aMailClient );
       
    50     
       
    51     /**
       
    52      * C++ Desctruction
       
    53      */
       
    54     ~CESMRIcalViewerResolveMRMethodASyncCmd();
       
    55 
       
    56 public: // From MESMRIcalViewerObserver
       
    57     void OperationCompleted(
       
    58             MESMRIcalViewerObserver::TIcalViewerOperationResult aResult );
       
    59     void OperationError(
       
    60             MESMRIcalViewerObserver::TIcalViewerOperationResult aResult );
       
    61 
       
    62 private: // From MESMRIcalViewerAsyncCommand
       
    63     void ExecuteAsyncCommandL();
       
    64     void CancelAsyncCommand();
       
    65 
       
    66 private: // Implementation
       
    67     CESMRIcalViewerResolveMRMethodASyncCmd(
       
    68             CCalSession& aCalSession,
       
    69             CFSMailClient& aMailClient );
       
    70     void ConstructL();
       
    71 
       
    72 private: // Data
       
    73     /// Ref: Reference to input parameters
       
    74     TESMRInputParams iESMRInputParams;
       
    75     /// Ref: Reference to mail client
       
    76     CFSMailClient& iMailClient;
       
    77     /// Own: MR retriever command
       
    78     RPointerArray< MESMRIcalViewerCommand > iMRRetrieverCommands;
       
    79     /// Own: Current command index
       
    80     TInt iCurrentCommand;
       
    81     /// Own: Meeting request method
       
    82     TESMRMeetingRequestMethod iMRMethod;
       
    83     };
       
    84 
       
    85 #endif // CESMRICALVIEWERRESOLVEMRMETHODASYNC_H
       
    86 
       
    87 // EOF