1 // Copyright (c) 1997-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" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
27 #include <comms-infras/metadata.h>
28 #include <comms-infras/netmessages.h>
31 class CCommsApiExtensionMsg : public NetMessages::CMessage
33 Comms API extension message.
40 /** Creates a new api extension message using ECOM.
42 @param aTypeId Id of the class (Composed of Uid of the implementation and an integer sub-type).
43 @return a generic pointer to a specific message if successful, otherwise leaves with system error code.
45 IMPORT_C static CCommsApiExtensionMsg* NewL(const Meta::STypeId& aTypeId);
47 /** Creates a new api extension message using ECOM.
49 @param aMsgBuffer a buffer containing the serialised form of the message object.
50 @return a generic pointer to a specific event if successful, otherwise leaves with system error code.
52 IMPORT_C static CCommsApiExtensionMsg* NewL(const TDesC8& aMsgBuffer);
55 namespace NetInterfaces
57 class TInterfaceControl;
64 class CCommsApiExtReqMsg : public CCommsApiExtensionMsg
66 Comms API extension request message.
73 virtual void DispatchL(NetInterfaces::TInterfaceControl& aIntfCtl, const TSubSessionUniqueId& aSubSessionUniqueId, Elements::CResponseMsg* aResponseMsg) = 0;
76 class CCommsApiExtRespMsg : public CCommsApiExtensionMsg
78 Comms API extension response message.
86 #endif // API_EXT_MSG_H