PECengine/PluginServer2/SrvSrc/MPEngPlgSrv.h
changeset 0 094583676ce7
equal deleted inserted replaced
-1:000000000000 0:094583676ce7
       
     1 /*
       
     2 * Copyright (c) 2002 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:  See class description below.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __MPENGPLGSRV_H__
       
    20 #define __MPENGPLGSRV_H__
       
    21 
       
    22 //  INCLUDES
       
    23 #include <e32def.h>
       
    24 #include "PEngPlgSrvCommon.h"
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 
       
    28 //  CLASS DEFINITION
       
    29 /*
       
    30 -----------------------------------------------------------------------------
       
    31 
       
    32     DESCRIPTION
       
    33 
       
    34     Cache server class. Server class is responsible to create and free
       
    35 	cached entries. Entries are stored in B-tree to ensure fast read and write
       
    36 	operations.
       
    37 
       
    38 -----------------------------------------------------------------------------
       
    39 */
       
    40 
       
    41 class MPEngPlgSrv
       
    42     {
       
    43     public:		// New methods
       
    44 
       
    45         /*
       
    46          *	Calls CActiveScheduler::Start()
       
    47          */
       
    48         virtual void StartServer() = 0;
       
    49 
       
    50         /*
       
    51          *	Stops the server, actually just calls CActiveScheduler::Stop();
       
    52          */
       
    53         virtual void StopServer() = 0;
       
    54 
       
    55     public: //new methods
       
    56 
       
    57         virtual void SetStateL( TPEngPlgOnlineState aNewState ) = 0;
       
    58 
       
    59         virtual TInt PluginCount() const = 0;
       
    60 
       
    61         virtual TInt Plugin( TInt aIndex ) const = 0;
       
    62 
       
    63     public:		// Methods derived from CServer
       
    64 
       
    65         /*
       
    66          *	Called when new client is connecting, version number of the client is checked here.
       
    67          */
       
    68         virtual CSession2* NewSessionL( const TVersion& aVersion,
       
    69                                         const RMessage2& aMessage ) const = 0;
       
    70 
       
    71     protected:  //Destructor
       
    72 
       
    73         virtual ~MPEngPlgSrv() {};
       
    74 
       
    75     };
       
    76 
       
    77 #endif      //  __MPENGPLGSRV_H__