mmfenh/enhancedmediaclient/Client/src/Components/SourceBase/AsyncAO.h
changeset 0 71ca22bcf22a
equal deleted inserted replaced
-1:000000000000 0:71ca22bcf22a
       
     1 /*
       
     2 * Copyright (c) 2006 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:  This file contains the definition of asynchronous AO object.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef ASYNCAO_H
       
    20 #define ASYNCAO_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <e32base.h>
       
    24 
       
    25 namespace multimedia
       
    26     {
       
    27     class MAsyncAOObserver
       
    28         {
       
    29         public:
       
    30             virtual void Event( TInt aError ) = 0;
       
    31         };
       
    32 
       
    33     // CLASS DECLARATION
       
    34     class CAsyncAO : public CActive
       
    35         {
       
    36         public: // Constructors and destructor
       
    37             static CAsyncAO* NewL( MAsyncAOObserver& aObserver );
       
    38             ~CAsyncAO();
       
    39             TInt SetActive();
       
    40 
       
    41             void RunL();
       
    42             void DoCancel();
       
    43             TInt Error( TInt aError );
       
    44 
       
    45         private:
       
    46             CAsyncAO( MAsyncAOObserver& aObserver );
       
    47             void ConstructL();
       
    48 
       
    49         private:
       
    50             MAsyncAOObserver& iObserver;
       
    51         };
       
    52     } // namespace multimedia
       
    53 
       
    54 #endif // ASYNCAO_H
       
    55 
       
    56 //  End of File