epoc32/include/comms-infras/datamonitormessages.h
branchSymbian3
changeset 4 837f303aceeb
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/epoc32/include/comms-infras/datamonitormessages.h	Wed Mar 31 12:33:34 2010 +0100
     1.3 @@ -0,0 +1,199 @@
     1.4 +/*
     1.5 +* Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.6 +* All rights reserved.
     1.7 +* This component and the accompanying materials are made available
     1.8 +* under the terms of "Eclipse Public License v1.0"
     1.9 +* which accompanies this distribution, and is available
    1.10 +* at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.11 +*
    1.12 +* Initial Contributors:
    1.13 +* Nokia Corporation - initial contribution.
    1.14 +*
    1.15 +* Contributors:
    1.16 +*
    1.17 +* Description:
    1.18 +*
    1.19 +*/
    1.20 +
    1.21 +
    1.22 +
    1.23 +/**
    1.24 + @file
    1.25 + @internalTechnology
    1.26 +*/
    1.27 +
    1.28 +#ifndef DATAMONITORMESSAGES_H
    1.29 +#define DATAMONITORMESSAGES_H
    1.30 +
    1.31 +#include <es_sock.h>
    1.32 +//#include <comms-infras/api_ext_msg.h>
    1.33 +#include <comms-infras/ss_api_ext.h>
    1.34 +#include <comms-infras/metavirtctor.h>
    1.35 +
    1.36 +class MDataMonitorProtocolResp;
    1.37 +
    1.38 +namespace ESock
    1.39 +{
    1.40 +
    1.41 +const TInt KDataMonitoringRequestMessagesImplementationUid = 0x102822F5;
    1.42 +
    1.43 +/**
    1.44 +	Information container for this plugin with respect to data monitoring 
    1.45 +	request messages.
    1.46 +
    1.47 +	@internalTechnology
    1.48 +*/
    1.49 +class CDataMonitoringMsgPluginInfo : public CExtItfMsgPluginInfo
    1.50 +	{
    1.51 +public:
    1.52 +	IMPORT_C static CDataMonitoringMsgPluginInfo* NewL(TAny* aParams);
    1.53 +	IMPORT_C const TImplementationProxy* ImplementationProxy() const;
    1.54 +	IMPORT_C TInt ImplementationProxyTableSize() const;
    1.55 +	};
    1.56 +
    1.57 +/**
    1.58 +	Data monitoring response message.
    1.59 +	
    1.60 +	@internalTechnology
    1.61 +*/
    1.62 +class CCommsDataMonitorApiExtResp : public CCommsApiExtRespMsg
    1.63 +	{
    1.64 +public:
    1.65 +	virtual void DispatchL(MDataMonitorProtocolResp& aProtocol) = 0;
    1.66 +	};
    1.67 +
    1.68 +/**
    1.69 +	Data monitoring request message.
    1.70 +
    1.71 +	@internalTechnology
    1.72 +*/
    1.73 +class TCommsDataMonitorApiExtReq : public TCommsApiExtReqMsg
    1.74 +	{
    1.75 +	};
    1.76 +	
    1.77 +/*-------------------------------------------------------
    1.78 +	Client -> Server messages
    1.79 +  -------------------------------------------------------*/
    1.80 +
    1.81 +/**
    1.82 +	Request message requesting the notification of the total volume of data 
    1.83 +	transferred in either direction.
    1.84 +	
    1.85 +	@internalTechnology
    1.86 +*/
    1.87 +class TRequestDataTransferred : public TCommsDataMonitorApiExtReq
    1.88 +	{
    1.89 +public:	
    1.90 +	IMPORT_C void DispatchL(NetInterfaces::TInterfaceControl& aIntfCtrl, const TSubSessionUniqueId& aSubSessionUniqueId, Elements::RResponseMsg& aResponseMsg);
    1.91 +
    1.92 +	DECLARE_MVIP_CTR(TRequestDataTransferred)
    1.93 +   
    1.94 +	EXPORT_DATA_VTABLE_AND_FN
    1.95 +	};
    1.96 +
    1.97 +/**
    1.98 +	Request message requesting the cancellation of notification of the total 
    1.99 +	volume of data transferred in either direction.
   1.100 +	
   1.101 +	@internalTechnology
   1.102 +*/
   1.103 +class TCancelDataTransferredRequest : public TCommsDataMonitorApiExtReq
   1.104 +	{
   1.105 +public:	
   1.106 +	IMPORT_C void DispatchL(NetInterfaces::TInterfaceControl& aIntfCtrl, const TSubSessionUniqueId& aSubSessionUniqueId, Elements::RResponseMsg& aResponseMsg);
   1.107 +	
   1.108 +	DECLARE_MVIP_CTR(TCancelDataTransferredRequest)
   1.109 +   
   1.110 +	EXPORT_DATA_VTABLE_AND_FN
   1.111 +	};
   1.112 +
   1.113 +/**
   1.114 +	Request message requesting notification of the volume of data sent having reached 
   1.115 +	or exceeded a specified threshold.
   1.116 +	
   1.117 +	@internalTechnology
   1.118 +*/
   1.119 +class TRequestDataSentNotification : public TCommsDataMonitorApiExtReq
   1.120 +   {
   1.121 +public:
   1.122 +  	IMPORT_C void DispatchL(NetInterfaces::TInterfaceControl& aIntfCtrl, const TSubSessionUniqueId& aSubSessionUniqueId, Elements::RResponseMsg& aResponseMsg);
   1.123 +	
   1.124 +	DECLARE_MVIP_CTR(TRequestDataSentNotification)
   1.125 +	
   1.126 +	inline TUint32 Delta() const;
   1.127 +	inline void SetDelta(TUint32 aDelta);
   1.128 +   
   1.129 +	inline TUint32 SentBytes() const;
   1.130 +	inline void SetSentBytes(TUint32 aSentBytes);
   1.131 +
   1.132 +	EXPORT_DATA_VTABLE_AND_FN
   1.133 +
   1.134 +protected:	
   1.135 +	TUint32 iDelta;
   1.136 +	TUint32 iSentBytes;
   1.137 +   };
   1.138 +   
   1.139 +/**
   1.140 +	Request message requesting the cancellation of notification of the volume of 
   1.141 +	data sent having reached or exceeded a specified threshold.
   1.142 +	
   1.143 +	@internalTechnology
   1.144 +*/
   1.145 +class TCancelDataSentNotificationRequest : public TCommsDataMonitorApiExtReq
   1.146 +	{
   1.147 +public:
   1.148 +	IMPORT_C void DispatchL(NetInterfaces::TInterfaceControl& aIntfCtrl, const TSubSessionUniqueId& aSubSessionUniqueId, Elements::RResponseMsg& aResponseMsg);
   1.149 +	
   1.150 +	DECLARE_MVIP_CTR(TCancelDataSentNotificationRequest)
   1.151 +	
   1.152 +	EXPORT_DATA_VTABLE_AND_FN
   1.153 +	};
   1.154 +	
   1.155 +/**
   1.156 +	Request message requesting notification of volume of data received having reached 
   1.157 +	or exceeded a specified threshold.
   1.158 +	
   1.159 +	@internalTechnology
   1.160 +*/
   1.161 +class TRequestDataReceivedNotification : public TCommsDataMonitorApiExtReq
   1.162 +	{
   1.163 +public:
   1.164 +  	IMPORT_C void DispatchL(NetInterfaces::TInterfaceControl& aIntfCtrl, const TSubSessionUniqueId& aSubSessionUniqueId, Elements::RResponseMsg& aResponseMsg);
   1.165 +	
   1.166 +	DECLARE_MVIP_CTR(TRequestDataReceivedNotification)
   1.167 +	
   1.168 +	inline TUint32 Delta() const;
   1.169 +	inline void SetDelta(TUint32 aDelta);
   1.170 +   
   1.171 +	inline TUint32 ReceivedBytes() const;
   1.172 +	inline void SetReceivedBytes(TUint32 aReceivedBytes);
   1.173 +
   1.174 +	EXPORT_DATA_VTABLE_AND_FN
   1.175 +
   1.176 +protected:	
   1.177 +	TUint32 iDelta;
   1.178 +	TUint32 iReceivedBytes;
   1.179 +	};
   1.180 +
   1.181 +/**
   1.182 +	Request message requesting the cancellation of notification of the volume of 
   1.183 +	data received having reached or exceeded a specified threshold.
   1.184 +	
   1.185 +	@internalTechnology
   1.186 +*/
   1.187 +class TCancelDataReceivedNotificationRequest : public TCommsDataMonitorApiExtReq
   1.188 +	{
   1.189 +public:
   1.190 +	IMPORT_C void DispatchL(NetInterfaces::TInterfaceControl& aIntfCtrl, const TSubSessionUniqueId& aSubSessionUniqueId, Elements::RResponseMsg& aResponseMsg);
   1.191 +	
   1.192 +	DECLARE_MVIP_CTR(TCancelDataReceivedNotificationRequest)
   1.193 +
   1.194 +	EXPORT_DATA_VTABLE_AND_FN
   1.195 +	};
   1.196 + 
   1.197 +#include <comms-infras/datamonitormessages.inl>
   1.198 +
   1.199 +} //namespace ESock
   1.200 +
   1.201 +#endif   // DATAMONITORMESSAGES_H
   1.202 +