diff -r 000000000000 -r 71ca22bcf22a mmfenh/enhancedmediaclient/Client/src/Components/SourceBase/AsyncAO.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mmfenh/enhancedmediaclient/Client/src/Components/SourceBase/AsyncAO.h Tue Feb 02 01:08:46 2010 +0200 @@ -0,0 +1,56 @@ +/* +* Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: This file contains the definition of asynchronous AO object. +* +*/ + + +#ifndef ASYNCAO_H +#define ASYNCAO_H + +// INCLUDES +#include + +namespace multimedia + { + class MAsyncAOObserver + { + public: + virtual void Event( TInt aError ) = 0; + }; + + // CLASS DECLARATION + class CAsyncAO : public CActive + { + public: // Constructors and destructor + static CAsyncAO* NewL( MAsyncAOObserver& aObserver ); + ~CAsyncAO(); + TInt SetActive(); + + void RunL(); + void DoCancel(); + TInt Error( TInt aError ); + + private: + CAsyncAO( MAsyncAOObserver& aObserver ); + void ConstructL(); + + private: + MAsyncAOObserver& iObserver; + }; + } // namespace multimedia + +#endif // ASYNCAO_H + +// End of File