00001 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). 00002 // All rights reserved. 00003 // This component and the accompanying materials are made available 00004 // under the terms of "Eclipse Public License v1.0" 00005 // which accompanies this distribution, and is available 00006 // at the URL "http://www.eclipse.org/legal/epl-v10.html". 00007 // 00008 // Initial Contributors: 00009 // Nokia Corporation - initial contribution. 00010 // 00011 // Contributors: 00012 // 00013 // Description: 00014 // 00015 00016 #include "server.h" 00017 #include "definitions.h" 00018 #include "serv_app_minimal.h" 00019 00020 00021 // Constructor 00022 EXPORT_C CServAppServer::CServAppServer() 00023 { 00024 } 00025 00026 // Destructor 00027 EXPORT_C CServAppServer::~CServAppServer() 00028 { 00029 } 00030 00031 // Identifies the type of service (through the UID input parameter) 00032 // the client has requested and creates an instance of the session 00033 // that implements this service. In case of unidentified service type, 00034 // the base class implementation of this method is called. 00035 EXPORT_C CApaAppServiceBase* CServAppServer::CreateServiceL(TUid aServiceType) const 00036 { 00037 if (aServiceType==KServiceType) 00038 return new(ELeave) CMinimalSession(); 00039 else 00040 return CEikAppServer::CreateServiceL(aServiceType); 00041 } 00042