diff -r 000000000000 -r 094583676ce7 PECengine/PluginServer2/SrvSrc/MPEngPlgSrv.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/PECengine/PluginServer2/SrvSrc/MPEngPlgSrv.h Thu Dec 17 08:41:52 2009 +0200 @@ -0,0 +1,77 @@ +/* +* Copyright (c) 2002 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: See class description below. +* +*/ + + +#ifndef __MPENGPLGSRV_H__ +#define __MPENGPLGSRV_H__ + +// INCLUDES +#include +#include "PEngPlgSrvCommon.h" + +// FORWARD DECLARATIONS + +// CLASS DEFINITION +/* +----------------------------------------------------------------------------- + + DESCRIPTION + + Cache server class. Server class is responsible to create and free + cached entries. Entries are stored in B-tree to ensure fast read and write + operations. + +----------------------------------------------------------------------------- +*/ + +class MPEngPlgSrv + { + public: // New methods + + /* + * Calls CActiveScheduler::Start() + */ + virtual void StartServer() = 0; + + /* + * Stops the server, actually just calls CActiveScheduler::Stop(); + */ + virtual void StopServer() = 0; + + public: //new methods + + virtual void SetStateL( TPEngPlgOnlineState aNewState ) = 0; + + virtual TInt PluginCount() const = 0; + + virtual TInt Plugin( TInt aIndex ) const = 0; + + public: // Methods derived from CServer + + /* + * Called when new client is connecting, version number of the client is checked here. + */ + virtual CSession2* NewSessionL( const TVersion& aVersion, + const RMessage2& aMessage ) const = 0; + + protected: //Destructor + + virtual ~MPEngPlgSrv() {}; + + }; + +#endif // __MPENGPLGSRV_H__