epoc32/include/comms-infras/api_ext_msg.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:27:01 +0100
branchSymbian2
changeset 3 e1b950c65cb4
parent 2 2fe1408b6811
permissions -rw-r--r--
Attempt to represent the S^2->S^3 header reorganisation as a series of "hg rename" operations

// 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
 @publishedPartner
 @prototype
*/

#ifndef API_EXT_MSG_H
#define API_EXT_MSG_H

#include <comms-infras/metadata.h>
#include <comms-infras/netmessages.h>
#include <es_prot.h>

class CCommsApiExtensionMsg : public NetMessages::CMessage
/**
Comms API extension message.

@publishedPartner
@prototype
*/
	{
public:
	/** Creates a new api extension message using ECOM.

    @param aTypeId Id of the class (Composed of Uid of the implementation and an integer sub-type).
    @return a generic pointer to a specific message if successful, otherwise leaves with system error code.
    */
	IMPORT_C static CCommsApiExtensionMsg* NewL(const Meta::STypeId& aTypeId);

	/** Creates a new api extension message using ECOM.

    @param aMsgBuffer a buffer containing the serialised form of the message object.
    @return a generic pointer to a specific event if successful, otherwise leaves with system error code.
    */
	IMPORT_C static CCommsApiExtensionMsg* NewL(const TDesC8& aMsgBuffer);
	};

namespace NetInterfaces
	{
	class TInterfaceControl;
	}
namespace Elements
{
	class CResponseMsg;
}

class CCommsApiExtReqMsg : public CCommsApiExtensionMsg
/**
Comms API extension request message.

@publishedPartner
@prototype
*/
	{
public:
	virtual void DispatchL(NetInterfaces::TInterfaceControl& aIntfCtl, const TSubSessionUniqueId& aSubSessionUniqueId, Elements::CResponseMsg* aResponseMsg) = 0;
	};

class CCommsApiExtRespMsg : public CCommsApiExtensionMsg
/**
Comms API extension response message.

@publishedPartner
@prototype
*/
	{
	};

#endif // API_EXT_MSG_H