|
1 /* |
|
2 * Copyright (c) 2005-2009 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: |
|
15 * This file was autogenerated by rpcgen, but should be modified by the developer. |
|
16 * Make sure you don't use the -component_mod flag in future or this file will be overwritten. |
|
17 * Tue Nov 16 15:19:57 2004 |
|
18 * System Includes |
|
19 * |
|
20 */ |
|
21 |
|
22 |
|
23 |
|
24 #include <stdio.h> |
|
25 #include <assert.h> |
|
26 |
|
27 |
|
28 /**************************************************************************************** |
|
29 * |
|
30 * Local Includes |
|
31 * |
|
32 ***************************************************************************************/ |
|
33 #include "CSvcGenericstub.h" |
|
34 #include "CSGenericstub.h" |
|
35 |
|
36 /**************************************************************************************** |
|
37 * |
|
38 * Implementation |
|
39 * |
|
40 ***************************************************************************************/ |
|
41 CSGenericstub::CSGenericstub() |
|
42 : iKey(0), iService(NULL) |
|
43 { |
|
44 iService = Service(); |
|
45 assert( iService != NULL ); |
|
46 } |
|
47 |
|
48 CSGenericstub::~CSGenericstub() |
|
49 { |
|
50 if( iService != NULL ) |
|
51 { |
|
52 delete iService; |
|
53 iService = NULL; |
|
54 } |
|
55 } |
|
56 |
|
57 int CSGenericstub::GetKey() |
|
58 { |
|
59 return iKey; |
|
60 } |
|
61 |
|
62 void CSGenericstub::SetKey( int aKey ) |
|
63 { |
|
64 iKey = aKey; |
|
65 } |
|
66 |
|
67 |
|
68 /**************************************************************************************** |
|
69 * |
|
70 * PUBLIC FUNCTION: cstr_startprocess |
|
71 * |
|
72 ***************************************************************************************/ |
|
73 int CSGenericstub::cstr_startprocess(char * /*aArgs*/) |
|
74 { |
|
75 int rv; |
|
76 rv = ERR_NONE; |
|
77 return rv; |
|
78 } |
|
79 |
|
80 |
|
81 /**************************************************************************************** |
|
82 * |
|
83 * PUBLIC FUNCTION: dstr_removeprocess |
|
84 * |
|
85 ***************************************************************************************/ |
|
86 int CSGenericstub::dstr_removeprocess( int /*aArgs*/, int * /*aDeleteInstance*/) |
|
87 { |
|
88 int rv; |
|
89 rv = ERR_NONE; |
|
90 return rv; |
|
91 } |
|
92 |
|
93 |
|
94 /**************************************************************************************** |
|
95 * |
|
96 * PUBLIC FUNCTION: run_command |
|
97 * |
|
98 ***************************************************************************************/ |
|
99 int CSGenericstub::run_command( TCall aArgs ) |
|
100 { |
|
101 CCall call( aArgs ); |
|
102 if( iService != NULL ) |
|
103 return iService->RunCommand( call ); |
|
104 else |
|
105 return ERR_SERVICE_NOT_RUNNING; |
|
106 } |
|
107 |
|
108 /**************************************************************************************** |
|
109 * |
|
110 * PUBLIC FUNCTION: Setup |
|
111 * Delegate to the user derived service |
|
112 * |
|
113 ***************************************************************************************/ |
|
114 bool CSGenericstub::Setup() |
|
115 { |
|
116 bool ret = false; |
|
117 if( iService != NULL ) |
|
118 ret = iService->Setup(); |
|
119 return ret; |
|
120 } |