|
1 // Copyright (c) 2004-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 @internalComponent |
|
19 */ |
|
20 |
|
21 #include <remcon/remconbearerobserver.h> |
|
22 |
|
23 EXPORT_C TInt MRemConBearerObserver::NewResponse(const TRemConAddress& aAddr) |
|
24 { |
|
25 return MrcboDoNewResponse(aAddr); |
|
26 } |
|
27 |
|
28 EXPORT_C TInt MRemConBearerObserver::NewNotifyResponse(const TRemConAddress& aAddr) |
|
29 { |
|
30 return MrcboDoNewNotifyResponse(aAddr); |
|
31 } |
|
32 |
|
33 EXPORT_C TInt MRemConBearerObserver::NewCommand(const TRemConAddress& aAddr) |
|
34 { |
|
35 return MrcboDoNewCommand(aAddr); |
|
36 } |
|
37 |
|
38 EXPORT_C TInt MRemConBearerObserver::NewNotifyCommand(const TRemConAddress& aAddr) |
|
39 { |
|
40 return MrcboDoNewNotifyCommand(aAddr); |
|
41 } |
|
42 |
|
43 |
|
44 EXPORT_C TInt MRemConBearerObserver::ConnectIndicate(const TRemConAddress& aAddr) |
|
45 { |
|
46 return MrcboDoConnectIndicate(aAddr); |
|
47 } |
|
48 |
|
49 EXPORT_C void MRemConBearerObserver::DisconnectIndicate(const TRemConAddress& aAddr) |
|
50 { |
|
51 MrcboDoDisconnectIndicate(aAddr); |
|
52 } |
|
53 |
|
54 EXPORT_C TInt MRemConBearerObserver::ConnectConfirm(const TRemConAddress& aAddr, TInt aError) |
|
55 { |
|
56 return MrcboDoConnectConfirm(aAddr, aError); |
|
57 } |
|
58 |
|
59 EXPORT_C void MRemConBearerObserver::DisconnectConfirm(const TRemConAddress& aAddr, TInt aError) |
|
60 { |
|
61 MrcboDoDisconnectConfirm(aAddr, aError); |
|
62 } |
|
63 |
|
64 EXPORT_C TInt MRemConBearerObserver::InterfaceToBearer(TUid aBearerUid, |
|
65 TUid aInterfaceUid, |
|
66 TUint aOperationId, |
|
67 const TDesC8& aData, |
|
68 TRemConMessageType aMsgType, |
|
69 TDes8& aBearerData) const |
|
70 { |
|
71 return MrcboDoInterfaceToBearer(aBearerUid, |
|
72 aInterfaceUid, |
|
73 aOperationId, |
|
74 aData, |
|
75 aMsgType, |
|
76 aBearerData); |
|
77 } |
|
78 |
|
79 EXPORT_C TInt MRemConBearerObserver::BearerToInterface(TUid aBearerUid, |
|
80 const TDesC8& aInterfaceData, |
|
81 const TDesC8& aBearerData, |
|
82 TUid& aInterfaceUid, |
|
83 TUint& aOperationId, |
|
84 TRemConMessageType& aMsgType, |
|
85 TDes8& aData) const |
|
86 { |
|
87 return MrcboDoBearerToInterface(aBearerUid, |
|
88 aInterfaceData, |
|
89 aBearerData, |
|
90 aInterfaceUid, |
|
91 aOperationId, |
|
92 aMsgType, |
|
93 aData); |
|
94 } |
|
95 |
|
96 EXPORT_C TUint MRemConBearerObserver::NewTransactionId() |
|
97 { |
|
98 return MrcboDoNewTransactionId(); |
|
99 } |
|
100 |
|
101 EXPORT_C void MRemConBearerObserver::CommandExpired(TUint aTransactionId) |
|
102 { |
|
103 return MrcboDoCommandExpired(aTransactionId); |
|
104 } |
|
105 |
|
106 EXPORT_C TInt MRemConBearerObserver::NewCommand(const TRemConAddress& aAddr, const TRemConClientId& aClient) |
|
107 { |
|
108 return MrcboDoNewCommand(aAddr, aClient); |
|
109 } |
|
110 |
|
111 EXPORT_C TInt MRemConBearerObserver::NewNotifyCommand(const TRemConAddress& aAddr, const TRemConClientId& aClient) |
|
112 { |
|
113 return MrcboDoNewNotifyCommand(aAddr, aClient); |
|
114 } |
|
115 |
|
116 EXPORT_C TInt MRemConBearerObserver::SupportedInterfaces(const TRemConClientId& aId, RArray<TUid>& aUids) |
|
117 { |
|
118 return MrcboDoSupportedInterfaces(aId, aUids); |
|
119 } |
|
120 |
|
121 EXPORT_C TInt MRemConBearerObserver::SupportedOperations(const TRemConClientId& aId, TUid aInterfaceUid, RArray<TUint>& aOperations) |
|
122 { |
|
123 return MrcboDoSupportedOperations(aId, aInterfaceUid, aOperations); |
|
124 } |
|
125 |
|
126 EXPORT_C void MRemConBearerObserver::SetRemoteAddressedClient(const TUid& aBearerUid, const TRemConClientId& aId) |
|
127 { |
|
128 MrcboDoSetRemoteAddressedClient(aBearerUid, aId); |
|
129 } |
|
130 |
|
131 EXPORT_C TInt MRemConBearerObserver::RegisterLocalAddressedClientObserver(const TUid& aBearerUid) |
|
132 { |
|
133 return MrcboDoRegisterLocalAddressedClientObserver(aBearerUid); |
|
134 } |
|
135 |
|
136 EXPORT_C TInt MRemConBearerObserver::UnregisterLocalAddressedClientObserver(const TUid& aBearerUid) |
|
137 { |
|
138 return MrcboDoUnregisterLocalAddressedClientObserver(aBearerUid); |
|
139 } |
|
140 |
|
141 |