author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Fri, 19 Feb 2010 23:43:21 +0200 | |
branch | RCL_3 |
changeset 32 | 4ac3198c2c5b |
parent 28 | 92cfb77afb61 |
child 44 | 0b68a1b0c15e |
permissions | -rw-r--r-- |
5 | 1 |
/* |
2 |
* Copyright (c) 2005-2006 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 the License "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: describes system information utilities. |
|
15 |
* |
|
16 |
*/ |
|
17 |
||
18 |
||
19 |
#ifndef __SYSINFO_H__ |
|
20 |
#define __SYSINFO_H__ |
|
21 |
||
23
50974a8b132e
Revision: 200945
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
10
diff
changeset
|
22 |
#include <badesca.h> |
5 | 23 |
#include <f32file.h> |
24 |
#include <AccPolGenericIDArray.h> |
|
25 |
#include <etelmm.h> |
|
26 |
||
27 |
class ISystemObserver; |
|
28 |
||
29 |
||
30 |
/** |
|
31 |
* @ref CSysData is base class which can be extend to implement variety of |
|
32 |
* system data representations. |
|
33 |
* |
|
34 |
* @lib sysinfoservice.lib |
|
35 |
* @since S60 3.2 |
|
36 |
*/ |
|
37 |
NONSHARABLE_CLASS(CSysData) : public CBase |
|
38 |
{ |
|
39 |
public: |
|
40 |
// Enumeration of supported i/o data types. |
|
41 |
enum TDataType |
|
42 |
{ |
|
43 |
EStatus, |
|
44 |
EVersion, |
|
45 |
EConnectionList, |
|
46 |
EConnectionInfo, |
|
47 |
ENetworkInfo, |
|
48 |
EDriveInfo, |
|
49 |
ELanguageList, |
|
50 |
EDriveList, |
|
51 |
EAccessoryList, |
|
52 |
EAccessoryInfo, |
|
53 |
EResolution, |
|
54 |
EStringList, |
|
55 |
EStringData, |
|
28
92cfb77afb61
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
23
diff
changeset
|
56 |
ECameraInfo, |
92cfb77afb61
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
23
diff
changeset
|
57 |
EVideoDecList |
5 | 58 |
}; |
59 |
public: |
|
60 |
/** |
|
61 |
* virtual Destructor. |
|
62 |
*/ |
|
63 |
virtual ~CSysData (); |
|
64 |
||
65 |
/** |
|
66 |
* @return type of data stored. |
|
67 |
*/ |
|
68 |
IMPORT_C TDataType DataType() const; |
|
69 |
||
70 |
protected: |
|
71 |
||
72 |
/** |
|
73 |
* C++ default constructor. |
|
74 |
*/ |
|
75 |
CSysData(TDataType aType); |
|
76 |
private: |
|
77 |
||
78 |
/** |
|
79 |
* Data type |
|
80 |
*/ |
|
81 |
TDataType iDataType; |
|
82 |
}; |
|
83 |
||
84 |
/** |
|
85 |
* @ref CStatus is an integer data used in general for representing status |
|
86 |
* information of some System Attributes. Typically ON,OFF state, battery |
|
87 |
* level and so on. |
|
88 |
* |
|
89 |
* @lib sysinfoservice.lib |
|
90 |
* @since S60 3.2 |
|
91 |
*/ |
|
92 |
NONSHARABLE_CLASS(CStatus) : public CSysData |
|
93 |
{ |
|
94 |
public: |
|
95 |
||
96 |
/** |
|
97 |
* Two-phased constructor. |
|
98 |
* |
|
99 |
* @return A new instance of this class. |
|
100 |
*/ |
|
101 |
IMPORT_C static CStatus* NewL(TInt aStatus); |
|
102 |
||
103 |
/** |
|
104 |
* @return status information |
|
105 |
*/ |
|
106 |
IMPORT_C TInt Status() const; |
|
107 |
||
108 |
/** |
|
109 |
* Destructor. |
|
110 |
*/ |
|
111 |
~CStatus(); |
|
112 |
||
113 |
private: |
|
114 |
||
115 |
/** |
|
116 |
* C++ default constructor. |
|
117 |
*/ |
|
118 |
CStatus(TInt aStatus); |
|
119 |
||
120 |
private: |
|
121 |
/** |
|
122 |
* Status value. |
|
123 |
*/ |
|
124 |
TInt iStatus; |
|
125 |
}; |
|
126 |
||
127 |
/** |
|
128 |
* @ref CResolution screen resolution of device specified in X,Y Pixels. |
|
129 |
* |
|
130 |
* @lib sysinfoservice.lib |
|
131 |
* @since S60 3.2 |
|
132 |
*/ |
|
133 |
NONSHARABLE_CLASS(CResolution) : public CSysData |
|
134 |
{ |
|
135 |
public: |
|
136 |
||
137 |
/** |
|
138 |
* Two-phased constructor. |
|
139 |
* |
|
140 |
* @return A new instance of this class. |
|
141 |
*/ |
|
142 |
static CResolution* NewL(TInt aXPixels, TInt aYPixels); |
|
143 |
||
144 |
/** |
|
145 |
* @return X-Pixels. |
|
146 |
*/ |
|
147 |
IMPORT_C TInt XPixels() const; |
|
148 |
||
149 |
/** |
|
150 |
* @return Y-Pixels. |
|
151 |
*/ |
|
152 |
IMPORT_C TInt YPixels() const; |
|
153 |
||
154 |
/** |
|
155 |
* Destructor. |
|
156 |
*/ |
|
157 |
~CResolution(); |
|
158 |
||
159 |
private: |
|
160 |
/** |
|
161 |
* C++ default constructor. |
|
162 |
*/ |
|
163 |
CResolution (TInt aXPixels, TInt aYPixels); |
|
164 |
||
165 |
private: |
|
166 |
/** |
|
167 |
* X-Pixels. |
|
168 |
*/ |
|
169 |
TInt iXPixels; |
|
170 |
/** |
|
171 |
* Y-Pixels. |
|
172 |
*/ |
|
173 |
TInt iYPixels; |
|
174 |
}; |
|
175 |
||
176 |
/** |
|
177 |
* @ref CAccessoryInfo provides accessory information i.e ACCESSORY TYPE |
|
178 |
* @ref TAccessoryType and its connection status @ref TAccessoryState. |
|
179 |
* |
|
180 |
* @lib sysinfoservice.lib |
|
181 |
* @since S60 3.2 |
|
182 |
*/ |
|
183 |
NONSHARABLE_CLASS(CAccessoryInfo):public CSysData |
|
184 |
{ |
|
185 |
public: |
|
186 |
||
187 |
typedef enum{ |
|
188 |
/** Unknown. */ |
|
189 |
EUnknown=-1, |
|
190 |
/** Headset */ |
|
191 |
EHeadSet, |
|
192 |
/** Bluetooth headset */ |
|
193 |
EBTHeadSet, |
|
194 |
/** Carkit */ |
|
195 |
ECarKit, |
|
196 |
/** Bluetooth carkit */ |
|
197 |
EBTCarKit |
|
198 |
}TAccessoryType; |
|
199 |
||
200 |
typedef enum{ |
|
201 |
/** Accessory connected */ |
|
202 |
EDisconnected, |
|
203 |
/** Accessory disconnected */ |
|
204 |
EConnected |
|
205 |
}TAccessoryState; |
|
206 |
||
207 |
public: |
|
208 |
||
209 |
/** |
|
210 |
* Two-phased constructor. |
|
211 |
* |
|
212 |
* @return A new instance of this class. |
|
213 |
*/ |
|
214 |
static CAccessoryInfo* NewL(const TAccPolGenericID& aGenericID, |
|
215 |
TAccessoryState aAccState); |
|
216 |
||
217 |
/** |
|
218 |
* Destructor. |
|
219 |
*/ |
|
220 |
~CAccessoryInfo(); |
|
221 |
||
222 |
public: |
|
223 |
/** |
|
224 |
* @return ACCESSORY TYPE |
|
225 |
*/ |
|
226 |
IMPORT_C TInt AccessoryType() const; |
|
227 |
/** |
|
228 |
* @return Connection state. |
|
229 |
*/ |
|
230 |
IMPORT_C TInt ConnectionState() const; |
|
231 |
||
232 |
private: |
|
233 |
/** |
|
234 |
* C++ default constructor. |
|
235 |
*/ |
|
236 |
CAccessoryInfo(TAccessoryState aAccState); |
|
237 |
/** |
|
238 |
* Deduce accessory type from aGenericID. |
|
239 |
*/ |
|
240 |
void GetAccessoryProperty( const TAccPolGenericID& aGenericID ); |
|
241 |
||
242 |
private: |
|
243 |
/** |
|
244 |
* Accessory type |
|
245 |
*/ |
|
246 |
TInt iAccessoryType; |
|
247 |
/** |
|
248 |
* Connection State. |
|
249 |
*/ |
|
250 |
TInt iConnectionState; |
|
251 |
}; |
|
252 |
||
253 |
/** |
|
254 |
* @ref CAccList provides access to read list of accessories. |
|
255 |
* |
|
256 |
* @lib sysinfoservice.lib |
|
257 |
* @since S60 3.2 |
|
258 |
*/ |
|
259 |
NONSHARABLE_CLASS(CAccList): public CSysData |
|
260 |
{ |
|
261 |
public: |
|
262 |
/** |
|
263 |
* Two-phased constructor. |
|
264 |
* |
|
265 |
* @return A new instance of this class. |
|
266 |
*/ |
|
267 |
static CAccList* NewL(); |
|
268 |
||
269 |
/** |
|
270 |
* @return @ref CAccessoryInfo client owns created instance. |
|
271 |
*/ |
|
272 |
IMPORT_C const CAccessoryInfo* operator[](TInt aIndex) const; |
|
273 |
||
274 |
/** |
|
275 |
* On return aAccInfo has new CAccessoryInfo instance ownership given to |
|
276 |
* client. |
|
277 |
*/ |
|
278 |
IMPORT_C TBool AtL(TInt aIndex,const CAccessoryInfo*& aAccInfo) const; |
|
279 |
||
280 |
/** |
|
281 |
* @return number of accessories in the list. |
|
282 |
*/ |
|
283 |
IMPORT_C TInt Count () const; |
|
284 |
||
285 |
/** |
|
286 |
* Destructor. |
|
287 |
*/ |
|
288 |
~CAccList(); |
|
289 |
private: |
|
290 |
||
291 |
/** |
|
292 |
* C++ default constructor. |
|
293 |
*/ |
|
294 |
CAccList(); |
|
295 |
/** |
|
296 |
* Symbian 2nd phase constructor. |
|
297 |
*/ |
|
298 |
void ConstructL(); |
|
299 |
||
300 |
private: |
|
301 |
/** |
|
302 |
* Accessory ID Array. |
|
303 |
*/ |
|
304 |
TAccPolGenericIDArray iAccessories; |
|
305 |
||
306 |
/** |
|
307 |
* number of accessories. |
|
308 |
*/ |
|
309 |
TInt iCount; |
|
310 |
}; |
|
311 |
||
312 |
/** |
|
313 |
* @ref CStringData string data represented using this class. |
|
314 |
* |
|
315 |
* @lib sysinfoservice.lib |
|
316 |
* @since S60 3.2 |
|
317 |
*/ |
|
318 |
NONSHARABLE_CLASS(CStringData): public CSysData |
|
319 |
{ |
|
320 |
public: |
|
321 |
/** |
|
322 |
* Two-phased constructor. |
|
323 |
* |
|
324 |
* @return A new instance of this class. |
|
325 |
*/ |
|
326 |
IMPORT_C static CStringData* NewL(const TDesC& aString); |
|
327 |
||
328 |
/** |
|
329 |
* On return aString contains string data. |
|
330 |
*/ |
|
331 |
IMPORT_C void StringData(TPtrC& aString) const; |
|
332 |
||
333 |
/** |
|
334 |
* Destructor. |
|
335 |
*/ |
|
336 |
~CStringData(); |
|
337 |
||
338 |
private: |
|
339 |
/** |
|
340 |
* C++ default constructor. |
|
341 |
*/ |
|
342 |
CStringData(); |
|
343 |
||
344 |
private: |
|
345 |
/** |
|
346 |
* String data. |
|
347 |
*/ |
|
348 |
HBufC* iStringData; |
|
349 |
}; |
|
350 |
||
351 |
/** |
|
352 |
* @ref CVersion Major and Minor version information. |
|
353 |
* |
|
354 |
* @lib sysinfoservice.lib |
|
355 |
* @since S60 3.2 |
|
356 |
*/ |
|
357 |
NONSHARABLE_CLASS(CVersion): public CSysData |
|
358 |
{ |
|
359 |
public: |
|
360 |
/** |
|
361 |
* Two-phased constructor. |
|
362 |
* |
|
363 |
* @return A new instance of this class. |
|
364 |
*/ |
|
365 |
static CVersion* NewL(TInt aMajor,TInt aMinor); |
|
366 |
||
367 |
/** |
|
368 |
* @return Manjor Version number. |
|
369 |
*/ |
|
370 |
IMPORT_C TInt MajorVersion() const; |
|
371 |
||
372 |
/** |
|
373 |
* @return Minor Version number. |
|
374 |
*/ |
|
375 |
IMPORT_C TInt MinorVersion() const; |
|
376 |
/** |
|
377 |
* Destructor. |
|
378 |
*/ |
|
379 |
~CVersion(); |
|
380 |
||
381 |
private: |
|
382 |
||
383 |
/** |
|
384 |
* C++ default constructor. |
|
385 |
*/ |
|
386 |
CVersion(TInt aMajor,TInt aMinor); |
|
387 |
||
388 |
private: |
|
389 |
/** |
|
390 |
* Major Version. |
|
391 |
*/ |
|
392 |
TInt iMajorVersion; |
|
393 |
/** |
|
394 |
* Minor Version. |
|
395 |
*/ |
|
396 |
TInt iMinorVersion; |
|
397 |
}; |
|
398 |
||
399 |
/** |
|
400 |
* @ref CConnectionInfo provides access to read connection information i.e Connection type, |
|
401 |
* Access point ID, Network name and Access point name. |
|
402 |
* |
|
403 |
* @lib sysinfoservice.lib |
|
404 |
* @since S60 3.2 |
|
405 |
*/ |
|
406 |
NONSHARABLE_CLASS(CConnectionInfo) : public CSysData |
|
407 |
{ |
|
408 |
public: |
|
409 |
typedef enum{ |
|
410 |
/** disconnected */ |
|
411 |
EDisconnected, |
|
412 |
/** connected */ |
|
413 |
EConnected |
|
414 |
}TConnectionState; |
|
415 |
||
416 |
/** |
|
417 |
* Two-phased constructor. |
|
418 |
* |
|
419 |
* @return A new instance of this class. |
|
420 |
*/ |
|
421 |
IMPORT_C static CConnectionInfo* NewL(TUint aConnId, TUint aIAPId, |
|
422 |
TInt aBearerType, |
|
423 |
TConnectionState aConnectStatus, |
|
424 |
const TDesC& aIAPName, |
|
425 |
const TDesC& aNetworkName, |
|
426 |
const TDesC& aConnectionName); |
|
427 |
||
428 |
/** |
|
429 |
* Destructor. |
|
430 |
*/ |
|
431 |
~CConnectionInfo(); |
|
432 |
||
433 |
/** |
|
434 |
* @return A new instance of this class object. |
|
435 |
*/ |
|
436 |
CConnectionInfo* CopyL(); |
|
437 |
||
438 |
public: |
|
439 |
TUint ConnectionId() const; |
|
440 |
||
441 |
IMPORT_C TUint IAPId() const; |
|
442 |
||
443 |
IMPORT_C TInt BearerType()const; |
|
444 |
||
445 |
IMPORT_C TPtrC IAPName() const; |
|
446 |
||
447 |
IMPORT_C TPtrC NetworkName() const; |
|
448 |
||
449 |
IMPORT_C TPtrC ConnectionName() const; |
|
450 |
||
451 |
IMPORT_C TConnectionState ConnectionState() const; |
|
452 |
||
453 |
void SetConnectionState(CConnectionInfo::TConnectionState aState); |
|
454 |
||
455 |
private: |
|
456 |
/** |
|
457 |
* C++ default constructor. |
|
458 |
*/ |
|
459 |
CConnectionInfo (); |
|
460 |
||
461 |
/** |
|
462 |
* Symbian 2nd phase constructor. |
|
463 |
*/ |
|
464 |
void ConstructL(TUint aConnId, TUint aIAPId, |
|
465 |
TInt aBearerType, |
|
466 |
TConnectionState aConnectStatus, |
|
467 |
const TDesC& aIAPName, |
|
468 |
const TDesC& aNetworkName, |
|
469 |
const TDesC& aConnectionName); |
|
470 |
private: |
|
471 |
||
472 |
TUint iConnectionId; |
|
473 |
||
474 |
TConnectionState iConnectStatus; |
|
475 |
||
476 |
TUint iIAPId; |
|
477 |
||
478 |
TInt iBearerType; |
|
479 |
||
480 |
HBufC* iIAPName; |
|
481 |
||
482 |
HBufC* iNetworkName; |
|
483 |
||
484 |
HBufC* iConnectionName; |
|
485 |
}; |
|
486 |
||
487 |
/** |
|
488 |
* @ref CConnectionList this class lists connections. provides access to |
|
489 |
* each connection information. |
|
490 |
* |
|
491 |
* @lib sysinfoservice.lib |
|
492 |
* @since S60 3.2 |
|
493 |
*/ |
|
494 |
NONSHARABLE_CLASS(CConnectionList) : public CSysData |
|
495 |
{ |
|
496 |
public: |
|
497 |
/** |
|
498 |
* Two-phased constructor. |
|
499 |
* |
|
500 |
* @return A new instance of this class. |
|
501 |
*/ |
|
502 |
static CConnectionList* NewL( |
|
503 |
RPointerArray<CConnectionInfo>& aConnectionInfoArr); |
|
504 |
/** |
|
505 |
* Two-phased constructor. |
|
506 |
* |
|
507 |
* @return A new instance of this class. |
|
508 |
*/ |
|
509 |
static CConnectionList* NewLC( |
|
510 |
RPointerArray<CConnectionInfo>& aConnectionInfoArr); |
|
511 |
/** |
|
512 |
* On return aConnectionInfo contains connection information. aConnectionInfo |
|
513 |
* ownership not given to user. |
|
514 |
*/ |
|
515 |
IMPORT_C TBool At(TInt aIndex,const CConnectionInfo*& aConnectionInfo) const; |
|
516 |
||
517 |
/** |
|
518 |
* @return ConnectionInfo at index. |
|
519 |
*/ |
|
520 |
IMPORT_C const CConnectionInfo* operator[](TInt aIndex) const; |
|
521 |
/** |
|
522 |
* @return number of connections. |
|
523 |
*/ |
|
524 |
IMPORT_C TInt Count() const; |
|
525 |
||
526 |
/** |
|
527 |
* Destructor. |
|
528 |
*/ |
|
529 |
~CConnectionList(); |
|
530 |
||
531 |
private: |
|
532 |
/** |
|
533 |
* C++ default constructor. |
|
534 |
*/ |
|
535 |
CConnectionList(); |
|
536 |
/** |
|
537 |
* Symbian 2nd phase constructor. |
|
538 |
*/ |
|
539 |
void ConstructL(RPointerArray<CConnectionInfo>& aConnectionInfoArr); |
|
540 |
||
541 |
private: |
|
542 |
// Pointer Array to hold list of connections. |
|
543 |
RPointerArray<CConnectionInfo> iConnectionInfoArray; |
|
544 |
// Number of Connections. |
|
545 |
TInt iCount; |
|
546 |
}; |
|
547 |
||
548 |
/** |
|
549 |
* @ref CNetworkInfo client interface to read network details ie, Network name, |
|
550 |
* network type, status, MCC (Mobile Country Code), MNC (Mobile Network Code), |
|
551 |
* LAC (Location Area Code) and CellID. |
|
552 |
* |
|
553 |
* @lib sysinfoservice.lib |
|
554 |
* @since S60 3.2 |
|
555 |
*/ |
|
556 |
NONSHARABLE_CLASS(CNetworkInfo): public CSysData |
|
557 |
{ |
|
558 |
public: |
|
559 |
||
560 |
/** |
|
561 |
* Two-phased constructor. |
|
562 |
* |
|
563 |
* @return A new instance of this class. |
|
564 |
*/ |
|
565 |
static CNetworkInfo* NewL(RMobilePhone::TMobilePhoneNetworkInfoV1& aNetworkInfo, |
|
566 |
RMobilePhone::TMobilePhoneLocationAreaV1& aArea); |
|
567 |
||
568 |
/** |
|
569 |
* Destructor. |
|
570 |
*/ |
|
571 |
~CNetworkInfo(); |
|
572 |
||
573 |
public: |
|
574 |
/** |
|
575 |
* @return Network name. |
|
576 |
*/ |
|
577 |
IMPORT_C TPtrC NetworkName() const; |
|
578 |
/** |
|
579 |
* @return Network Mode. |
|
580 |
*/ |
|
581 |
IMPORT_C TInt NetworkMode()const; |
|
582 |
/** |
|
583 |
* @return Network Status. |
|
584 |
*/ |
|
585 |
IMPORT_C TInt NetworkStatus() const; |
|
586 |
/** |
|
587 |
* @return MCC Mobile Country Code. |
|
588 |
*/ |
|
589 |
IMPORT_C TPtrC CountryCode() const; |
|
590 |
/** |
|
591 |
* @return MNC Mobile Network Code. |
|
592 |
*/ |
|
593 |
IMPORT_C TPtrC NetworkCode() const; |
|
594 |
/** |
|
595 |
* @return LAC Location Area Code. |
|
596 |
*/ |
|
597 |
IMPORT_C TUint LocationAreaCode() const; |
|
598 |
/** |
|
599 |
* @return CellID |
|
600 |
*/ |
|
601 |
IMPORT_C TUint CellId() const; |
|
602 |
/** |
|
603 |
* @return Identifier for validating LAC & CellID |
|
604 |
*/ |
|
605 |
IMPORT_C TBool ValidLocationAreaCode() const; |
|
606 |
||
607 |
private: |
|
608 |
/** |
|
609 |
* C++ default constructor. |
|
610 |
*/ |
|
611 |
CNetworkInfo(RMobilePhone::TMobilePhoneNetworkInfoV1& aNetworkInfo, |
|
612 |
RMobilePhone::TMobilePhoneLocationAreaV1& aArea); |
|
613 |
private: |
|
614 |
//Network Information |
|
615 |
RMobilePhone::TMobilePhoneNetworkInfoV1 iNetworkInfo; |
|
616 |
//Location information. |
|
617 |
RMobilePhone::TMobilePhoneLocationAreaV1 iLAC; |
|
618 |
}; |
|
619 |
||
620 |
/** |
|
621 |
* @ref CLanguageList language list class |
|
622 |
* |
|
623 |
* @lib sysinfoservice.lib |
|
624 |
* @since S60 3.2 |
|
625 |
*/ |
|
626 |
NONSHARABLE_CLASS(CLanguageList): public CSysData |
|
627 |
{ |
|
628 |
public: |
|
629 |
/** |
|
630 |
* Two-phased constructor. |
|
631 |
* |
|
632 |
* @return A new instance of this class. |
|
633 |
*/ |
|
634 |
static CLanguageList* NewL(); |
|
635 |
/** |
|
636 |
* @return Language Code. |
|
637 |
*/ |
|
638 |
IMPORT_C TInt operator[](TInt aIndex) const; |
|
639 |
/** |
|
640 |
* On return aEntry contains Language Code. |
|
641 |
*/ |
|
642 |
IMPORT_C TBool At(TInt aIndex, TInt& aEntry) const; |
|
643 |
/** |
|
644 |
* @return language count. |
|
645 |
*/ |
|
646 |
IMPORT_C TInt Count() const; |
|
647 |
||
648 |
/** |
|
649 |
* Destructor. |
|
650 |
*/ |
|
651 |
~CLanguageList(); |
|
652 |
||
653 |
private: |
|
654 |
/** |
|
655 |
* C++ default constructor. |
|
656 |
*/ |
|
657 |
CLanguageList(); |
|
658 |
/** |
|
659 |
* Symbian 2nd phase constructor. |
|
660 |
*/ |
|
661 |
void ConstructL(); |
|
662 |
||
663 |
private: |
|
664 |
/** |
|
665 |
* array consists of language codes. |
|
666 |
*/ |
|
667 |
RArray<TInt> iLanguages; |
|
668 |
}; |
|
669 |
||
670 |
/** |
|
671 |
* @ref CDriveList drive list. |
|
672 |
* |
|
673 |
* @lib sysinfoservice.lib |
|
674 |
* @since S60 3.2 |
|
675 |
*/ |
|
676 |
NONSHARABLE_CLASS(CDriveList): public CSysData |
|
677 |
{ |
|
678 |
public: |
|
679 |
/** |
|
680 |
* Two-phased constructor. |
|
681 |
* |
|
682 |
* @return A new instance of this class. |
|
683 |
*/ |
|
684 |
static CDriveList* NewL(TDriveList& aDrives); |
|
685 |
/** |
|
686 |
* @return drive number. |
|
687 |
*/ |
|
688 |
IMPORT_C TInt operator[](TInt aIndex) const; |
|
689 |
/** |
|
690 |
* On return aEntry contains drive number. |
|
691 |
*/ |
|
692 |
IMPORT_C TBool At(TInt aIndex, TInt& aEntry) const; |
|
693 |
/** |
|
694 |
* @return number of drives. |
|
695 |
*/ |
|
696 |
IMPORT_C TInt Count() const; |
|
697 |
||
698 |
/** |
|
699 |
* Destructor. |
|
700 |
*/ |
|
701 |
~CDriveList(); |
|
702 |
||
703 |
private: |
|
704 |
/** |
|
705 |
* C++ default constructor. |
|
706 |
*/ |
|
707 |
CDriveList(); |
|
708 |
/** |
|
709 |
* Symbian 2nd phase constructor. |
|
710 |
*/ |
|
711 |
void ConstructL(TDriveList& aDrives); |
|
712 |
||
713 |
private: |
|
714 |
RArray<TInt> iDrives; |
|
715 |
TInt iCount; |
|
716 |
}; |
|
717 |
||
718 |
/** |
|
719 |
* @ref CDriveInfo details drive information ie, Drive name, Total space, |
|
720 |
* Free space, Media type, critical free space and battery status. |
|
721 |
* |
|
722 |
* @lib sysinfoservice.lib |
|
723 |
* @since S60 3.2 |
|
724 |
*/ |
|
725 |
NONSHARABLE_CLASS(CDriveInfo): public CSysData |
|
726 |
{ |
|
727 |
public: |
|
728 |
/** |
|
729 |
* Two-phased constructor. |
|
730 |
* |
|
731 |
* @return A new instance of this class. |
|
732 |
*/ |
|
733 |
IMPORT_C static CDriveInfo* NewL(TInt aDriveNumber, TInt aCriticalSpace=-1); |
|
734 |
||
735 |
/** |
|
736 |
* Two-phased constructor. |
|
737 |
* |
|
738 |
* @return A new instance of this class. |
|
739 |
*/ |
|
740 |
static CDriveInfo* NewL(TInt aDriveNumber, TVolumeInfo& aVolumeInfo); |
|
741 |
||
742 |
/** |
|
743 |
* Destructor. |
|
744 |
*/ |
|
745 |
~CDriveInfo(); |
|
746 |
public: |
|
747 |
IMPORT_C TInt DriveNumber() const; |
|
748 |
IMPORT_C TInt CriticalSpace() const; |
|
749 |
IMPORT_C TInt MediaType() const; |
|
750 |
IMPORT_C TInt64 TotalSpace() const; |
|
751 |
IMPORT_C TInt64 FreeSpace() const; |
|
752 |
IMPORT_C void DriveName(TPtrC& aDriveName) const; |
|
753 |
IMPORT_C TInt BatteryState() const; |
|
754 |
||
755 |
private: |
|
756 |
/** |
|
757 |
* C++ default constructor. |
|
758 |
*/ |
|
759 |
CDriveInfo(TInt aDrvNumber,TInt aCriticalSpace); |
|
760 |
/** |
|
761 |
* C++ default constructor. |
|
762 |
*/ |
|
763 |
CDriveInfo(TInt aDrvNumber,TVolumeInfo& aVolumeInfo); |
|
764 |
/** |
|
765 |
* Symbian 2nd phase constructor. |
|
766 |
*/ |
|
767 |
void ConstructL(); |
|
768 |
||
769 |
private: |
|
770 |
TInt iDrvNumber; |
|
771 |
TVolumeInfo iVolumeInfo; |
|
772 |
TInt iVolumeInfoValid; |
|
773 |
TInt iCriticalSpace; |
|
774 |
}; |
|
775 |
||
776 |
/** |
|
777 |
* @ref CStringList list of strings |
|
778 |
* |
|
779 |
* @lib sysinfoservice.lib |
|
780 |
* @since S60 3.2 |
|
781 |
*/ |
|
782 |
NONSHARABLE_CLASS(CStringList): public CSysData |
|
783 |
{ |
|
784 |
public: |
|
785 |
/** |
|
786 |
* Two-phased constructor. |
|
787 |
* |
|
788 |
* @return A new instance of this class. |
|
789 |
*/ |
|
790 |
static CStringList* NewL(CDesCArray*& aDesArray); |
|
791 |
/** |
|
792 |
* @return string data. |
|
793 |
*/ |
|
794 |
IMPORT_C TPtrC operator[](TInt aIndex) const; |
|
795 |
/** |
|
796 |
* @On return aEntry consists of string data. |
|
797 |
*/ |
|
798 |
IMPORT_C TBool At(TInt aIndex, TPtrC& aEntry) const; |
|
799 |
/** |
|
800 |
* @return number of strings. |
|
801 |
*/ |
|
802 |
IMPORT_C TInt Count() const; |
|
803 |
/** |
|
804 |
* Destructor. |
|
805 |
*/ |
|
806 |
~CStringList(); |
|
807 |
||
808 |
private: |
|
809 |
/** |
|
810 |
* C++ default constructor. |
|
811 |
*/ |
|
812 |
CStringList(CDesCArray*& aDesArray); |
|
813 |
private: |
|
814 |
CDesCArray* iDesArray; |
|
815 |
TInt iCount; |
|
816 |
}; |
|
817 |
||
818 |
||
10
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
819 |
/** |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
820 |
* @ref CCameraResolutionList this class lists different |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
821 |
* resolutions supported |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
822 |
* |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
823 |
* @lib sysinfoservice.lib |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
824 |
* @since S60 3.2 |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
825 |
*/ |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
826 |
NONSHARABLE_CLASS(CCameraResolutionList) : public CSysData |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
827 |
{ |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
828 |
public: |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
829 |
/** |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
830 |
* Two-phased constructor. |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
831 |
* |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
832 |
* @return A new instance of this class. |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
833 |
*/ |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
834 |
static CCameraResolutionList* NewL( RPointerArray<CResolution>& aCamResArray ); |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
835 |
/** |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
836 |
* Two-phased constructor. |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
837 |
* |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
838 |
* @return A new instance of this class. |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
839 |
*/ |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
840 |
static CCameraResolutionList* NewLC( RPointerArray<CResolution>& aCamResArray ); |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
841 |
|
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
842 |
/** |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
843 |
* On return val contains supported resolution XPixel or YPixel |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
844 |
* depending upon whether flag is 0 or 1. |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
845 |
*/ |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
846 |
IMPORT_C TBool At( TInt aIndex, TInt flag, TInt& val ) const; |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
847 |
|
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
848 |
/** |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
849 |
* @return resolution at index. |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
850 |
*/ |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
851 |
IMPORT_C const CResolution* operator[]( TInt aIndex ) const; |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
852 |
/** |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
853 |
* @return number of supported resolutions. |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
854 |
*/ |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
855 |
IMPORT_C TInt Count() const; |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
856 |
|
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
857 |
/** |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
858 |
* Destructor. |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
859 |
*/ |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
860 |
~CCameraResolutionList(); |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
861 |
|
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
862 |
private: |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
863 |
/** |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
864 |
* C++ default constructor. |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
865 |
*/ |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
866 |
CCameraResolutionList(); |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
867 |
/** |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
868 |
* Symbian 2nd phase constructor. |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
869 |
*/ |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
870 |
void ConstructL( RPointerArray<CResolution>& aCamResArray ); |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
871 |
|
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
872 |
private: |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
873 |
RPointerArray<CResolution> iresArray; |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
874 |
TInt iCount; |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
875 |
}; |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
876 |
|
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
877 |
/** |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
878 |
* @ref CCameraInfo details about Resolutions Supported and |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
879 |
* MimeTypes supported by a device |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
880 |
* @lib sysinfoservice.lib |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
881 |
* @since S60 3.2 |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
882 |
*/ |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
883 |
NONSHARABLE_CLASS(CCameraInfo) : public CSysData |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
884 |
{ |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
885 |
public: |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
886 |
/** |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
887 |
* Two-phased constructor. |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
888 |
* @return A new instance of this class. |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
889 |
*/ |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
890 |
static CCameraInfo* NewL( CCameraResolutionList* aCamResList, CStringList* aMimeTypesList ); |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
891 |
/** |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
892 |
* Two-phased constructor. |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
893 |
* @return A new instance of this class. |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
894 |
*/ |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
895 |
static CCameraInfo* NewLC( CCameraResolutionList* aCamResList, CStringList* aMimeTypes ); |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
896 |
|
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
897 |
/** |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
898 |
* On return List of supported Resolutions |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
899 |
*/ |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
900 |
IMPORT_C CCameraResolutionList* ResolutionList() const; |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
901 |
|
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
902 |
/** |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
903 |
* On return List of supported MimeTypes |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
904 |
*/ |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
905 |
IMPORT_C CStringList* MimeTypesList() const; |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
906 |
|
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
907 |
/** |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
908 |
* Destructor. |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
909 |
*/ |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
910 |
~CCameraInfo(); |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
911 |
|
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
912 |
private: |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
913 |
/** |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
914 |
* C++ default constructor. |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
915 |
*/ |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
916 |
CCameraInfo(); |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
917 |
/** |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
918 |
* Symbian 2nd phase constructor. |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
919 |
*/ |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
920 |
void ConstructL( CCameraResolutionList* aCamResList, CStringList* aMimeTypes ); |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
921 |
|
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
922 |
private: |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
923 |
CCameraResolutionList* iResList; |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
924 |
CStringList* iMimeTypesList; |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
925 |
}; |
28
92cfb77afb61
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
23
diff
changeset
|
926 |
/** |
92cfb77afb61
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
23
diff
changeset
|
927 |
* @ref CVideoDecDataList |
92cfb77afb61
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
23
diff
changeset
|
928 |
* |
92cfb77afb61
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
23
diff
changeset
|
929 |
* @lib sysinfoservice.lib |
92cfb77afb61
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
23
diff
changeset
|
930 |
* @since S60 3.2 |
92cfb77afb61
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
23
diff
changeset
|
931 |
*/ |
92cfb77afb61
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
23
diff
changeset
|
932 |
NONSHARABLE_CLASS(CVideoDecDataList) : public CSysData |
92cfb77afb61
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
23
diff
changeset
|
933 |
{ |
92cfb77afb61
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
23
diff
changeset
|
934 |
public: |
92cfb77afb61
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
23
diff
changeset
|
935 |
struct CVideoDecData |
92cfb77afb61
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
23
diff
changeset
|
936 |
{ |
92cfb77afb61
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
23
diff
changeset
|
937 |
CVideoDecData(const TDesC &iManufacturer,const TDesC &iIdentifier,TInt iMaxBitrate,TBool iAccelerated,const TDesC &iVersion) |
92cfb77afb61
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
23
diff
changeset
|
938 |
:MaxBitrate(iMaxBitrate),Accelerated(iAccelerated) |
92cfb77afb61
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
23
diff
changeset
|
939 |
{ |
92cfb77afb61
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
23
diff
changeset
|
940 |
Manufacturer = iManufacturer.AllocL(); |
92cfb77afb61
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
23
diff
changeset
|
941 |
Identifier = iIdentifier.AllocL(); |
92cfb77afb61
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
23
diff
changeset
|
942 |
Version=iVersion.AllocL(); |
92cfb77afb61
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
23
diff
changeset
|
943 |
} |
92cfb77afb61
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
23
diff
changeset
|
944 |
|
92cfb77afb61
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
23
diff
changeset
|
945 |
TInt MaxBitrate; |
92cfb77afb61
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
23
diff
changeset
|
946 |
TBool Accelerated; |
92cfb77afb61
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
23
diff
changeset
|
947 |
HBufC* Manufacturer; |
92cfb77afb61
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
23
diff
changeset
|
948 |
HBufC* Identifier; |
92cfb77afb61
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
23
diff
changeset
|
949 |
HBufC* Version; |
92cfb77afb61
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
23
diff
changeset
|
950 |
}; |
92cfb77afb61
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
23
diff
changeset
|
951 |
public: |
92cfb77afb61
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
23
diff
changeset
|
952 |
/** |
92cfb77afb61
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
23
diff
changeset
|
953 |
* Two-phased constructor. |
92cfb77afb61
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
23
diff
changeset
|
954 |
* |
92cfb77afb61
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
23
diff
changeset
|
955 |
* @return A new instance of this class. |
92cfb77afb61
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
23
diff
changeset
|
956 |
*/ |
92cfb77afb61
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
23
diff
changeset
|
957 |
static CVideoDecDataList* NewL(); |
92cfb77afb61
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
23
diff
changeset
|
958 |
/** |
92cfb77afb61
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
23
diff
changeset
|
959 |
* @return drive number. |
92cfb77afb61
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
23
diff
changeset
|
960 |
*/ |
92cfb77afb61
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
23
diff
changeset
|
961 |
void AppendL(CVideoDecData *entry); |
92cfb77afb61
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
23
diff
changeset
|
962 |
IMPORT_C CVideoDecData *operator[](TInt aIndex) const; |
92cfb77afb61
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
23
diff
changeset
|
963 |
/** |
92cfb77afb61
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
23
diff
changeset
|
964 |
* @return number of drives. |
92cfb77afb61
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
23
diff
changeset
|
965 |
*/ |
92cfb77afb61
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
23
diff
changeset
|
966 |
IMPORT_C TInt Count() const; |
10
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
967 |
|
28
92cfb77afb61
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
23
diff
changeset
|
968 |
/** |
92cfb77afb61
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
23
diff
changeset
|
969 |
* Destructor. |
92cfb77afb61
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
23
diff
changeset
|
970 |
*/ |
92cfb77afb61
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
23
diff
changeset
|
971 |
~CVideoDecDataList(); |
92cfb77afb61
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
23
diff
changeset
|
972 |
|
92cfb77afb61
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
23
diff
changeset
|
973 |
private: |
92cfb77afb61
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
23
diff
changeset
|
974 |
/** |
92cfb77afb61
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
23
diff
changeset
|
975 |
* C++ default constructor. |
92cfb77afb61
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
23
diff
changeset
|
976 |
*/ |
92cfb77afb61
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
23
diff
changeset
|
977 |
CVideoDecDataList(); |
92cfb77afb61
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
23
diff
changeset
|
978 |
/** |
92cfb77afb61
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
23
diff
changeset
|
979 |
* Symbian 2nd phase constructor. |
92cfb77afb61
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
23
diff
changeset
|
980 |
*/ |
92cfb77afb61
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
23
diff
changeset
|
981 |
void ConstructL(); |
92cfb77afb61
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
23
diff
changeset
|
982 |
|
92cfb77afb61
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
23
diff
changeset
|
983 |
private: |
92cfb77afb61
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
23
diff
changeset
|
984 |
RArray<CVideoDecData *> iDecData; |
92cfb77afb61
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
23
diff
changeset
|
985 |
TInt iCount; |
92cfb77afb61
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
23
diff
changeset
|
986 |
}; |
5 | 987 |
#endif __SYSINFO_H__ |