meetingrequest/mrgui/inc/cmrasynchcmd.h
branchRCL_3
changeset 33 da5135c61bad
equal deleted inserted replaced
32:a3a1ae9acec6 33:da5135c61bad
       
     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 Async command handler
       
    15 *
       
    16 */
       
    17 #ifndef CMRASYNCHCMD_H
       
    18 #define CMRASYNCHCMD_H
       
    19 
       
    20 // INCLUDES
       
    21 #include <e32base.h>
       
    22 
       
    23 // FORWARD DECLARATIONS
       
    24 class MAknToolbarObserver;
       
    25 
       
    26 // CLASS DECLARATIONS
       
    27 NONSHARABLE_CLASS( CMRAsynchCmd )
       
    28     : public CAsyncOneShot
       
    29     {
       
    30     public:
       
    31         static CMRAsynchCmd* NewL();
       
    32         ~CMRAsynchCmd();
       
    33         
       
    34     public: // Interface
       
    35         /**
       
    36          * Asynchronously calls the aObserver with aCmd as a parameter
       
    37          * @param aCmd Command the will be sent as param to aObserver
       
    38          * @param aObserver Pointer to observer that will be notified
       
    39          */
       
    40         void NotifyObserver( TInt aCmd, MAknToolbarObserver* aObserver );
       
    41         
       
    42     protected: // From base classes
       
    43         void RunL();
       
    44         
       
    45     private: // Implementation
       
    46         CMRAsynchCmd();
       
    47         
       
    48     private: // Data
       
    49         /// Own: command that is sent as param to observer
       
    50         TInt iCommand;
       
    51         /// Ref: Observer that will be notified
       
    52         MAknToolbarObserver* iObserver;
       
    53     };
       
    54 
       
    55 #endif // CMRASYNCHCMD_H
       
    56 
       
    57 // End of file
       
    58