diff -r 000000000000 -r e6b17d312c8b ximpfw/core/srcrootserver/ximprootserversessionadapter.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ximpfw/core/srcrootserver/ximprootserversessionadapter.h Thu Dec 17 08:54:49 2009 +0200 @@ -0,0 +1,60 @@ +/* +* Copyright (c) 2006 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: XIMP Framework Root server session adapter + * +*/ + + +#ifndef XIMPROOTSESSIONADAPTER_H +#define XIMPROOTSESSIONADAPTER_H + +#include +#include "ximpsrvsessionadapter.h" + +class MXIMPSrv; +class MXIMPSrvSession; +class MXIMPSrvMessage; + + +/** + * Session adapter for XIMP Framework Root server. + */ +class CXIMPRootServerSessionAdapter : public CXIMPSrvSessionAdapter + { +public: // Constructors and destructors + static CXIMPRootServerSessionAdapter* NewL( MXIMPSrv& aServer ); + virtual ~CXIMPRootServerSessionAdapter(); + +protected: // C++ constructors + CXIMPRootServerSessionAdapter( MXIMPSrv& aServer ); + + +public: // From CXIMPSrvSessionAdapter + + /** + * Template method to instantiate concrete + * Root session objects. + * + * @param aMessage The session instantiation message. + * + * @return Session implementation object or NULL if the message + * isn't valid session instantiation request. + */ + MXIMPSrvSession* DoInstantiateSessionL( const MXIMPSrvMessage& aMessage ); + + }; + +#endif // XIMPROOTSESSIONADAPTER_H + +