common/tools/ats/smoketest/lbs/internal/lbstestserver/inc/lbstestserver.h
changeset 748 e13acd883fbe
child 872 17498133d9ad
equal deleted inserted replaced
747:76f9aaeefbab 748:e13acd883fbe
       
     1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of the License "Symbian Foundation License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // serverside.h
       
    15 // server side exmaple of how to use the abstract server framework
       
    16 // 
       
    17 //
       
    18 
       
    19 #ifndef LBSTESTSERVER_H__
       
    20 #define LBSTESTSERVER_H__
       
    21 
       
    22 #include "tserverstartparams.h"
       
    23 #include "csecureasbase.h"
       
    24 #include "csecureserverbase.h"
       
    25 
       
    26 
       
    27 /* 
       
    28 */
       
    29 class CLbsTestServerImpl : public CBase, public MCreateServerImpl
       
    30 	{
       
    31 public:
       
    32 	virtual void CreateServerLC(TServerStartParams& aParams);	
       
    33 	};
       
    34 	
       
    35 /* Main server class
       
    36 */
       
    37 class CLbsTestServer : public CSecureServerBase
       
    38 	{
       
    39 public:
       
    40 	CLbsTestServer(TInt aPriority, const CPolicyServer::TPolicy& aSecurityPolicy);
       
    41 	~CLbsTestServer();
       
    42 	void ConstructL(const TDesC& aServerName);
       
    43 	CSession2* DoNewSessionL(const TVersion &aVersion, const RMessage2& aMessage) const;
       
    44 	TVersion GetServerVersion() const;
       
    45 protected:
       
    46 	// property
       
    47 	TVersion iVersion;
       
    48 	};
       
    49 	
       
    50 #endif //LBSTESTSERVER_H__