|
1 // Copyright (c) 2006-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 "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 /** |
|
17 @file |
|
18 */ |
|
19 |
|
20 #include <comms-infras/es_datamon_apiext.h> |
|
21 #include <comms-infras/datamonitormessages.h> |
|
22 |
|
23 using namespace ESock; |
|
24 |
|
25 EXPORT_C RCommsDataMonitoringApiExt::RCommsDataMonitoringApiExt() |
|
26 { |
|
27 } |
|
28 |
|
29 EXPORT_C void RCommsDataMonitoringApiExt::Close() |
|
30 { |
|
31 RCommsApiExtensionBase::Close(); |
|
32 } |
|
33 |
|
34 EXPORT_C void RCommsDataMonitoringApiExt::RequestDataTransferred(TDes8& aResponseEventBuf, TRequestStatus& aStatus) |
|
35 { |
|
36 TRequestDataTransferred msg; |
|
37 |
|
38 SendRequest(msg, aResponseEventBuf, aStatus); |
|
39 } |
|
40 |
|
41 EXPORT_C void RCommsDataMonitoringApiExt::CancelDataTransferredRequest() |
|
42 { |
|
43 TCancelDataTransferredRequest msg; |
|
44 |
|
45 SendMessage(msg); |
|
46 } |
|
47 |
|
48 EXPORT_C void RCommsDataMonitoringApiExt::RequestDataReceivedNotification(TUint32 aDelta, TUint32 aReceivedBytes, TDes8& aResponseEventBuf, TRequestStatus& aStatus) |
|
49 { |
|
50 TRequestDataReceivedNotification msg; |
|
51 |
|
52 msg.SetDelta(aDelta); |
|
53 msg.SetReceivedBytes(aReceivedBytes); |
|
54 |
|
55 SendRequest(msg, aResponseEventBuf, aStatus); |
|
56 } |
|
57 |
|
58 EXPORT_C void RCommsDataMonitoringApiExt::CancelDataReceivedNotificationRequest() |
|
59 { |
|
60 TCancelDataReceivedNotificationRequest msg; |
|
61 |
|
62 SendMessage(msg); |
|
63 } |
|
64 |
|
65 EXPORT_C void RCommsDataMonitoringApiExt::RequestDataSentNotification(TUint32 aDelta, TUint32 aSentBytes, TDes8& aResponseEventBuf, TRequestStatus& aStatus) |
|
66 { |
|
67 TRequestDataSentNotification msg; |
|
68 |
|
69 msg.SetDelta(aDelta); |
|
70 msg.SetSentBytes(aSentBytes); |
|
71 |
|
72 SendRequest(msg, aResponseEventBuf, aStatus); |
|
73 } |
|
74 |
|
75 EXPORT_C void RCommsDataMonitoringApiExt::CancelDataSentNotificationRequest() |
|
76 { |
|
77 TCancelDataSentNotificationRequest msg; |
|
78 |
|
79 SendMessage(msg); |
|
80 } |
|
81 |