diff -r e1b950c65cb4 -r 837f303aceeb epoc32/include/comms-infras/cs_api_ext.h --- a/epoc32/include/comms-infras/cs_api_ext.h Wed Mar 31 12:27:01 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,76 +0,0 @@ -// Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members -// which accompanies this distribution, and is available -// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// - - - -/** - @file - @internalTechnology - @released -*/ - -#ifndef CS_API_EXT_H -#define CS_API_EXT_H - -#include -#include -#include - -class CCommsApiExtReqMsg; -class CCommsApiExtRespMsg; - -class RCommsApiExtensionBase -/** -Base class for Comms API extensions. - -@internalTechnology -@released -*/ - { -protected: - IMPORT_C explicit RCommsApiExtensionBase(); - IMPORT_C TInt Open(RCommsSubSession& aExtensionProvider, TSupportedCommsApiExt aInterfaceId); - IMPORT_C void Close(); - IMPORT_C void SendRequest(CCommsApiExtReqMsg& aRequestMsg, TDes8& aResponseBuf, TRequestStatus& aStatus); - IMPORT_C void SendMessage(CCommsApiExtReqMsg& aRequestMsg); - -protected: - RCommsSubSession iSubSession; - TSupportedCommsApiExt iInterfaceId; - -private: - RPointerArray iBuffers; - }; - -template -class RCommsApiExtension : public RCommsApiExtensionBase -/** -Comms API extensions template. New extension APIs may derive from this template. - -@internalTechnology -@released -*/ - { -public: - inline TInt Open(RCommsSubSession& aExtensionProvider); - }; - -template -TInt RCommsApiExtension::Open(RCommsSubSession& aExtensionProvider) - { - return RCommsApiExtensionBase::Open(aExtensionProvider,T); - } - -#endif // CS_API_EXT_H