diff -r 000000000000 -r dfb7c4ff071f datacommsserver/esockserver/csock/cs_datamon_apiext.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/datacommsserver/esockserver/csock/cs_datamon_apiext.cpp Thu Dec 17 09:22:25 2009 +0200 @@ -0,0 +1,81 @@ +// Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). +// All rights reserved. +// This component and the accompanying materials are made available +// under the terms of "Eclipse Public License v1.0" +// which accompanies this distribution, and is available +// at the URL "http://www.eclipse.org/legal/epl-v10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// + +/** + @file +*/ + +#include +#include + +using namespace ESock; + +EXPORT_C RCommsDataMonitoringApiExt::RCommsDataMonitoringApiExt() + { + } + +EXPORT_C void RCommsDataMonitoringApiExt::Close() + { + RCommsApiExtensionBase::Close(); + } + +EXPORT_C void RCommsDataMonitoringApiExt::RequestDataTransferred(TDes8& aResponseEventBuf, TRequestStatus& aStatus) + { + TRequestDataTransferred msg; + + SendRequest(msg, aResponseEventBuf, aStatus); + } + +EXPORT_C void RCommsDataMonitoringApiExt::CancelDataTransferredRequest() + { + TCancelDataTransferredRequest msg; + + SendMessage(msg); + } + +EXPORT_C void RCommsDataMonitoringApiExt::RequestDataReceivedNotification(TUint32 aDelta, TUint32 aReceivedBytes, TDes8& aResponseEventBuf, TRequestStatus& aStatus) + { + TRequestDataReceivedNotification msg; + + msg.SetDelta(aDelta); + msg.SetReceivedBytes(aReceivedBytes); + + SendRequest(msg, aResponseEventBuf, aStatus); + } + +EXPORT_C void RCommsDataMonitoringApiExt::CancelDataReceivedNotificationRequest() + { + TCancelDataReceivedNotificationRequest msg; + + SendMessage(msg); + } + +EXPORT_C void RCommsDataMonitoringApiExt::RequestDataSentNotification(TUint32 aDelta, TUint32 aSentBytes, TDes8& aResponseEventBuf, TRequestStatus& aStatus) + { + TRequestDataSentNotification msg; + + msg.SetDelta(aDelta); + msg.SetSentBytes(aSentBytes); + + SendRequest(msg, aResponseEventBuf, aStatus); + } + +EXPORT_C void RCommsDataMonitoringApiExt::CancelDataSentNotificationRequest() + { + TCancelDataSentNotificationRequest msg; + + SendMessage(msg); + } +