|
1 // Copyright (c) 2002-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 #include "CStubbedAgent.h" |
|
17 |
|
18 void CStubbedAgent::Info(TNifAgentInfo& aInfo) const |
|
19 { |
|
20 |
|
21 _LIT(KAgentName, "Stubbed"); |
|
22 aInfo.iName = KAgentName(); |
|
23 aInfo.iName.AppendFormat(_L("-Agent[0x%08x]"), this); |
|
24 } |
|
25 |
|
26 CStubbedAgent::~CStubbedAgent() |
|
27 { |
|
28 |
|
29 if(iOverrides) |
|
30 { |
|
31 delete iOverrides; |
|
32 } |
|
33 } |
|
34 |
|
35 void CStubbedAgent::Unimplemented() const |
|
36 { |
|
37 User::Invariant(); |
|
38 } |
|
39 |
|
40 |
|
41 void CStubbedAgent::Connect(TAgentConnectType) |
|
42 { |
|
43 |
|
44 Unimplemented(); |
|
45 } |
|
46 |
|
47 void CStubbedAgent::Connect(TAgentConnectType, CStoreableOverrideSettings*) |
|
48 { |
|
49 |
|
50 Unimplemented(); |
|
51 } |
|
52 |
|
53 void CStubbedAgent::CancelConnect() |
|
54 { |
|
55 |
|
56 Unimplemented(); |
|
57 } |
|
58 |
|
59 void CStubbedAgent::Reconnect() |
|
60 { |
|
61 |
|
62 Unimplemented(); |
|
63 } |
|
64 |
|
65 void CStubbedAgent::CancelReconnect() |
|
66 { |
|
67 |
|
68 Unimplemented(); |
|
69 } |
|
70 |
|
71 void CStubbedAgent::Authenticate(TDes&, TDes&) |
|
72 { |
|
73 |
|
74 Unimplemented(); |
|
75 } |
|
76 |
|
77 void CStubbedAgent::CancelAuthenticate() |
|
78 { |
|
79 |
|
80 Unimplemented(); |
|
81 } |
|
82 |
|
83 void CStubbedAgent::Disconnect(TInt) |
|
84 { |
|
85 |
|
86 Unimplemented(); |
|
87 } |
|
88 |
|
89 TInt CStubbedAgent::GetExcessData(TDes8&) |
|
90 { |
|
91 |
|
92 Unimplemented(); |
|
93 return KErrNone; |
|
94 } |
|
95 |
|
96 TInt CStubbedAgent::DoReadInt(const TDesC& aField, TUint32& aValue,const RMessagePtr2* /*aMessage*/) |
|
97 { |
|
98 TInt ret(KErrNotFound); |
|
99 |
|
100 _LIT(KIapIdField, "Iap\\Id"); |
|
101 if(aField.CompareF(KIapIdField()) == 0) |
|
102 { |
|
103 aValue = 1; |
|
104 ret = KErrNone; |
|
105 } |
|
106 else |
|
107 { |
|
108 Unimplemented(); |
|
109 } |
|
110 |
|
111 return ret; |
|
112 } |
|
113 |
|
114 TInt CStubbedAgent::DoWriteInt(const TDesC&, TUint32,const RMessagePtr2* /*aMessage*/) |
|
115 |
|
116 { |
|
117 |
|
118 Unimplemented(); |
|
119 return KErrNone; |
|
120 } |
|
121 |
|
122 TInt CStubbedAgent::DoReadDes(const TDesC&, TDes8&,const RMessagePtr2* /*aMessage*/) |
|
123 { |
|
124 |
|
125 Unimplemented(); |
|
126 return KErrNone; |
|
127 } |
|
128 |
|
129 TInt CStubbedAgent::DoWriteDes(const TDesC&, const TDesC8&,const RMessagePtr2* /*aMessage*/) |
|
130 { |
|
131 |
|
132 Unimplemented(); |
|
133 return KErrNone; |
|
134 } |
|
135 |
|
136 TInt CStubbedAgent::DoReadDes(const TDesC&, TDes16&,const RMessagePtr2* /*aMessage*/) |
|
137 { |
|
138 |
|
139 Unimplemented(); |
|
140 return KErrNone; |
|
141 } |
|
142 |
|
143 TInt CStubbedAgent::DoWriteDes(const TDesC&, const TDesC16&,const RMessagePtr2* /*aMessage*/) |
|
144 { |
|
145 |
|
146 Unimplemented(); |
|
147 return KErrNone; |
|
148 } |
|
149 |
|
150 TInt CStubbedAgent::DoReadBool(const TDesC&, TBool&,const RMessagePtr2* /*aMessage*/) |
|
151 { |
|
152 |
|
153 Unimplemented(); |
|
154 return KErrNone; |
|
155 } |
|
156 |
|
157 TInt CStubbedAgent::DoWriteBool(const TDesC&, TBool,const RMessagePtr2* /*aMessage*/) |
|
158 { |
|
159 |
|
160 Unimplemented(); |
|
161 return KErrNone; |
|
162 } |
|
163 |
|
164 HBufC* CStubbedAgent::DoReadLongDesLC(const TDesC&,const RMessagePtr2* /*aMessage*/) |
|
165 { |
|
166 |
|
167 Unimplemented(); |
|
168 return NULL; |
|
169 } |
|
170 |
|
171 TInt CStubbedAgent::Notification(TNifToAgentEventType, TAny*) |
|
172 { |
|
173 |
|
174 Unimplemented(); |
|
175 return KErrNone; |
|
176 } |
|
177 |
|
178 TInt CStubbedAgent::IncomingConnectionReceived() |
|
179 { |
|
180 |
|
181 Unimplemented(); |
|
182 return KErrNone; |
|
183 } |
|
184 |
|
185 void CStubbedAgent::GetLastError(TInt&) |
|
186 { |
|
187 |
|
188 Unimplemented(); |
|
189 } |
|
190 |
|
191 TBool CStubbedAgent::IsActive() const |
|
192 { |
|
193 |
|
194 Unimplemented(); |
|
195 return EFalse; |
|
196 } |
|
197 |
|
198 TBool CStubbedAgent::IsReconnect() const |
|
199 { |
|
200 |
|
201 Unimplemented(); |
|
202 return EFalse; |
|
203 } |
|
204 |
|
205 void CStubbedAgent::SetConnectionSettingsL(const TConnectionSettings& aSettings) |
|
206 { |
|
207 |
|
208 iSettings = aSettings; |
|
209 } |
|
210 |
|
211 TConnectionSettings& CStubbedAgent::ConnectionSettingsL() |
|
212 { |
|
213 |
|
214 return iSettings; |
|
215 } |
|
216 |
|
217 void CStubbedAgent::SetOverridesL(CStoreableOverrideSettings* aOverrides) |
|
218 { |
|
219 |
|
220 iOverrides = aOverrides; |
|
221 } |
|
222 |
|
223 CStoreableOverrideSettings* CStubbedAgent::OverridesL() |
|
224 { |
|
225 |
|
226 return iOverrides; |
|
227 } |
|
228 |
|
229 void CStubbedAgent::RequestNotificationOfServiceChangeL(MAgentSessionNotify*) |
|
230 { |
|
231 |
|
232 Unimplemented(); |
|
233 } |
|
234 |
|
235 void CStubbedAgent::CancelRequestNotificationOfServiceChange(MAgentSessionNotify*) |
|
236 { |
|
237 |
|
238 Unimplemented(); |
|
239 } |
|
240 |