author | hgs |
Tue, 24 Aug 2010 14:49:21 +0100 | |
changeset 253 | d37db4dcc88d |
parent 33 | 0173bcd7697c |
child 268 | 345b1ca54e88 |
permissions | -rw-r--r-- |
0 | 1 |
// Copyright (c) 1994-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 the License "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 |
// e32\include\e32const.h |
|
15 |
// |
|
16 |
// |
|
17 |
||
18 |
#ifndef __E32CONST_H__ |
|
19 |
#define __E32CONST_H__ |
|
20 |
||
21 |
#include <e32err.h> |
|
22 |
#include <e32lang.h> |
|
23 |
#include <e32reg.h> |
|
24 |
||
25 |
||
26 |
/** |
|
27 |
@publishedAll |
|
28 |
@released |
|
29 |
||
30 |
The default width value used when appending and justifying data |
|
31 |
in a descriptor. |
|
32 |
||
33 |
@see TDes16::AppendJustify() |
|
34 |
@see TDes16::Justify() |
|
35 |
@see TDes8::AppendJustify() |
|
36 |
@see TDes8::Justify() |
|
37 |
*/ |
|
38 |
const TInt KDefaultJustifyWidth=(-1); |
|
39 |
||
40 |
||
41 |
||
42 |
/** |
|
43 |
@publishedAll |
|
44 |
@released |
|
45 |
||
46 |
Defines the number of TUids that form a TUidType. |
|
47 |
||
48 |
@see TUid |
|
49 |
@see TUidType |
|
50 |
*/ |
|
51 |
const TInt KMaxCheckedUid=3; |
|
52 |
||
53 |
||
54 |
/** |
|
55 |
@publishedAll |
|
56 |
@released |
|
57 |
||
58 |
Defines the number of 32-bit debug trace mask words. |
|
59 |
||
60 |
*/ |
|
61 |
const TInt KNumTraceMaskWords = 8; |
|
62 |
||
63 |
||
64 |
/** |
|
65 |
@publishedAll |
|
66 |
@released |
|
67 |
||
68 |
Defines the maximum length for the text form of a UID name. |
|
69 |
||
70 |
@see TUidName |
|
71 |
@see TUid::Name() |
|
72 |
*/ |
|
73 |
const TInt KMaxUidName=10; |
|
74 |
||
75 |
||
76 |
||
77 |
||
78 |
/** |
|
79 |
@publishedAll |
|
80 |
@released |
|
81 |
||
82 |
Defines the maximum length of a module name. |
|
83 |
*/ |
|
84 |
const TInt KMaxModuleVersionName=10; |
|
85 |
||
86 |
||
87 |
||
88 |
||
89 |
/** |
|
90 |
@publishedAll |
|
91 |
@released |
|
92 |
||
93 |
Defines the maximum length of the name of a reference counted object. |
|
94 |
||
95 |
@see TName |
|
96 |
*/ |
|
97 |
const TInt KMaxName=0x80; |
|
98 |
||
99 |
||
100 |
||
101 |
||
102 |
/** |
|
103 |
@publishedAll |
|
104 |
@released |
|
105 |
||
106 |
Defines the maximum length of the name of a reference counted kernel-side object. |
|
107 |
*/ |
|
108 |
const TInt KMaxKernelName=0x50; |
|
109 |
||
110 |
||
111 |
||
112 |
||
113 |
/** |
|
114 |
@publishedAll |
|
115 |
@released |
|
116 |
||
117 |
Defines the maximum size of a process name. |
|
118 |
*/ |
|
119 |
const TInt KMaxProcessName=(KMaxKernelName-KMaxUidName-KMaxModuleVersionName-4); |
|
120 |
||
121 |
||
122 |
||
123 |
||
124 |
/** |
|
125 |
@publishedAll |
|
126 |
@released |
|
127 |
||
128 |
Defines the maximum size of a library name. |
|
129 |
*/ |
|
130 |
const TInt KMaxLibraryName=(KMaxKernelName-KMaxUidName-KMaxModuleVersionName); |
|
131 |
||
132 |
||
133 |
||
134 |
||
135 |
/** |
|
136 |
@publishedAll |
|
137 |
@released |
|
138 |
||
139 |
Defines the maximum length of a TInfoName object. |
|
140 |
*/ |
|
141 |
const TInt KMaxInfoName=0x10; |
|
142 |
||
143 |
||
144 |
||
145 |
||
146 |
/** |
|
147 |
@publishedAll |
|
148 |
@released |
|
149 |
||
150 |
Defines the maximum length of the full name of a reference counted object. |
|
151 |
||
152 |
@see TFullName |
|
153 |
*/ |
|
154 |
const TInt KMaxFullName=(KMaxName<<1); |
|
155 |
||
156 |
||
157 |
||
158 |
||
159 |
/** |
|
160 |
@publishedAll |
|
161 |
@released |
|
162 |
||
163 |
The maximum length for a password buffer. |
|
164 |
||
165 |
@see TPassword |
|
166 |
*/ |
|
167 |
const TInt KMaxPassword=0x10; |
|
168 |
||
169 |
||
170 |
||
171 |
||
172 |
/** |
|
173 |
@publishedAll |
|
174 |
@released |
|
175 |
||
176 |
The maximum length of a category name. |
|
177 |
||
178 |
@see TExitCategoryName |
|
179 |
*/ |
|
180 |
const TInt KMaxExitCategoryName=0x10; |
|
181 |
||
182 |
||
183 |
||
184 |
||
185 |
/** |
|
186 |
@publishedAll |
|
187 |
@released |
|
188 |
||
189 |
The maximum length of the full text name for a day of the week. |
|
190 |
||
191 |
@see TDayName |
|
192 |
*/ |
|
193 |
const TInt KMaxDayName=0x20; |
|
194 |
||
195 |
||
196 |
||
197 |
||
198 |
/** |
|
199 |
@publishedAll |
|
200 |
@released |
|
201 |
||
202 |
The maximum length of the abbreviated text name for a day of the week. |
|
203 |
||
204 |
@see TDayNameAbb |
|
205 |
*/ |
|
206 |
const TInt KMaxDayNameAbb=0x08; |
|
207 |
||
208 |
||
209 |
||
210 |
||
211 |
/** |
|
212 |
@publishedAll |
|
213 |
@released |
|
214 |
||
215 |
Defines the maximum size of arrays or data structures required |
|
216 |
to hold the names of the days of the week. |
|
217 |
*/ |
|
218 |
const TInt KMaxDays=7; |
|
219 |
||
220 |
||
221 |
||
222 |
||
223 |
/** |
|
224 |
@publishedAll |
|
225 |
@released |
|
226 |
||
227 |
The maximum length of the full text name for a month. |
|
228 |
||
229 |
@see TDayName |
|
230 |
*/ |
|
231 |
const TInt KMaxMonthName=0x20; |
|
232 |
||
233 |
||
234 |
||
235 |
||
236 |
/** |
|
237 |
@publishedAll |
|
238 |
@released |
|
239 |
||
240 |
The maximum length of the abbreviated text name for a month. |
|
241 |
||
242 |
@see TMonthNameAbb |
|
243 |
*/ |
|
244 |
const TInt KMaxMonthNameAbb=0x08; |
|
245 |
||
246 |
||
247 |
||
248 |
||
249 |
/** |
|
250 |
@publishedAll |
|
251 |
@released |
|
252 |
||
253 |
Defines the maximum size of arrays or data structures required |
|
254 |
to hold the names of the months of the year. |
|
255 |
*/ |
|
256 |
const TInt KMaxMonths=12; |
|
257 |
||
258 |
||
259 |
||
260 |
||
261 |
/** |
|
262 |
@publishedAll |
|
263 |
@released |
|
264 |
||
265 |
The maximum length of the text for a date suffix. |
|
266 |
||
267 |
@see TDateSuffix |
|
268 |
*/ |
|
269 |
const TInt KMaxSuffix=0x04; |
|
270 |
||
271 |
||
272 |
||
273 |
||
274 |
/** |
|
275 |
@publishedAll |
|
276 |
@released |
|
277 |
||
278 |
Defines the maximum size of arrays and data structures required |
|
279 |
to hold date suffix strings. |
|
280 |
*/ |
|
281 |
const TInt KMaxSuffixes=31; |
|
282 |
||
283 |
||
284 |
||
285 |
||
286 |
/** |
|
287 |
@publishedAll |
|
288 |
@released |
|
289 |
||
290 |
The maximum length of the text for AM and PM. |
|
291 |
||
292 |
@see TAmPmName |
|
293 |
*/ |
|
294 |
const TInt KMaxAmPmName=0x04; |
|
295 |
||
296 |
||
297 |
||
298 |
||
299 |
/** |
|
300 |
@publishedAll |
|
301 |
@released |
|
302 |
||
303 |
Defines the maximum size of arrays and data structures required |
|
304 |
to hold am/pm strings. |
|
305 |
*/ |
|
306 |
const TInt KMaxAmPms=2; |
|
307 |
||
308 |
||
309 |
||
310 |
||
311 |
/** |
|
312 |
@publishedAll |
|
313 |
@released |
|
314 |
||
315 |
Defines the maximum number of date separator characters in a date string. |
|
316 |
*/ |
|
317 |
const TInt KMaxDateSeparators=4; |
|
318 |
||
319 |
||
320 |
||
321 |
||
322 |
/** |
|
323 |
@publishedAll |
|
324 |
@released |
|
325 |
||
326 |
Defines the maximum number of time separator characters in a time string. |
|
327 |
*/ |
|
328 |
const TInt KMaxTimeSeparators=4; |
|
329 |
||
330 |
||
331 |
||
332 |
||
333 |
/** |
|
334 |
@publishedAll |
|
335 |
@released |
|
336 |
||
337 |
Defines the maximum size of data structures to hold the translate tables |
|
338 |
for Western European alphabetic conversions. |
|
339 |
*/ |
|
340 |
const TInt KMaxTranslateTable=0x100; |
|
341 |
||
342 |
||
343 |
||
344 |
||
345 |
/** |
|
346 |
@publishedAll |
|
347 |
@released |
|
348 |
||
349 |
The maximum length of the text for a currency symbol. |
|
350 |
||
351 |
@see TCurrencySymbol |
|
352 |
*/ |
|
353 |
const TInt KMaxCurrencySymbol=0x08; |
|
354 |
||
355 |
||
356 |
||
357 |
||
358 |
/** |
|
359 |
@publishedAll |
|
360 |
@released |
|
361 |
||
362 |
The maximum length of the short date format specification text. |
|
363 |
||
364 |
@see TShortDateFormatSpec |
|
365 |
*/ |
|
366 |
const TInt KMaxShortDateFormatSpec=40; |
|
367 |
||
368 |
||
369 |
||
370 |
||
371 |
/** |
|
372 |
@publishedAll |
|
373 |
@released |
|
374 |
||
375 |
The maximum length of the short date format specification text. |
|
376 |
||
377 |
@see TLongDateFormatSpec |
|
378 |
*/ |
|
379 |
const TInt KMaxLongDateFormatSpec=80; |
|
380 |
||
381 |
||
382 |
||
383 |
||
384 |
/** |
|
385 |
@publishedAll |
|
386 |
@released |
|
387 |
||
388 |
The maximum length of the time string formatting commands. |
|
389 |
||
390 |
@see TTimeFormatSpec |
|
391 |
*/ |
|
392 |
const TInt KMaxTimeFormatSpec=60; |
|
393 |
||
394 |
||
395 |
||
396 |
||
397 |
/** |
|
398 |
@publishedAll |
|
399 |
@released |
|
400 |
||
401 |
Defines the maximum length of a filename. |
|
402 |
*/ |
|
403 |
const TInt KMaxFileName=0x100; |
|
404 |
||
405 |
||
406 |
||
407 |
||
408 |
/** |
|
409 |
@publishedAll |
|
410 |
@released |
|
411 |
||
412 |
The maximum length of the character representation of version information. |
|
413 |
||
414 |
@see TVersion::Name() |
|
415 |
*/ |
|
416 |
const TInt KMaxVersionName=0x10; |
|
417 |
||
418 |
||
419 |
||
420 |
||
421 |
/** |
|
422 |
@publishedAll |
|
423 |
@released |
|
424 |
||
425 |
Defines the maximum length of a path. |
|
426 |
||
427 |
@see TPath |
|
428 |
*/ |
|
429 |
const TInt KMaxPath=0x100; |
|
430 |
||
431 |
||
432 |
||
433 |
||
434 |
/** |
|
435 |
@publishedAll |
|
436 |
@released |
|
437 |
||
438 |
Defines the maximum length of a TDeviceInfo object. |
|
439 |
||
440 |
@see TDeviceInfo |
|
441 |
*/ |
|
442 |
const TInt KMaxDeviceInfo=0x80; |
|
443 |
||
444 |
||
445 |
||
446 |
||
447 |
/** |
|
448 |
@publishedAll |
|
449 |
@released |
|
450 |
||
451 |
The maximum size of the password required to unlock a media drive. |
|
452 |
*/ |
|
453 |
const TInt KMaxMediaPassword=16; |
|
454 |
||
455 |
||
456 |
||
457 |
||
458 |
/** |
|
459 |
@publishedAll |
|
460 |
@released |
|
461 |
||
462 |
Defines the minimum size of a new heap. |
|
463 |
||
464 |
Functions that require a new heap to be allocated will either panic, |
|
465 |
or will reset the required heap size to this value if a smaller heap |
|
466 |
size is specified. |
|
467 |
||
468 |
@see UserHeap |
|
469 |
@see RThread::Create() |
|
470 |
*/ |
|
471 |
const TInt KMinHeapSize=0x100; |
|
472 |
||
473 |
||
474 |
||
475 |
||
476 |
/** |
|
477 |
@publishedAll |
|
478 |
@released |
|
479 |
||
480 |
Not used by Symbian OS. |
|
481 |
*/ |
|
482 |
const TInt KDstHome=0x01; |
|
483 |
||
484 |
||
485 |
||
486 |
||
487 |
/** |
|
488 |
@publishedAll |
|
489 |
@released |
|
490 |
||
491 |
Not used by Symbian OS. |
|
492 |
*/ |
|
493 |
const TInt KDstEuropean=0x02; |
|
494 |
||
495 |
||
496 |
||
497 |
||
498 |
/** |
|
499 |
@publishedAll |
|
500 |
@released |
|
501 |
||
502 |
Not used by Symbian OS. |
|
503 |
*/ |
|
504 |
const TInt KDstNorthern=0x04; |
|
505 |
||
506 |
||
507 |
||
508 |
||
509 |
/** |
|
510 |
@publishedAll |
|
511 |
@released |
|
512 |
||
513 |
Not used by Symbian OS. |
|
514 |
*/ |
|
515 |
const TInt KDstSouthern=0x08; |
|
516 |
||
517 |
||
518 |
||
519 |
||
520 |
/** |
|
521 |
@publishedAll |
|
522 |
@released |
|
523 |
||
524 |
A default stack size that can be used when creating threads. |
|
525 |
*/ |
|
526 |
#ifdef __X86GCC__ |
|
527 |
const TInt KDefaultStackSize=0x4000; |
|
528 |
#else |
|
529 |
const TInt KDefaultStackSize=0x2000; |
|
530 |
#endif // __X86GCC__ |
|
531 |
||
532 |
||
533 |
||
534 |
||
535 |
/** |
|
536 |
@publishedAll |
|
537 |
@released |
|
538 |
||
539 |
Indicates an undefined character, used internally when formatting text. |
|
540 |
*/ |
|
541 |
const TUint KNoChar=0xffffffffu; |
|
542 |
||
543 |
||
544 |
||
545 |
||
546 |
/** |
|
547 |
@publishedAll |
|
548 |
@released |
|
549 |
||
550 |
Defines an index value that is interpreted by the TKey class, |
|
551 |
and derived classes, as having a specific meaning. |
|
552 |
||
553 |
@see TKey::SetPtr() |
|
554 |
@see TKey::At() |
|
555 |
*/ |
|
556 |
const TInt KIndexPtr=(-1); |
|
557 |
||
558 |
||
559 |
||
560 |
||
561 |
/** |
|
562 |
@publishedAll |
|
563 |
@released |
|
564 |
||
565 |
A flag used by the kernel to mark a handle as not being closable. |
|
566 |
*/ |
|
567 |
const TInt KHandleNoClose=0x00008000; |
|
568 |
||
569 |
||
570 |
||
571 |
||
572 |
/** |
|
573 |
@publishedAll |
|
574 |
@released |
|
575 |
||
576 |
A flag used by the kernel to mark a handle as being local. |
|
577 |
*/ |
|
578 |
const TInt KHandleFlagLocal=0x40000000; |
|
579 |
||
580 |
||
581 |
||
582 |
||
583 |
/** |
|
584 |
@publishedAll |
|
585 |
@released |
|
586 |
||
587 |
A flag used by the Kernel to indicate the current process. |
|
588 |
*/ |
|
589 |
const TInt KCurrentProcessHandle=0xffff0000|KHandleNoClose; |
|
590 |
||
591 |
||
592 |
||
593 |
||
594 |
/** |
|
595 |
@publishedAll |
|
596 |
@released |
|
597 |
||
598 |
A flag used by the Kernel to indicate the current thread. |
|
599 |
*/ |
|
600 |
const TInt KCurrentThreadHandle=0xffff0001|KHandleNoClose; |
|
601 |
||
602 |
||
603 |
||
604 |
||
605 |
/** |
|
606 |
@publishedAll |
|
607 |
@released |
|
608 |
||
609 |
Defines a handle number value of zero. |
|
610 |
||
611 |
@see RHandleBase |
|
612 |
*/ |
|
613 |
const TInt KNullHandle=0; |
|
614 |
||
615 |
||
616 |
||
617 |
||
618 |
/** |
|
619 |
@publishedAll |
|
620 |
@released |
|
621 |
||
622 |
Defines a default unit. Not generally used by Symbian OS. |
|
623 |
*/ |
|
624 |
const TInt KDefaultUnit=0x00; |
|
625 |
||
626 |
||
627 |
||
628 |
||
629 |
/** |
|
630 |
@publishedAll |
|
631 |
@released |
|
632 |
||
633 |
The device unit that must be passed in a call |
|
634 |
to RBusLogicalChannel::DoCreate(), if units are not permitted. |
|
635 |
||
636 |
@see RBusLogicalChannel |
|
637 |
*/ |
|
638 |
const TInt KNullUnit=0xffffffff; |
|
639 |
||
640 |
||
641 |
||
642 |
||
643 |
/** |
|
644 |
@publishedAll |
|
645 |
@released |
|
646 |
||
647 |
The maximum unit number that can be passed in a call |
|
648 |
to RBusLogicalChannel::DoCreate(). |
|
649 |
||
650 |
@see RBusLogicalChannel |
|
651 |
*/ |
|
652 |
const TInt KMaxUnits=0x20; |
|
653 |
||
654 |
||
655 |
||
656 |
||
657 |
/** |
|
658 |
@publishedAll |
|
659 |
@released |
|
660 |
||
661 |
Defines the maximum number of message arguments that can be passed |
|
662 |
across the user side/kernel side boundary. |
|
663 |
*/ |
|
664 |
const TInt KMaxMessageArguments=0x04; |
|
665 |
||
666 |
||
667 |
||
668 |
||
669 |
/** |
|
670 |
@publishedAll |
|
671 |
@released |
|
672 |
||
673 |
The default width of the character representation of a real number, used by |
|
674 |
the default constructor of a TRealFormat object and the formatting functions |
|
675 |
of descriptors. |
|
676 |
||
677 |
@see TRealFormat |
|
678 |
@see TDes16::AppendFormat() |
|
679 |
@see TDes8::AppendFormat() |
|
680 |
*/ |
|
681 |
const TInt KDefaultRealWidth=20; |
|
682 |
||
683 |
||
684 |
||
685 |
||
686 |
/** |
|
687 |
@publishedAll |
|
688 |
@released |
|
689 |
||
690 |
The default value used by UserHeap::ChunkHeap() for defining increments to |
|
691 |
the size of a chunk, when no explicit value specified by the caller. |
|
692 |
||
693 |
@see UserHeap::ChunkHeap() |
|
694 |
*/ |
|
695 |
const TInt KMinHeapGrowBy=0x1000; |
|
696 |
||
697 |
||
698 |
||
699 |
||
700 |
/** |
|
701 |
@publishedAll |
|
702 |
@released |
|
703 |
||
704 |
Not used by Symbian OS. |
|
705 |
*/ |
|
706 |
const TInt KMaxExponentConversion=99; |
|
707 |
||
708 |
||
709 |
||
710 |
||
711 |
/** |
|
712 |
@publishedAll |
|
713 |
@released |
|
714 |
||
715 |
Defines a Null UID value. |
|
716 |
||
717 |
@see TUid |
|
718 |
*/ |
|
719 |
const TInt KNullUidValue=0; |
|
720 |
||
721 |
||
722 |
||
723 |
||
724 |
/** |
|
725 |
@publishedAll |
|
726 |
@deprecated |
|
727 |
||
728 |
The timer granularity used by a CDeltaTimer object is |
|
729 |
now the tick period and this constant is obsolete. |
|
730 |
||
731 |
@see CDeltaTimer |
|
732 |
*/ |
|
733 |
const TInt KDeltaTimerDefaultGranularity=100000; |
|
734 |
||
735 |
||
736 |
||
737 |
||
738 |
/** |
|
739 |
@publishedAll |
|
740 |
@released |
|
741 |
||
742 |
The largest possible value for a TInt8. |
|
743 |
*/ |
|
744 |
const TInt KMaxTInt8=0x7f; |
|
745 |
||
746 |
||
747 |
||
748 |
||
749 |
/** |
|
750 |
@publishedAll |
|
751 |
@released |
|
752 |
||
753 |
The smallest possible value for a TInt8. |
|
754 |
*/ |
|
755 |
const TInt KMinTInt8=(-128); |
|
756 |
||
757 |
||
758 |
||
759 |
||
760 |
/** |
|
761 |
@publishedAll |
|
762 |
@released |
|
763 |
||
764 |
The largest possible value for a TUint8. |
|
765 |
*/ |
|
766 |
const TUint KMaxTUint8=0xffu; |
|
767 |
||
768 |
||
769 |
||
770 |
||
771 |
/** |
|
772 |
@publishedAll |
|
773 |
@released |
|
774 |
||
775 |
The largest possible value for a TInt16. |
|
776 |
*/ |
|
777 |
const TInt KMaxTInt16=0x7fff; |
|
778 |
||
779 |
||
780 |
||
781 |
||
782 |
/** |
|
783 |
@publishedAll |
|
784 |
@released |
|
785 |
||
786 |
The smallest possible value for a TInt16. |
|
787 |
*/ |
|
788 |
const TInt KMinTInt16=(-32768); |
|
789 |
||
790 |
||
791 |
||
792 |
||
793 |
/** |
|
794 |
@publishedAll |
|
795 |
@released |
|
796 |
||
797 |
The largest possible value for a TUint16. |
|
798 |
*/ |
|
799 |
const TUint KMaxTUint16=0xffffu; |
|
800 |
||
801 |
||
802 |
||
803 |
||
804 |
/** |
|
805 |
@publishedAll |
|
806 |
@released |
|
807 |
||
808 |
The largest possible value for a TInt32. |
|
809 |
*/ |
|
810 |
const TInt KMaxTInt32=0x7fffffff; |
|
811 |
||
812 |
||
813 |
||
814 |
||
815 |
/** |
|
816 |
@publishedAll |
|
817 |
@released |
|
818 |
||
819 |
The smallest possible value for a TInt32. |
|
820 |
*/ |
|
821 |
const TInt KMinTInt32=(TInt)0x80000000; |
|
822 |
||
823 |
||
824 |
||
825 |
||
826 |
/** |
|
827 |
@publishedAll |
|
828 |
@released |
|
829 |
||
830 |
The largest possible value for a TUint32. |
|
831 |
*/ |
|
832 |
const TUint KMaxTUint32=0xffffffffu; |
|
833 |
||
834 |
||
835 |
||
836 |
||
837 |
/** |
|
838 |
@publishedAll |
|
839 |
@released |
|
840 |
||
841 |
The largest possible value for a TInt. |
|
842 |
*/ |
|
843 |
const TInt KMaxTInt=0x7fffffff; |
|
844 |
||
845 |
||
846 |
||
847 |
||
848 |
/** |
|
849 |
@publishedAll |
|
850 |
@released |
|
851 |
||
852 |
The smallest possible value for a TInt. |
|
853 |
*/ |
|
854 |
const TInt KMinTInt=(TInt)0x80000000; |
|
855 |
||
856 |
||
857 |
||
858 |
||
859 |
/** |
|
860 |
@publishedAll |
|
861 |
@released |
|
862 |
||
863 |
The largest possible value for a TUint. |
|
864 |
*/ |
|
865 |
const TUint KMaxTUint=0xffffffffu; |
|
866 |
||
867 |
||
868 |
||
869 |
||
870 |
/** |
|
871 |
@publishedAll |
|
872 |
@released |
|
873 |
||
874 |
The largest possible value for a TInt64. |
|
875 |
*/ |
|
876 |
const TInt64 KMaxTInt64 = I64LIT(0x7fffffffffffffff); |
|
877 |
||
878 |
||
879 |
||
880 |
||
881 |
/** |
|
882 |
@publishedAll |
|
883 |
@released |
|
884 |
||
885 |
The smallest possible value for a TInt64. |
|
886 |
*/ |
|
887 |
const TInt64 KMinTInt64 = UI64LIT(0x8000000000000000); |
|
888 |
||
889 |
||
890 |
||
891 |
||
892 |
/** |
|
893 |
@publishedAll |
|
894 |
@released |
|
895 |
||
896 |
The largest possible value for a TUint64. |
|
897 |
*/ |
|
898 |
const TUint64 KMaxTUint64 = UI64LIT(0xffffffffffffffff); |
|
899 |
||
900 |
||
901 |
||
902 |
||
903 |
/** |
|
904 |
@publishedAll |
|
905 |
@released |
|
906 |
||
907 |
Defines the character *, and represents any number of characters in any |
|
908 |
part of a path component, filename or extension. |
|
909 |
||
910 |
It is used in a TParse file specification. |
|
911 |
||
912 |
@see TParse |
|
913 |
*/ |
|
914 |
const TUint KMatchAny='*'; |
|
915 |
||
916 |
||
917 |
||
918 |
||
919 |
/** |
|
920 |
@publishedAll |
|
921 |
@released |
|
922 |
||
923 |
Defines the character ?, and represents a single character in |
|
924 |
a path component, filename or extension. |
|
925 |
||
926 |
It is used in a TParse file specification. |
|
927 |
||
928 |
@see TParse |
|
929 |
*/ |
|
930 |
const TUint KMatchOne='?'; |
|
931 |
||
932 |
||
933 |
||
934 |
||
935 |
/** |
|
936 |
@publishedAll |
|
937 |
@released |
|
938 |
||
939 |
Defines the maximum number of local drives. |
|
940 |
*/ |
|
941 |
const TInt KMaxLocalDrives=16; |
|
942 |
||
943 |
||
944 |
||
945 |
||
946 |
/** |
|
947 |
@publishedAll |
|
948 |
@released |
|
949 |
||
950 |
Defines the maximum number of peripheral bus sockets. |
|
951 |
*/ |
|
952 |
const TInt KMaxPBusSockets=4; |
|
953 |
||
954 |
||
955 |
||
956 |
||
957 |
/** |
|
958 |
@publishedAll |
|
959 |
@released |
|
960 |
||
961 |
Not used by Symbian OS. |
|
962 |
*/ |
|
963 |
const TInt KNoCallEntryPoint = 0x01; |
|
964 |
||
965 |
||
966 |
||
967 |
||
968 |
/** |
|
969 |
@publishedAll |
|
970 |
@released |
|
971 |
||
972 |
The value to which CActive::iStatus is set by an active object's |
|
973 |
service provider before the service provider initiates an asynchronous request. |
|
974 |
||
975 |
@see CActive |
|
976 |
*/ |
|
977 |
const TInt KRequestPending=(-KMaxTInt); |
|
978 |
||
979 |
||
980 |
||
981 |
||
982 |
// Drive capabilities |
|
983 |
||
984 |
/** |
|
985 |
@publishedAll |
|
986 |
@released |
|
987 |
||
988 |
Defines the possible media types. |
|
989 |
*/ |
|
990 |
enum TMediaType |
|
991 |
{ |
|
992 |
EMediaNotPresent, |
|
993 |
||
994 |
EMediaUnknown, |
|
995 |
||
996 |
EMediaFloppy, |
|
997 |
||
998 |
/** Solid-state media. */ |
|
999 |
EMediaHardDisk, |
|
1000 |
||
1001 |
EMediaCdRom, |
|
1002 |
||
1003 |
EMediaRam, |
|
1004 |
||
1005 |
EMediaFlash, |
|
1006 |
||
1007 |
EMediaRom, |
|
1008 |
||
1009 |
EMediaRemote, |
|
1010 |
||
1011 |
EMediaNANDFlash, |
|
1012 |
||
1013 |
/** Rotating media. */ |
|
1014 |
EMediaRotatingMedia |
|
1015 |
}; |
|
1016 |
||
1017 |
||
1018 |
||
1019 |
||
1020 |
/** |
|
1021 |
@publishedAll |
|
1022 |
@released |
|
1023 |
||
1024 |
Defines the state of a battery, if supported. |
|
1025 |
*/ |
|
1026 |
enum TBatteryState {EBatNotSupported,EBatGood,EBatLow}; |
|
1027 |
||
1028 |
||
33
0173bcd7697c
Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
1029 |
/** |
0173bcd7697c
Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
1030 |
@publishedAll |
0173bcd7697c
Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
1031 |
@released |
0173bcd7697c
Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
1032 |
|
0173bcd7697c
Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
1033 |
Defines the possible connection types used to interface to the media. |
0173bcd7697c
Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
1034 |
*/ |
0173bcd7697c
Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
1035 |
enum TConnectionBusType {EConnectionBusInternal, EConnectionBusUsb}; |
0 | 1036 |
|
1037 |
||
1038 |
/** |
|
1039 |
@publishedAll |
|
1040 |
@released |
|
1041 |
||
1042 |
Drive attribute - drive is local. |
|
1043 |
*/ |
|
1044 |
const TUint KDriveAttLocal=0x01; |
|
1045 |
||
1046 |
||
1047 |
||
1048 |
||
1049 |
/** |
|
1050 |
@publishedAll |
|
1051 |
@released |
|
1052 |
||
1053 |
Drive attribute - ROM drive. |
|
1054 |
*/ |
|
1055 |
const TUint KDriveAttRom=0x02; |
|
1056 |
||
1057 |
||
1058 |
||
1059 |
||
1060 |
/** |
|
1061 |
@publishedAll |
|
1062 |
@released |
|
1063 |
||
1064 |
Drive attribute - output from a process on one drive is redirected |
|
1065 |
to another drive. |
|
1066 |
*/ |
|
1067 |
const TUint KDriveAttRedirected=0x04; |
|
1068 |
||
1069 |
||
1070 |
||
1071 |
||
1072 |
/** |
|
1073 |
@publishedAll |
|
1074 |
@released |
|
1075 |
||
1076 |
Drive attribute - drive letter has been substituted (assigned a path). |
|
1077 |
*/ |
|
1078 |
const TUint KDriveAttSubsted=0x08; |
|
1079 |
||
1080 |
||
1081 |
||
1082 |
||
1083 |
/** |
|
1084 |
@publishedAll |
|
1085 |
@released |
|
1086 |
||
1087 |
Drive attribute - drive is internal (not removable). |
|
1088 |
*/ |
|
1089 |
const TUint KDriveAttInternal=0x10; |
|
1090 |
||
1091 |
||
1092 |
||
1093 |
||
1094 |
/** |
|
1095 |
@publishedAll |
|
1096 |
@released |
|
1097 |
||
1098 |
Drive attribute - drive is removable. |
|
1099 |
*/ |
|
1100 |
const TUint KDriveAttRemovable=0x20; |
|
1101 |
||
1102 |
||
1103 |
||
1104 |
||
1105 |
/** |
|
1106 |
@publishedAll |
|
1107 |
@released |
|
1108 |
||
1109 |
Drive attribute - drive is remote. |
|
1110 |
*/ |
|
1111 |
const TUint KDriveAttRemote=0x40; |
|
1112 |
||
1113 |
||
1114 |
||
1115 |
||
1116 |
/** |
|
1117 |
@publishedAll |
|
1118 |
@released |
|
1119 |
||
1120 |
Drive attribute -. |
|
1121 |
*/ |
|
1122 |
const TUint KDriveAttTransaction=0x80; |
|
1123 |
||
1124 |
||
1125 |
/** |
|
1126 |
@publishedAll |
|
1127 |
@released |
|
1128 |
||
1129 |
Drive attribute - drive is used for paging. |
|
1130 |
*/ |
|
1131 |
const TUint KDriveAttPageable=0x100; |
|
1132 |
||
1133 |
||
1134 |
||
1135 |
/** |
|
1136 |
@publishedAll |
|
1137 |
@released |
|
1138 |
||
1139 |
Drive attribute - drive is logically removable (can be taken offline from Symbian OS). |
|
1140 |
If not logically removable then physically removable e.g. a card can be take out. |
|
1141 |
*/ |
|
1142 |
const TUint KDriveAttLogicallyRemovable=0x200; |
|
1143 |
||
1144 |
||
1145 |
/** |
|
1146 |
@publishedAll |
|
1147 |
@released |
|
1148 |
||
1149 |
Drive attribute - drive is hidden. |
|
1150 |
A drive which has its hidden attribute set would be excluded from the list of available drives. |
|
1151 |
*/ |
|
1152 |
const TUint KDriveAttHidden=0x400; |
|
1153 |
||
1154 |
||
1155 |
/** |
|
1156 |
@publishedAll |
|
1157 |
@released |
|
1158 |
||
33
0173bcd7697c
Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
1159 |
Drive attribute - drive is external. |
0173bcd7697c
Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
1160 |
*/ |
0173bcd7697c
Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
1161 |
const TUint KDriveAttExternal=0x800; |
0173bcd7697c
Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
1162 |
|
0173bcd7697c
Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
1163 |
|
0173bcd7697c
Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
1164 |
/** |
0173bcd7697c
Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
1165 |
@publishedAll |
0173bcd7697c
Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
1166 |
@released |
0173bcd7697c
Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
1167 |
|
0 | 1168 |
Drive attribute - It can be set in a search in order to instruct that all drives should be returned. |
1169 |
*/ |
|
1170 |
const TUint KDriveAttAll=0x100000; |
|
1171 |
||
1172 |
||
1173 |
/** |
|
1174 |
@publishedAll |
|
1175 |
@released |
|
1176 |
||
1177 |
Drive attribute - It can be set in combination with other drive attributes in order to exclude during a drive search, drives with |
|
1178 |
these attributes set. |
|
1179 |
*/ |
|
1180 |
const TUint KDriveAttExclude=0x40000; |
|
1181 |
||
1182 |
||
1183 |
||
1184 |
/** |
|
1185 |
@publishedAll |
|
1186 |
@released |
|
1187 |
||
1188 |
Drive attribute - It can be set in combination with other drive attributes in order to search and return exclusively drives with these attributes set. |
|
1189 |
*/ |
|
1190 |
const TUint KDriveAttExclusive=0x80000; |
|
1191 |
||
1192 |
||
1193 |
||
1194 |
/** |
|
1195 |
@internalTechnology |
|
1196 |
||
1197 |
Used as a mask in order to extract the actual drive attributes. |
|
1198 |
||
1199 |
*/ |
|
1200 |
const TUint KDriveAttMatchedFlags=0xFFF; |
|
1201 |
||
1202 |
||
1203 |
||
1204 |
/** |
|
1205 |
@internalTechnology |
|
1206 |
||
1207 |
Used as a mask in order to extract the extra(ex KDriveAttAll ,KDriveAttExclude, KDriveAttExclusive ,0) drive attributes. |
|
1208 |
*/ |
|
1209 |
const TUint KDriveAttMatchedAtt=0x0FFF0000; |
|
1210 |
||
1211 |
||
1212 |
||
1213 |
||
1214 |
/** |
|
1215 |
@publishedAll |
|
1216 |
@released |
|
1217 |
||
1218 |
Media attribute - the media capacity can change over time. |
|
1219 |
*/ |
|
1220 |
const TUint KMediaAttVariableSize=0x01; |
|
1221 |
||
1222 |
||
1223 |
||
1224 |
||
1225 |
/** |
|
1226 |
@publishedAll |
|
1227 |
@released |
|
1228 |
||
1229 |
Media attribute - media is dual density. |
|
1230 |
*/ |
|
1231 |
const TUint KMediaAttDualDensity=0x02; |
|
1232 |
||
1233 |
||
1234 |
||
1235 |
||
1236 |
/** |
|
1237 |
@publishedAll |
|
1238 |
@released |
|
1239 |
||
1240 |
Media attribute - media is formattable. |
|
1241 |
*/ |
|
1242 |
const TUint KMediaAttFormattable=0x04; |
|
1243 |
||
1244 |
||
1245 |
||
1246 |
||
1247 |
/** |
|
1248 |
@publishedAll |
|
1249 |
@released |
|
1250 |
||
1251 |
Media attribute - media is write-protected. |
|
1252 |
*/ |
|
1253 |
const TUint KMediaAttWriteProtected=0x08; |
|
1254 |
||
1255 |
||
1256 |
||
1257 |
||
1258 |
/** |
|
1259 |
@publishedAll |
|
1260 |
@released |
|
1261 |
||
1262 |
Media attribute - media is lockable; this is provided for |
|
1263 |
lockable multi-media cards |
|
1264 |
*/ |
|
1265 |
const TUint KMediaAttLockable=0x10; |
|
1266 |
||
1267 |
||
1268 |
||
1269 |
||
1270 |
/** |
|
1271 |
@publishedAll |
|
1272 |
@released |
|
1273 |
||
1274 |
Media attribute - media is locked; this is provided for |
|
1275 |
lockable multi-media cards |
|
1276 |
*/ |
|
1277 |
const TUint KMediaAttLocked=0x20; |
|
1278 |
||
1279 |
||
1280 |
||
1281 |
/** |
|
1282 |
@publishedAll |
|
1283 |
@released |
|
1284 |
||
1285 |
Media attribute - media has password. |
|
1286 |
*/ |
|
1287 |
const TUint KMediaAttHasPassword=0x40; |
|
1288 |
||
1289 |
/** |
|
1290 |
@publishedAll |
|
1291 |
@released |
|
1292 |
*/ |
|
1293 |
const TUint KMediaAttReadWhileWrite=0x80; |
|
1294 |
||
1295 |
/** |
|
1296 |
@publishedAll |
|
1297 |
@released |
|
1298 |
||
1299 |
Media attribute - media supports TBusLocalDrive::DeleteNotify() |
|
1300 |
*/ |
|
1301 |
const TUint KMediaAttDeleteNotify=0x100; |
|
1302 |
||
1303 |
/** |
|
1304 |
@publishedAll |
|
1305 |
@released |
|
1306 |
||
1307 |
Media attribute - media supports paging |
|
1308 |
*/ |
|
1309 |
const TUint KMediaAttPageable=0x200; |
|
1310 |
||
1311 |
||
1312 |
||
1313 |
/** |
|
1314 |
@publishedAll |
|
1315 |
@released |
|
1316 |
||
1317 |
Identifies a FAT file system |
|
1318 |
*/ |
|
1319 |
const TUint KDriveFileSysFAT=0x01; |
|
1320 |
||
1321 |
||
1322 |
||
1323 |
||
1324 |
/** |
|
1325 |
@publishedAll |
|
1326 |
@released |
|
1327 |
||
1328 |
Identifies a ROM file system. |
|
1329 |
*/ |
|
1330 |
const TUint KDriveFileSysROM=0x02; |
|
1331 |
||
1332 |
||
1333 |
||
1334 |
||
1335 |
/** |
|
1336 |
@publishedAll |
|
1337 |
@released |
|
1338 |
||
1339 |
Identifies an LFFS file system. |
|
1340 |
*/ |
|
1341 |
const TUint KDriveFileSysLFFS=0x03; |
|
1342 |
||
1343 |
||
1344 |
||
1345 |
||
1346 |
/** |
|
1347 |
@publishedAll |
|
1348 |
@released |
|
1349 |
||
1350 |
Identifies a read-only file system. |
|
1351 |
*/ |
|
1352 |
const TUint KDriveFileSysROFS=0x04; |
|
1353 |
||
1354 |
||
1355 |
||
1356 |
||
1357 |
/** |
|
1358 |
@publishedAll |
|
1359 |
@released |
|
1360 |
||
1361 |
Identifies a non-file system. That is a partition without any file system layer. |
|
1362 |
*/ |
|
1363 |
const TUint KDriveFileNone=0x05; |
|
1364 |
||
1365 |
||
1366 |
||
1367 |
||
1368 |
/** |
|
1369 |
@publishedAll |
|
1370 |
@released |
|
1371 |
||
1372 |
An enumerator with a single enumeration value that defines the Boolean value |
|
1373 |
false in Symbian OS. |
|
1374 |
||
1375 |
@see TBool |
|
1376 |
*/ |
|
1377 |
enum TFalse { |
|
1378 |
/** |
|
1379 |
Defines the value false that is passed to a TBool type. |
|
1380 |
*/ |
|
1381 |
EFalse=FALSE |
|
1382 |
}; |
|
1383 |
||
1384 |
||
1385 |
||
1386 |
||
1387 |
/** |
|
1388 |
@publishedAll |
|
1389 |
@released |
|
1390 |
||
1391 |
An enumerator with a single enumeration value that defines the Boolean value |
|
1392 |
true in Symbian OS. |
|
1393 |
||
1394 |
@see TBool |
|
1395 |
*/ |
|
1396 |
enum TTrue { |
|
1397 |
/** |
|
1398 |
Defines the value true that is passed to a TBool type. |
|
1399 |
*/ |
|
1400 |
ETrue=TRUE |
|
1401 |
}; |
|
1402 |
||
1403 |
||
1404 |
||
1405 |
||
1406 |
/** |
|
1407 |
@publishedAll |
|
1408 |
@released |
|
1409 |
||
1410 |
Defines flags that can be used to indicate whether duplicates, for example in |
|
1411 |
a list, are allowed. |
|
1412 |
*/ |
|
1413 |
enum TAllowDuplicates { |
|
1414 |
/** |
|
1415 |
No duplicates allowed. |
|
1416 |
*/ |
|
1417 |
ENoDuplicates, |
|
1418 |
||
1419 |
/** |
|
1420 |
Duplicates allowed. |
|
1421 |
*/ |
|
1422 |
EAllowDuplicates |
|
1423 |
}; |
|
1424 |
||
1425 |
||
1426 |
||
1427 |
||
1428 |
/** |
|
1429 |
@publishedAll |
|
1430 |
@released |
|
1431 |
||
1432 |
An enumeration whose enumerators determine the number system to be used |
|
1433 |
when converting numbers into a character format. |
|
1434 |
||
1435 |
@see TDes8::Num() |
|
1436 |
@see TDes8::NumUC() |
|
1437 |
@see TDes8::AppendNum() |
|
1438 |
@see TDes8::AppendNumUC() |
|
1439 |
@see TDes16::Num() |
|
1440 |
@see TDes16::NumUC() |
|
1441 |
@see TDes16::AppendNum() |
|
1442 |
@see TDes16::AppendNumUC() |
|
1443 |
*/ |
|
1444 |
enum TRadix { |
|
1445 |
/** |
|
1446 |
Convert number into binary character representation. |
|
1447 |
*/ |
|
1448 |
EBinary=2, |
|
1449 |
/** |
|
1450 |
Convert number into octal character representation. |
|
1451 |
*/ |
|
1452 |
EOctal=8, |
|
1453 |
/** |
|
1454 |
Convert number into decimal character representation. |
|
1455 |
*/ |
|
1456 |
EDecimal=10, |
|
1457 |
/** |
|
1458 |
Convert number into hexadecimal character representation. |
|
1459 |
*/ |
|
1460 |
EHex=16 |
|
1461 |
}; |
|
1462 |
||
1463 |
||
1464 |
||
1465 |
||
1466 |
||
1467 |
/** |
|
1468 |
@publishedAll |
|
1469 |
@released |
|
1470 |
||
1471 |
The mask for the dialect bits |
|
1472 |
*/ |
|
1473 |
const TUint KDialectMask=0x03FF; |
|
1474 |
||
1475 |
||
1476 |
||
1477 |
||
1478 |
||
1479 |
/** |
|
1480 |
@publishedAll |
|
1481 |
@released |
|
1482 |
||
1483 |
Defines the date formats. |
|
1484 |
*/ |
|
1485 |
enum TDateFormat { |
|
1486 |
/** |
|
1487 |
US format (mm/dd/yyyy) |
|
1488 |
*/ |
|
1489 |
EDateAmerican, |
|
1490 |
||
1491 |
/** |
|
1492 |
European format (dd/mm/yyyy) |
|
1493 |
*/ |
|
1494 |
EDateEuropean, |
|
1495 |
||
1496 |
/** |
|
1497 |
Japanese format (yyyy/mm/dd) |
|
1498 |
*/ |
|
1499 |
EDateJapanese}; |
|
1500 |
||
1501 |
||
1502 |
||
1503 |
||
1504 |
/** |
|
1505 |
@publishedAll |
|
1506 |
@released |
|
1507 |
||
1508 |
Defines the time formats as either 12 hour or 24 hour. |
|
1509 |
*/ |
|
1510 |
enum TTimeFormat { |
|
1511 |
ETime12, |
|
1512 |
ETime24 |
|
1513 |
}; |
|
1514 |
||
1515 |
||
1516 |
||
1517 |
||
1518 |
/** |
|
1519 |
@publishedAll |
|
1520 |
@released |
|
1521 |
||
1522 |
Defines the clock display formats, as either analog or digital. |
|
1523 |
*/ |
|
1524 |
enum TClockFormat { |
|
1525 |
EClockAnalog, |
|
1526 |
EClockDigital |
|
1527 |
}; |
|
1528 |
||
1529 |
||
1530 |
||
1531 |
||
1532 |
/** |
|
1533 |
@publishedAll |
|
1534 |
@released |
|
1535 |
||
1536 |
Enumerates the units of measurement as either Imperial or Metric. |
|
1537 |
*/ |
|
1538 |
enum TUnitsFormat { |
|
1539 |
EUnitsImperial, |
|
1540 |
EUnitsMetric |
|
1541 |
}; |
|
1542 |
||
1543 |
||
1544 |
||
1545 |
||
1546 |
/** |
|
1547 |
@publishedAll |
|
1548 |
@released |
|
1549 |
||
1550 |
Identifies a time as being am or pm. |
|
1551 |
*/ |
|
1552 |
enum TAmPm { |
|
1553 |
EAm, |
|
1554 |
EPm |
|
1555 |
}; |
|
1556 |
||
1557 |
||
1558 |
||
1559 |
||
1560 |
/** |
|
1561 |
@publishedAll |
|
1562 |
@released |
|
1563 |
||
1564 |
Defines whether: |
|
1565 |
||
1566 |
1. the currency symbol is located before or after the currency amount. |
|
1567 |
||
1568 |
2. the am/pm text is located before or after the time. |
|
1569 |
*/ |
|
1570 |
enum TLocalePos |
|
1571 |
{ |
|
1572 |
/** |
|
1573 |
The currency symbol is located before the currency amount. |
|
1574 |
The am/pm text is located before the time. |
|
1575 |
*/ |
|
1576 |
ELocaleBefore, |
|
1577 |
||
1578 |
/** |
|
1579 |
The currency symbol is located after the currency amount. |
|
1580 |
The am/pm text is located after the time. |
|
1581 |
*/ |
|
1582 |
ELocaleAfter |
|
1583 |
}; |
|
1584 |
||
1585 |
||
1586 |
||
1587 |
||
1588 |
/** |
|
1589 |
@publishedAll |
|
1590 |
@released |
|
1591 |
||
1592 |
Number Modes available to select. |
|
1593 |
*/ |
|
1594 |
enum TDigitType |
|
1595 |
{ |
|
1596 |
EDigitTypeUnknown = 0x0000, |
|
1597 |
EDigitTypeWestern = 0x0030, |
|
1598 |
EDigitTypeArabicIndic = 0x0660, |
|
1599 |
EDigitTypeEasternArabicIndic = 0x6F0, |
|
1600 |
EDigitTypeDevanagari = 0x0966, |
|
1601 |
EDigitTypeBengali = 0x09E6, |
|
1602 |
EDigitTypeGurmukhi = 0x0A66, |
|
1603 |
EDigitTypeGujarati = 0x0AE6, |
|
1604 |
EDigitTypeOriya = 0x0B66, |
|
1605 |
EDigitTypeTamil = 0x0BE6, |
|
1606 |
EDigitTypeTelugu = 0x0C66, |
|
1607 |
EDigitTypeKannada = 0x0CE6, |
|
1608 |
EDigitTypeMalayalam = 0x0D66, |
|
1609 |
EDigitTypeThai = 0x0E50, |
|
1610 |
EDigitTypeLao = 0x0ED0, |
|
1611 |
EDigitTypeTibetan = 0x0F20, |
|
1612 |
EDigitTypeMayanmar = 0x1040, |
|
1613 |
EDigitTypeKhmer = 0x17E0, |
|
1614 |
EDigitTypeAllTypes = 0xFFFF |
|
1615 |
}; |
|
1616 |
||
1617 |
||
1618 |
||
1619 |
||
1620 |
/** |
|
1621 |
@publishedAll |
|
1622 |
@released |
|
1623 |
||
1624 |
Defines the daylight saving zones. |
|
1625 |
*/ |
|
1626 |
enum TDaylightSavingZone |
|
1627 |
{ |
|
1628 |
/** |
|
1629 |
The home daylight saving zone. Its value is usually the same as that of the |
|
1630 |
zone in which the home city is located, but may differ. In this case, the |
|
1631 |
value for home overrides the value of the zone in which home is located. |
|
1632 |
*/ |
|
1633 |
EDstHome=0x40000000, |
|
1634 |
||
1635 |
/** |
|
1636 |
No daylight saving zone. |
|
1637 |
*/ |
|
1638 |
EDstNone=0, |
|
1639 |
||
1640 |
/** |
|
1641 |
The European daylight saving zone. |
|
1642 |
*/ |
|
1643 |
EDstEuropean=1, |
|
1644 |
||
1645 |
/** |
|
1646 |
The Northern hemisphere (non-European) daylight saving zone. |
|
1647 |
*/ |
|
1648 |
EDstNorthern=2, |
|
1649 |
||
1650 |
/** |
|
1651 |
Southern hemisphere daylight saving zone. |
|
1652 |
*/ |
|
1653 |
EDstSouthern=4 |
|
1654 |
}; |
|
1655 |
||
1656 |
||
1657 |
||
1658 |
||
1659 |
/** |
|
1660 |
@internalComponent |
|
1661 |
||
1662 |
Indicates how negative currency values are formatted. |
|
1663 |
*/ |
|
1664 |
enum TNegativeCurrencyFormat // must match TLocale:: version, included here so ELOCL.DLL can see it |
|
1665 |
{ |
|
1666 |
E_NegC_LeadingMinusSign, |
|
1667 |
E_NegC_InBrackets,// this one must be non-zero for binary compatibility with the old TBool TLocale::iCurrencyNegativeInBrackets which was exposed in the binary interface because it was accessed via *inline* functions |
|
1668 |
E_NegC_InterveningMinusSignWithSpaces, |
|
1669 |
E_NegC_InterveningMinusSignWithoutSpaces, |
|
1670 |
E_NegC_TrailingMinusSign |
|
1671 |
}; |
|
1672 |
||
1673 |
/** |
|
1674 |
@internalComponent |
|
1675 |
||
1676 |
||
1677 |
Indicates how the device universal time is maintained |
|
1678 |
*/ |
|
1679 |
enum TDeviceTimeState // must match TLocale:: version |
|
1680 |
{ |
|
1681 |
/** Universal time is maintained by the device RTC and the user selection |
|
1682 |
of the locale of the device indicating offset from GMT and daylight saving*/ |
|
1683 |
EDeviceUserTime, |
|
1684 |
||
1685 |
/** Universal time and offset from GMT is supplied by the mobile network |
|
1686 |
and maintained by device RTC */ |
|
1687 |
ENITZNetworkTimeSync |
|
1688 |
}; |
|
1689 |
||
1690 |
/** |
|
1691 |
@internalComponent |
|
1692 |
||
1693 |
Indicates the type of conversion required for FAT filenames |
|
1694 |
*/ |
|
1695 |
enum TFatFilenameConversionType |
|
1696 |
{ |
|
1697 |
/** Undefined conversion scheme; conversion obtained is whatever the |
|
1698 |
default policy is for this version of the OS. */ |
|
1699 |
EFatConversionDefault = 0, |
|
1700 |
/** x-fat<nnn>.dll is loaded, where <nnn> is the FAT filename conversion number. */ |
|
1701 |
EFatConversionNonStandard = 1, |
|
1702 |
/** cp<nnn>.dll is loaded, where <nnn> is the FAT filename conversion number. */ |
|
1703 |
EFatConversionMicrosoftCodePage = 2 |
|
1704 |
}; |
|
1705 |
||
1706 |
||
1707 |
/** |
|
1708 |
@publishedAll |
|
1709 |
@released |
|
1710 |
||
1711 |
Defines the days of the week. |
|
1712 |
||
1713 |
The enumerator symbol names correspond with the days of the week, |
|
1714 |
i.e. EMonday refers to Monday etc. |
|
1715 |
*/ |
|
1716 |
enum TDay |
|
1717 |
{ |
|
1718 |
EMonday, |
|
1719 |
ETuesday, |
|
1720 |
EWednesday, |
|
1721 |
EThursday, |
|
1722 |
EFriday, |
|
1723 |
ESaturday, |
|
1724 |
ESunday |
|
1725 |
}; |
|
1726 |
||
1727 |
||
1728 |
||
1729 |
||
1730 |
/** |
|
1731 |
@publishedAll |
|
1732 |
@released |
|
1733 |
||
1734 |
Defines the months of the year. |
|
1735 |
||
1736 |
The enumerator symbol names correspond with the months of the year, |
|
1737 |
i.e. EJanuary refers to January etc. |
|
1738 |
*/ |
|
1739 |
enum TMonth |
|
1740 |
{ |
|
1741 |
EJanuary, |
|
1742 |
EFebruary, |
|
1743 |
EMarch, |
|
1744 |
EApril, |
|
1745 |
EMay, |
|
1746 |
EJune, |
|
1747 |
EJuly, |
|
1748 |
EAugust, |
|
1749 |
ESeptember, |
|
1750 |
EOctober, |
|
1751 |
ENovember, |
|
1752 |
EDecember |
|
1753 |
}; |
|
1754 |
||
1755 |
||
1756 |
||
1757 |
||
1758 |
/** |
|
1759 |
@publishedAll |
|
1760 |
@released |
|
1761 |
||
1762 |
Handle ownership flags. |
|
1763 |
||
1764 |
The flags indicate whether a handle being opened is owned by a process or |
|
1765 |
a thread. |
|
1766 |
||
1767 |
Ownership by a process means that the handle instance can be used by all |
|
1768 |
threads in the process to access the Kernel side object that the |
|
1769 |
handle represents. |
|
1770 |
||
1771 |
Ownership by a thread means that the handle instance can only be used by the |
|
1772 |
thread that creates or opens the handle. |
|
1773 |
||
1774 |
An enumerator of this type is passed to all member functions of RHandleBase, |
|
1775 |
and classes derived from RHandleBase, which open a handle. |
|
1776 |
*/ |
|
1777 |
enum TOwnerType { |
|
1778 |
/** |
|
1779 |
Ownership of the handle is to be vested in the process. |
|
1780 |
*/ |
|
1781 |
EOwnerProcess, |
|
1782 |
||
1783 |
/** |
|
1784 |
Ownership of the handle is to be vested in the thread. |
|
1785 |
*/ |
|
1786 |
EOwnerThread |
|
1787 |
}; |
|
1788 |
||
1789 |
||
1790 |
||
1791 |
||
1792 |
const TInt KCreateProtectedObject = (TInt)0x80000000; |
|
1793 |
||
1794 |
||
1795 |
||
1796 |
||
1797 |
||
1798 |
/** |
|
1799 |
@publishedAll |
|
1800 |
@released |
|
1801 |
||
1802 |
Defines process priorities. |
|
1803 |
||
1804 |
The enumerator values are passed to RProcess::SetPriority(). |
|
1805 |
||
1806 |
The priorities are listed in relative order stating with the lowest. |
|
1807 |
*/ |
|
1808 |
enum TProcessPriority |
|
1809 |
{ |
|
1810 |
EPriorityLow=150, |
|
1811 |
EPriorityBackground=250, |
|
1812 |
EPriorityForeground=350, |
|
1813 |
EPriorityHigh=450, |
|
1814 |
EPriorityWindowServer=650, |
|
1815 |
EPriorityFileServer=750, |
|
1816 |
EPriorityRealTimeServer=850, |
|
1817 |
EPrioritySupervisor=950 |
|
1818 |
}; |
|
1819 |
||
1820 |
||
1821 |
||
1822 |
||
1823 |
/** |
|
1824 |
@publishedAll |
|
1825 |
@released |
|
1826 |
||
1827 |
Defines thread priorities. |
|
1828 |
||
1829 |
The enumerator values are passed to RThread::SetPriority(). |
|
1830 |
||
1831 |
The relative priorities are listed in order starting with the lowest. |
|
1832 |
||
1833 |
The absolute thread priorities are listed in order starting with the lowest. |
|
1834 |
*/ |
|
1835 |
enum TThreadPriority |
|
1836 |
{ |
|
1837 |
EPriorityNull=(-30), |
|
1838 |
EPriorityMuchLess=(-20), |
|
1839 |
EPriorityLess=(-10), |
|
1840 |
EPriorityNormal=0, |
|
1841 |
EPriorityMore=10, |
|
1842 |
EPriorityMuchMore=20, |
|
1843 |
EPriorityRealTime=30, |
|
1844 |
EPriorityAbsoluteVeryLow=100, |
|
1845 |
EPriorityAbsoluteLowNormal=150, |
|
1846 |
EPriorityAbsoluteLow=200, |
|
1847 |
EPriorityAbsoluteBackgroundNormal=250, |
|
1848 |
EPriorityAbsoluteBackground=300, |
|
1849 |
EPriorityAbsoluteForegroundNormal=350, |
|
1850 |
EPriorityAbsoluteForeground=400, |
|
1851 |
EPriorityAbsoluteHighNormal=450, |
|
1852 |
EPriorityAbsoluteHigh=500, |
|
1853 |
EPriorityAbsoluteRealTime1=810, |
|
1854 |
EPriorityAbsoluteRealTime2=820, |
|
1855 |
EPriorityAbsoluteRealTime3=830, |
|
1856 |
EPriorityAbsoluteRealTime4=840, |
|
1857 |
EPriorityAbsoluteRealTime5=850, |
|
1858 |
EPriorityAbsoluteRealTime6=860, |
|
1859 |
EPriorityAbsoluteRealTime7=870, |
|
1860 |
EPriorityAbsoluteRealTime8=880 |
|
1861 |
}; |
|
1862 |
||
1863 |
||
1864 |
/** |
|
1865 |
@publishedAll |
|
1866 |
@released |
|
1867 |
||
1868 |
A list of exception types which a thread's exception handler might deal with. |
|
1869 |
An enumerator of this type is passed to User::IsExceptionHandled() |
|
1870 |
and User::RaiseException(). |
|
1871 |
||
1872 |
While an exception handler can deal with exceptions as listed in the exception |
|
1873 |
constants set, a TExcType is simply a type of exception. |
|
1874 |
For example, EExcIntegerDivideByZero and EExcIntegerOverflow are types |
|
1875 |
of KExceptionInteger exception. |
|
1876 |
*/ |
|
1877 |
enum TExcType |
|
1878 |
{ |
|
1879 |
EExcGeneral=0, ///<A miscellaneous exception. |
|
1880 |
EExcIntegerDivideByZero=1, ///<An attempt was made to divide an integer by zero. |
|
1881 |
EExcSingleStep=2, ///<Raised after executing an instruction, when CPU is in single-step mode. |
|
1882 |
EExcBreakPoint=3, ///<A break point was hit. |
|
1883 |
EExcIntegerOverflow=4, ///<An integer value overflowed. |
|
1884 |
EExcBoundsCheck=5, ///<Access to an out of bounds array element was caught. |
|
1885 |
EExcInvalidOpCode=6, ///<The CPU reached an invalid instruction. |
|
1886 |
EExcDoubleFault=7, ///<A fault occurred while handling a previous exception or interrupt. |
|
1887 |
EExcStackFault=8, ///<The thread ran out of stack space. |
|
1888 |
EExcAccessViolation=9, ///<The thread attempted to access memory in an unauthorized area. |
|
1889 |
EExcPrivInstruction=10, ///<Attempted to execute an instruction in wrong machine mode. |
|
1890 |
EExcAlignment=11, ///<The thread tried to read or write non-aligned data. |
|
1891 |
EExcPageFault=12, ///<Thread could not access the memory page requested. |
|
1892 |
EExcFloatDenormal=13, ///<An operand in a floating point operation was denormal. |
|
1893 |
EExcFloatDivideByZero=14, ///<An attempt was made to divide a floating point number by zero. |
|
1894 |
EExcFloatInexactResult=15, ///<The result of a floating point operation could not be represented precisely. |
|
1895 |
EExcFloatInvalidOperation=16, ///<The result of a floating point operation was an ill-defined quantity. |
|
1896 |
EExcFloatOverflow=17, ///<The result of a floating point operation was too large to be represented. |
|
1897 |
EExcFloatStackCheck=18, ///<The result of a floating point operation caused the stack to over or underflow. |
|
1898 |
EExcFloatUnderflow=19, ///<The result of a floating point operation was too small to be represented. |
|
1899 |
EExcAbort=20, ///<This exception is not raised by the Kernel, though it may be raised by a user thread on itself. |
|
1900 |
EExcKill=21, ///<This exception is not raised by the Kernel, though it may be raised by a user thread on itself. |
|
1901 |
EExcUserInterrupt=22, ///<May be used to indicate a general exception. |
|
1902 |
EExcDataAbort=23, ///<The thread has tried to read data from an invalid address. |
|
1903 |
EExcCodeAbort=24, ///<The thread has tried to fetch an instruction from an invalid address. |
|
1904 |
EExcMaxNumber=25, ///<Do not use. |
|
1905 |
EExcInvalidVector=26, ///<Do not use. |
|
1906 |
}; |
|
1907 |
||
1908 |
||
1909 |
||
1910 |
/** |
|
1911 |
@publishedAll |
|
1912 |
@released |
|
1913 |
||
1914 |
Identifies how a thread or process has ended. |
|
1915 |
||
1916 |
While a thread or process is alive, its exit type is always EExitPending. |
|
1917 |
||
1918 |
Both RThread::ExitType() and RProcess::ExitType() return a TExitType. |
|
1919 |
||
1920 |
@see RThread::ExitType() |
|
1921 |
@see RProcess::ExitType() |
|
1922 |
@see User::Exit() |
|
1923 |
@see RThread::Kill() |
|
1924 |
@see RProcess::Kill() |
|
1925 |
*/ |
|
1926 |
enum TExitType { |
|
1927 |
/** |
|
1928 |
The thread or process has ended under normal conditions, i.e. as a result of either: |
|
1929 |
1. The thread or process running to completion. |
|
1930 |
2. User::Exit() being invoked. |
|
1931 |
3. RThread::Kill() or RProcess::Kill() being invoked on the RThread or RProcess handle, respectively. |
|
1932 |
*/ |
|
1933 |
EExitKill, |
|
1934 |
||
1935 |
/** |
|
1936 |
The thread or process has ended as a result of a terminate, |
|
1937 |
i.e. Terminate() has been called on the RThread or RProcess handle. |
|
1938 |
*/ |
|
1939 |
EExitTerminate, |
|
1940 |
||
1941 |
/** |
|
1942 |
The thread or process has been panicked. |
|
1943 |
*/ |
|
1944 |
EExitPanic, |
|
1945 |
||
1946 |
/** |
|
1947 |
The thread or process is alive. |
|
1948 |
*/ |
|
1949 |
EExitPending |
|
1950 |
}; |
|
1951 |
||
1952 |
||
1953 |
||
1954 |
||
1955 |
/** |
|
1956 |
@publishedAll |
|
1957 |
@released |
|
1958 |
||
1959 |
An enumeration whose enumerators govern the alignment of data which is copied |
|
1960 |
or formatted into a descriptor. |
|
1961 |
||
1962 |
@see TDes8::Justify() |
|
1963 |
@see TDes8::AppendJustify() |
|
1964 |
@see TDes16::Justify() |
|
1965 |
@see TDes16::AppendJustify() |
|
1966 |
*/ |
|
1967 |
enum TAlign { |
|
1968 |
/** |
|
1969 |
Data is left aligned |
|
1970 |
*/ |
|
1971 |
ELeft, |
|
1972 |
/** |
|
1973 |
Data is centered |
|
1974 |
*/ |
|
1975 |
ECenter, |
|
1976 |
/** |
|
1977 |
Data is right aligned |
|
1978 |
*/ |
|
1979 |
ERight |
|
1980 |
}; |
|
1981 |
||
1982 |
||
1983 |
||
1984 |
||
1985 |
/** |
|
1986 |
@publishedAll |
|
1987 |
@released |
|
1988 |
||
1989 |
A mask for the set of flags that govern the general format |
|
1990 |
of the character representation of a real number. |
|
1991 |
||
1992 |
These are the flags with symbols starting KRealFormat... |
|
1993 |
*/ |
|
1994 |
const TInt KRealFormatTypesMask=0x00000007; |
|
1995 |
||
1996 |
||
1997 |
||
1998 |
||
1999 |
/** |
|
2000 |
@publishedAll |
|
2001 |
@released |
|
2002 |
||
2003 |
Defines the general format of the character representation of a real number. |
|
2004 |
The TRealFormat::iType data member is set to one of these. |
|
2005 |
||
2006 |
The real number is converted to fixed format which has the general pattern: |
|
2007 |
"nnn.ddd", where nnn is the integer portion and ddd is the decimal portion. |
|
2008 |
A negative value is prefixed by a minus sign. |
|
2009 |
||
2010 |
The number of decimal places generated is defined by the value of |
|
2011 |
TRealFormat::iPlaces. Trailing zeroes are generated as required. |
|
2012 |
If necessary, the decimal portion is rounded to fit the specification. |
|
2013 |
If this value is zero, no decimal point and no decimal portion is generated. |
|
2014 |
||
2015 |
Triad separation is available, |
|
2016 |
defined by TRealFormat::iTriad and TRealFormat::iTriLen. |
|
2017 |
||
2018 |
Note that a zero value is converted either to the form "0.000..." with |
|
2019 |
iPlaces '0' characters after the decimal point, if iPlaces is greater than |
|
2020 |
zero, or to "0" if iPlaces is zero. |
|
2021 |
||
2022 |
@see TRealFormat |
|
2023 |
*/ |
|
2024 |
const TInt KRealFormatFixed=1; |
|
2025 |
||
2026 |
||
2027 |
||
2028 |
||
2029 |
/** |
|
2030 |
@publishedAll |
|
2031 |
@released |
|
2032 |
||
2033 |
Defines the general format of the character representation of a real number. |
|
2034 |
The TRealFormat::iType data member is set to one of these. |
|
2035 |
||
2036 |
The real number is converted to scientific format with one non-zero digit |
|
2037 |
before the decimal point and a number of digits after the decimal point. |
|
2038 |
Hence the number has the general pattern: |
|
2039 |
"n.dddE+ee" or "n.dddE-ee", or "n.dddE+eee" or "n.dddE-eee". |
|
2040 |
||
2041 |
The decimal portion is followed by the character 'E', a sign ('+' or '-') |
|
2042 |
and the exponent as two digits, including leading zeroes, if necessary. |
|
2043 |
If necessary, the decimal portion is rounded. |
|
2044 |
||
2045 |
A negative value is prefixed by a minus sign. |
|
2046 |
||
2047 |
If the flag KUseSigFigs is not set, TRealFormat::iPlaces defines the number |
|
2048 |
of digits which follow the decimal point. If the flag KUseSigFigs is set, |
|
2049 |
iPlaces defines the maximum number of significant digits to be generated. |
|
2050 |
||
2051 |
Note that, by default, exponents are limited to two digits. |
|
2052 |
Those numbers that require three digits must have the flag |
|
2053 |
KAllowThreeDigitExp set. If iPlaces is zero, the value is rounded to one digit |
|
2054 |
of precision and no decimal point is included. |
|
2055 |
||
2056 |
Triad separation is not available. |
|
2057 |
||
2058 |
Note that a zero value is converted either to the form "0.000...E+00" with |
|
2059 |
iPlaces '0' characters after the decimal point, if iPlaces is greater than |
|
2060 |
zero, or to "0E+00" if iPlaces is zero. |
|
2061 |
||
2062 |
@see TRealFormat |
|
2063 |
*/ |
|
2064 |
const TInt KRealFormatExponent=2; |
|
2065 |
||
2066 |
||
2067 |
||
2068 |
||
2069 |
/** |
|
2070 |
@publishedAll |
|
2071 |
@released |
|
2072 |
||
2073 |
Defines the general format of the character representation of a real number. |
|
2074 |
The TRealFormat::iType data member is set to one of these. |
|
2075 |
||
2076 |
The real number is converted either to fixed or scientific format. |
|
2077 |
The format chosen is the one which can present the greater number of |
|
2078 |
significant digits. Where both formats can present the same number of |
|
2079 |
significant digits, fixed format is used. |
|
2080 |
||
2081 |
The number of decimal places generated depends only on the value of |
|
2082 |
TRealFormat::iWidth; the value of the iPlaces member is ignored. |
|
2083 |
||
2084 |
Trailing zeroes in the decimal portion are discarded. |
|
2085 |
||
2086 |
Triad separation is not available. |
|
2087 |
||
2088 |
Note that a zero value is converted to "0". |
|
2089 |
||
2090 |
@see TRealFormat |
|
2091 |
*/ |
|
2092 |
const TInt KRealFormatGeneral=3; |
|
2093 |
||
2094 |
||
2095 |
||
2096 |
||
2097 |
/** |
|
2098 |
@publishedAll |
|
2099 |
@released |
|
2100 |
||
2101 |
Defines the general format of the character representation of a real number. |
|
2102 |
The TRealFormat::iType data member is set to one of these. |
|
2103 |
||
2104 |
The same as KRealFormatFixed but the TRealFormat::iPlaces is interpreted as |
|
2105 |
specifying the maximum number of significant digits. |
|
2106 |
||
2107 |
Trailing zeroes in the decimal portion are discarded. |
|
2108 |
||
2109 |
@see TRealFormat |
|
2110 |
*/ |
|
2111 |
const TInt KRealFormatNoExponent=4; |
|
2112 |
||
2113 |
||
2114 |
||
2115 |
||
2116 |
/** |
|
2117 |
@publishedAll |
|
2118 |
@released |
|
2119 |
||
2120 |
Defines the general format of the character representation of a real number. |
|
2121 |
The TRealFormat::iType data member is set to one of these. |
|
2122 |
||
2123 |
The same as KRealFormatGeneral but TRealFormat::iPlaces is interpreted as |
|
2124 |
specifying the maximum number of significant digits, and the number is |
|
2125 |
displayed without an exponent whenever possible. |
|
2126 |
||
2127 |
Trailing zeroes in the decimal portion are discarded. |
|
2128 |
||
2129 |
@see TRealFormat |
|
2130 |
*/ |
|
2131 |
const TInt KRealFormatCalculator=5; |
|
2132 |
||
2133 |
||
2134 |
||
2135 |
||
2136 |
// Extra flags ORed in with the previous types |
|
2137 |
||
2138 |
||
2139 |
/** |
|
2140 |
@publishedAll |
|
2141 |
@released |
|
2142 |
||
2143 |
A bitmask for all flags except those with symbols starting KRealFormat... |
|
2144 |
*/ |
|
2145 |
const TInt KRealFormatTypeFlagsMask=0x7E000000; |
|
2146 |
||
2147 |
||
2148 |
||
2149 |
||
2150 |
/** |
|
2151 |
@publishedAll |
|
2152 |
@released |
|
2153 |
||
2154 |
A flag that modifies the format of the character representation of a real |
|
2155 |
number. |
|
2156 |
||
2157 |
It reduces the effective width by one character. This forces a large enough |
|
2158 |
value for TRealFormat::iWidth to be chosen to guarantee that positive and |
|
2159 |
negative numbers can be shown to the same precision. |
|
2160 |
||
2161 |
It applies when TRealFormat::iType is set to KRealFormatFixed |
|
2162 |
or KRealFormatGeneral, and should be ORed into TRealFormat::iType after one of |
|
2163 |
these types has been set. |
|
2164 |
*/ |
|
2165 |
const TInt KExtraSpaceForSign=0x40000000; |
|
2166 |
||
2167 |
||
2168 |
||
2169 |
/** |
|
2170 |
@publishedAll |
|
2171 |
@released |
|
2172 |
||
2173 |
A flag that modifies the format of the character representation of a real |
|
2174 |
number. |
|
2175 |
||
2176 |
It allows an exponent to be formatted whose magnitude is greater than 100. |
|
2177 |
If this flag is not set, an attempt to format such a number fails. |
|
2178 |
||
2179 |
If set, three digit exponents are allowed. If not set, only two digit |
|
2180 |
exponents are allowed. |
|
2181 |
||
2182 |
Applies when TRealFormat::iType is set to KRealFormatExponent |
|
2183 |
or KRealFormatGeneral, and should be ORed into TRealFormat::iType after one of |
|
2184 |
these types has been set. |
|
2185 |
*/ |
|
2186 |
const TInt KAllowThreeDigitExp=0x20000000; |
|
2187 |
||
2188 |
||
2189 |
||
2190 |
||
2191 |
/** |
|
2192 |
@publishedAll |
|
2193 |
@released |
|
2194 |
||
2195 |
A flag that modifies the format of the character representation of a real |
|
2196 |
number. |
|
2197 |
||
2198 |
If set, the TRealFormat::iPlaces member is interpreted as the maximum number |
|
2199 |
of significant digits to be generated. |
|
2200 |
||
2201 |
Applies when TRealFormat::iType is set to KRealFormatExponent, and should be |
|
2202 |
ORed into TRealFormat::iType after this type has been set. |
|
2203 |
*/ |
|
2204 |
const TInt KUseSigFigs=0x10000000; |
|
2205 |
||
2206 |
||
2207 |
||
2208 |
||
2209 |
/** |
|
2210 |
@publishedAll |
|
2211 |
@released |
|
2212 |
||
2213 |
A flag that modifies the format of the character representation of a real |
|
2214 |
number. |
|
2215 |
||
2216 |
It disables triad separation. |
|
2217 |
||
2218 |
Applies when TRealFormat::iType is set to KRealFormatFixed |
|
2219 |
or KRealFormatNoExponent, and should be ORed into TRealFormat::iType after one of |
|
2220 |
these types has been set. |
|
2221 |
*/ |
|
2222 |
const TInt KDoNotUseTriads=0x08000000; |
|
2223 |
||
2224 |
||
2225 |
||
2226 |
||
2227 |
/** |
|
2228 |
@publishedAll |
|
2229 |
@released |
|
2230 |
||
2231 |
A flag that modifies the format of the character representation of a real |
|
2232 |
number. |
|
2233 |
||
2234 |
If set, this flag limits the precision to KPrecisionLimit digits. |
|
2235 |
If not set, the precision defaults to KMaxPrecision digits. |
|
2236 |
||
2237 |
This flag should be ORed into TRealFormat::iType. |
|
2238 |
*/ |
|
2239 |
const TInt KGeneralLimit=0x04000000; |
|
2240 |
||
2241 |
||
2242 |
||
2243 |
||
2244 |
/** |
|
2245 |
@publishedAll |
|
2246 |
@released |
|
2247 |
||
2248 |
A flag that modifies the format of the character representation of a real |
|
2249 |
number. |
|
2250 |
||
2251 |
If set, this flag allows enough digits of precision such that the mapping from |
|
2252 |
numeric to string form is injective. For a TReal (=double) input argument |
|
2253 |
this means KIEEEDoubleInjectivePrecision digits. |
|
2254 |
This flag overrides the KGeneralLimit flag if both are set. |
|
2255 |
||
2256 |
This flag should be ORed into TRealFormat::iType. |
|
2257 |
*/ |
|
2258 |
const TInt KRealInjectiveLimit=0x02000000; |
|
2259 |
||
2260 |
||
2261 |
||
2262 |
||
2263 |
/** |
|
2264 |
@publishedAll |
|
2265 |
@released |
|
2266 |
||
2267 |
A value, which when passed to the new operator, indicates that the operation |
|
2268 |
is to leave if insufficient memory available. |
|
2269 |
*/ |
|
2270 |
enum TLeave {ELeave}; |
|
2271 |
||
2272 |
||
2273 |
||
2274 |
||
2275 |
/** |
|
2276 |
@publishedAll |
|
2277 |
@released |
|
2278 |
||
2279 |
Defines the way in which the first week in a year is determined. |
|
2280 |
*/ |
|
2281 |
enum TFirstWeekRule { |
|
2282 |
/** |
|
2283 |
The first week in the year is always the week containing |
|
2284 |
the first day of the year. |
|
2285 |
*/ |
|
2286 |
EFirstWeek, |
|
2287 |
/** |
|
2288 |
If at least four days of the new year occur during the week |
|
2289 |
containing the first day then this is the first week in the |
|
2290 |
year. Otherwise the first week in the year is the following |
|
2291 |
week. This is the default and complies with the |
|
2292 |
international standard. |
|
2293 |
*/ |
|
2294 |
EFirstFourDayWeek, |
|
2295 |
/** |
|
2296 |
The first week in the year is the first week of which all |
|
2297 |
seven days occur within the new year. |
|
2298 |
*/ |
|
2299 |
EFirstFullWeek |
|
2300 |
}; |
|
2301 |
||
2302 |
||
2303 |
||
2304 |
||
2305 |
/** |
|
2306 |
@publishedAll |
|
2307 |
@released |
|
2308 |
||
2309 |
Timer lock specifications. |
|
2310 |
||
2311 |
They are used by CTimer::Lock() to define the fraction of a second in which |
|
2312 |
to call its RunL() function. |
|
2313 |
||
2314 |
@see CTimer |
|
2315 |
*/ |
|
2316 |
enum TTimerLockSpec |
|
2317 |
{ |
|
2318 |
/** Timer tick is at 1/12 past the second. */ |
|
2319 |
EOneOClock, |
|
2320 |
||
2321 |
/** Timer tick is at 2/12 past the second */ |
|
2322 |
ETwoOClock, |
|
2323 |
||
2324 |
/** Timer tick is at 3/12 past the second */ |
|
2325 |
EThreeOClock, |
|
2326 |
||
2327 |
/** Timer tick is at 4/12 past the second */ |
|
2328 |
EFourOClock, |
|
2329 |
||
2330 |
/** Timer tick is at 5/12 past the second */ |
|
2331 |
EFiveOClock, |
|
2332 |
||
2333 |
/** Timer tick is at 6/12 past the second */ |
|
2334 |
ESixOClock, |
|
2335 |
||
2336 |
/** Timer tick is at 7/12 past the second */ |
|
2337 |
ESevenOClock, |
|
2338 |
||
2339 |
/** Timer tick is at 8/12 past the second */ |
|
2340 |
EEightOClock, |
|
2341 |
||
2342 |
/** Timer tick is at 9/12 past the second */ |
|
2343 |
ENineOClock, |
|
2344 |
||
2345 |
/** Timer tick is at 10/12 past the second */ |
|
2346 |
ETenOClock, |
|
2347 |
||
2348 |
/** Timer tick is at 11/12 past the second */ |
|
2349 |
EElevenOClock, |
|
2350 |
||
2351 |
/** Timer tick is on the second */ |
|
2352 |
ETwelveOClock |
|
2353 |
}; |
|
2354 |
||
2355 |
||
2356 |
||
2357 |
||
2358 |
/** |
|
2359 |
@publishedAll |
|
2360 |
@released |
|
2361 |
||
2362 |
Defines the possible environment changes which may be reported by |
|
2363 |
a change notifier through the RChangeNotifier interface. |
|
2364 |
||
2365 |
Each enumerator corresponds to a distinct type of event. |
|
2366 |
||
2367 |
The changes are reported through a TRequestStatus object when a request to |
|
2368 |
the change notifier completes. As each enumerator value represents |
|
2369 |
a separate bit, any combination of events can be reported. |
|
2370 |
||
2371 |
@see RChangeNotifier |
|
2372 |
@see TRequestStatus |
|
2373 |
@see TLocale |
|
2374 |
*/ |
|
2375 |
enum TChanges |
|
2376 |
{ |
|
2377 |
/** |
|
2378 |
The system locale has changed. |
|
2379 |
||
2380 |
Typically this event occurs as a result of a call to TLocale::Set(). |
|
2381 |
*/ |
|
2382 |
EChangesLocale=0x01, |
|
2383 |
||
2384 |
||
2385 |
/** |
|
2386 |
The system time has passed midnight. |
|
2387 |
*/ |
|
2388 |
EChangesMidnightCrossover=0x02, |
|
2389 |
||
2390 |
||
2391 |
/** |
|
2392 |
A thread has died. |
|
2393 |
||
2394 |
This event is reported when any thread in the system dies. |
|
2395 |
*/ |
|
2396 |
EChangesThreadDeath=0x04, |
|
2397 |
||
2398 |
||
2399 |
/** |
|
2400 |
The status of the power supply has changed. |
|
2401 |
*/ |
|
2402 |
EChangesPowerStatus=0x08, |
|
2403 |
||
2404 |
||
2405 |
/** |
|
2406 |
The system time has changed. |
|
2407 |
*/ |
|
2408 |
EChangesSystemTime=0x10, |
|
2409 |
||
2410 |
||
2411 |
/** |
|
2412 |
The free memory level has crossed a specified threshold value. |
|
2413 |
||
2414 |
On systems that support data paging, this is also generated where the available swap space |
|
2415 |
crosses one of the specified threshold values. |
|
2416 |
*/ |
|
2417 |
EChangesFreeMemory=0x20, |
|
2418 |
||
2419 |
||
2420 |
/** |
|
2421 |
A memory allocation has failed due to insufficient free memory. |
|
2422 |
*/ |
|
2423 |
EChangesOutOfMemory=0x40, |
|
2424 |
||
2425 |
||
2426 |
/** |
|
2427 |
The free memory level has fallen below the low-memory threshold |
|
2428 |
@see UserSvr::SetMemoryThresholds() |
|
2429 |
*/ |
|
2430 |
EChangesLowMemory=0x80, |
|
2431 |
||
2432 |
/** |
|
2433 |
On systems that support data paging, this is generated where the thrashing level crosses one of |
|
2434 |
the specified threshold values. |
|
2435 |
*/ |
|
2436 |
EChangesThrashLevel=0x100, |
|
2437 |
||
2438 |
/********************************************************************************** |
|
2439 |
** IF YOU ADD A NEW VALUE HERE, YOU NEED TO UPDATE DChangeNotifier CONSTRUCTOR ** |
|
2440 |
**********************************************************************************/ |
|
2441 |
}; |
|
2442 |
||
2443 |
||
2444 |
||
2445 |
||
2446 |
/** |
|
2447 |
@publishedAll |
|
2448 |
@released |
|
2449 |
||
2450 |
Defines a pointer to a thread function which takes a pointer of |
|
2451 |
type TAny and returns a TInt. |
|
2452 |
||
2453 |
A function of this type is passed as parameter to RThread::Create() |
|
2454 |
when creating a thread. Control passes to this function when the thread |
|
2455 |
is first scheduled for execution. |
|
2456 |
||
2457 |
@see RThread |
|
2458 |
*/ |
|
2459 |
typedef TInt (*TThreadFunction)(TAny*); |
|
2460 |
||
2461 |
||
2462 |
||
2463 |
||
2464 |
/** |
|
2465 |
@publishedAll |
|
2466 |
@released |
|
2467 |
||
2468 |
Defines a function that takes no arguments but returns a TInt. |
|
2469 |
||
2470 |
This is a type which is returned from a call to RLibrary::Lookup(). |
|
2471 |
||
2472 |
@see RLibrary |
|
2473 |
*/ |
|
2474 |
typedef TInt (*TLibraryFunction)(); |
|
2475 |
||
2476 |
||
2477 |
||
2478 |
||
2479 |
/** |
|
2480 |
@publishedAll |
|
2481 |
@released |
|
2482 |
||
2483 |
Defines a function that takes a single argument of type TInt and returns a TInt. |
|
2484 |
||
2485 |
This is a type which is returned from a call to RLibrary::EntryPoint(). |
|
2486 |
||
2487 |
@see RLibrary |
|
2488 |
*/ |
|
2489 |
typedef TInt (*TLibraryEntry)(TInt); |
|
2490 |
||
2491 |
||
2492 |
||
2493 |
/** |
|
2494 |
@publishedAll |
|
2495 |
@released |
|
2496 |
||
2497 |
Defines an exception handler function which takes a TExcType as an argument, |
|
2498 |
and returns void. |
|
2499 |
||
2500 |
A function of this type is an exception handler used by member functions |
|
2501 |
of a thread handle, RThread. |
|
2502 |
||
2503 |
@see RThread |
|
2504 |
@see TExcType |
|
2505 |
*/ |
|
2506 |
typedef void (*TExceptionHandler)(TExcType); |
|
2507 |
||
2508 |
||
2509 |
||
2510 |
||
2511 |
// masking constants |
|
2512 |
||
2513 |
/** |
|
2514 |
@publishedAll |
|
2515 |
@released |
|
2516 |
||
2517 |
One of a set of flags that categorizes exceptions - associated with |
|
2518 |
the abort exception only. |
|
2519 |
||
2520 |
@see RThread::SetExceptionHandler() |
|
2521 |
@see RThread::ModifyExceptionMask() |
|
2522 |
*/ |
|
2523 |
const TUint KExceptionAbort=0x01; |
|
2524 |
||
2525 |
||
2526 |
||
2527 |
||
2528 |
/** |
|
2529 |
@publishedAll |
|
2530 |
@released |
|
2531 |
||
2532 |
One of a set of flags that categorizes exceptions - associated with |
|
2533 |
the kill exception only. |
|
2534 |
||
2535 |
@see RThread::SetExceptionHandler() |
|
2536 |
@see RThread::ModifyExceptionMask() |
|
2537 |
*/ |
|
2538 |
const TUint KExceptionKill=0x02; |
|
2539 |
||
2540 |
||
2541 |
||
2542 |
||
2543 |
/** |
|
2544 |
@publishedAll |
|
2545 |
@released |
|
2546 |
||
2547 |
One of a set of flags that categorizes exceptions - general |
|
2548 |
and user exceptions. |
|
2549 |
||
2550 |
@see RThread::SetExceptionHandler() |
|
2551 |
@see RThread::ModifyExceptionMask() |
|
2552 |
*/ |
|
2553 |
const TUint KExceptionUserInterrupt=0x04; |
|
2554 |
||
2555 |
||
2556 |
||
2557 |
||
2558 |
/** |
|
2559 |
@publishedAll |
|
2560 |
@released |
|
2561 |
||
2562 |
One of a set of flags that categorizes exceptions - exceptions caused |
|
2563 |
by illegal floating point operations. This exception is not guaranteed |
|
2564 |
to be raised when a hardware floating point implementation is in use. |
|
2565 |
||
2566 |
@see RThread::SetExceptionHandler() |
|
2567 |
@see RThread::ModifyExceptionMask() |
|
2568 |
*/ |
|
2569 |
const TUint KExceptionFpe=0x08; |
|
2570 |
||
2571 |
||
2572 |
||
2573 |
||
2574 |
/** |
|
2575 |
@publishedAll |
|
2576 |
@released |
|
2577 |
||
2578 |
One of a set of flags that categorizes exceptions - exceptions associated |
|
2579 |
with executing instructions; includes protection faults, |
|
2580 |
illegal instruction codes, page faults etc |
|
2581 |
||
2582 |
@see RThread::SetExceptionHandler() |
|
2583 |
@see RThread::ModifyExceptionMask() |
|
2584 |
*/ |
|
2585 |
const TUint KExceptionFault=0x10; |
|
2586 |
||
2587 |
||
2588 |
||
2589 |
||
2590 |
/** |
|
2591 |
@publishedAll |
|
2592 |
@released |
|
2593 |
||
2594 |
One of a set of flags that categorizes exceptions - exceptions caused |
|
2595 |
by illegal operations on integer values. |
|
2596 |
*/ |
|
2597 |
const TUint KExceptionInteger=0x20; |
|
2598 |
||
2599 |
||
2600 |
||
2601 |
||
2602 |
/** |
|
2603 |
@publishedAll |
|
2604 |
@released |
|
2605 |
||
2606 |
One of a set of flags that categorizes exceptions - exceptions raised |
|
2607 |
when debugging code. |
|
2608 |
||
2609 |
@see RThread::SetExceptionHandler() |
|
2610 |
@see RThread::ModifyExceptionMask() |
|
2611 |
*/ |
|
2612 |
const TUint KExceptionDebug=0x40; |
|
2613 |
||
2614 |
||
2615 |
||
2616 |
||
2617 |
/** |
|
2618 |
@publishedAll |
|
2619 |
@released |
|
2620 |
||
2621 |
Aligns the specified value on the boundary defined by __Size. |
|
2622 |
This is usually 4 for byte alignment or 2 for double-byte alignment. |
|
2623 |
||
2624 |
@param s The value to be aligned. |
|
2625 |
*/ |
|
2626 |
#define __Align(s) ((((s)+__Size-1)/__Size)*__Size) |
|
2627 |
||
2628 |
||
2629 |
||
2630 |
||
2631 |
/** |
|
2632 |
@publishedAll |
|
2633 |
@released |
|
2634 |
||
2635 |
Defines the type of environment data passed to a process |
|
2636 |
when that process is created. |
|
2637 |
||
2638 |
The data can be either a handle or just binary data. |
|
2639 |
*/ |
|
2640 |
enum TProcessParameterType |
|
2641 |
{ |
|
2642 |
EHandle=1, |
|
2643 |
EBinaryData=2, |
|
2644 |
}; |
|
2645 |
||
2646 |
||
2647 |
||
2648 |
||
2649 |
// bitwise constants |
|
2650 |
||
2651 |
/** |
|
2652 |
@publishedAll |
|
2653 |
@released |
|
2654 |
||
2655 |
Constant that defines the specified bit value. |
|
2656 |
*/ |
|
2657 |
const TUint32 KBit0= 0x00000001; |
|
2658 |
||
2659 |
||
2660 |
||
2661 |
||
2662 |
/** |
|
2663 |
@publishedAll |
|
2664 |
@released |
|
2665 |
||
2666 |
Constant that defines the specified bit value. |
|
2667 |
*/ |
|
2668 |
const TUint32 KBit1= 0x00000002; |
|
2669 |
||
2670 |
||
2671 |
||
2672 |
||
2673 |
/** |
|
2674 |
@publishedAll |
|
2675 |
@released |
|
2676 |
||
2677 |
Constant that defines the specified bit value. |
|
2678 |
*/ |
|
2679 |
const TUint32 KBit2= 0x00000004; |
|
2680 |
||
2681 |
||
2682 |
||
2683 |
||
2684 |
/** |
|
2685 |
@publishedAll |
|
2686 |
@released |
|
2687 |
||
2688 |
Constant that defines the specified bit value. |
|
2689 |
*/ |
|
2690 |
const TUint32 KBit3= 0x00000008; |
|
2691 |
||
2692 |
||
2693 |
||
2694 |
||
2695 |
/** |
|
2696 |
@publishedAll |
|
2697 |
@released |
|
2698 |
||
2699 |
Constant that defines the specified bit value. |
|
2700 |
*/ |
|
2701 |
const TUint32 KBit4= 0x00000010; |
|
2702 |
||
2703 |
||
2704 |
||
2705 |
||
2706 |
/** |
|
2707 |
@publishedAll |
|
2708 |
@released |
|
2709 |
||
2710 |
Constant that defines the specified bit value. |
|
2711 |
*/ |
|
2712 |
const TUint32 KBit5= 0x00000020; |
|
2713 |
||
2714 |
||
2715 |
||
2716 |
||
2717 |
/** |
|
2718 |
@publishedAll |
|
2719 |
@released |
|
2720 |
||
2721 |
Constant that defines the specified bit value. |
|
2722 |
*/ |
|
2723 |
const TUint32 KBit6= 0x00000040; |
|
2724 |
||
2725 |
||
2726 |
||
2727 |
||
2728 |
/** |
|
2729 |
@publishedAll |
|
2730 |
@released |
|
2731 |
||
2732 |
Constant that defines the specified bit value. |
|
2733 |
*/ |
|
2734 |
const TUint32 KBit7= 0x00000080; |
|
2735 |
||
2736 |
||
2737 |
||
2738 |
||
2739 |
/** |
|
2740 |
@publishedAll |
|
2741 |
@released |
|
2742 |
||
2743 |
Constant that defines the specified bit value. |
|
2744 |
*/ |
|
2745 |
const TUint32 KBit8= 0x00000100; |
|
2746 |
||
2747 |
||
2748 |
||
2749 |
||
2750 |
/** |
|
2751 |
@publishedAll |
|
2752 |
@released |
|
2753 |
||
2754 |
Constant that defines the specified bit value. |
|
2755 |
*/ |
|
2756 |
const TUint32 KBit9= 0x00000200; |
|
2757 |
||
2758 |
||
2759 |
||
2760 |
||
2761 |
/** |
|
2762 |
@publishedAll |
|
2763 |
@released |
|
2764 |
||
2765 |
Constant that defines the specified bit value. |
|
2766 |
*/ |
|
2767 |
const TUint32 KBit10=0x00000400; |
|
2768 |
||
2769 |
||
2770 |
||
2771 |
||
2772 |
/** |
|
2773 |
@publishedAll |
|
2774 |
@released |
|
2775 |
||
2776 |
Constant that defines the specified bit value. |
|
2777 |
*/ |
|
2778 |
const TUint32 KBit11=0x00000800; |
|
2779 |
||
2780 |
||
2781 |
||
2782 |
||
2783 |
/** |
|
2784 |
@publishedAll |
|
2785 |
@released |
|
2786 |
||
2787 |
Constant that defines the specified bit value. |
|
2788 |
*/ |
|
2789 |
const TUint32 KBit12=0x00001000; |
|
2790 |
||
2791 |
||
2792 |
||
2793 |
||
2794 |
/** |
|
2795 |
@publishedAll |
|
2796 |
@released |
|
2797 |
||
2798 |
Constant that defines the specified bit value. |
|
2799 |
*/ |
|
2800 |
const TUint32 KBit13=0x00002000; |
|
2801 |
||
2802 |
||
2803 |
||
2804 |
||
2805 |
/** |
|
2806 |
@publishedAll |
|
2807 |
@released |
|
2808 |
||
2809 |
Constant that defines the specified bit value. |
|
2810 |
*/ |
|
2811 |
const TUint32 KBit14=0x00004000; |
|
2812 |
||
2813 |
||
2814 |
||
2815 |
||
2816 |
/** |
|
2817 |
@publishedAll |
|
2818 |
@released |
|
2819 |
||
2820 |
Constant that defines the specified bit value. |
|
2821 |
*/ |
|
2822 |
const TUint32 KBit15=0x00008000; |
|
2823 |
||
2824 |
||
2825 |
||
2826 |
||
2827 |
/** |
|
2828 |
@publishedAll |
|
2829 |
@released |
|
2830 |
||
2831 |
Constant that defines the specified bit value. |
|
2832 |
*/ |
|
2833 |
const TUint32 KBit16=0x00010000; |
|
2834 |
||
2835 |
||
2836 |
||
2837 |
||
2838 |
/** |
|
2839 |
@publishedAll |
|
2840 |
@released |
|
2841 |
||
2842 |
Constant that defines the specified bit value. |
|
2843 |
*/ |
|
2844 |
const TUint32 KBit17=0x00020000; |
|
2845 |
||
2846 |
||
2847 |
||
2848 |
||
2849 |
/** |
|
2850 |
@publishedAll |
|
2851 |
@released |
|
2852 |
||
2853 |
Constant that defines the specified bit value. |
|
2854 |
*/ |
|
2855 |
const TUint32 KBit18=0x00040000; |
|
2856 |
||
2857 |
||
2858 |
||
2859 |
||
2860 |
/** |
|
2861 |
@publishedAll |
|
2862 |
@released |
|
2863 |
||
2864 |
Constant that defines the specified bit value. |
|
2865 |
*/ |
|
2866 |
const TUint32 KBit19=0x00080000; |
|
2867 |
||
2868 |
||
2869 |
||
2870 |
||
2871 |
/** |
|
2872 |
@publishedAll |
|
2873 |
@released |
|
2874 |
||
2875 |
Constant that defines the specified bit value. |
|
2876 |
*/ |
|
2877 |
const TUint32 KBit20=0x00100000; |
|
2878 |
||
2879 |
||
2880 |
||
2881 |
||
2882 |
/** |
|
2883 |
@publishedAll |
|
2884 |
@released |
|
2885 |
||
2886 |
Constant that defines the specified bit value. |
|
2887 |
*/ |
|
2888 |
const TUint32 KBit21=0x00200000; |
|
2889 |
||
2890 |
||
2891 |
||
2892 |
||
2893 |
/** |
|
2894 |
@publishedAll |
|
2895 |
@released |
|
2896 |
||
2897 |
Constant that defines the specified bit value. |
|
2898 |
*/ |
|
2899 |
const TUint32 KBit22=0x00400000; |
|
2900 |
||
2901 |
||
2902 |
||
2903 |
||
2904 |
/** |
|
2905 |
@publishedAll |
|
2906 |
@released |
|
2907 |
||
2908 |
Constant that defines the specified bit value. |
|
2909 |
*/ |
|
2910 |
const TUint32 KBit23=0x00800000; |
|
2911 |
||
2912 |
||
2913 |
||
2914 |
||
2915 |
/** |
|
2916 |
@publishedAll |
|
2917 |
@released |
|
2918 |
||
2919 |
Constant that defines the specified bit value. |
|
2920 |
*/ |
|
2921 |
const TUint32 KBit24=0x01000000; |
|
2922 |
||
2923 |
||
2924 |
||
2925 |
||
2926 |
/** |
|
2927 |
@publishedAll |
|
2928 |
@released |
|
2929 |
||
2930 |
Constant that defines the specified bit value. |
|
2931 |
*/ |
|
2932 |
const TUint32 KBit25=0x02000000; |
|
2933 |
||
2934 |
||
2935 |
||
2936 |
||
2937 |
/** |
|
2938 |
@publishedAll |
|
2939 |
@released |
|
2940 |
||
2941 |
Constant that defines the specified bit value. |
|
2942 |
*/ |
|
2943 |
const TUint32 KBit26=0x04000000; |
|
2944 |
||
2945 |
||
2946 |
||
2947 |
||
2948 |
/** |
|
2949 |
@publishedAll |
|
2950 |
@released |
|
2951 |
||
2952 |
Constant that defines the specified bit value. |
|
2953 |
*/ |
|
2954 |
const TUint32 KBit27=0x08000000; |
|
2955 |
||
2956 |
||
2957 |
||
2958 |
||
2959 |
/** |
|
2960 |
@publishedAll |
|
2961 |
@released |
|
2962 |
||
2963 |
Constant that defines the specified bit value. |
|
2964 |
*/ |
|
2965 |
const TUint32 KBit28=0x10000000; |
|
2966 |
||
2967 |
||
2968 |
||
2969 |
||
2970 |
/** |
|
2971 |
@publishedAll |
|
2972 |
@released |
|
2973 |
||
2974 |
Constant that defines the specified bit value. |
|
2975 |
*/ |
|
2976 |
const TUint32 KBit29=0x20000000; |
|
2977 |
||
2978 |
||
2979 |
||
2980 |
||
2981 |
/** |
|
2982 |
@publishedAll |
|
2983 |
@released |
|
2984 |
||
2985 |
Constant that defines the specified bit value. |
|
2986 |
*/ |
|
2987 |
const TUint32 KBit30=0x40000000; |
|
2988 |
||
2989 |
||
2990 |
||
2991 |
||
2992 |
/** |
|
2993 |
@publishedAll |
|
2994 |
@released |
|
2995 |
||
2996 |
Constant that defines the specified bit value. |
|
2997 |
*/ |
|
2998 |
const TUint32 KBit31=0x80000000; |
|
2999 |
||
3000 |
||
3001 |
||
3002 |
||
3003 |
/** |
|
3004 |
@publishedAll |
|
3005 |
@released |
|
3006 |
||
3007 |
Constant that defines the specified bit value. |
|
3008 |
||
3009 |
This is often used as a bit mask. |
|
3010 |
*/ |
|
3011 |
const TUint32 KSet32=0xffffffff; |
|
3012 |
||
3013 |
||
3014 |
||
3015 |
||
3016 |
/** |
|
3017 |
@publishedAll |
|
3018 |
@released |
|
3019 |
||
3020 |
||
3021 |
Constant that defines the specified bit value. |
|
3022 |
||
3023 |
This is often used as a bit mask. |
|
3024 |
*/ |
|
3025 |
const TUint32 KClear32=0x00000000; |
|
3026 |
||
3027 |
||
3028 |
||
3029 |
||
3030 |
/** |
|
3031 |
@publishedAll |
|
3032 |
@released |
|
3033 |
||
3034 |
Constant that defines the specified value. |
|
3035 |
*/ |
|
3036 |
const TInt KKilo=1024; |
|
3037 |
||
3038 |
||
3039 |
||
3040 |
||
3041 |
/** |
|
3042 |
@publishedAll |
|
3043 |
@released |
|
3044 |
||
3045 |
Constant that defines the specified value. |
|
3046 |
*/ |
|
3047 |
const TInt KMega=1024*1024; |
|
3048 |
||
3049 |
||
3050 |
||
3051 |
||
3052 |
/** |
|
3053 |
@publishedAll |
|
3054 |
@released |
|
3055 |
||
3056 |
Client/Server Session types. |
|
3057 |
*/ |
|
3058 |
enum TIpcSessionType |
|
3059 |
{ |
|
3060 |
// These values are used at session creation time to describe the extent to which |
|
3061 |
// the new session may be shared. |
|
3062 |
// |
|
3063 |
// They are *also* used at server creation time, to specify the *maximum* degree |
|
3064 |
// of session sharability that the server supports. Thus, if a server instance was |
|
3065 |
// created with mode EIpcSession_Sharable, you can open Sharable or Unsharable |
|
3066 |
// sessions with it, but not globally sharable ones. |
|
3067 |
EIpcSession_Unsharable = 0x00000000, |
|
3068 |
EIpcSession_Sharable = 0x00000001, // sharable within one process |
|
3069 |
EIpcSession_GlobalSharable = 0x00000002 // sharable across processes |
|
3070 |
}; |
|
3071 |
||
3072 |
enum TIpcServerRole |
|
3073 |
{ |
|
3074 |
EServerRole_Default = 0, // No role specified; treated as Standalone |
|
3075 |
EServerRole_Standalone, // Explicitly neither Master nor Slave |
|
3076 |
EServerRole_Master, // Master: may transfer sessions to a Slave |
|
3077 |
EServerRole_Slave // Slave: accepts sessions from the Master |
|
3078 |
}; |
|
3079 |
||
3080 |
enum TIpcServerOpts |
|
3081 |
{ |
|
3082 |
// The first few bits specify whether memory referred to by descriptors |
|
3083 |
// passed from the client to the server should automatically be pinned |
|
3084 |
// All other bits are reserved for future expansion ... |
|
3085 |
EServerOpt_PinClientDescriptorsDefault = 0x00000000, /**<@internalComponent*/ |
|
3086 |
EServerOpt_PinClientDescriptorsEnable = 0x00000004, /**<@internalComponent*/ |
|
3087 |
EServerOpt_PinClientDescriptorsDisable = 0x00000008, /**<@internalComponent*/ |
|
3088 |
EServerOpt_PinClientDescriptorsMask = 0x0000000c /**<@internalComponent*/ |
|
3089 |
}; |
|
3090 |
||
3091 |
||
3092 |
||
3093 |
||
3094 |
/** |
|
3095 |
@publishedAll |
|
3096 |
@released |
|
3097 |
*/ |
|
3098 |
const TInt KNullDebugPort=-2; |
|
3099 |
||
3100 |
||
3101 |
/** |
|
3102 |
A constant which represents a thread ID which will never be assigned to a thread. |
|
3103 |
I.e. The following statement is always true; RThread::Id()!=KNullThreadId |
|
3104 |
@publishedAll |
|
3105 |
@released |
|
3106 |
@see TThreadId |
|
3107 |
*/ |
|
3108 |
const TUint KNullThreadId = 0xffffffffu; |
|
3109 |
||
3110 |
||
3111 |
||
3112 |
/** |
|
3113 |
A constant which represents a process ID which will never be assigned to a process. |
|
3114 |
I.e. The following statement is always true; RProcess::Id()!=KNullProcessId |
|
3115 |
@publishedAll |
|
3116 |
@released |
|
3117 |
@see TProcessId |
|
3118 |
*/ |
|
3119 |
const TUint KNullProcessId = 0xffffffffu; |
|
3120 |
||
3121 |
||
3122 |
||
3123 |
/** |
|
3124 |
@publishedAll |
|
3125 |
@released |
|
3126 |
||
3127 |
Hardware floating point types. |
|
3128 |
*/ |
|
3129 |
enum TFloatingPointType |
|
3130 |
{ |
|
3131 |
/** No hardware floating point. */ |
|
3132 |
EFpTypeNone=0, |
|
3133 |
/** ARM VFPv2 */ |
|
3134 |
EFpTypeVFPv2=1, |
|
3135 |
/** ARM VFPv3 */ |
|
3136 |
EFpTypeVFPv3=2, |
|
3137 |
/** ARM VFPv3-D16 (VFP only, no NEON) */ |
|
3138 |
EFpTypeVFPv3D16=3, |
|
3139 |
}; |
|
3140 |
||
3141 |
||
3142 |
||
3143 |
/** |
|
3144 |
@publishedAll |
|
3145 |
@released |
|
3146 |
||
3147 |
Hardware floating point execution modes. |
|
3148 |
*/ |
|
3149 |
enum TFloatingPointMode |
|
3150 |
{ |
|
3151 |
/** |
|
3152 |
Run in the fastest mode available - results of calculations may not be |
|
3153 |
exactly as the IEEE standard in some cases. On ARM VFPv2 hardware this |
|
3154 |
corresponds to RunFast mode. |
|
3155 |
*/ |
|
3156 |
EFpModeRunFast=0, |
|
3157 |
||
3158 |
/** |
|
3159 |
Perform all calculations as specified in the IEEE standard, but do not |
|
3160 |
generate floating point exceptions. This is compatible with the Java |
|
3161 |
floating point model. This is the default. |
|
3162 |
*/ |
|
3163 |
EFpModeIEEENoExceptions=1 |
|
3164 |
}; |
|
3165 |
||
3166 |
||
3167 |
||
3168 |
||
3169 |
/** |
|
3170 |
@publishedAll |
|
3171 |
@released |
|
3172 |
||
3173 |
Hardware floating point rounding modes. |
|
3174 |
*/ |
|
3175 |
enum TFloatingPointRoundingMode |
|
3176 |
{ |
|
3177 |
/** |
|
3178 |
Round to the nearest value. This is the default. |
|
3179 |
*/ |
|
3180 |
EFpRoundToNearest=0, |
|
3181 |
||
3182 |
/** |
|
3183 |
Round toward positive infinity. |
|
3184 |
*/ |
|
3185 |
EFpRoundToPlusInfinity=1, |
|
3186 |
||
3187 |
/** |
|
3188 |
Round toward negative infinity. |
|
3189 |
*/ |
|
3190 |
EFpRoundToMinusInfinity=2, |
|
3191 |
||
3192 |
/** |
|
3193 |
Round toward zero. |
|
3194 |
*/ |
|
3195 |
EFpRoundToZero=3, |
|
3196 |
||
3197 |
/** |
|
3198 |
@internalComponent |
|
3199 |
*/ |
|
3200 |
EFpRoundNumModes=4 |
|
3201 |
}; |
|
3202 |
||
3203 |
||
3204 |
||
3205 |
#include <e32capability.h> |
|
3206 |
||
3207 |
#ifndef SYMBIAN_ENABLE_SPLIT_HEADERS |
|
3208 |
#include <e32const_private.h> |
|
3209 |
#endif |
|
3210 |
||
3211 |
#endif |