williamr@2: // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). williamr@2: // All rights reserved. williamr@2: // This component and the accompanying materials are made available williamr@2: // 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 williamr@2: // which accompanies this distribution, and is available williamr@2: // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". williamr@2: // williamr@2: // Initial Contributors: williamr@2: // Nokia Corporation - initial contribution. williamr@2: // williamr@2: // Contributors: williamr@2: // williamr@2: // Description: williamr@2: // williamr@2: williamr@2: williamr@2: williamr@2: /** williamr@2: @file williamr@2: @publishedPartner williamr@2: @prototype williamr@2: */ williamr@2: williamr@2: #ifndef API_EXT_MSG_H williamr@2: #define API_EXT_MSG_H williamr@2: williamr@2: #include williamr@2: #include williamr@2: #include williamr@2: williamr@2: class CCommsApiExtensionMsg : public NetMessages::CMessage williamr@2: /** williamr@2: Comms API extension message. williamr@2: williamr@2: @publishedPartner williamr@2: @prototype williamr@2: */ williamr@2: { williamr@2: public: williamr@2: /** Creates a new api extension message using ECOM. williamr@2: williamr@2: @param aTypeId Id of the class (Composed of Uid of the implementation and an integer sub-type). williamr@2: @return a generic pointer to a specific message if successful, otherwise leaves with system error code. williamr@2: */ williamr@2: IMPORT_C static CCommsApiExtensionMsg* NewL(const Meta::STypeId& aTypeId); williamr@2: williamr@2: /** Creates a new api extension message using ECOM. williamr@2: williamr@2: @param aMsgBuffer a buffer containing the serialised form of the message object. williamr@2: @return a generic pointer to a specific event if successful, otherwise leaves with system error code. williamr@2: */ williamr@2: IMPORT_C static CCommsApiExtensionMsg* NewL(const TDesC8& aMsgBuffer); williamr@2: }; williamr@2: williamr@2: namespace NetInterfaces williamr@2: { williamr@2: class TInterfaceControl; williamr@2: } williamr@2: namespace Elements williamr@2: { williamr@2: class CResponseMsg; williamr@2: } williamr@2: williamr@2: class CCommsApiExtReqMsg : public CCommsApiExtensionMsg williamr@2: /** williamr@2: Comms API extension request message. williamr@2: williamr@2: @publishedPartner williamr@2: @prototype williamr@2: */ williamr@2: { williamr@2: public: williamr@2: virtual void DispatchL(NetInterfaces::TInterfaceControl& aIntfCtl, const TSubSessionUniqueId& aSubSessionUniqueId, Elements::CResponseMsg* aResponseMsg) = 0; williamr@2: }; williamr@2: williamr@2: class CCommsApiExtRespMsg : public CCommsApiExtensionMsg williamr@2: /** williamr@2: Comms API extension response message. williamr@2: williamr@2: @publishedPartner williamr@2: @prototype williamr@2: */ williamr@2: { williamr@2: }; williamr@2: williamr@2: #endif // API_EXT_MSG_H