|
1 /* |
|
2 * Copyright (c) 2002-2004 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: Symbian OS Server source. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 // INCLUDE FILES |
|
21 #include "nsmlsosserver.h" |
|
22 |
|
23 |
|
24 // -------------------------------------------------------------------------- |
|
25 // CNSmlJob::CNSmlJob() |
|
26 // -------------------------------------------------------------------------- |
|
27 // |
|
28 CNSmlJob::CNSmlJob() : iSyncType((TSmlSyncType)-1) |
|
29 { |
|
30 iPackage = NULL; |
|
31 iUimode = KErrNotFound; |
|
32 iIapId = KErrNotFound; |
|
33 } |
|
34 |
|
35 // -------------------------------------------------------------------------- |
|
36 // CNSmlJob::~CNSmlJob() |
|
37 // -------------------------------------------------------------------------- |
|
38 // |
|
39 CNSmlJob::~CNSmlJob() |
|
40 { |
|
41 delete iCtInfo; |
|
42 delete iPackage; |
|
43 iTaskIds.Close(); |
|
44 } |
|
45 |
|
46 // -------------------------------------------------------------------------- |
|
47 // TInt CNSmlJob::JobId() const |
|
48 // -------------------------------------------------------------------------- |
|
49 // |
|
50 TInt CNSmlJob::JobId() const |
|
51 { |
|
52 return iJobId; |
|
53 } |
|
54 |
|
55 // -------------------------------------------------------------------------- |
|
56 // TInt CNSmlJob::ProfileId() const |
|
57 // -------------------------------------------------------------------------- |
|
58 // |
|
59 TInt CNSmlJob::ProfileId() const |
|
60 { |
|
61 return iProfId; |
|
62 } |
|
63 |
|
64 // -------------------------------------------------------------------------- |
|
65 // TInt CNSmlJob::CreatorId() const |
|
66 // -------------------------------------------------------------------------- |
|
67 // |
|
68 TInt CNSmlJob::CreatorId() const |
|
69 { |
|
70 return iCreatorId; |
|
71 } |
|
72 |
|
73 // -------------------------------------------------------------------------- |
|
74 // TInt CNSmlJob::TransportId() const |
|
75 // -------------------------------------------------------------------------- |
|
76 // |
|
77 TInt CNSmlJob::TransportId() const |
|
78 { |
|
79 return iTransportId; |
|
80 } |
|
81 |
|
82 // -------------------------------------------------------------------------- |
|
83 // void CNSmlJob::TaskIds( RArray<TInt>& aTasks ) const |
|
84 // -------------------------------------------------------------------------- |
|
85 // |
|
86 void CNSmlJob::TaskIds( RArray<TInt>& aTasks ) const |
|
87 { |
|
88 aTasks.Reset(); |
|
89 for ( TInt i = 0; i < iTaskIds.Count(); ++i ) |
|
90 { |
|
91 aTasks.Append( iTaskIds[i] ); |
|
92 } |
|
93 } |
|
94 |
|
95 // -------------------------------------------------------------------------- |
|
96 // TSmlUsageType CNSmlJob::UsageType() const |
|
97 // -------------------------------------------------------------------------- |
|
98 |
|
99 TSmlUsageType CNSmlJob::UsageType() const |
|
100 { |
|
101 return iUsageType; |
|
102 } |
|
103 |
|
104 // -------------------------------------------------------------------------- |
|
105 // TNSmlJobType CNSmlJob::JobType() const |
|
106 // -------------------------------------------------------------------------- |
|
107 // |
|
108 TNSmlJobType CNSmlJob::JobType() const |
|
109 { |
|
110 return iJobType; |
|
111 } |
|
112 |
|
113 // -------------------------------------------------------------------------- |
|
114 // TSmlSyncType CNSmlJob::SyncType() const |
|
115 // -------------------------------------------------------------------------- |
|
116 // |
|
117 TSmlSyncType CNSmlJob::SyncType() const |
|
118 { |
|
119 return iSyncType; |
|
120 } |
|
121 |
|
122 // -------------------------------------------------------------------------- |
|
123 // const CNSmlSOSSession* CNSmlJob::OwnerSession() const |
|
124 // -------------------------------------------------------------------------- |
|
125 // |
|
126 const CNSmlSOSSession* CNSmlJob::OwnerSession() const |
|
127 { |
|
128 return iSession; |
|
129 } |
|
130 |
|
131 // -------------------------------------------------------------------------- |
|
132 // CNSmlSOSSession* CNSmlJob::OwnerSessionNonConst() const |
|
133 // -------------------------------------------------------------------------- |
|
134 // |
|
135 CNSmlSOSSession* CNSmlJob::OwnerSessionNonConst() const |
|
136 { |
|
137 return iSession; |
|
138 } |
|
139 |
|
140 // -------------------------------------------------------------------------- |
|
141 // TBool CNSmlJob::JobRunning() const |
|
142 // -------------------------------------------------------------------------- |
|
143 // |
|
144 TBool CNSmlJob::JobRunning() const |
|
145 { |
|
146 return iRunning; |
|
147 } |
|
148 |
|
149 // -------------------------------------------------------------------------- |
|
150 // void CNSmlJob::SetJobId( const TInt aJobId ) |
|
151 // -------------------------------------------------------------------------- |
|
152 // |
|
153 void CNSmlJob::SetJobId( const TInt aJobId ) |
|
154 { |
|
155 iJobId = aJobId; |
|
156 } |
|
157 |
|
158 // -------------------------------------------------------------------------- |
|
159 // void CNSmlJob::SetProfId( const TInt aProfId ) |
|
160 // -------------------------------------------------------------------------- |
|
161 // |
|
162 void CNSmlJob::SetProfId( const TInt aProfId ) |
|
163 { |
|
164 iProfId = aProfId; |
|
165 } |
|
166 |
|
167 // -------------------------------------------------------------------------- |
|
168 // void CNSmlJob::SetCreatorId( const TInt aCreatorId ) |
|
169 // -------------------------------------------------------------------------- |
|
170 // |
|
171 void CNSmlJob::SetCreatorId( const TInt aCreatorId ) |
|
172 { |
|
173 iCreatorId = aCreatorId; |
|
174 } |
|
175 |
|
176 // -------------------------------------------------------------------------- |
|
177 // void CNSmlJob::SetUsageType( const TSmlUsageType aUsageType ) |
|
178 // -------------------------------------------------------------------------- |
|
179 // |
|
180 void CNSmlJob::SetUsageType( const TSmlUsageType aUsageType ) |
|
181 { |
|
182 iUsageType = aUsageType; |
|
183 } |
|
184 |
|
185 // -------------------------------------------------------------------------- |
|
186 // void CNSmlJob::SetJobType( const TNSmlJobType aJobType ) |
|
187 // -------------------------------------------------------------------------- |
|
188 // |
|
189 void CNSmlJob::SetJobType( const TNSmlJobType aJobType ) |
|
190 { |
|
191 iJobType = aJobType; |
|
192 } |
|
193 |
|
194 // -------------------------------------------------------------------------- |
|
195 // void CNSmlJob::SetSyncType( const TSmlSyncType aSyncType ) |
|
196 // -------------------------------------------------------------------------- |
|
197 // |
|
198 void CNSmlJob::SetSyncType( const TSmlSyncType aSyncType ) |
|
199 { |
|
200 iSyncType = aSyncType; |
|
201 } |
|
202 |
|
203 // -------------------------------------------------------------------------- |
|
204 // void CNSmlJob::SetTransportId( const TInt aTransportId ) |
|
205 // -------------------------------------------------------------------------- |
|
206 // |
|
207 void CNSmlJob::SetTransportId( const TInt aTransportId ) |
|
208 { |
|
209 iTransportId = aTransportId; |
|
210 } |
|
211 |
|
212 // -------------------------------------------------------------------------- |
|
213 // void CNSmlJob::AddTaskIdL( const TInt aTaskId ) |
|
214 // -------------------------------------------------------------------------- |
|
215 // |
|
216 void CNSmlJob::AddTaskIdL( const TInt aTaskId ) |
|
217 { |
|
218 iTaskIds.AppendL( aTaskId ); |
|
219 } |
|
220 |
|
221 // -------------------------------------------------------------------------- |
|
222 // void CNSmlJob::SetOwnerSession( CNSmlSOSSession* aSession ) |
|
223 // -------------------------------------------------------------------------- |
|
224 // |
|
225 void CNSmlJob::SetOwnerSession( CNSmlSOSSession* aSession ) |
|
226 { |
|
227 iSession = aSession; |
|
228 } |
|
229 |
|
230 // -------------------------------------------------------------------------- |
|
231 // void CNSmlJob::SetJobRunning( const TBool aRunning ) |
|
232 // -------------------------------------------------------------------------- |
|
233 // |
|
234 void CNSmlJob::SetJobRunning( const TBool aRunning ) |
|
235 { |
|
236 iRunning = aRunning; |
|
237 } |
|
238 |
|
239 // -------------------------------------------------------------------------- |
|
240 // void CNSmlJob::SetJobIapId( const TInt aIapId ) |
|
241 // -------------------------------------------------------------------------- |
|
242 // |
|
243 void CNSmlJob::SetJobIapId(const TInt aIapId) |
|
244 { |
|
245 iIapId = aIapId; |
|
246 } |
|
247 |
|
248 // -------------------------------------------------------------------------- |
|
249 // TInt CNSmlJob::GetJobIapId() |
|
250 // -------------------------------------------------------------------------- |
|
251 // |
|
252 TInt CNSmlJob::GetJobIapId() const |
|
253 { |
|
254 return iIapId; |
|
255 } |
|
256 |
|
257 // End of File |