114
|
1 |
/*
|
|
2 |
* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
* All rights reserved.
|
|
4 |
* This component and the accompanying materials are made available
|
|
5 |
* under the terms of "Eclipse Public License v1.0"
|
|
6 |
* which accompanies this distribution, and is available
|
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
8 |
*
|
|
9 |
* Initial Contributors:
|
|
10 |
* Nokia Corporation - initial contribution.
|
|
11 |
*
|
|
12 |
* Contributors:
|
|
13 |
*
|
|
14 |
* Description: Implementaion of ChspsClientSession class.
|
|
15 |
* For details, see hspsClientSession.h.
|
|
16 |
*
|
|
17 |
*
|
|
18 |
*/
|
|
19 |
|
|
20 |
|
|
21 |
#include <e32svr.h>
|
|
22 |
#include "hsps_builds_cfg.hrh"
|
|
23 |
#include "hspsthememanagement.h"
|
|
24 |
#include "hspsthemeserver.h"
|
|
25 |
#include "hspsclientsession.h"
|
|
26 |
|
|
27 |
const TInt KRetryMax = 256;
|
|
28 |
const TInt KRetryInterval = 100000; // 100ms
|
|
29 |
|
|
30 |
// Standard server startup code
|
|
31 |
static TInt StartServer()
|
|
32 |
{
|
|
33 |
const TUidType serverUid(KNullUid,KNullUid,KhspsThemeServerUid3);
|
|
34 |
// ------------------------------------------------------------------------
|
|
35 |
// EPOC and EKA2 just create a new server process. Simultaneous
|
|
36 |
// launching of two such processes should be detected when the second one
|
|
37 |
// attempts to create the server object, failing with KErrAlreadyExists.
|
|
38 |
// ------------------------------------------------------------------------
|
|
39 |
RProcess server;
|
|
40 |
TInt r=server.Create(KhspsThemeServerName,KNullDesC);
|
|
41 |
if (r!=KErrNone)
|
|
42 |
{
|
|
43 |
#ifdef _hsps_DEBUG_
|
|
44 |
RDebug::Print(_L("hspsClientSession: server start failed %d"),r);
|
|
45 |
#endif
|
|
46 |
return r;
|
|
47 |
}
|
|
48 |
TRequestStatus stat;
|
|
49 |
server.Rendezvous(stat);
|
|
50 |
if (stat!=KRequestPending)
|
|
51 |
{
|
|
52 |
server.Kill(0); // abort startup
|
|
53 |
}
|
|
54 |
else
|
|
55 |
{
|
|
56 |
server.Resume(); // logon OK - start the server
|
|
57 |
}
|
|
58 |
|
|
59 |
User::WaitForRequest(stat); // wait for start or death
|
|
60 |
// ------------------------------------------------------------------------
|
|
61 |
// we can't use the 'exit reason' if the server panicked as this
|
|
62 |
// is the panic 'reason' and may be '0' which cannot be distinguished
|
|
63 |
// from KErrNone
|
|
64 |
///
|
|
65 |
r=(server.ExitType()==EExitPanic) ? KErrGeneral : stat.Int();
|
|
66 |
server.Close();
|
|
67 |
return r;
|
|
68 |
}
|
|
69 |
|
|
70 |
|
|
71 |
// -----------------------------------------------------------------------------
|
|
72 |
// RhspsClientSession::Connect
|
|
73 |
// This is the standard retry pattern for server connection
|
|
74 |
// (other items were commented in a header).
|
|
75 |
// -----------------------------------------------------------------------------
|
|
76 |
//
|
|
77 |
EXPORT_C TInt RhspsClientSession::Connect()
|
|
78 |
{
|
|
79 |
TVersion ver = TVersion( KhspsThemeServerMajorVersionNumber,
|
|
80 |
KhspsThemeServerMinorVersionNumber,
|
|
81 |
KhspsThemeServerBuildVersionNumber);
|
|
82 |
|
|
83 |
TInt retry = KRetryMax;
|
|
84 |
|
|
85 |
for(;;)
|
|
86 |
{
|
|
87 |
TInt r = CreateSession( KhspsThemeServerName, ver, KDefaultMessageSlots );
|
|
88 |
|
|
89 |
if( r != KErrNotFound && r != KErrServerTerminated )
|
|
90 |
{
|
|
91 |
return r;
|
|
92 |
}
|
|
93 |
|
|
94 |
retry--;
|
|
95 |
if( retry == 0 )
|
|
96 |
{
|
|
97 |
return r;
|
|
98 |
}
|
|
99 |
|
|
100 |
r = StartServer();
|
|
101 |
if( r != KErrNone && r != KErrAlreadyExists )
|
|
102 |
{
|
|
103 |
return r;
|
|
104 |
}
|
|
105 |
|
|
106 |
if( r == KErrAlreadyExists )
|
|
107 |
{
|
|
108 |
User::After( KRetryInterval );
|
|
109 |
}
|
|
110 |
}
|
|
111 |
}
|
|
112 |
|
|
113 |
// -----------------------------------------------------------------------------
|
|
114 |
// RhspsClientSession::Close()
|
|
115 |
// Closes the session
|
|
116 |
// (other items were commented in a header).
|
|
117 |
// -----------------------------------------------------------------------------
|
|
118 |
//
|
|
119 |
EXPORT_C void RhspsClientSession::Close()
|
|
120 |
{
|
|
121 |
RSessionBase::Close();
|
|
122 |
}
|
|
123 |
|
|
124 |
|
|
125 |
// ----------------------------------------------------------------------------------------
|
|
126 |
// Client Server functions follow
|
|
127 |
// ----------------------------------------------------------------------------------------
|
|
128 |
|
|
129 |
// -----------------------------------------------------------------------------
|
|
130 |
// RhspsClientSession::InstallTheme
|
|
131 |
// Installation service
|
|
132 |
// (other items were commented in a header).
|
|
133 |
// -----------------------------------------------------------------------------
|
|
134 |
//
|
|
135 |
EXPORT_C TInt RhspsClientSession::InstallTheme(TDes8& aResultData, const TDesC& aManifestFileName,
|
|
136 |
TDes8& aHeaderData)
|
|
137 |
{
|
|
138 |
aHeaderData.Zero();
|
|
139 |
aResultData.Zero();
|
|
140 |
return SendReceive(EhspsInstallTheme,TIpcArgs(&aResultData, &aManifestFileName, &aHeaderData));
|
|
141 |
}
|
|
142 |
|
|
143 |
// -----------------------------------------------------------------------------
|
|
144 |
// RhspsClientSession::InstallNextPhase
|
|
145 |
// Calls for the next phase of the installation
|
|
146 |
// (other items were commented in a header).
|
|
147 |
// -----------------------------------------------------------------------------
|
|
148 |
//
|
|
149 |
EXPORT_C void RhspsClientSession::InstallNextPhase(TDes8& aResultData, TDes8& aHeaderData,
|
|
150 |
TRequestStatus& aStatus)
|
|
151 |
{
|
|
152 |
aHeaderData.Zero();
|
|
153 |
aResultData.Zero();
|
|
154 |
TIpcArgs args;
|
|
155 |
args.Set(0, &aResultData );
|
|
156 |
args.Set(1, &KNullDesC8);
|
|
157 |
args.Set(2, &aHeaderData);
|
|
158 |
SendReceive(EhspsInstallNextPhase, args, aStatus);
|
|
159 |
}
|
|
160 |
|
|
161 |
// -----------------------------------------------------------------------------
|
|
162 |
// RhspsClientSession::GetListHeaders
|
|
163 |
// Maintenance service, header listing
|
|
164 |
// (other items were commented in a header).
|
|
165 |
// -----------------------------------------------------------------------------
|
|
166 |
//
|
|
167 |
EXPORT_C TInt RhspsClientSession::GetListHeaders(TDes8& aResultData, const TDesC8& aSearchMaskData,
|
|
168 |
const TBool aCopyLogos, TDes8& aHeaderData)
|
|
169 |
{
|
|
170 |
aHeaderData.Zero();
|
|
171 |
aResultData.Zero();
|
|
172 |
TPckg<TInt> intPkg( aCopyLogos );
|
|
173 |
return SendReceive( EhspsGetListHeaders,
|
|
174 |
TIpcArgs(&aResultData, &aSearchMaskData, &aHeaderData, &intPkg) );
|
|
175 |
}
|
|
176 |
|
|
177 |
// -----------------------------------------------------------------------------
|
|
178 |
// RhspsClientSession::GetNextHeader
|
|
179 |
// (other items were commented in a header).
|
|
180 |
// -----------------------------------------------------------------------------
|
|
181 |
//
|
|
182 |
EXPORT_C void RhspsClientSession::GetNextHeader(TDes8& aResultData, TDes8& aHeaderData,
|
|
183 |
TRequestStatus& aStatus)
|
|
184 |
{
|
|
185 |
aHeaderData.Zero();
|
|
186 |
aResultData.Zero();
|
|
187 |
TIpcArgs args;
|
|
188 |
args.Set(0, &aResultData );
|
|
189 |
args.Set(1, &KNullDesC8);
|
|
190 |
args.Set(2, &aHeaderData);
|
|
191 |
SendReceive(EhspsGetNextHeader, args, aStatus);
|
|
192 |
}
|
|
193 |
|
|
194 |
// -----------------------------------------------------------------------------
|
|
195 |
// RhspsClientSession::SetActiveTheme
|
|
196 |
// Theme activation
|
|
197 |
// (other items were commented in a header).
|
|
198 |
// -----------------------------------------------------------------------------
|
|
199 |
//
|
|
200 |
EXPORT_C TInt RhspsClientSession::SetActiveTheme(TDes8& aResultData, const TDesC8& aSetMaskData,
|
|
201 |
TDes8& aHeaderData)
|
|
202 |
{
|
|
203 |
aHeaderData.Zero();
|
|
204 |
aResultData.Zero();
|
|
205 |
return SendReceive(EhspsSetActiveTheme, TIpcArgs(&aResultData, &aSetMaskData, &aHeaderData));
|
|
206 |
}
|
|
207 |
|
|
208 |
// -----------------------------------------------------------------------------
|
|
209 |
// RhspsClientSession::RestoreDefault
|
|
210 |
// Restore defaults
|
|
211 |
// (other items were commented in a header).
|
|
212 |
// -----------------------------------------------------------------------------
|
|
213 |
//
|
|
214 |
EXPORT_C TInt RhspsClientSession::RestoreDefault(TDes8& aResultData, const TDesC8& aSetMaskData,
|
|
215 |
TDes8& aHeaderData)
|
|
216 |
{
|
|
217 |
aHeaderData.Zero();
|
|
218 |
aResultData.Zero();
|
|
219 |
return SendReceive( EhspsRestoreDefault, TIpcArgs(&aResultData, &aSetMaskData, &aHeaderData) );
|
|
220 |
}
|
|
221 |
|
|
222 |
// -----------------------------------------------------------------------------
|
|
223 |
// RhspsClientSession::RemoveTheme
|
|
224 |
// Theme removal
|
|
225 |
// (other items were commented in a header).
|
|
226 |
// -----------------------------------------------------------------------------
|
|
227 |
//
|
|
228 |
EXPORT_C TInt RhspsClientSession::RemoveTheme(TDes8& aResultData, const TDesC8& aSetMaskData)
|
|
229 |
{
|
|
230 |
aResultData.Zero();
|
|
231 |
return SendReceive(EhspsRemoveTheme, TIpcArgs(&aResultData, &aSetMaskData));
|
|
232 |
}
|
|
233 |
|
|
234 |
/* Client Request service */
|
|
235 |
// -----------------------------------------------------------------------------
|
|
236 |
// RhspsClientSession::GetODT
|
|
237 |
// (other items were commented in a header).
|
|
238 |
// -----------------------------------------------------------------------------
|
|
239 |
//
|
|
240 |
EXPORT_C TInt RhspsClientSession::GetODT(
|
|
241 |
TDes8& aResultData,
|
|
242 |
const ThspsConfiguration& aConfiguration,
|
|
243 |
const TDesC8& aRequestData,
|
|
244 |
TDes& aODTPath)
|
|
245 |
{
|
|
246 |
// Setup packaged input for the service
|
|
247 |
TPckgC<ThspsConfiguration> packagedStruct(aConfiguration);
|
|
248 |
|
|
249 |
aResultData.Zero();
|
|
250 |
aODTPath.Zero();
|
|
251 |
return SendReceive(EhspsGetODT,TIpcArgs(&aResultData, &packagedStruct, &aRequestData, &aODTPath ));
|
|
252 |
}
|
|
253 |
|
|
254 |
// -----------------------------------------------------------------------------
|
|
255 |
// RhspsClientSession::GetODTUpdate
|
|
256 |
// (other items were commented in a header).
|
|
257 |
// -----------------------------------------------------------------------------
|
|
258 |
//
|
|
259 |
EXPORT_C void RhspsClientSession::GetODTUpdate(TDes8& aResultData,
|
|
260 |
TDes8& aRequestNotifyData,
|
|
261 |
TDes8& aHeaderData,
|
|
262 |
TRequestStatus& aStatus)
|
|
263 |
{
|
|
264 |
aHeaderData.Zero();
|
|
265 |
aResultData.Zero();
|
|
266 |
aRequestNotifyData.Zero();
|
|
267 |
TIpcArgs args;
|
|
268 |
args.Set(0, &aResultData );
|
|
269 |
args.Set(1, &aRequestNotifyData);
|
|
270 |
args.Set(2, &aHeaderData);
|
|
271 |
|
|
272 |
SendReceive(EhspsGetODTUpdate, args, aStatus);
|
|
273 |
}
|
|
274 |
|
|
275 |
// -----------------------------------------------------------------------------
|
|
276 |
// RhspsClientSession::AccessResourceFile
|
|
277 |
// (other items were commented in a header).
|
|
278 |
// -----------------------------------------------------------------------------
|
|
279 |
//
|
|
280 |
EXPORT_C TInt RhspsClientSession::AccessResourceFile(TDes8& aResultData,
|
|
281 |
const ThspsConfiguration& aConfiguration, const TDesC& aFileName, TInt& aFileHandle)
|
|
282 |
{
|
|
283 |
// Setup packaged input for the service
|
|
284 |
TPckgC<ThspsConfiguration> packagedStruct(aConfiguration);
|
|
285 |
|
|
286 |
// Setup packaged output from the service
|
|
287 |
TPckgBuf<TInt> packagedFileHandle(0);
|
|
288 |
|
|
289 |
aResultData.Zero();
|
|
290 |
|
|
291 |
//IPC slots and contents:
|
|
292 |
//#0 (unused?)
|
|
293 |
//#1 uids in a struct
|
|
294 |
//#2 the file name to open
|
|
295 |
//#3 the handle to the RFile that will be filled in by the server
|
|
296 |
|
|
297 |
//The return value contains the handle to the RFs that can be used to access the file
|
|
298 |
TInt fileServerHandle = SendReceive(
|
|
299 |
EhspsAccessResourceFile,
|
|
300 |
TIpcArgs(&aResultData, &packagedStruct, &aFileName, &packagedFileHandle)
|
|
301 |
);
|
|
302 |
|
|
303 |
// Set received file handle
|
|
304 |
aFileHandle=packagedFileHandle();
|
|
305 |
|
|
306 |
return fileServerHandle;
|
|
307 |
}
|
|
308 |
// -----------------------------------------------------------------------------
|
|
309 |
// RhspsClientSession::CopyResourceFiles
|
|
310 |
// (other items were commented in a header).
|
|
311 |
// -----------------------------------------------------------------------------
|
|
312 |
//
|
|
313 |
EXPORT_C TInt RhspsClientSession::CopyResourceFiles( TDes8& aResultData, TDesC& aODTPath,
|
|
314 |
TDesC& aDestinationPath )
|
|
315 |
{
|
|
316 |
aResultData.Zero();
|
|
317 |
return SendReceive( EhspsCopyResources, TIpcArgs( &aResultData, &aODTPath, &aDestinationPath ));
|
|
318 |
}
|
|
319 |
|
|
320 |
/* Generic functions */
|
|
321 |
// -----------------------------------------------------------------------------
|
|
322 |
// RhspsClientSession::CancelRequest
|
|
323 |
// (other items were commented in a header).
|
|
324 |
// -----------------------------------------------------------------------------
|
|
325 |
//
|
|
326 |
EXPORT_C void RhspsClientSession::CancelRequest(TInt aCancelRequestMessage,
|
|
327 |
TDes8& aResultData, TInt aAppUid )
|
|
328 |
{
|
|
329 |
aResultData.Zero();
|
|
330 |
SendReceive(aCancelRequestMessage, TIpcArgs(&aResultData, aAppUid ));
|
|
331 |
}
|
|
332 |
|
|
333 |
// -----------------------------------------------------------------------------
|
|
334 |
// RhspsClientSession::GetNextHeader
|
|
335 |
// (other items were commented in a header).
|
|
336 |
// -----------------------------------------------------------------------------
|
|
337 |
//
|
|
338 |
EXPORT_C TInt RhspsClientSession::GetNextHeader( TDes8& aResultData, TDes8& aHeaderData )
|
|
339 |
{
|
|
340 |
aHeaderData.Zero();
|
|
341 |
aResultData.Zero();
|
|
342 |
TIpcArgs args;
|
|
343 |
args.Set( 0, &aResultData );
|
|
344 |
args.Set( 1, &KNullDesC8 );
|
|
345 |
args.Set( 2, &aHeaderData );
|
|
346 |
return SendReceive( EhspsGetNextHeader, args );
|
|
347 |
}
|
|
348 |
|
|
349 |
// -----------------------------------------------------------------------------
|
|
350 |
// RhspsClientSession::AddPlugin
|
|
351 |
// Adds a plugin configuration into the defined application configuration
|
|
352 |
// -----------------------------------------------------------------------------
|
|
353 |
//
|
|
354 |
EXPORT_C TInt RhspsClientSession::AddPlugin( TDes8& aResultData, const ThpsParamAddPlugin& aParams, TInt& aNewPluginId )
|
|
355 |
{
|
|
356 |
aResultData.Zero();
|
|
357 |
TPckgC<ThpsParamAddPlugin> packagedStruct(aParams);
|
|
358 |
TPckg<TInt> idDes( aNewPluginId );
|
|
359 |
return SendReceive(EhspsAddPlugin, TIpcArgs(&aResultData, &packagedStruct, &idDes));
|
|
360 |
}
|
|
361 |
|
|
362 |
// -----------------------------------------------------------------------------
|
|
363 |
// RhspsClientSession::RemovePlugin
|
|
364 |
// Removes a plugin configuration from the defined application configuration
|
|
365 |
// -----------------------------------------------------------------------------
|
|
366 |
//
|
|
367 |
EXPORT_C TInt RhspsClientSession::RemovePlugin( TDes8& aResultData,
|
|
368 |
const ThpsParamRemovePlugin& aParams )
|
|
369 |
{
|
|
370 |
aResultData.Zero();
|
|
371 |
TPckgC<ThpsParamRemovePlugin> packagedStruct(aParams);
|
|
372 |
return SendReceive(EhspsRemovePlugin, TIpcArgs(&aResultData, &packagedStruct));
|
|
373 |
}
|
|
374 |
|
|
375 |
// -----------------------------------------------------------------------------
|
|
376 |
// RhspsClientSession::SetActivePlugin
|
|
377 |
// Set plugin configuration active.
|
|
378 |
// -----------------------------------------------------------------------------
|
|
379 |
//
|
|
380 |
EXPORT_C TInt RhspsClientSession::SetActivePlugin( TDes8& aResultData,
|
|
381 |
const ThpsParamSetActivePlugin& aParams )
|
|
382 |
{
|
|
383 |
|
|
384 |
aResultData.Zero();
|
|
385 |
TPckgC<ThpsParamSetActivePlugin> packagedStruct( aParams );
|
|
386 |
return SendReceive( EhspsSetActivePlugin, TIpcArgs( &aResultData, &packagedStruct ) );
|
|
387 |
}
|
|
388 |
|
|
389 |
// -----------------------------------------------------------------------------
|
|
390 |
// RhspsClientSession::ReplacePlugin
|
|
391 |
// Replaces a plugin configuration in the active application configuration
|
|
392 |
// -----------------------------------------------------------------------------
|
|
393 |
//
|
|
394 |
EXPORT_C TInt RhspsClientSession::ReplacePlugin(
|
|
395 |
TDes8& aResultData,
|
|
396 |
const ThspsParamReplacePlugin& aParams )
|
|
397 |
{
|
|
398 |
aResultData.Zero();
|
|
399 |
TPckgC<ThspsParamReplacePlugin> packagedStruct(aParams);
|
|
400 |
return SendReceive(EhspsReplacePlugin, TIpcArgs(&aResultData, &packagedStruct));
|
|
401 |
}
|
|
402 |
|
|
403 |
// -----------------------------------------------------------------------------
|
|
404 |
// RhspsClientSession::GetPluginOdt
|
|
405 |
// Returns odt path accoring given uid
|
|
406 |
// -----------------------------------------------------------------------------
|
|
407 |
//
|
|
408 |
EXPORT_C TInt RhspsClientSession::GetPluginOdt( TDes8& aResultData,
|
|
409 |
const ThspsParamGetPluginOdt& aParams,
|
|
410 |
TDes& aOdtPath )
|
|
411 |
{
|
|
412 |
aResultData.Zero();
|
|
413 |
TPckgC<ThspsParamGetPluginOdt> packagedStruct(aParams);
|
|
414 |
return SendReceive( EhspsGetPluginOdt, TIpcArgs(&aResultData, &packagedStruct, &aOdtPath) );
|
|
415 |
}
|
|
416 |
|
|
417 |
// -----------------------------------------------------------------------------
|
|
418 |
// RhspsClientSession::SetPluginSettings
|
|
419 |
// Personalizes settings in a plugin configuration
|
|
420 |
// -----------------------------------------------------------------------------
|
|
421 |
//
|
|
422 |
EXPORT_C TInt RhspsClientSession::SetPluginSettings( TDes8& aResultData,
|
|
423 |
TDes8& aSearchMaskData,
|
|
424 |
ThspsParamSetPluginSettings aParams,
|
|
425 |
TDes8& aDomData )
|
|
426 |
{
|
|
427 |
aResultData.Zero();
|
|
428 |
TPckgC<ThspsParamSetPluginSettings> packagedStruct(aParams);
|
|
429 |
return SendReceive(EhspsSetPluginSettings, TIpcArgs( &aResultData, &aSearchMaskData, &packagedStruct, &aDomData ));
|
|
430 |
}
|
|
431 |
|
|
432 |
// -----------------------------------------------------------------------------
|
|
433 |
// RhspsClientSession::MovePlugins
|
|
434 |
// Updates plugin positions within a configuration
|
|
435 |
// -----------------------------------------------------------------------------
|
|
436 |
//
|
|
437 |
EXPORT_C TInt RhspsClientSession::MovePlugins( TDes8& aResultData, const ThpsParamMovePlugins& aParams )
|
|
438 |
{
|
|
439 |
aResultData.Zero();
|
|
440 |
TPckgC<ThpsParamMovePlugins> packagedStruct(aParams);
|
|
441 |
return SendReceive(EhspsMovePlugins, TIpcArgs(&aResultData, &packagedStruct));
|
|
442 |
}
|
|
443 |
|
|
444 |
// -----------------------------------------------------------------------------
|
|
445 |
// RhspsClientSession::SetConfState
|
|
446 |
// Updates configuration state
|
|
447 |
// -----------------------------------------------------------------------------
|
|
448 |
//
|
|
449 |
EXPORT_C TInt RhspsClientSession::SetConfState(
|
|
450 |
TDes8& aResultData,
|
|
451 |
const ThspsParamSetConfState& aParams )
|
|
452 |
{
|
|
453 |
aResultData.Zero();
|
|
454 |
TPckgC<ThspsParamSetConfState> packagedStruct( aParams );
|
|
455 |
return SendReceive( EhspsSetConfState, TIpcArgs( &aResultData, &packagedStruct ) );
|
|
456 |
}
|
|
457 |
|
|
458 |
// -----------------------------------------------------------------------------
|
|
459 |
// RhspsClientSession::ReinstallConf
|
|
460 |
// Updates configuration state
|
|
461 |
// -----------------------------------------------------------------------------
|
|
462 |
//
|
|
463 |
EXPORT_C TInt RhspsClientSession::ReinstallConf(
|
|
464 |
TDes8& aResultData,
|
|
465 |
const ThspsParamReinstallConf& aParams )
|
|
466 |
{
|
|
467 |
aResultData.Zero();
|
|
468 |
TPckgC<ThspsParamReinstallConf> packagedStruct( aParams );
|
|
469 |
return SendReceive( EhspsReinstallConf, TIpcArgs( &aResultData, &packagedStruct ) );
|
|
470 |
}
|
|
471 |
|
|
472 |
// -----------------------------------------------------------------------------
|
|
473 |
// RhspsClientSession::RestoreActiveAppConf
|
|
474 |
// Restores active application configuration
|
|
475 |
// -----------------------------------------------------------------------------
|
|
476 |
//
|
|
477 |
EXPORT_C TInt RhspsClientSession::RestoreActiveAppConf(
|
|
478 |
TDes8& aResultData,
|
|
479 |
const ThspsParamRestoreActiveAppConf& aParams )
|
|
480 |
{
|
|
481 |
aResultData.Zero();
|
|
482 |
TPckgC<ThspsParamRestoreActiveAppConf> packagedStruct( aParams );
|
|
483 |
return SendReceive( EhspsRestoreActiveAppConf, TIpcArgs( &aResultData, &packagedStruct ) );
|
|
484 |
}
|
|
485 |
|
|
486 |
// -----------------------------------------------------------------------------
|
|
487 |
// RhspsClientSession::RestoreConfigurations
|
|
488 |
// -----------------------------------------------------------------------------
|
|
489 |
//
|
|
490 |
EXPORT_C TInt RhspsClientSession::RestoreConfigurations(
|
|
491 |
TDes8& aResultData,
|
|
492 |
const ThspsParamRestoreConfigurations& aParams )
|
|
493 |
{
|
|
494 |
aResultData.Zero();
|
|
495 |
TPckgC<ThspsParamRestoreConfigurations> packagedStruct( aParams );
|
|
496 |
return SendReceive( EhspsRestoreConfigurations, TIpcArgs( &aResultData, &packagedStruct ) );
|
|
497 |
}
|
|
498 |
|
|
499 |
// end of file
|
|
500 |
|