diff -r 4707a0db12f6 -r adb51f74b890 videoplayerapp/videoplayerengine/tsrc/testvideoiadupdatewrapper/stub/inc/featmgr.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/videoplayerapp/videoplayerengine/tsrc/testvideoiadupdatewrapper/stub/inc/featmgr.h Tue Oct 05 09:26:49 2010 +0300 @@ -0,0 +1,94 @@ +/* +* Copyright (c) 2007-2009 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: +* +*/ + + + + +#ifndef FEATMGR_H +#define FEATMGR_H + +// INCLUDES +#include +#include + +#define private public +#include "videoiadupdatewrapper.h" +#undef private + + +// FORWARD DECLARATIONS +class CFeatMgrTlsData; + +// DEFINES + +// CLASS DECLARATION + +// CONSTANTS +int IsFeatureSupported; + +/** + Feature manager API. + Feature manager API offers the following functionality: + - Inquire whether a certain static feature is supported. + For usage, see example code at the end of the header file. + +@publishedPartner +@deprecated Use the class CFeatureDiscovery for basic feature queries, or the + class RFeatureControl for advanced feature queries and control. +*/ +class FeatureManager + { + public: + + /** + This must be called in the scope of the thread before calling + any other methods. It sets up TLS. Uninitialization is done + by calling the UnInitializeLib() function. + + @leave KErrNoMemory Memory allocation failure. + + @deprecated Use the class CFeatureDiscovery for basic feature queries, or the + class RFeatureControl for advanced feature queries and control. + */ + static void InitializeLibL(){}; + + /** + This must be called in the scope of the thread after calling + InitializeLibL(). It frees the allocated TLS. Do not call UnInitializeLib() + if InitalizeLibL() leaves. + + @deprecated Use the class CFeatureDiscovery for basic feature queries, or the + class RFeatureControl for advanced feature queries and control. + */ + static void UnInitializeLib(){}; + + /** + Fetches information whether a certain feature is supported. + + @param aFeature feature id. + @return feature support status. + + @deprecated Use the class CFeatureDiscovery for basic feature queries, or the + class RFeatureControl for advanced feature queries and control. + */ + static TBool FeatureSupported(TInt){ return IsFeatureSupported; }; + + }; + +#endif // FEATMGR_H + +// End of File