diff -r 000000000000 -r 2e3d3ce01487 contextframework/cfw/inc/cfclient/cfservicebase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/contextframework/cfw/inc/cfclient/cfservicebase.h Tue Feb 02 10:12:00 2010 +0200 @@ -0,0 +1,94 @@ +/* +* Copyright (c) 2008-2008 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: CCFServiceBase class declaration. +* +*/ + + +#ifndef CFSERVICEBASE_H +#define CFSERVICEBASE_H + +// SYSTEM INCLUDE FILES +#include + +// USER INCLUDE FILES + +// FORWARD DECLARATIONS + +// DATA TYPES + +// CLASS DECLARATION +class RCFClientSession; +class MCFListener; + +/** + * Base class for all Context Framework client services. + * These services includes context, action and script services. + * + * @lib cfclient.lib + * @since S60 5.0 + */ +NONSHARABLE_CLASS( CCFServiceBase ): public CBase + { +public: + + // Service type + enum TCFServiceId + { + ECFContextService, + ECFActionService, + ECFScriptService, + ECFNumOfServices + }; + +public: + + /** + * C++ destructor. + */ + virtual ~CCFServiceBase(); + +public: + + /** + * Service ID. + * + * @since S60 5.0 + * @param None. + * @return TCFServiceId + */ + TCFServiceId Id() const; + +protected: + + CCFServiceBase( TCFServiceId aId, + RCFClientSession& aSession, + MCFListener& aListener ); + +protected: // Data + + /** Session handle */ + RCFClientSession& iSession; + + /** Reference to client */ + MCFListener& iListener; + +private: // Data + + /** Service ID */ + TCFServiceId iId; + }; + +#endif // CFSERVICEBASE_H +