S60UIExampleInitialView.inc
上传用户:laixiong
上传日期:2007-03-11
资源大小:2994k
文件大小:1156k
源码类别:
Symbian
开发平台:
C/C++
- #line 1 "C:\gbtukmanpf01\NOK124\Courses\S60\05300-S60_C++_Introduction\Working\LabCode\Lab_05304-s2.cb1\starter\src\S60UIExampleInitialView.cpp" /* stack depth 0 */
- #line 1 "(C-C++ Preprocessor Panel)" /* stack depth 1 */
- #line 1 "(command-line defines)" /* stack depth 2 */
- #pragma symbian
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\variant\Symbian_OS_v9.1.hrh" /* stack depth 3 */
- #line 12 "(command-line defines)" /* stack depth 2 */
- #pragma warn_largeargs on
- #line 1 "(C-C++ Preprocessor Panel)" /* stack depth 1 */
- #line 1 "C:\gbtukmanpf01\NOK124\Courses\S60\05300-S60_C++_Introduction\Working\LabCode\Lab_05304-s2.cb1\starter\src\S60UIExampleInitialView.cpp" /* stack depth 0 */
- #line 1 "C:\gbtukmanpf01\NOK124\Courses\S60\05300-S60_C++_Introduction\Working\LabCode\Lab_05304-s2.cb1\starter\inc\S60UIExampleInitialView.h" /* stack depth 1 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\aknview.h" /* stack depth 2 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\babitflags.h" /* stack depth 3 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\e32std.h" /* stack depth 4 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\e32cmn.h" /* stack depth 5 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\e32const.h" /* stack depth 6 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\e32err.h" /* stack depth 7 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\e32def.h" /* stack depth 8 */
- #line 166
- #pragma warning off (10480)
- #pragma warning off (10350)
- #line 481
- typedef void TAny;
- #line 493
- typedef signed char TInt8;
- #line 505
- typedef unsigned char TUint8;
- #line 517
- typedef short int TInt16;
- #line 529
- typedef unsigned short int TUint16;
- #line 541
- typedef long int TInt32;
- #line 553
- typedef unsigned long int TUint32;
- #line 586
- typedef signed int TInt;
- #line 604
- typedef unsigned int TUint;
- #line 623
- typedef float TReal32;
- #line 644
- typedef double TReal64;
- #line 668
- typedef double TReal;
- #line 689
- typedef unsigned char TText8;
- #line 711
- typedef unsigned short int TText16;
- #line 730
- typedef int TBool;
- #line 741
- typedef TUint32 TLinAddr;
- typedef struct TRomExceptionSearchTable
- {
- TInt32 iNumEntries;
- TLinAddr iEntries[1];
- } TRomExceptionSearchTable;
- typedef struct TExceptionDescriptor
- {
- TLinAddr iExIdxBase;
- TLinAddr iExIdxLimit;
- TLinAddr iROSegmentBase;
- TLinAddr iROSegmentLimit;
- } TExceptionDescriptor;
- #line 820
- #pragma longlong on
- #line 820
- typedef long long Int64;
- typedef unsigned long long Uint64;
- #line 835
- typedef Int64 TInt64;
- #line 846
- typedef Uint64 TUint64;
- #line 1078
- typedef TText16 TText;
- #line 1220
- typedef TInt8 *VA_LIST[1];
- #line 2706
- static const char* const KSuppressPlatSecDiagnosticMagicValue = (const char*)1;
- #line 2769
- static const char* const KSuppressPlatSecDiagnostic = KSuppressPlatSecDiagnosticMagicValue;
- #line 13 "C:\Symbian\9.1\S60_3rd\epoc32\include\e32err.h" /* stack depth 7 */
- #line 24
- const TInt KErrNone=0;
- #line 35
- const TInt KErrNotFound=(-1);
- #line 46
- const TInt KErrGeneral=(-2);
- #line 57
- const TInt KErrCancel=(-3);
- #line 68
- const TInt KErrNoMemory=(-4);
- #line 82
- const TInt KErrNotSupported=(-5);
- #line 93
- const TInt KErrArgument=(-6);
- #line 108
- const TInt KErrTotalLossOfPrecision=(-7);
- #line 122
- const TInt KErrBadHandle=(-8);
- #line 140
- const TInt KErrOverflow=(-9);
- #line 158
- const TInt KErrUnderflow=(-10);
- #line 172
- const TInt KErrAlreadyExists=(-11);
- #line 184
- const TInt KErrPathNotFound=(-12);
- #line 195
- const TInt KErrDied=(-13);
- #line 206
- const TInt KErrInUse=(-14);
- #line 218
- const TInt KErrServerTerminated=(-15);
- #line 230
- const TInt KErrServerBusy=(-16);
- #line 245
- const TInt KErrCompletion=(-17);
- #line 260
- const TInt KErrNotReady=(-18);
- #line 271
- const TInt KErrUnknown=(-19);
- #line 283
- const TInt KErrCorrupt=(-20);
- #line 295
- const TInt KErrAccessDenied=(-21);
- #line 307
- const TInt KErrLocked=(-22);
- #line 319
- const TInt KErrWrite=(-23);
- #line 331
- const TInt KErrDisMounted=(-24);
- #line 348
- const TInt KErrEof=(-25);
- #line 360
- const TInt KErrDiskFull=(-26);
- #line 371
- const TInt KErrBadDriver=(-27);
- #line 383
- const TInt KErrBadName=(-28);
- #line 394
- const TInt KErrCommsLineFail=(-29);
- #line 406
- const TInt KErrCommsFrame=(-30);
- #line 418
- const TInt KErrCommsOverrun=(-31);
- #line 429
- const TInt KErrCommsParity=(-32);
- #line 440
- const TInt KErrTimedOut=(-33);
- #line 451
- const TInt KErrCouldNotConnect=(-34);
- #line 462
- const TInt KErrCouldNotDisconnect=(-35);
- #line 474
- const TInt KErrDisconnected=(-36);
- #line 485
- const TInt KErrBadLibraryEntryPoint=(-37);
- #line 497
- const TInt KErrBadDescriptor=(-38);
- #line 508
- const TInt KErrAbort=(-39);
- #line 519
- const TInt KErrTooBig=(-40);
- #line 530
- const TInt KErrDivideByZero=(-41);
- #line 542
- const TInt KErrBadPower=(-42);
- #line 553
- const TInt KErrDirFull=(-43);
- #line 565
- const TInt KErrHardwareNotAvailable=(-44);
- #line 577
- const TInt KErrSessionClosed=(-45);
- #line 589
- const TInt KErrPermissionDenied=(-46);
- #line 598
- const TInt KErrExtensionNotSupported=(-47);
- #line 609
- const TInt KErrCommsBreak=(-48);
- #line 8 "C:\Symbian\9.1\S60_3rd\epoc32\include\e32const.h" /* stack depth 6 */
- #line 25
- const TInt KDefaultJustifyWidth=(-1);
- #line 38
- const TInt KMaxCheckedUid=3;
- #line 48
- const TInt KNumTraceMaskWords = 8;
- #line 60
- const TInt KMaxUidName=10;
- #line 71
- const TInt KMaxModuleVersionName=10;
- #line 84
- const TInt KMaxName=0x80;
- #line 95
- const TInt KMaxKernelName=0x50;
- #line 106
- const TInt KMaxProcessName=(KMaxKernelName-KMaxUidName-KMaxModuleVersionName-4);
- #line 117
- const TInt KMaxLibraryName=(KMaxKernelName-KMaxUidName-KMaxModuleVersionName);
- #line 128
- const TInt KMaxInfoName=0x10;
- #line 141
- const TInt KMaxFullName=(KMaxName<<1);
- #line 154
- const TInt KMaxPassword=0x10;
- #line 167
- const TInt KMaxExitCategoryName=0x10;
- #line 180
- const TInt KMaxDayName=0x20;
- #line 193
- const TInt KMaxDayNameAbb=0x08;
- #line 205
- const TInt KMaxDays=7;
- #line 218
- const TInt KMaxMonthName=0x20;
- #line 231
- const TInt KMaxMonthNameAbb=0x08;
- #line 243
- const TInt KMaxMonths=12;
- #line 256
- const TInt KMaxSuffix=0x04;
- #line 268
- const TInt KMaxSuffixes=31;
- #line 281
- const TInt KMaxAmPmName=0x04;
- #line 293
- const TInt KMaxAmPms=2;
- #line 304
- const TInt KMaxDateSeparators=4;
- #line 315
- const TInt KMaxTimeSeparators=4;
- #line 327
- const TInt KMaxTranslateTable=0x100;
- #line 340
- const TInt KMaxCurrencySymbol=0x08;
- #line 353
- const TInt KMaxShortDateFormatSpec=40;
- #line 366
- const TInt KMaxLongDateFormatSpec=80;
- #line 379
- const TInt KMaxTimeFormatSpec=60;
- #line 390
- const TInt KMaxFileName=0x100;
- #line 403
- const TInt KMaxVersionName=0x10;
- #line 416
- const TInt KMaxPath=0x100;
- #line 429
- const TInt KMaxDeviceInfo=0x80;
- #line 440
- const TInt KMaxMediaPassword=16;
- #line 458
- const TInt KMinHeapSize=0x100;
- #line 469
- const TInt KDstHome=0x01;
- #line 480
- const TInt KDstEuropean=0x02;
- #line 491
- const TInt KDstNorthern=0x04;
- #line 502
- const TInt KDstSouthern=0x08;
- #line 513
- const TInt KDefaultStackSize=0x2000;
- #line 524
- const TUint KNoChar=0xffffffffu;
- #line 539
- const TInt KIndexPtr=(-1);
- #line 550
- const TInt KHandleNoClose=0x00008000;
- #line 561
- const TInt KHandleFlagLocal=0x40000000;
- #line 572
- const TInt KCurrentProcessHandle=0xffff0000|KHandleNoClose;
- #line 583
- const TInt KCurrentThreadHandle=0xffff0001|KHandleNoClose;
- #line 596
- const TInt KNullHandle=0;
- #line 607
- const TInt KDefaultUnit=0x00;
- #line 621
- const TInt KNullUnit=0xffffffff;
- #line 635
- const TInt KMaxUnits=0x20;
- #line 647
- const TInt KMaxMessageArguments=0x04;
- #line 664
- const TInt KDefaultRealWidth=20;
- #line 678
- const TInt KMinHeapGrowBy=0x1000;
- #line 689
- const TInt KMaxExponentConversion=99;
- #line 702
- const TInt KNullUidValue=0;
- #line 716
- const TInt KDeltaTimerDefaultGranularity=100000;
- #line 727
- const TInt KMaxTInt8=0x7f;
- #line 738
- const TInt KMinTInt8=(-128);
- #line 749
- const TUint KMaxTUint8=0xffu;
- #line 760
- const TInt KMaxTInt16=0x7fff;
- #line 771
- const TInt KMinTInt16=(-32768);
- #line 782
- const TUint KMaxTUint16=0xffffu;
- #line 793
- const TInt KMaxTInt32=0x7fffffff;
- #line 804
- const TInt KMinTInt32=(TInt)0x80000000;
- #line 815
- const TUint KMaxTUint32=0xffffffffu;
- #line 826
- const TInt KMaxTInt=0x7fffffff;
- #line 837
- const TInt KMinTInt=(TInt)0x80000000;
- #line 848
- const TUint KMaxTUint=0xffffffffu;
- #line 859
- const TInt64 KMaxTInt64 = 0x7fffffffffffffffLL ;
- #line 870
- const TInt64 KMinTInt64 = 0x8000000000000000ULL ;
- #line 881
- const TUint64 KMaxTUint64 = 0xffffffffffffffffULL ;
- #line 897
- const TUint KMatchAny='*';
- #line 913
- const TUint KMatchOne='?';
- #line 924
- const TInt KMaxLocalDrives=16;
- #line 935
- const TInt KMaxPBusSockets=4;
- #line 946
- const TInt KNoCallEntryPoint = 0x01;
- #line 960
- const TInt KRequestPending=(-KMaxTInt);
- #line 973
- enum TMediaType
- {
- EMediaNotPresent,
- EMediaUnknown,EMediaFloppy,EMediaHardDisk,EMediaCdRom,
- EMediaRam,EMediaFlash,EMediaRom,EMediaRemote,EMediaNANDFlash
- };
- #line 989
- enum TBatteryState {EBatNotSupported,EBatGood,EBatLow};
- #line 1000
- const TUint KDriveAttLocal=0x01;
- #line 1011
- const TUint KDriveAttRom=0x02;
- #line 1023
- const TUint KDriveAttRedirected=0x04;
- #line 1034
- const TUint KDriveAttSubsted=0x08;
- #line 1045
- const TUint KDriveAttInternal=0x10;
- #line 1056
- const TUint KDriveAttRemovable=0x20;
- #line 1067
- const TUint KDriveAttRemote=0x40;
- #line 1078
- const TUint KDriveAttTransaction=0x80;
- #line 1089
- const TUint KMediaAttVariableSize=0x01;
- #line 1100
- const TUint KMediaAttDualDensity=0x02;
- #line 1111
- const TUint KMediaAttFormattable=0x04;
- #line 1122
- const TUint KMediaAttWriteProtected=0x08;
- #line 1134
- const TUint KMediaAttLockable=0x10;
- #line 1146
- const TUint KMediaAttLocked=0x20;
- #line 1156
- const TUint KMediaAttHasPassword=0x40;
- const TUint KMediaAttReadWhileWrite=0x80;
- const TUint KMediaAttDeleteNotify=0x100;
- const TUint KDriveFileSysFAT=0x01;
- #line 1189
- const TUint KDriveFileSysROM=0x02;
- #line 1200
- const TUint KDriveFileSysLFFS=0x03;
- #line 1211
- const TUint KDriveFileSysROFS=0x04;
- #line 1222
- const TUint KDriveFileNone=0x05;
- #line 1236
- enum TFalse {
- EFalse=0
- };
- #line 1255
- enum TTrue {
- ETrue=1
- };
- #line 1272
- enum TAllowDuplicates {
- ENoDuplicates,
- EAllowDuplicates
- };
- #line 1303
- enum TRadix {
- EBinary=2,
- EOctal=8,
- EDecimal=10,
- EHex=16
- };
- #line 1348
- enum TLanguage
- {
- ELangTest = 0,
- ELangEnglish = 1,
- ELangFrench = 2,
- ELangGerman = 3,
- ELangSpanish = 4,
- ELangItalian = 5,
- ELangSwedish = 6,
- ELangDanish = 7,
- ELangNorwegian = 8,
- ELangFinnish = 9,
- ELangAmerican = 10,
- ELangSwissFrench = 11,
- ELangSwissGerman = 12,
- ELangPortuguese = 13,
- ELangTurkish = 14,
- ELangIcelandic = 15,
- ELangRussian = 16,
- ELangHungarian = 17,
- ELangDutch = 18,
- ELangBelgianFlemish = 19,
- ELangAustralian = 20,
- ELangBelgianFrench = 21,
- ELangAustrian = 22,
- ELangNewZealand = 23,
- ELangInternationalFrench = 24,
- ELangCzech = 25,
- ELangSlovak = 26,
- ELangPolish = 27,
- ELangSlovenian = 28,
- ELangTaiwanChinese = 29,
- ELangHongKongChinese = 30,
- ELangPrcChinese = 31,
- ELangJapanese = 32,
- ELangThai = 33,
- ELangAfrikaans = 34,
- ELangAlbanian = 35,
- ELangAmharic = 36,
- ELangArabic = 37,
- ELangArmenian = 38,
- ELangTagalog = 39,
- ELangBelarussian = 40,
- ELangBengali = 41,
- ELangBulgarian = 42,
- ELangBurmese = 43,
- ELangCatalan = 44,
- ELangCroatian = 45,
- ELangCanadianEnglish = 46,
- ELangInternationalEnglish = 47,
- ELangSouthAfricanEnglish = 48,
- ELangEstonian = 49,
- ELangFarsi = 50,
- ELangCanadianFrench = 51,
- ELangScotsGaelic = 52,
- ELangGeorgian = 53,
- ELangGreek = 54,
- ELangCyprusGreek = 55,
- ELangGujarati = 56,
- ELangHebrew = 57,
- ELangHindi = 58,
- ELangIndonesian = 59,
- ELangIrish = 60,
- ELangSwissItalian = 61,
- ELangKannada = 62,
- ELangKazakh = 63,
- ELangKhmer = 64,
- ELangKorean = 65,
- ELangLao = 66,
- ELangLatvian = 67,
- ELangLithuanian = 68,
- ELangMacedonian = 69,
- ELangMalay = 70,
- ELangMalayalam = 71,
- ELangMarathi = 72,
- ELangMoldavian = 73,
- ELangMongolian = 74,
- ELangNorwegianNynorsk = 75,
- ELangBrazilianPortuguese = 76,
- ELangPunjabi = 77,
- ELangRomanian = 78,
- ELangSerbian = 79,
- ELangSinhalese = 80,
- ELangSomali = 81,
- ELangInternationalSpanish = 82,
- ELangLatinAmericanSpanish = 83,
- ELangSwahili = 84,
- ELangFinlandSwedish = 85,
- ELangReserved1 = 86,
- ELangTamil = 87,
- ELangTelugu = 88,
- ELangTibetan = 89,
- ELangTigrinya = 90,
- ELangCyprusTurkish = 91,
- ELangTurkmen = 92,
- ELangUkrainian = 93,
- ELangUrdu = 94,
- ELangReserved2 = 95,
- ELangVietnamese = 96,
- ELangWelsh = 97,
- ELangZulu = 98,
- ELangOther = 99,
- ELangNone = 0xFFFF,
- ELangMaximum = ELangNone
- };
- #line 1675
- const TUint KDialectMask=0x03FF;
- #line 1687
- enum TDateFormat {
- EDateAmerican,
- EDateEuropean,
- EDateJapanese};
- #line 1712
- enum TTimeFormat {
- ETime12,
- ETime24
- };
- #line 1726
- enum TClockFormat {
- EClockAnalog,
- EClockDigital
- };
- #line 1740
- enum TUnitsFormat {
- EUnitsImperial,
- EUnitsMetric
- };
- #line 1754
- enum TAmPm {
- EAm,
- EPm
- };
- #line 1772
- enum TLocalePos
- {
- ELocaleBefore,
- ELocaleAfter
- };
- #line 1796
- enum TDigitType
- {
- EDigitTypeUnknown = 0x0000,
- EDigitTypeWestern = 0x0030,
- EDigitTypeArabicIndic = 0x0660,
- EDigitTypeEasternArabicIndic = 0x6F0,
- EDigitTypeDevanagari = 0x0966,
- EDigitTypeThai = 0x0E50,
- EDigitTypeAllTypes = 0xFFFF
- };
- #line 1816
- enum TDaylightSavingZone
- {
- EDstHome=0x40000000,
- EDstNone=0,
- EDstEuropean=1,
- EDstNorthern=2,
- EDstSouthern=4
- };
- #line 1854
- enum TNegativeCurrencyFormat
- {
- E_NegC_LeadingMinusSign,
- E_NegC_InBrackets,
- E_NegC_InterveningMinusSignWithSpaces,
- E_NegC_InterveningMinusSignWithoutSpaces,
- E_NegC_TrailingMinusSign
- };
- enum TDeviceTimeState
- {
- EDeviceUserTime,
- ENITZNetworkTimeSync
- };
- #line 1891
- enum TDay
- {
- EMonday,
- ETuesday,
- EWednesday,
- EThursday,
- EFriday,
- ESaturday,
- ESunday
- };
- #line 1914
- enum TMonth
- {
- EJanuary,
- EFebruary,
- EMarch,
- EApril,
- EMay,
- EJune,
- EJuly,
- EAugust,
- ESeptember,
- EOctober,
- ENovember,
- EDecember
- };
- #line 1952
- enum TOwnerType {
- EOwnerProcess,
- EOwnerThread
- };
- const TInt KCreateProtectedObject = (TInt)0x80000000;
- #line 1983
- enum TProcessPriority
- {
- EPriorityLow=150,
- EPriorityBackground=250,
- EPriorityForeground=350,
- EPriorityHigh=450,
- EPriorityWindowServer=650,
- EPriorityFileServer=750,
- EPriorityRealTimeServer=850,
- EPrioritySupervisor=950
- };
- #line 2010
- enum TThreadPriority
- {
- EPriorityNull=(-30),
- EPriorityMuchLess=(-20),
- EPriorityLess=(-10),
- EPriorityNormal=0,
- EPriorityMore=10,
- EPriorityMuchMore=20,
- EPriorityRealTime=30,
- EPriorityAbsoluteVeryLow=100,
- EPriorityAbsoluteLow=200,
- EPriorityAbsoluteBackground=300,
- EPriorityAbsoluteForeground=400,
- EPriorityAbsoluteHigh=500
- };
- #line 2033
- const TText KProtectedServerNamePrefix = '!';
- #line 2050
- enum TExcType
- {
- EExcGeneral=0,
- EExcIntegerDivideByZero=1,
- EExcSingleStep=2,
- EExcBreakPoint=3,
- EExcIntegerOverflow=4,
- EExcBoundsCheck=5,
- EExcInvalidOpCode=6,
- EExcDoubleFault=7,
- EExcStackFault=8,
- EExcAccessViolation=9,
- EExcPrivInstruction=10,
- EExcAlignment=11,
- EExcPageFault=12,
- EExcFloatDenormal=13,
- EExcFloatDivideByZero=14,
- EExcFloatInexactResult=15,
- EExcFloatInvalidOperation=16,
- EExcFloatOverflow=17,
- EExcFloatStackCheck=18,
- EExcFloatUnderflow=19,
- EExcAbort=20,
- EExcKill=21,
- EExcUserInterrupt=22,
- EExcDataAbort=23,
- EExcCodeAbort=24,
- EExcMaxNumber=25,
- EExcInvalidVector=26,
- };
- #line 2096
- enum TExitType {
- EExitKill,
- EExitTerminate,
- EExitPanic,
- EExitPending
- };
- #line 2136
- enum TAlign {
- ELeft,
- ECenter,
- ERight
- };
- #line 2163
- const TInt KRealFormatTypesMask=0x00000007;
- #line 2193
- const TInt KRealFormatFixed=1;
- #line 2233
- const TInt KRealFormatExponent=2;
- #line 2261
- const TInt KRealFormatGeneral=3;
- #line 2280
- const TInt KRealFormatNoExponent=4;
- #line 2300
- const TInt KRealFormatCalculator=5;
- #line 2314
- const TInt KRealFormatTypeFlagsMask=0x7C000000;
- #line 2334
- const TInt KExtraSpaceForSign=0x40000000;
- #line 2355
- const TInt KAllowThreeDigitExp=0x20000000;
- #line 2373
- const TInt KUseSigFigs=0x10000000;
- #line 2391
- const TInt KDoNotUseTriads=0x08000000;
- #line 2408
- const TInt KGeneralLimit=0x04000000;
- #line 2420
- enum TLeave {ELeave};
- #line 2431
- enum TFirstWeekRule {
- EFirstWeek,
- EFirstFourDayWeek,
- EFirstFullWeek
- };
- #line 2466
- enum TTimerLockSpec
- {
- EOneOClock,
- ETwoOClock,
- EThreeOClock,
- EFourOClock,
- EFiveOClock,
- ESixOClock,
- ESevenOClock,
- EEightOClock,
- ENineOClock,
- ETenOClock,
- EElevenOClock,
- ETwelveOClock
- };
- #line 2525
- enum TChanges
- {
- EChangesLocale=0x01,
- EChangesMidnightCrossover=0x02,
- EChangesThreadDeath=0x04,
- EChangesPowerStatus=0x08,
- EChangesSystemTime=0x10,
- EChangesFreeMemory=0x20,
- EChangesOutOfMemory=0x40,
- };
- #line 2589
- typedef TInt (*TThreadFunction)(TAny*);
- #line 2604
- typedef TInt (*TLibraryFunction)();
- #line 2619
- typedef TInt (*TLibraryEntry)(TInt);
- #line 2636
- typedef void (*TExceptionHandler)(TExcType);
- #line 2653
- const TUint KExceptionAbort=0x01;
- #line 2668
- const TUint KExceptionKill=0x02;
- #line 2683
- const TUint KExceptionUserInterrupt=0x04;
- #line 2699
- const TUint KExceptionFpe=0x08;
- #line 2715
- const TUint KExceptionFault=0x10;
- #line 2727
- const TUint KExceptionInteger=0x20;
- #line 2742
- const TUint KExceptionDebug=0x40;
- #line 2770
- enum TProcessParameterType
- {
- EHandle=1,
- EBinaryData=2,
- };
- #line 2787
- const TUint32 KBit0= 0x00000001;
- #line 2798
- const TUint32 KBit1= 0x00000002;
- #line 2809
- const TUint32 KBit2= 0x00000004;
- #line 2820
- const TUint32 KBit3= 0x00000008;
- #line 2831
- const TUint32 KBit4= 0x00000010;
- #line 2842
- const TUint32 KBit5= 0x00000020;
- #line 2853
- const TUint32 KBit6= 0x00000040;
- #line 2864
- const TUint32 KBit7= 0x00000080;
- #line 2875
- const TUint32 KBit8= 0x00000100;
- #line 2886
- const TUint32 KBit9= 0x00000200;
- #line 2897
- const TUint32 KBit10=0x00000400;
- #line 2908
- const TUint32 KBit11=0x00000800;
- #line 2919
- const TUint32 KBit12=0x00001000;
- #line 2930
- const TUint32 KBit13=0x00002000;
- #line 2941
- const TUint32 KBit14=0x00004000;
- #line 2952
- const TUint32 KBit15=0x00008000;
- #line 2963
- const TUint32 KBit16=0x00010000;
- #line 2974
- const TUint32 KBit17=0x00020000;
- #line 2985
- const TUint32 KBit18=0x00040000;
- #line 2996
- const TUint32 KBit19=0x00080000;
- #line 3007
- const TUint32 KBit20=0x00100000;
- #line 3018
- const TUint32 KBit21=0x00200000;
- #line 3029
- const TUint32 KBit22=0x00400000;
- #line 3040
- const TUint32 KBit23=0x00800000;
- #line 3051
- const TUint32 KBit24=0x01000000;
- #line 3062
- const TUint32 KBit25=0x02000000;
- #line 3073
- const TUint32 KBit26=0x04000000;
- #line 3084
- const TUint32 KBit27=0x08000000;
- #line 3095
- const TUint32 KBit28=0x10000000;
- #line 3106
- const TUint32 KBit29=0x20000000;
- #line 3117
- const TUint32 KBit30=0x40000000;
- #line 3128
- const TUint32 KBit31=0x80000000;
- #line 3141
- const TUint32 KSet32=0xffffffff;
- #line 3155
- const TUint32 KClear32=0x00000000;
- #line 3166
- const TInt KKilo=1024;
- #line 3177
- const TInt KMega=1024*1024;
- #line 3188
- enum TIpcSessionType
- {
- EIpcSession_Unsharable=0,
- EIpcSession_Sharable=1,
- EIpcSession_GlobalSharable=2
- };
- #line 3213
- const TInt KNullDebugPort=-2;
- const TUint32 KModuleVersionWild=0xfffffffeu;
- const TUint32 KModuleVersionNull=0xffffffffu;
- #line 3233
- const TUint KNullThreadId = 0xffffffffu;
- #line 3244
- const TUint KNullProcessId = 0xffffffffu;
- #line 3254
- enum TFloatingPointType
- {
- EFpTypeNone=0,
- EFpTypeVFPv2=1
- };
- #line 3270
- enum TFloatingPointMode
- {
- EFpModeRunFast=0,
- EFpModeIEEENoExceptions=1
- };
- #line 3296
- enum TFloatingPointRoundingMode
- {
- EFpRoundToNearest=0,
- EFpRoundToPlusInfinity=1,
- EFpRoundToMinusInfinity=2,
- EFpRoundToZero=3,
- EFpRoundNumModes=4
- };
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\e32capability.h" /* stack depth 7 */
- #line 24
- enum TCapability
- {
- ECapabilityTCB = 0,
- ECapabilityCommDD = 1,
- #line 55
- ECapabilityPowerMgmt = 2,
- ECapabilityMultimediaDD = 3,
- #line 72
- ECapabilityReadDeviceData = 4,
- ECapabilityWriteDeviceData = 5,
- #line 91
- ECapabilityDRM = 6,
- #line 104
- ECapabilityTrustedUI = 7,
- #line 114
- ECapabilityProtServ = 8,
- #line 123
- ECapabilityDiskAdmin = 9,
- #line 135
- ECapabilityNetworkControl = 10,
- #line 144
- ECapabilityAllFiles = 11,
- #line 154
- ECapabilitySwEvent = 12,
- #line 168
- ECapabilityNetworkServices = 13,
- #line 178
- ECapabilityLocalServices = 14,
- #line 190
- ECapabilityReadUserData = 15,
- #line 202
- ECapabilityWriteUserData = 16,
- #line 211
- ECapabilityLocation = 17,
- #line 224
- ECapabilitySurroundingsDD = 18,
- #line 237
- ECapabilityUserEnvironment = 19,
- ECapability_Limit,
- ECapability_HardLimit = 255,
- ECapability_None = -1,
- ECapability_Denied = -2
- };
- #line 3326 "C:\Symbian\9.1\S60_3rd\epoc32\include\e32const.h" /* stack depth 6 */
- #line 8 "C:\Symbian\9.1\S60_3rd\epoc32\include\e32cmn.h" /* stack depth 5 */
- extern "C" {
- #line 41
- __declspec(dllexport) TInt memcompare(const TUint8* aLeft, TInt aLeftLen, const TUint8* aRight, TInt aRightLen);
- #line 74
- __declspec(dllexport) TAny* wordmove(TAny* aTrg, const TAny* aSrc, unsigned int aLength);
- #line 91
- __declspec(dllexport) TAny* memclr(TAny* aTrg, unsigned int aLength);
- }
- extern "C" {
- #line 112
- __declspec(dllexport) TAny* memset(TAny* aTrg, TInt aValue, unsigned int aLength);
- #line 129
- __declspec(dllexport) TAny* memcpy(TAny* aTrg, const TAny* aSrc, unsigned int aLength);
- #line 146
- __declspec(dllexport) TAny* memmove(TAny* aTrg, const TAny* aSrc, unsigned int aLength);
- }
- #line 168
- inline TInt Lim(TInt aVal,TUint aLimit)
- {return(((TUint)aVal)<=aLimit);}
- #line 187
- inline TInt LimX(TInt aVal,TUint aLimit)
- {return(((TUint)aVal)<aLimit);}
- #line 204
- template <class T>
- inline T Min(T aLeft,T aRight)
- {return(aLeft<aRight ? aLeft : aRight);}
- #line 223
- template <class T>
- inline T Min(T aLeft,TUint aRight)
- {return(aLeft<(TInt)aRight ? aLeft : (T)aRight);}
- #line 241
- template <class T>
- inline T Max(T aLeft,T aRight)
- {return(aLeft<aRight ? aRight : aLeft);}
- #line 260
- template <class T>
- inline T Max(T aLeft,TUint aRight)
- {return(aLeft<(TInt)aRight ? (TInt)aRight : aLeft);}
- #line 277
- template <class T>
- inline T Abs(T aVal)
- {return(aVal<0 ? -aVal : aVal);}
- #line 296
- template <class T>
- inline TBool Rng(T aMin,T aVal,T aMax)
- {return(aVal>=aMin && aVal<=aMax);}
- #line 314
- template <class T,class S>
- inline T* PtrAdd(T* aPtr,S aVal)
- {return((T*)(((TUint8*)aPtr)+aVal));}
- #line 332
- template <class T,class S>
- inline T* PtrSub(T* aPtr,S aVal)
- {return((T*)(((TUint8*)aPtr)-aVal));}
- #line 349
- template <class T>
- inline T Align2(T aValue)
- {return((T)((((TUint)aValue)+sizeof(TUint16)-1)&~(sizeof(TUint16)-1)));}
- #line 366
- template <class T>
- inline T Align4(T aValue)
- {return((T)((((TUint)aValue)+sizeof(TUint32)-1)&~(sizeof(TUint32)-1)));}
- #line 384
- template <class T>
- class TRefByValue
- {
- public:
- inline TRefByValue(T& aRef);
- inline operator T&();
- private:
- TRefByValue& operator=(TRefByValue aRef);
- private:
- T &iRef;
- };
- class TDesC16;
- class TPtrC16;
- #line 427
- class TChar
- {
- public:
- #line 459
- enum TCategory
- {
- EAlphaGroup = 0x00,
- ELetterOtherGroup = 0x10,
- ELetterModifierGroup = 0x20,
- EMarkGroup = 0x30,
- ENumberGroup = 0x40,
- EPunctuationGroup = 0x50,
- ESymbolGroup = 0x60,
- ESeparatorGroup = 0x70,
- #line 531
- EControlGroup = 0x80,
- EMaxAssignedGroup = 0xE0,
- EUnassignedGroup = 0xF0,
- ELuCategory = EAlphaGroup | 0,
- ELlCategory = EAlphaGroup | 1,
- ELtCategory = EAlphaGroup | 2,
- ELoCategory = ELetterOtherGroup | 0,
- EMaxLetterCategory = ELetterOtherGroup | 0x0F,
- ELmCategory = ELetterModifierGroup | 0,
- EMaxLetterOrLetterModifierCategory = ELetterModifierGroup | 0x0F,
- EMnCategory = EMarkGroup | 0,
- EMcCategory = EMarkGroup | 1,
- EMeCategory = EMarkGroup | 2,
- ENdCategory = ENumberGroup | 0,
- ENlCategory = ENumberGroup | 1,
- ENoCategory = ENumberGroup | 2,
- EPcCategory = EPunctuationGroup | 0,
- EPdCategory = EPunctuationGroup | 1,
- EPsCategory = EPunctuationGroup | 2,
- EPeCategory = EPunctuationGroup | 3,
- EPiCategory = EPunctuationGroup | 4,
- EPfCategory = EPunctuationGroup | 5,
- EPoCategory = EPunctuationGroup | 6,
- ESmCategory = ESymbolGroup | 0,
- EScCategory = ESymbolGroup | 1,
- ESkCategory = ESymbolGroup | 2,
- ESoCategory = ESymbolGroup | 3,
- EMaxGraphicCategory = ESymbolGroup | 0x0F,
- EZsCategory = ESeparatorGroup | 0,
- EMaxPrintableCategory = EZsCategory,
- EZlCategory = ESeparatorGroup | 1,
- EZpCategory = ESeparatorGroup | 2,
- ECcCategory = EControlGroup | 0,
- ECfCategory = EControlGroup | 1,
- EMaxAssignedCategory = EMaxAssignedGroup | 0x0F,
- ECsCategory = EUnassignedGroup | 0,
- ECoCategory = EUnassignedGroup | 1,
- ECnCategory = EUnassignedGroup | 2
- };
- #line 763
- enum TBdCategory
- {
- ELeftToRight,
- ELeftToRightEmbedding,
- ELeftToRightOverride,
- ERightToLeft,
- ERightToLeftArabic,
- ERightToLeftEmbedding,
- ERightToLeftOverride,
- EPopDirectionalFormat,
- EEuropeanNumber,
- EEuropeanNumberSeparator,
- EEuropeanNumberTerminator,
- EArabicNumber,
- ECommonNumberSeparator,
- ENonSpacingMark,
- EBoundaryNeutral,
- EParagraphSeparator,
- ESegmentSeparator,
- EWhitespace,
- EOtherNeutral
- };
- enum TCjkWidth
- {
- ENeutralWidth,
- EHalfWidth,
- EFullWidth,
- ENarrow,
- EWide
- };
- enum TEncoding
- {
- EUnicode,
- EShiftJIS
- };
- #line 946
- enum
- {
- EFoldCase = 1,
- EFoldAccents = 2,
- EFoldDigits = 4,
- EFoldSpaces = 8,
- EFoldKana = 16,
- EFoldWidth = 32,
- EFoldStandard = EFoldCase | EFoldAccents | EFoldDigits | EFoldSpaces,
- EFoldAll = -1
- };
- struct TCharInfo
- {
- TCategory iCategory;
- TBdCategory iBdCategory;
- TInt iCombiningClass;
- TUint iLowerCase;
- TUint iUpperCase;
- TUint iTitleCase;
- TBool iMirrored;
- TInt iNumericValue;
- };
- inline TChar();
- inline TChar(TUint aChar);
- inline TChar& operator-=(TUint aChar);
- inline TChar& operator+=(TUint aChar);
- inline TChar operator-(TUint aChar);
- inline TChar operator+(TUint aChar);
- inline operator TUint() const;
- inline void Fold();
- inline void LowerCase();
- inline void UpperCase();
- inline TBool Eos() const;
- __declspec(dllexport) TUint GetUpperCase() const;
- __declspec(dllexport) TUint GetLowerCase() const;
- __declspec(dllexport) TBool IsLower() const;
- __declspec(dllexport) TBool IsUpper() const;
- __declspec(dllexport) TBool IsAlpha() const;
- __declspec(dllexport) TBool IsDigit() const;
- __declspec(dllexport) TBool IsAlphaDigit() const;
- __declspec(dllexport) TBool IsHexDigit() const;
- __declspec(dllexport) TBool IsSpace() const;
- __declspec(dllexport) TBool IsPunctuation() const;
- __declspec(dllexport) TBool IsGraph() const;
- __declspec(dllexport) TBool IsPrint() const;
- __declspec(dllexport) TBool IsControl() const;
- inline void Fold(TInt aFlags);
- inline void TitleCase();
- __declspec(dllexport) TUint GetTitleCase() const;
- __declspec(dllexport) TBool IsTitle() const;
- __declspec(dllexport) TBool IsAssigned() const;
- __declspec(dllexport) void GetInfo(TCharInfo& aInfo) const;
- __declspec(dllexport) TCategory GetCategory() const;
- __declspec(dllexport) TBdCategory GetBdCategory() const;
- __declspec(dllexport) TInt GetCombiningClass() const;
- __declspec(dllexport) TBool IsMirrored() const;
- __declspec(dllexport) TInt GetNumericValue() const;
- __declspec(dllexport) TCjkWidth GetCjkWidth() const;
- __declspec(dllexport) static TBool Compose(TUint& aResult,const TDesC16& aSource);
- __declspec(dllexport) TBool Decompose(TPtrC16& aResult) const;
- __declspec(dllexport) TBool TranslateFromUnicode(TUint& aCode,TEncoding aEncoding) const;
- __declspec(dllexport) static TBool TranslateToUnicode(TUint& aTo,TUint aFrom,TEncoding aEncoding);
- protected:
- inline void SetChar(TUint aChar);
- private:
- TUint iChar;
- public: void __DbgTestInvariant() const; void __DbgTest(TAny *aPtr) const ;
- };
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\e32des8.h" /* stack depth 6 */
- #line 12
- const TUint KMaskDesLength8=0xfffffff;
- const TInt KShiftDesType8=28;
- class TBufCBase8;
- class TDes8;
- class TPtrC8;
- class TPtr8;
- class TPtr16;
- class HBufC8;
- class TDesC8
- #line 48
- {
- public:
- inline TBool operator<(const TDesC8 &aDes) const;
- inline TBool operator<=(const TDesC8 &aDes) const;
- inline TBool operator>(const TDesC8 &aDes) const;
- inline TBool operator>=(const TDesC8 &aDes) const;
- inline TBool operator==(const TDesC8 &aDes) const;
- inline TBool operator!=(const TDesC8 &aDes) const;
- inline const TUint8 &operator[](TInt anIndex) const;
- inline TInt Length() const;
- inline TInt Size() const;
- __declspec(dllexport) const TUint8 *Ptr() const;
- __declspec(dllexport) TInt Compare(const TDesC8 &aDes) const;
- __declspec(dllexport) TInt Match(const TDesC8 &aDes) const;
- __declspec(dllexport) TInt MatchF(const TDesC8 &aDes) const;
- __declspec(dllexport) TInt MatchC(const TDesC8 &aDes) const;
- __declspec(dllexport) TInt Locate(TChar aChar) const;
- __declspec(dllexport) TInt LocateReverse(TChar aChar) const;
- __declspec(dllexport) TInt Find(const TDesC8 &aDes) const;
- __declspec(dllexport) TInt Find(const TUint8 *pS,TInt aLenS) const;
- __declspec(dllexport) TPtrC8 Left(TInt aLength) const;
- __declspec(dllexport) TPtrC8 Right(TInt aLength) const;
- __declspec(dllexport) TPtrC8 Mid(TInt aPos) const;
- __declspec(dllexport) TPtrC8 Mid(TInt aPos,TInt aLength) const;
- __declspec(dllexport) TInt CompareF(const TDesC8 &aDes) const;
- __declspec(dllexport) TInt CompareC(const TDesC8 &aDes) const;
- __declspec(dllexport) TInt LocateF(TChar aChar) const;
- __declspec(dllexport) TInt LocateReverseF(TChar aChar) const;
- __declspec(dllexport) TInt FindF(const TDesC8 &aDes) const;
- __declspec(dllexport) TInt FindF(const TUint8 *pS,TInt aLenS) const;
- __declspec(dllexport) TInt FindC(const TDesC8 &aDes) const;
- __declspec(dllexport) TInt FindC(const TUint8 *pS,TInt aLenS) const;
- __declspec(dllexport) HBufC8 *Alloc() const;
- __declspec(dllexport) HBufC8 *AllocL() const;
- __declspec(dllexport) HBufC8 *AllocLC() const;
- protected:
- inline TDesC8(TInt aType,TInt aLength);
- inline TDesC8() {}
- inline TInt Type() const;
- inline void DoSetLength(TInt aLength);
- __declspec(dllexport) const TUint8 &AtC(TInt anIndex) const;
- private:
- TUint iLength;
- public: void __DbgTestInvariant() const; void __DbgTest(TAny *aPtr) const ;
- };
- class TPtrC8 : public TDesC8
- #line 122
- {
- public:
- __declspec(dllexport) TPtrC8();
- __declspec(dllexport) TPtrC8(const TDesC8 &aDes);
- __declspec(dllexport) TPtrC8(const TUint8 *aString);
- __declspec(dllexport) TPtrC8(const TUint8 *aBuf,TInt aLength);
- inline void Set(const TUint8 *aBuf,TInt aLength);
- inline void Set(const TDesC8 &aDes);
- inline void Set(const TPtrC8& aPtr);
- private:
- TPtrC8& operator=(const TPtrC8 &aDes);
- protected:
- const TUint8 *iPtr;
- private:
- public: void __DbgTestInvariant() const; void __DbgTest(TAny *aPtr) const ;
- };
- class TDes8Overflow
- #line 154
- {
- public:
- #line 165
- virtual void Overflow(TDes8 &aDes)=0;
- };
- class TDesC16;
- class TRealFormat;
- class TDes8 : public TDesC8
- #line 192
- {
- public:
- inline TDes8& operator=(const TUint8 *aString);
- inline TDes8& operator=(const TDesC8 &aDes);
- inline TDes8& operator=(const TDes8 &aDes);
- inline TInt MaxLength() const;
- inline TInt MaxSize() const;
- inline const TUint8 &operator[](TInt anIndex) const;
- inline TUint8 &operator[](TInt anIndex);
- inline TDes8 &operator+=(const TDesC8 &aDes);
- __declspec(dllexport) void Zero();
- __declspec(dllexport) void SetLength(TInt aLength);
- __declspec(dllexport) void SetMax();
- __declspec(dllexport) void Copy(const TDesC8 &aDes);
- __declspec(dllexport) void Copy(const TUint8 *aBuf,TInt aLength);
- __declspec(dllexport) void Copy(const TUint8 *aString);
- __declspec(dllexport) void Copy(const TDesC16 &aDes);
- __declspec(dllexport) void Append(TChar aChar);
- __declspec(dllexport) void Append(const TDesC8 &aDes);
- __declspec(dllexport) void Append(const TDesC16 &aDes);
- __declspec(dllexport) void Append(const TUint8 *aBuf,TInt aLength);
- __declspec(dllexport) void Fill(TChar aChar);
- __declspec(dllexport) void Fill(TChar aChar,TInt aLength);
- __declspec(dllexport) void FillZ();
- __declspec(dllexport) void FillZ(TInt aLength);
- __declspec(dllexport) void Num(TInt64 aVal);
- __declspec(dllexport) void Num(TUint64 aVal, TRadix aRadix);
- __declspec(dllexport) void NumFixedWidth(TUint aVal,TRadix aRadix,TInt aWidth);
- __declspec(dllexport) void AppendNum(TInt64 aVal);
- __declspec(dllexport) void AppendNum(TUint64 aVal, TRadix aRadix);
- __declspec(dllexport) void AppendNumFixedWidth(TUint aVal,TRadix aRadix,TInt aWidth);
- __declspec(dllexport) TPtr8 LeftTPtr(TInt aLength) const;
- __declspec(dllexport) TPtr8 RightTPtr(TInt aLength) const;
- __declspec(dllexport) TPtr8 MidTPtr(TInt aPos) const;
- __declspec(dllexport) TPtr8 MidTPtr(TInt aPos,TInt aLength) const;
- __declspec(dllexport) const TUint8 *PtrZ();
- __declspec(dllexport) void CopyF(const TDesC8 &aDes);
- __declspec(dllexport) void CopyC(const TDesC8 &aDes);
- __declspec(dllexport) void CopyLC(const TDesC8 &aDes);
- __declspec(dllexport) void CopyUC(const TDesC8 &aDes);
- __declspec(dllexport) void CopyCP(const TDesC8 &aDes);
- __declspec(dllexport) void Swap(TDes8 &aDes);
- __declspec(dllexport) void AppendFill(TChar aChar,TInt aLength);
- __declspec(dllexport) void ZeroTerminate();
- __declspec(dllexport) void Fold();
- __declspec(dllexport) void Collate();
- __declspec(dllexport) void LowerCase();
- __declspec(dllexport) void UpperCase();
- __declspec(dllexport) void Capitalize();
- __declspec(dllexport) void Repeat(const TUint8 *aBuf,TInt aLength);
- __declspec(dllexport) void Repeat(const TDesC8 &aDes);
- __declspec(dllexport) void Trim();
- __declspec(dllexport) void TrimAll();
- __declspec(dllexport) void TrimLeft();
- __declspec(dllexport) void TrimRight();
- __declspec(dllexport) void Insert(TInt aPos,const TDesC8 &aDes);
- __declspec(dllexport) void Delete(TInt aPos,TInt aLength);
- __declspec(dllexport) void Replace(TInt aPos,TInt aLength,const TDesC8 &aDes);
- __declspec(dllexport) void Justify(const TDesC8 &aDes,TInt aWidth,TAlign anAlignment,TChar aFill);
- __declspec(dllexport) void NumFixedWidthUC(TUint aVal,TRadix aRadix,TInt aWidth);
- __declspec(dllexport) void NumUC(TUint64 aVal, TRadix aRadix=EDecimal);
- __declspec(dllexport) TInt Num(TReal aVal,const TRealFormat &aFormat) ;
- __declspec(dllexport) void AppendNumFixedWidthUC(TUint aVal,TRadix aRadix,TInt aWidth);
- __declspec(dllexport) TInt AppendNum(TReal aVal,const TRealFormat &aFormat) ;
- __declspec(dllexport) void AppendNumUC(TUint64 aVal,TRadix aRadix=EDecimal);
- __declspec(dllexport) void Format(TRefByValue<const TDesC8> aFmt,...);
- __declspec(dllexport) void FormatList(const TDesC8 &aFmt,VA_LIST aList);
- __declspec(dllexport) void AppendJustify(const TDesC8 &Des,TInt aWidth,TAlign anAlignment,TChar aFill);
- __declspec(dllexport) void AppendJustify(const TDesC8 &Des,TInt aLength,TInt aWidth,TAlign anAlignment,TChar aFill);
- __declspec(dllexport) void AppendJustify(const TUint8 *aString,TInt aWidth,TAlign anAlignment,TChar aFill);
- __declspec(dllexport) void AppendJustify(const TUint8 *aString,TInt aLength,TInt aWidth,TAlign anAlignment,TChar aFill);
- __declspec(dllexport) void AppendFormat(TRefByValue<const TDesC8> aFmt,TDes8Overflow *aOverflowHandler,...);
- __declspec(dllexport) void AppendFormat(TRefByValue<const TDesC8> aFmt,...);
- __declspec(dllexport) void AppendFormatList(const TDesC8 &aFmt,VA_LIST aList,TDes8Overflow *aOverflowHandler=0 );
- __declspec(dllexport) TPtr16 Expand();
- __declspec(dllexport) void Collapse();
- protected:
- inline TDes8(TInt aType,TInt aLength,TInt aMaxLength);
- inline TUint8 *WPtr() const;
- inline TDes8() {}
- void DoAppendNum(TUint64 aVal, TRadix aRadix, TUint aA, TInt aW);
- void DoPadAppendNum(TInt aLength, TInt aW, const TUint8* aBuf);
- protected:
- TInt iMaxLength;
- public: void __DbgTestInvariant() const; void __DbgTest(TAny *aPtr) const ;
- };
- class TPtr8 : public TDes8
- #line 308
- {
- public:
- __declspec(dllexport) TPtr8(TUint8 *aBuf,TInt aMaxLength);
- __declspec(dllexport) TPtr8(TUint8 *aBuf,TInt aLength,TInt aMaxLength);
- inline TPtr8& operator=(const TUint8 *aString);
- inline TPtr8& operator=(const TDesC8& aDes);
- inline TPtr8& operator=(const TPtr8& aPtr);
- inline void Set(TUint8 *aBuf,TInt aLength,TInt aMaxLength);
- inline void Set(const TPtr8 &aPtr);
- private:
- __declspec(dllexport) TPtr8(TBufCBase8 &aLcb,TInt aMaxLength);
- protected:
- TUint8 *iPtr;
- private:
- friend class TBufCBase8;
- public: void __DbgTestInvariant() const; void __DbgTest(TAny *aPtr) const ;
- };
- class TBufCBase8 : public TDesC8
- {
- protected:
- __declspec(dllexport) TBufCBase8();
- inline TBufCBase8(TInt aLength);
- __declspec(dllexport) TBufCBase8(const TUint8 *aString,TInt aMaxLength);
- __declspec(dllexport) TBufCBase8(const TDesC8 &aDes,TInt aMaxLength);
- __declspec(dllexport) void Copy(const TUint8 *aString,TInt aMaxLength);
- __declspec(dllexport) void Copy(const TDesC8 &aDes,TInt aMaxLength);
- inline TPtr8 DoDes(TInt aMaxLength);
- inline TUint8 *WPtr() const;
- };
- class RReadStream;
- class HBufC8 : public TBufCBase8
- #line 379
- {
- public:
- __declspec(dllexport) static HBufC8 *New(TInt aMaxLength);
- __declspec(dllexport) static HBufC8 *NewL(TInt aMaxLength);
- __declspec(dllexport) static HBufC8 *NewLC(TInt aMaxLength);
- __declspec(dllexport) static HBufC8 *NewMax(TInt aMaxLength);
- __declspec(dllexport) static HBufC8 *NewMaxL(TInt aMaxLength);
- __declspec(dllexport) static HBufC8 *NewMaxLC(TInt aMaxLength);
- __declspec(dllexport) static HBufC8 *NewL(RReadStream &aStream,TInt aMaxLength);
- __declspec(dllexport) static HBufC8 *NewLC(RReadStream &aStream,TInt aMaxLength);
- __declspec(dllexport) HBufC8& operator=(const TUint8 *aString);
- __declspec(dllexport) HBufC8& operator=(const TDesC8 &aDes);
- inline HBufC8& operator=(const HBufC8 &aLcb);
- __declspec(dllexport) HBufC8 *ReAlloc(TInt aMaxLength);
- __declspec(dllexport) HBufC8 *ReAllocL(TInt aMaxLength);
- __declspec(dllexport) TPtr8 Des();
- private:
- inline HBufC8(TInt aLength);
- private:
- TText8 iBuf[1];
- public: void __DbgTestInvariant() const; void __DbgTest(TAny *aPtr) const ;
- };
- #line 412
- template <TInt S>
- class TBufC8 : public TBufCBase8
- #line 438
- {
- public:
- inline TBufC8();
- inline TBufC8(const TUint8 *aString);
- inline TBufC8(const TDesC8 &aDes);
- inline TBufC8<S> &operator=(const TUint8 *aString);
- inline TBufC8<S> &operator=(const TDesC8 &aDes);
- inline TPtr8 Des();
- protected:
- TUint8 iBuf[((((S)+(sizeof(TInt)/sizeof(TInt8))-1)/(sizeof(TInt)/sizeof(TInt8)))*(sizeof(TInt)/sizeof(TInt8))) ];
- };
- class TBufBase8 : public TDes8
- {
- protected:
- __declspec(dllexport) TBufBase8(TInt aMaxLength);
- __declspec(dllexport) TBufBase8(TInt aLength,TInt aMaxLength);
- __declspec(dllexport) TBufBase8(const TUint8* aString,TInt aMaxLength);
- __declspec(dllexport) TBufBase8(const TDesC8& aDes,TInt aMaxLength);
- };
- template <TInt S>
- class TBuf8 : public TBufBase8
- #line 486
- {
- public:
- inline TBuf8();
- inline explicit TBuf8(TInt aLength);
- inline TBuf8(const TUint8* aString);
- inline TBuf8(const TDesC8& aDes);
- inline TBuf8<S>& operator=(const TUint8* aString);
- inline TBuf8<S>& operator=(const TDesC8& aDes);
- inline TBuf8<S>& operator=(const TBuf8<S>& aBuf);
- protected:
- TUint8 iBuf[((((S)+(sizeof(TInt)/sizeof(TInt8))-1)/(sizeof(TInt)/sizeof(TInt8)))*(sizeof(TInt)/sizeof(TInt8))) ];
- };
- template <TInt S>
- class TAlignedBuf8 : public TBufBase8
- #line 515
- {
- public:
- inline TAlignedBuf8();
- inline explicit TAlignedBuf8(TInt aLength);
- inline TAlignedBuf8(const TUint8* aString);
- inline TAlignedBuf8(const TDesC8& aDes);
- inline TAlignedBuf8<S>& operator=(const TUint8* aString);
- inline TAlignedBuf8<S>& operator=(const TDesC8& aDes);
- inline TAlignedBuf8<S>& operator=(const TAlignedBuf8<S>& aBuf);
- protected:
- union {
- double only_here_to_force_8byte_alignment;
- TUint8 iBuf[((((S)+(sizeof(TInt)/sizeof(TInt8))-1)/(sizeof(TInt)/sizeof(TInt8)))*(sizeof(TInt)/sizeof(TInt8))) ];
- };
- };
- class RBuf8 : public TDes8
- #line 570
- {
- public:
- __declspec(dllexport) RBuf8();
- __declspec(dllexport) explicit RBuf8(HBufC8* aHBuf);
- __declspec(dllexport) void Assign(const RBuf8& aRBuf);
- __declspec(dllexport) void Assign(TUint8 *aHeapCell,TInt aMaxLength);
- __declspec(dllexport) void Assign(TUint8 *aHeapCell,TInt aLength,TInt aMaxLength);
- __declspec(dllexport) void Assign(HBufC8* aHBuf);
- __declspec(dllexport) void Swap(RBuf8& aRBuf);
- __declspec(dllexport) TInt Create(TInt aMaxLength);
- __declspec(dllexport) void CreateL(TInt aMaxLength);
- __declspec(dllexport) TInt CreateMax(TInt aMaxLength);
- __declspec(dllexport) void CreateMaxL(TInt aMaxLength);
- inline void CreateL(RReadStream &aStream,TInt aMaxLength);
- __declspec(dllexport) TInt Create(const TDesC8& aDes);
- __declspec(dllexport) void CreateL(const TDesC8& aDes);
- __declspec(dllexport) TInt Create(const TDesC8& aDes,TInt aMaxLength);
- __declspec(dllexport) void CreateL(const TDesC8& aDes,TInt aMaxLength);
- __declspec(dllexport) TInt ReAlloc(TInt aMaxLength);
- __declspec(dllexport) void ReAllocL(TInt aMaxLength);
- __declspec(dllexport) void Close();
- __declspec(dllexport) void CleanupClosePushL();
- protected:
- __declspec(dllexport) RBuf8(TInt aType,TInt aLength,TInt aMaxLength);
- RBuf8(const RBuf8&);
- union
- {
- TUint8* iEPtrType;
- HBufC8* iEBufCPtrType;
- };
- public: void __DbgTestInvariant() const; void __DbgTest(TAny *aPtr) const ;
- };
- #line 614
- typedef TRefByValue<const TDesC8> __TRefDesC8;
- template <TInt S>
- class TLitC8
- #line 636
- {
- public:
- inline const TDesC8* operator&() const;
- inline operator const TDesC8&() const;
- inline const TDesC8& operator()() const;
- inline operator const __TRefDesC8() const;
- public:
- TUint iTypeLength;
- TText8 iBuf[((((S)+(sizeof(TInt)/sizeof(TInt8))-1)/(sizeof(TInt)/sizeof(TInt8)))*(sizeof(TInt)/sizeof(TInt8))) ];
- };
- #line 1106 "C:\Symbian\9.1\S60_3rd\epoc32\include\e32cmn.h" /* stack depth 5 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\e32des16.h" /* stack depth 6 */
- #line 12
- const TUint KMaskDesLength16=0xfffffff;
- const TInt KShiftDesType16=28;
- class TBufCBase16;
- class TDes16;
- class TPtrC16;
- class TPtr16;
- struct TCollationMethod;
- class HBufC16;
- class TDesC16
- #line 47
- {
- public:
- enum TPrefix {
- EIsPrefix = 0,
- EMightBePrefix = 1,
- EIsNotPrefix = 2
- };
- public:
- inline TBool operator<(const TDesC16 &aDes) const;
- inline TBool operator<=(const TDesC16 &aDes) const;
- inline TBool operator>(const TDesC16 &aDes) const;
- inline TBool operator>=(const TDesC16 &aDes) const;
- inline TBool operator==(const TDesC16 &aDes) const;
- inline TBool operator!=(const TDesC16 &aDes) const;
- inline const TUint16 &operator[](TInt anIndex) const;
- inline TInt Length() const;
- inline TInt Size() const;
- __declspec(dllexport) const TUint16 *Ptr() const;
- __declspec(dllexport) TInt Compare(const TDesC16 &aDes) const;
- __declspec(dllexport) TInt CompareF(const TDesC16 &aDes) const;
- __declspec(dllexport) TInt CompareC(const TDesC16 &aDes) const;
- __declspec(dllexport) TInt CompareC(const TDesC16& aDes,TInt aMaxLevel,const TCollationMethod* aCollationMethod) const;
- __declspec(dllexport) TInt Match(const TDesC16 &aDes) const;
- __declspec(dllexport) TInt MatchF(const TDesC16 &aDes) const;
- __declspec(dllexport) TInt MatchC(const TDesC16 &aDes) const;
- __declspec(dllexport) TInt Locate(TChar aChar) const;
- __declspec(dllexport) TInt LocateReverse(TChar aChar) const;
- __declspec(dllexport) TInt Find(const TDesC16 &aDes) const;
- __declspec(dllexport) TInt Find(const TUint16 *aBuf,TInt aLen) const;
- __declspec(dllexport) TPrefix HasPrefixC(const TDesC16& aPossiblePrefix, TInt aLevel, const TCollationMethod* aCollationMethod) const;
- __declspec(dllexport) TPtrC16 Left(TInt aLength) const;
- __declspec(dllexport) TPtrC16 Right(TInt aLength) const;
- __declspec(dllexport) TPtrC16 Mid(TInt aPos) const;
- __declspec(dllexport) TPtrC16 Mid(TInt aPos,TInt aLength) const;
- __declspec(dllexport) TInt LocateF(TChar aChar) const;
- __declspec(dllexport) TInt LocateReverseF(TChar aChar) const;
- __declspec(dllexport) TInt FindF(const TDesC16 &aDes) const;
- __declspec(dllexport) TInt FindF(const TUint16 *aBuf,TInt aLen) const;
- __declspec(dllexport) TInt FindC(const TDesC16 &aDes) const;
- __declspec(dllexport) TInt FindC(const TUint16 *aBuf,TInt aLen) const;
- __declspec(dllexport) TInt FindC(const TUint16 *aText,TInt aLength, TInt aMaxLevel) const;
- __declspec(dllexport) HBufC16 *Alloc() const;
- __declspec(dllexport) HBufC16 *AllocL() const;
- __declspec(dllexport) HBufC16 *AllocLC() const;
- protected:
- inline TDesC16() {}
- inline TDesC16(TInt aType,TInt aLength);
- inline TInt Type() const;
- inline void DoSetLength(TInt aLength);
- __declspec(dllexport) const TUint16 &AtC(TInt anIndex) const;
- private:
- TUint iLength;
- public: void __DbgTestInvariant() const; void __DbgTest(TAny *aPtr) const ;
- };
- class TPtrC16 : public TDesC16
- #line 148
- {
- public:
- __declspec(dllexport) TPtrC16();
- __declspec(dllexport) TPtrC16(const TDesC16 &aDes);
- __declspec(dllexport) TPtrC16(const TUint16 *aString);
- __declspec(dllexport) TPtrC16(const TUint16 *aBuf,TInt aLength);
- inline void Set(const TUint16 *aBuf,TInt aLength);
- inline void Set(const TDesC16 &aDes);
- inline void Set(const TPtrC16 &aPtr);
- private:
- TPtrC16& operator=(const TPtrC16 &aDes);
- protected:
- const TUint16 *iPtr;
- private:
- public: void __DbgTestInvariant() const; void __DbgTest(TAny *aPtr) const ;
- };
- class TDes16Overflow
- #line 179
- {
- public:
- #line 190
- virtual void Overflow(TDes16 &aDes)=0;
- };
- class TRealFormat;
- class TDes16 : public TDesC16
- #line 216
- {
- public:
- inline TDes16& operator=(const TUint16 *aString);
- inline TDes16& operator=(const TDesC16 &aDes);
- inline TDes16& operator=(const TDes16 &aDes);
- inline TInt MaxLength() const;
- inline TInt MaxSize() const;
- inline const TUint16 &operator[](TInt anIndex) const;
- inline TUint16 &operator[](TInt anIndex);
- inline TDes16 &operator+=(const TDesC16 &aDes);
- __declspec(dllexport) void Zero();
- __declspec(dllexport) void SetLength(TInt aLength);
- __declspec(dllexport) void SetMax();
- __declspec(dllexport) void Copy(const TDesC8 &aDes);
- __declspec(dllexport) void Copy(const TDesC16 &aDes);
- __declspec(dllexport) void Copy(const TUint16 *aBuf,TInt aLength);
- __declspec(dllexport) void Copy(const TUint16 *aString);
- __declspec(dllexport) void Append(TChar aChar);
- __declspec(dllexport) void Append(const TDesC16 &aDes);
- __declspec(dllexport) void Append(const TUint16 *aBuf,TInt aLength);
- __declspec(dllexport) void Fill(TChar aChar);
- __declspec(dllexport) void Fill(TChar aChar,TInt aLength);
- __declspec(dllexport) void FillZ();
- __declspec(dllexport) void FillZ(TInt aLength);
- __declspec(dllexport) void NumFixedWidth(TUint aVal,TRadix aRadix,TInt aWidth);
- __declspec(dllexport) void AppendNumFixedWidth(TUint aVal,TRadix aRadix,TInt aWidth);
- __declspec(dllexport) TPtr16 LeftTPtr(TInt aLength) const;
- __declspec(dllexport) TPtr16 RightTPtr(TInt aLength) const;
- __declspec(dllexport) TPtr16 MidTPtr(TInt aPos) const;
- __declspec(dllexport) TPtr16 MidTPtr(TInt aPos,TInt aLength) const;
- __declspec(dllexport) const TUint16 *PtrZ();
- __declspec(dllexport) void CopyF(const TDesC16 &aDes);
- __declspec(dllexport) void CopyC(const TDesC16 &aDes);
- __declspec(dllexport) void CopyLC(const TDesC16 &aDes);
- __declspec(dllexport) void CopyUC(const TDesC16 &aDes);
- __declspec(dllexport) void CopyCP(const TDesC16 &aDes);
- __declspec(dllexport) void AppendFill(TChar aChar,TInt aLength);
- __declspec(dllexport) void ZeroTerminate();
- __declspec(dllexport) void Swap(TDes16 &aDes);
- __declspec(dllexport) void Fold();
- __declspec(dllexport) void Collate();
- __declspec(dllexport) void LowerCase();
- __declspec(dllexport) void UpperCase();
- __declspec(dllexport) void Capitalize();
- __declspec(dllexport) void Repeat(const TDesC16 &aDes);
- __declspec(dllexport) void Repeat(const TUint16 *aBuf,TInt aLength);
- __declspec(dllexport) void Trim();
- __declspec(dllexport) void TrimAll();
- __declspec(dllexport) void TrimLeft();
- __declspec(dllexport) void TrimRight();
- __declspec(dllexport) void Insert(TInt aPos,const TDesC16 &aDes);
- __declspec(dllexport) void Delete(TInt aPos,TInt aLength);
- __declspec(dllexport) void Replace(TInt aPos,TInt aLength,const TDesC16 &aDes);
- __declspec(dllexport) void Justify(const TDesC16 &aDes,TInt aWidth,TAlign anAlignment,TChar aFill);
- __declspec(dllexport) void NumFixedWidthUC(TUint aVal,TRadix aRadix,TInt aWidth);
- __declspec(dllexport) void NumUC(TUint64 aVal, TRadix aRadix=EDecimal);
- __declspec(dllexport) TInt Num(TReal aVal,const TRealFormat &aFormat) ;
- __declspec(dllexport) void Num(TInt64 aVal);
- __declspec(dllexport) void Num(TUint64 aVal, TRadix aRadix);
- __declspec(dllexport) void Format(TRefByValue<const TDesC16> aFmt,...);
- __declspec(dllexport) void FormatList(const TDesC16 &aFmt,VA_LIST aList);
- __declspec(dllexport) void AppendJustify(const TDesC16 &Des,TInt aWidth,TAlign anAlignment,TChar aFill);
- __declspec(dllexport) void AppendJustify(const TDesC16 &Des,TInt aLength,TInt aWidth,TAlign anAlignment,TChar aFill);
- __declspec(dllexport) void AppendJustify(const TUint16 *aString,TInt aWidth,TAlign anAlignment,TChar aFill);
- __declspec(dllexport) void AppendJustify(const TUint16 *aString,TInt aLength,TInt aWidth,TAlign anAlignment,TChar aFill);
- __declspec(dllexport) void AppendNumFixedWidthUC(TUint aVal,TRadix aRadix,TInt aWidth);
- __declspec(dllexport) void AppendNumUC(TUint64 aVal, TRadix aRadix=EDecimal);
- __declspec(dllexport) TInt AppendNum(TReal aVal,const TRealFormat &aFormat) ;
- __declspec(dllexport) void AppendNum(TInt64 aVal);
- __declspec(dllexport) void AppendNum(TUint64 aVal, TRadix aRadix);
- __declspec(dllexport) void AppendFormat(TRefByValue<const TDesC16> aFmt,TDes16Overflow *aOverflowHandler,...);
- __declspec(dllexport) void AppendFormat(TRefByValue<const TDesC16> aFmt,...);
- __declspec(dllexport) void AppendFormatList(const TDesC16 &aFmt,VA_LIST aList,TDes16Overflow *aOverflowHandler=0 );
- __declspec(dllexport) TPtr8 Collapse();
- protected:
- inline TDes16() {}
- inline TDes16(TInt aType,TInt aLength,TInt aMaxLength);
- inline TUint16 *WPtr() const;
- void DoAppendNum(TUint64 aVal, TRadix aRadix, TUint aA, TInt aW);
- void DoPadAppendNum(TInt aLength, TInt aW, const TUint8* aBuf);
- protected:
- TInt iMaxLength;
- public: void __DbgTestInvariant() const; void __DbgTest(TAny *aPtr) const ;
- };
- class TPtr16 : public TDes16
- #line 328
- {
- public:
- __declspec(dllexport) TPtr16(TUint16 *aBuf,TInt aMaxLength);
- __declspec(dllexport) TPtr16(TUint16 *aBuf,TInt aLength,TInt aMaxLength);
- inline TPtr16& operator=(const TUint16 *aString);
- inline TPtr16& operator=(const TDesC16& aDes);
- inline TPtr16& operator=(const TPtr16& aDes);
- inline void Set(TUint16 *aBuf,TInt aLength,TInt aMaxLength);
- inline void Set(const TPtr16 &aPtr);
- private:
- __declspec(dllexport) TPtr16(TBufCBase16 &aLcb,TInt aMaxLength);
- protected:
- TUint16 *iPtr;
- private:
- friend class TBufCBase16;
- public: void __DbgTestInvariant() const; void __DbgTest(TAny *aPtr) const ;
- };
- class TBufCBase16 : public TDesC16
- {
- protected:
- __declspec(dllexport) TBufCBase16();
- inline TBufCBase16(TInt aLength);
- __declspec(dllexport) TBufCBase16(const TUint16 *aString,TInt aMaxLength);
- __declspec(dllexport) TBufCBase16(const TDesC16 &aDes,TInt aMaxLength);
- __declspec(dllexport) void Copy(const TUint16 *aString,TInt aMaxLength);
- __declspec(dllexport) void Copy(const TDesC16 &aDes,TInt aMaxLength);
- inline TPtr16 DoDes(TInt aMaxLength);
- inline TUint16 *WPtr() const;
- };
- class RReadStream;
- class HBufC16 : public TBufCBase16
- #line 398
- {
- public:
- __declspec(dllexport) static HBufC16 *New(TInt aMaxLength);
- __declspec(dllexport) static HBufC16 *NewL(TInt aMaxLength);
- __declspec(dllexport) static HBufC16 *NewLC(TInt aMaxLength);
- __declspec(dllexport) static HBufC16 *NewMax(TInt aMaxLength);
- __declspec(dllexport) static HBufC16 *NewMaxL(TInt aMaxLength);
- __declspec(dllexport) static HBufC16 *NewMaxLC(TInt aMaxLength);
- __declspec(dllexport) static HBufC16 *NewL(RReadStream &aStream,TInt aMaxLength);
- __declspec(dllexport) static HBufC16 *NewLC(RReadStream &aStream,TInt aMaxLength);
- __declspec(dllexport) HBufC16& operator=(const TUint16 *aString);
- __declspec(dllexport) HBufC16& operator=(const TDesC16 &aDes);
- inline HBufC16& operator=(const HBufC16 &aLcb);
- __declspec(dllexport) HBufC16 *ReAlloc(TInt aMaxLength);
- __declspec(dllexport) HBufC16 *ReAllocL(TInt aMaxLength);
- __declspec(dllexport) TPtr16 Des();
- private:
- inline HBufC16(TInt aLength);
- private:
- TText16 iBuf[1];
- public: void __DbgTestInvariant() const; void __DbgTest(TAny *aPtr) const ;
- };
- #line 430
- template <TInt S>
- class TBufC16 : public TBufCBase16
- #line 456
- {
- public:
- inline TBufC16();
- inline TBufC16(const TUint16 *aString);
- inline TBufC16(const TDesC16 &aDes);
- inline TBufC16<S> &operator=(const TUint16 *aString);
- inline TBufC16<S> &operator=(const TDesC16 &aDes);
- inline TPtr16 Des();
- protected:
- TUint16 iBuf[((((S)+(sizeof(TInt)/sizeof(TInt16))-1)/(sizeof(TInt)/sizeof(TInt16)))*(sizeof(TInt)/sizeof(TInt16))) ];
- };
- class TBufBase16 : public TDes16
- {
- protected:
- __declspec(dllexport) TBufBase16(TInt aMaxLength);
- __declspec(dllexport) TBufBase16(TInt aLength,TInt aMaxLength);
- __declspec(dllexport) TBufBase16(const TUint16* aString,TInt aMaxLength);
- __declspec(dllexport) TBufBase16(const TDesC16& aDes,TInt aMaxLength);
- };
- template <TInt S>
- class TBuf16 : public TBufBase16
- #line 504
- {
- public:
- inline TBuf16();
- inline explicit TBuf16(TInt aLength);
- inline TBuf16(const TUint16* aString);
- inline TBuf16(const TDesC16& aDes);
- inline TBuf16<S>& operator=(const TUint16* aString);
- inline TBuf16<S>& operator=(const TDesC16& aDes);
- inline TBuf16<S>& operator=(const TBuf16<S>& aDes);
- protected:
- TUint16 iBuf[((((S)+(sizeof(TInt)/sizeof(TInt16))-1)/(sizeof(TInt)/sizeof(TInt16)))*(sizeof(TInt)/sizeof(TInt16))) ];
- };
- class RBuf16 : public TDes16
- #line 557
- {
- public:
- __declspec(dllexport) RBuf16();
- __declspec(dllexport) explicit RBuf16(HBufC16* aHBuf);
- __declspec(dllexport) void Assign(const RBuf16& aRBuf);
- __declspec(dllexport) void Assign(TUint16 *aHeapCell,TInt aMaxLength);
- __declspec(dllexport) void Assign(TUint16 *aHeapCell,TInt aLength,TInt aMaxLength);
- __declspec(dllexport) void Assign(HBufC16* aHBuf);
- __declspec(dllexport) void Swap(RBuf16& aRBuf);
- __declspec(dllexport) TInt Create(TInt aMaxLength);
- __declspec(dllexport) void CreateL(TInt aMaxLength);
- __declspec(dllexport) TInt CreateMax(TInt aMaxLength);
- __declspec(dllexport) void CreateMaxL(TInt aMaxLength);
- inline void CreateL(RReadStream &aStream,TInt aMaxLength);
- __declspec(dllexport) TInt Create(const TDesC16& aDes);
- __declspec(dllexport) void CreateL(const TDesC16& aDes);
- __declspec(dllexport) TInt Create(const TDesC16& aDes,TInt aMaxLength);
- __declspec(dllexport) void CreateL(const TDesC16& aDes,TInt aMaxLength);
- __declspec(dllexport) TInt ReAlloc(TInt aMaxLength);
- __declspec(dllexport) void ReAllocL(TInt aMaxLength);
- __declspec(dllexport) void Close();
- __declspec(dllexport) void CleanupClosePushL();
- protected:
- __declspec(dllexport) RBuf16(TInt aType,TInt aLength,TInt aMaxLength);
- RBuf16(const RBuf16&);
- union
- {
- TUint16* iEPtrType;
- HBufC16* iEBufCPtrType;
- };
- public: void __DbgTestInvariant() const; void __DbgTest(TAny *aPtr) const ;
- };
- #line 602
- typedef TRefByValue<const TDesC16> __TRefDesC16;
- template <TInt S>
- class TLitC16
- #line 624
- {
- public:
- inline const TDesC16* operator&() const;
- inline operator const TDesC16&() const;
- inline const TDesC16& operator()() const;
- inline operator const __TRefDesC16() const;
- public:
- #line 645
- typedef TUint16 __TText;
- public:
- TUint iTypeLength;
- __TText iBuf[((((S)+(sizeof(TInt)/sizeof(TInt16))-1)/(sizeof(TInt)/sizeof(TInt16)))*(sizeof(TInt)/sizeof(TInt16))) ];
- };
- #line 1108 "C:\Symbian\9.1\S60_3rd\epoc32\include\e32cmn.h" /* stack depth 5 */
- #line 1131
- typedef TDesC16 TDesC;
- #line 1151
- typedef TPtrC16 TPtrC;
- #line 1171
- typedef TDes16 TDes;
- #line 1191
- typedef TPtr16 TPtr;
- #line 1212
- typedef HBufC16 HBufC;
- #line 1232
- typedef TDes16Overflow TDesOverflow;
- #line 1249
- typedef RBuf16 RBuf;
- #line 1394
- typedef TBufCBase16 TBufCBase;
- #line 1430
- template <TInt S>
- class TBufC : public TBufCBase16
- {
- public:
- inline TBufC();
- inline TBufC(const TText* aString);
- inline TBufC(const TDesC& aDes);
- inline TBufC<S>& operator=(const TText* aString);
- inline TBufC<S>& operator=(const TDesC& aDes);
- inline TPtr Des();
- private:
- TText iBuf[((((S)+(sizeof(TUint)/sizeof(TUint16))-1)/(sizeof(TUint)/sizeof(TUint16)))*(sizeof(TUint)/sizeof(TUint16))) ];
- };
- #line 1483
- template <TInt S>
- class TBuf : public TBufBase16
- {
- public:
- inline TBuf();
- inline explicit TBuf(TInt aLength);
- inline TBuf(const TText* aString);
- inline TBuf(const TDesC& aDes);
- inline TBuf<S>& operator=(const TText* aString);
- inline TBuf<S>& operator=(const TDesC& aDes);
- inline TBuf<S>& operator=(const TBuf<S>& aBuf);
- private:
- TText iBuf[((((S)+(sizeof(TUint)/sizeof(TUint16))-1)/(sizeof(TUint)/sizeof(TUint16)))*(sizeof(TUint)/sizeof(TUint16))) ];
- };
- #line 1513
- typedef TRefByValue<const TDesC> __TRefDesC;
- #line 1531
- template <TInt S>
- class TLitC
- {
- public:
- enum {BufferSize=S-1};
- inline const TDesC* operator&() const;
- inline operator const TDesC&() const;
- inline const TDesC& operator()() const;
- inline operator const __TRefDesC() const;
- public:
- #line 1568
- typedef TUint16 __TText;
- public:
- TUint iTypeLength;
- __TText iBuf[((((S)+(sizeof(TUint)/sizeof(TUint16))-1)/(sizeof(TUint)/sizeof(TUint16)))*(sizeof(TUint)/sizeof(TUint16))) ];
- };
- #line 1595
- const static TLitC<sizeof(L"")/2> KNullDesC={sizeof(L"")/2-1,L""} ;
- #line 1605
- const static TLitC8<sizeof("")> KNullDesC8={sizeof("")-1,""} ;
- #line 1616
- const static TLitC16<sizeof(L"")/2> KNullDesC16={sizeof(L"")/2-1,L""} ;
- #line 1633
- template <class T>
- class TPckgC : public TPtrC8
- {
- public:
- inline TPckgC(const T& aRef);
- inline const T& operator()() const;
- private:
- TPckgC<T>& operator=(const TPckgC<T>& aRef);
- };
- #line 1658
- template <class T>
- class TPckg : public TPtr8
- {
- public:
- inline TPckg(const T& aRef);
- inline T& operator()();
- private:
- TPckg<T>& operator=(const TPckg<T>& aRef);
- };
- #line 1685
- template <class T>
- class TPckgBuf : public TAlignedBuf8<sizeof(T)>
- {
- public:
- inline TPckgBuf();
- inline TPckgBuf(const T& aRef);
- inline TPckgBuf& operator=(const TPckgBuf<T>& aRef);
- inline T& operator=(const T& aRef);
- inline T& operator()();
- inline const T& operator()() const;
- };
- #line 1710
- typedef TBuf<KMaxName> TName;
- typedef TBuf<KMaxKernelName> TKName;
- typedef TBuf<KMaxInfoName> TInfoName;
- #line 1739
- typedef TBuf<KMaxFullName> TFullName;
- #line 1754
- typedef TBuf<KMaxExitCategoryName> TExitCategoryName;
- #line 1768
- typedef TBuf<KMaxFileName> TFileName;
- #line 1782
- typedef TBuf<KMaxPath> TPath;
- typedef TBuf<KMaxDeviceInfo> TDeviceInfo;
- #line 1805
- typedef TBuf<KMaxVersionName> TVersionName;
- typedef TBuf<KMaxPassword> TPassword;
- #line 1825
- typedef TBuf<KMaxUidName> TUidName;
- #line 1847
- class TUid
- {
- public:
- __declspec(dllexport) TBool operator==(const TUid& aUid) const;
- __declspec(dllexport) TBool operator!=(const TUid& aUid) const;
- __declspec(dllexport) TUidName Name() const;
- static inline TUid Uid(TInt aUid);
- static inline TUid Null();
- public:
- TInt32 iUid;
- };
- #line 1877
- class TUidType
- {
- public:
- __declspec(dllexport) TUidType();
- __declspec(dllexport) TUidType(TUid aUid1);
- __declspec(dllexport) TUidType(TUid aUid1,TUid aUid2);
- __declspec(dllexport) TUidType(TUid aUid1,TUid aUid2,TUid aUid3);
- __declspec(dllexport) TBool operator==(const TUidType& aUidType) const;
- __declspec(dllexport) TBool operator!=(const TUidType& aUidType) const;
- __declspec(dllexport) const TUid& operator[](TInt anIndex) const;
- __declspec(dllexport) TUid MostDerived() const;
- __declspec(dllexport) TBool IsPresent(TUid aUid) const;
- __declspec(dllexport) TBool IsValid() const;
- private:
- TUid iUid[KMaxCheckedUid];
- };
- #line 1925
- class TSecureId
- {
- public:
- inline TSecureId();
- inline TSecureId(TUint32 aId);
- inline operator TUint32() const;
- inline TSecureId(TUid aId);
- inline operator TUid() const;
- public:
- TUint32 iId;
- };
- #line 1966
- class TVendorId
- {
- public:
- inline TVendorId();
- inline TVendorId(TUint32 aId);
- inline operator TUint32() const;
- inline TVendorId(TUid aId);
- inline operator TUid() const;
- public:
- TUint32 iId;
- };
- #line 1985
- class SSecureId
- {
- public:
- inline const TSecureId* operator&() const;
- inline operator const TSecureId&() const;
- inline operator TUint32() const;
- inline operator TUid() const;
- public:
- TUint32 iId;
- };
- #line 2004
- class SVendorId
- {
- public:
- inline const TVendorId* operator&() const;
- inline operator const TVendorId&() const;
- inline operator TUint32() const;
- inline operator TUid() const;
- public:
- TUint32 iId;
- };
- #line 2062
- class TVersion
- {
- public:
- __declspec(dllexport) TVersion();
- __declspec(dllexport) TVersion(TInt aMajor,TInt aMinor,TInt aBuild);
- __declspec(dllexport) TVersionName Name() const;
- public:
- TInt8 iMajor;
- TInt8 iMinor;
- TInt16 iBuild;
- };
- #line 2103
- class TRequestStatus
- {
- public:
- inline TRequestStatus();
- inline TRequestStatus(TInt aVal);
- inline TInt operator=(TInt aVal);
- inline TBool operator==(TInt aVal) const;
- inline TBool operator!=(TInt aVal) const;
- inline TBool operator>=(TInt aVal) const;
- inline TBool operator<=(TInt aVal) const;
- inline TBool operator>(TInt aVal) const;
- inline TBool operator<(TInt aVal) const;
- inline TInt Int() const;
- private:
- enum
- {
- EActive = 1,
- ERequestPending = 2,
- };
- TInt iStatus;
- TUint iFlags;
- friend class CActive;
- friend class CActiveScheduler;
- friend class CServer2;
- };
- class TSize;
- #line 2143
- class TPoint
- {
- public:
- enum TUninitialized { EUninitialized };
- TPoint(TUninitialized) {}
- inline TPoint();
- inline TPoint(TInt aX,TInt aY);
- __declspec(dllexport) TBool operator==(const TPoint& aPoint) const;
- __declspec(dllexport) TBool operator!=(const TPoint& aPoint) const;
- __declspec(dllexport) TPoint& operator-=(const TPoint& aPoint);
- __declspec(dllexport) TPoint& operator+=(const TPoint& aPoint);
- __declspec(dllexport) TPoint& operator-=(const TSize& aSize);
- __declspec(dllexport) TPoint& operator+=(const TSize& aSize);
- __declspec(dllexport) TPoint operator-(const TPoint& aPoint) const;
- __declspec(dllexport) TPoint operator+(const TPoint& aPoint) const;
- __declspec(dllexport) TPoint operator-(const TSize& aSize) const;
- __declspec(dllexport) TPoint operator+(const TSize& aSize) const;
- __declspec(dllexport) TPoint operator-() const;
- __declspec(dllexport) void SetXY(TInt aX,TInt aY);
- __declspec(dllexport) TSize AsSize() const;
- public:
- TInt iX;
- TInt iY;
- };
- #line 2187
- class TPoint3D
- {
- public:
- TInt iX;
- TInt iY;
- TInt iZ;
- };
- #line 2212
- class TAngle3D
- {
- public:
- TInt iPhi;
- TInt iTheta;
- };
- #line 2235
- class TSize
- {
- public:
- enum TUninitialized { EUninitialized };
- TSize(TUninitialized) {}
- inline TSize();
- inline TSize(TInt aWidth,TInt aHeight);
- __declspec(dllexport) TBool operator==(const TSize& aSize) const;
- __declspec(dllexport) TBool operator!=(const TSize& aSize) const;
- __declspec(dllexport) TSize& operator-=(const TSize& aSize);
- __declspec(dllexport) TSize& operator-=(const TPoint& aPoint);
- __declspec(dllexport) TSize& operator+=(const TSize& aSize);
- __declspec(dllexport) TSize& operator+=(const TPoint& aPoint);
- __declspec(dllexport) TSize operator-(const TSize& aSize) const;
- __declspec(dllexport) TSize operator-(const TPoint& aPoint) const;
- __declspec(dllexport) TSize operator+(const TSize& aSize) const;
- __declspec(dllexport) TSize operator+(const TPoint& aPoint) const;
- __declspec(dllexport) TSize operator-() const;
- __declspec(dllexport) void SetSize(TInt aWidth,TInt aHeight);
- __declspec(dllexport) TPoint AsPoint() const;
- public:
- TInt iWidth;
- TInt iHeight;
- };
- #line 2287
- class THandleInfo
- {
- public:
- TInt iNumOpenInProcess;
- TInt iNumOpenInThread;
- TInt iNumProcesses;
- TInt iNumThreads;
- };
- class RThread;
- class TFindHandleBase;
- class TFindSemaphore;
- #line 2330
- class RHandleBase
- {
- public:
- enum
- {
- EReadAccess=0x1,
- EWriteAccess=0x2,
- EDirectReadAccess=0x4,
- EDirectWriteAccess=0x8,
- };
- public:
- inline RHandleBase();
- inline TInt Handle() const;
- inline void SetHandle(TInt aHandle);
- inline TInt SetReturnedHandle(TInt aHandleOrError);
- static void DoExtendedClose();
- __declspec(dllexport) void Close();
- __declspec(dllexport) TName Name() const;
- __declspec(dllexport) TFullName FullName() const;
- __declspec(dllexport) void SetHandleNC(TInt aHandle);
- __declspec(dllexport) TInt Duplicate(const RThread& aSrc,TOwnerType aType=EOwnerProcess);
- __declspec(dllexport) void HandleInfo(THandleInfo* anInfo);
- __declspec(dllexport) TUint Attributes() const;
- protected:
- inline RHandleBase(TInt aHandle);
- __declspec(dllexport) TInt Open(const TFindHandleBase& aHandle,TOwnerType aType);
- static TInt SetReturnedHandle(TInt aHandleOrError,RHandleBase& aHandle);
- TInt OpenByName(const TDesC &aName,TOwnerType aOwnerType,TInt aObjectType);
- private:
- static void DoExtendedCloseL();
- protected:
- TInt iHandle;
- };
- class RMessagePtr2;
- #line 2387
- class RSemaphore : public RHandleBase
- {
- public:
- inline TInt Open(const TFindSemaphore& aFind,TOwnerType aType=EOwnerProcess);
- __declspec(dllexport) TInt CreateLocal(TInt aCount,TOwnerType aType=EOwnerProcess);
- __declspec(dllexport) TInt CreateGlobal(const TDesC& aName,TInt aCount,TOwnerType aType=EOwnerProcess);
- __declspec(dllexport) TInt OpenGlobal(const TDesC& aName,TOwnerType aType=EOwnerProcess);
- __declspec(dllexport) TInt Open(RMessagePtr2 aMessage,TInt aParam,TOwnerType aType=EOwnerProcess);
- __declspec(dllexport) TInt Open(TInt aArgumentIndex, TOwnerType aType=EOwnerProcess);
- __declspec(dllexport) void Wait();
- __declspec(dllexport) TInt Wait(TInt aTimeout);
- __declspec(dllexport) void Signal();
- __declspec(dllexport) void Signal(TInt aCount);
- };
- #line 2416
- class RFastLock : public RSemaphore
- {
- public:
- inline RFastLock();
- __declspec(dllexport) TInt CreateLocal(TOwnerType aType=EOwnerProcess);
- __declspec(dllexport) void Wait();
- __declspec(dllexport) void Signal();
- private:
- TInt iCount;
- };
- #line 2440
- class RBusLogicalChannel : public RHandleBase
- {
- public:
- __declspec(dllexport) TInt Open(RMessagePtr2 aMessage,TInt aParam,TOwnerType aType=EOwnerProcess);
- __declspec(dllexport) TInt Open(TInt aArgumentIndex, TOwnerType aType=EOwnerProcess);
- protected:
- inline TInt DoCreate(const TDesC& aDevice, const TVersion& aVer, TInt aUnit, const TDesC* aDriver, const TDesC8* anInfo, TOwnerType aType=EOwnerProcess, TBool aProtected=EFalse);
- __declspec(dllexport) void DoCancel(TUint aReqMask);
- __declspec(dllexport) void DoRequest(TInt aReqNo,TRequestStatus& aStatus);
- __declspec(dllexport) void DoRequest(TInt aReqNo,TRequestStatus& aStatus,TAny* a1);
- __declspec(dllexport) void DoRequest(TInt aReqNo,TRequestStatus& aStatus,TAny* a1,TAny* a2);
- __declspec(dllexport) TInt DoControl(TInt aFunction);
- __declspec(dllexport) TInt DoControl(TInt aFunction,TAny* a1);
- __declspec(dllexport) TInt DoControl(TInt aFunction,TAny* a1,TAny* a2);
- inline TInt DoSvControl(TInt aFunction) { return DoControl(aFunction); }
- inline TInt DoSvControl(TInt aFunction,TAny* a1) { return DoControl(aFunction, a1); }
- inline TInt DoSvControl(TInt aFunction,TAny* a1,TAny* a2) { return DoControl(aFunction, a1, a2); }
- private:
- __declspec(dllexport) TInt DoCreate(const TDesC& aDevice, const TVersion& aVer, TInt aUnit, const TDesC* aDriver, const TDesC8* aInfo, TInt aType);
- private:
- TInt iPadding1;
- TInt iPadding2;
- };
- #line 2475
- class MAllocator
- {
- public:
- virtual TAny* Alloc(TInt aSize)=0;
- virtual void Free(TAny* aPtr)=0;
- virtual TAny* ReAlloc(TAny* aPtr, TInt aSize, TInt aMode=0)=0;
- virtual TInt AllocLen(const TAny* aCell) const =0;
- virtual TInt Compress()=0;
- virtual void Reset()=0;
- virtual TInt AllocSize(TInt& aTotalAllocSize) const =0;
- virtual TInt Available(TInt& aBiggestBlock) const =0;
- virtual TInt DebugFunction(TInt aFunc, TAny* a1=0 , TAny* a2=0 )=0;
- virtual TInt Extension_(TUint aExtensionId, TAny*& a0, TAny* a1)=0;
- };
- #line 2499
- class RAllocator : public MAllocator
- {
- public:
- #line 2511
- enum TAllocFail {
- ERandom,
- ETrueRandom,
- EDeterministic,
- ENone,
- EFailNext,
- EReset
- };
- enum TDbgHeapType {
- EUser,
- EKernel
- };
- enum TAllocDebugOp {ECount, EMarkStart, EMarkEnd, ECheck, ESetFail, ECopyDebugInfo};
- enum TReAllocMode {
- ENeverMove=1,
- EAllowMoveOnShrink=2
- };
- enum TFlags {ESingleThreaded=1, EFixedSize=2};
- struct SCheckInfo {TBool iAll; TInt iCount; const TDesC8* iFileName; TInt iLineNum;};
- enum {EMaxHandles=32};
- public:
- inline RAllocator();
- __declspec(dllexport) TInt Open();
- __declspec(dllexport) void Close();
- __declspec(dllexport) TAny* AllocZ(TInt aSize);
- __declspec(dllexport) TAny* AllocZL(TInt aSize);
- __declspec(dllexport) TAny* AllocL(TInt aSize);
- __declspec(dllexport) TAny* AllocLC(TInt aSize);
- __declspec(dllexport) void FreeZ(TAny*& aCell);
- __declspec(dllexport) TAny* ReAllocL(TAny* aCell, TInt aSize, TInt aMode=0);
- __declspec(dllexport) TInt Count() const;
- __declspec(dllexport) TInt Count(TInt& aFreeCount) const;
- __declspec(dllexport) void Check() const;
- __declspec(dllexport) void __DbgMarkStart();
- __declspec(dllexport) TUint32 __DbgMarkEnd(TInt aCount);
- __declspec(dllexport) TInt __DbgMarkCheck(TBool aCountAll, TInt aCount, const TDesC8& aFileName, TInt aLineNum);
- inline void __DbgMarkCheck(TBool aCountAll, TInt aCount, const TUint8* aFileName, TInt aLineNum);
- __declspec(dllexport) void __DbgSetAllocFail(TAllocFail aType, TInt aValue);
- protected:
- __declspec(dllexport) virtual TInt Extension_(TUint aExtensionId, TAny*& a0, TAny* a1);
- __declspec(dllexport) virtual void DoClose();
- protected:
- TInt iAccessCount;
- TInt iHandleCount;
- TInt* iHandles;
- TUint32 iFlags;
- TInt iCellCount;
- TInt iTotalAllocSize;
- };
- class UserHeap;
- #line 2650
- class RHeap : public RAllocator
- {
- public:
- struct SCell {
- TInt len;
- SCell* next;
- };
- struct SDebugCell {
- TInt len;
- TInt nestingLevel;
- TInt allocCount;
- };
- struct _s_align {char c; double d;};
- struct SHeapCellInfo { RHeap* iHeap; TInt iTotalAlloc; TInt iTotalAllocSize; TInt iTotalFree; TInt iLevelAlloc; SDebugCell* iStranded; };
- enum {ECellAlignment = sizeof(_s_align)-sizeof(double)};
- enum {EFreeCellSize = sizeof(SCell)};
- enum {EAllocCellSize = sizeof(SDebugCell)};
- #line 2734
- enum TDebugOp {EWalk=128};
- enum TCellType
- {EGoodAllocatedCell, EGoodFreeCell, EBadAllocatedCellSize, EBadAllocatedCellAddress,
- EBadFreeCellAddress, EBadFreeCellSize};
- enum TDebugHeapId {EUser=0, EKernel=1};
- typedef void (*TWalkFunc)(TAny*, TCellType, TAny*, TInt);
- public:
- __declspec(dllexport) virtual TAny* Alloc(TInt aSize);
- __declspec(dllexport) virtual void Free(TAny* aPtr);
- __declspec(dllexport) virtual TAny* ReAlloc(TAny* aPtr, TInt aSize, TInt aMode=0);
- __declspec(dllexport) virtual TInt AllocLen(const TAny* aCell) const;
- __declspec(dllexport) virtual TInt Compress();
- __declspec(dllexport) virtual void Reset();
- __declspec(dllexport) virtual TInt AllocSize(TInt& aTotalAllocSize) const;
- __declspec(dllexport) virtual TInt Available(TInt& aBiggestBlock) const;
- __declspec(dllexport) virtual TInt DebugFunction(TInt aFunc, TAny* a1=0 , TAny* a2=0 );
- protected:
- __declspec(dllexport) virtual TInt Extension_(TUint aExtensionId, TAny*& a0, TAny* a1);
- public:
- __declspec(dllexport) RHeap(TInt aMaxLength, TInt aAlign=0, TBool aSingleThread=ETrue);
- __declspec(dllexport) RHeap(TInt aChunkHandle, TInt aOffset, TInt aMinLength, TInt aMaxLength, TInt aGrowBy, TInt aAlign=0, TBool aSingleThread=EFalse);
- __declspec(dllexport) TAny* operator new(TUint aSize, TAny* aBase) throw() ;
- inline void operator delete(TAny* aPtr, TAny* aBase);
- inline TUint8* Base() const;
- inline TInt Size() const;
- inline TInt MaxLength() const;
- inline TInt Align(TInt a) const;
- inline const TAny* Align(const TAny* a) const;
- inline TBool IsLastCell(const SCell* aCell) const;
- inline void Lock() const;
- inline void Unlock() const;
- protected:
- inline RHeap();
- void Initialise();
- SCell* DoAlloc(TInt aSize, SCell*& aLastFree);
- void DoFree(SCell* pC);
- TInt TryToGrowHeap(TInt aSize, SCell* aLastFree);
- inline void FindFollowingFreeCell(SCell* aCell, SCell*& pPrev, SCell*& aNext);
- TInt TryToGrowCell(SCell* pC, SCell* pP, SCell* pE, TInt aSize);
- TInt Reduce(SCell* aCell);
- __declspec(dllexport) SCell* GetAddress(const TAny* aCell) const;
- void CheckCell(const SCell* aCell) const;
- void Walk(TWalkFunc aFunc, TAny* aPtr);
- static void WalkCheckCell(TAny* aPtr, TCellType aType, TAny* aCell, TInt aLen);
- TInt DoCountAllocFree(TInt& aFree);
- TInt DoCheckHeap(SCheckInfo* aInfo);
- void DoMarkStart();
- TUint32 DoMarkEnd(TInt aExpected);
- void DoSetAllocFail(TAllocFail aType, TInt aRate);
- TBool CheckForSimulatedAllocFail();
- inline TInt SetBrk(TInt aBrk);
- protected:
- TInt iMinLength;
- TInt iMaxLength;
- TInt iOffset;
- TInt iGrowBy;
- TInt iChunkHandle;
- RFastLock iLock;
- TUint8* iBase;
- TUint8* iTop;
- TInt iAlign;
- TInt iMinCell;
- TInt iPageSize;
- SCell iFree;
- protected:
- TInt iNestingLevel;
- TInt iAllocCount;
- TAllocFail iFailType;
- TInt iFailRate;
- TBool iFailed;
- TInt iFailAllocCount;
- TInt iRand;
- TAny* iTestData;
- friend class UserHeap;
- };
- class OnlyCreateWithNull;
- typedef void (OnlyCreateWithNull::* __NullPMF)();
- class OnlyCreateWithNull
- {
- public:
- inline OnlyCreateWithNull(__NullPMF ) {}
- };
- #line 2857
- class RMessagePtr2
- {
- public:
- inline RMessagePtr2();
- inline TBool IsNull() const;
- inline TInt Handle() const;
- __declspec(dllexport) void Complete(TInt aReason) const;
- __declspec(dllexport) void Complete(RHandleBase aHandle) const;
- __declspec(dllexport) TInt GetDesLength(TInt aParam) const;
- __declspec(dllexport) TInt GetDesLengthL(TInt aParam) const;
- __declspec(dllexport) TInt GetDesMaxLength(TInt aParam) const;
- __declspec(dllexport) TInt GetDesMaxLengthL(TInt aParam) const;
- __declspec(dllexport) void ReadL(TInt aParam,TDes8& aDes,TInt aOffset=0) const;
- __declspec(dllexport) void ReadL(TInt aParam,TDes16 &aDes,TInt aOffset=0) const;
- __declspec(dllexport) void WriteL(TInt aParam,const TDesC8& aDes,TInt aOffset=0) const;
- __declspec(dllexport) void WriteL(TInt aParam,const TDesC16& aDes,TInt aOffset=0) const;
- __declspec(dllexport) TInt Read(TInt aParam,TDes8& aDes,TInt aOffset=0) const;
- __declspec(dllexport) TInt Read(TInt aParam,TDes16 &aDes,TInt aOffset=0) const;
- __declspec(dllexport) TInt Write(TInt aParam,const TDesC8& aDes,TInt aOffset=0) const;
- __declspec(dllexport) TInt Write(TInt aParam,const TDesC16& aDes,TInt aOffset=0) const;
- __declspec(dllexport) void Panic(const TDesC& aCategory,TInt aReason) const;
- __declspec(dllexport) void Kill(TInt aReason) const;
- __declspec(dllexport) void Terminate(TInt aReason) const;
- __declspec(dllexport) TInt SetProcessPriority(TProcessPriority aPriority) const;
- inline void SetProcessPriorityL(TProcessPriority aPriority) const;
- __declspec(dllexport) TInt Client(RThread& aClient, TOwnerType aOwnerType=EOwnerProcess) const;
- inline void ClientL(RThread& aClient, TOwnerType aOwnerType=EOwnerProcess) const;
- __declspec(dllexport) TUint ClientProcessFlags() const;
- __declspec(dllexport) const TRequestStatus* ClientStatus() const;
- #line 2921
- __declspec(dllexport) TSecureId SecureId() const;
- #line 2955
- __declspec(dllexport) TVendorId VendorId() const;
- #line 2975
- inline TBool HasCapability(TCapability aCapability, const char* aDiagnostic=0) const;
- #line 3003
- inline void HasCapabilityL(TCapability aCapability, const char* aDiagnosticMessage=0) const;
- #line 3032
- inline TBool HasCapability(TCapability aCapability1, TCapability aCapability2, const char* aDiagnostic=0) const;
- #line 3061
- inline void HasCapabilityL(TCapability aCapability1, TCapability aCapability2, const char* aDiagnosticMessage=0) const;
- #line 3074
- inline TUid Identity() const { return SecureId(); }
- private:
- __declspec(dllexport) TBool DoHasCapability(TCapability aCapability, const char* aDiagnostic) const;
- __declspec(dllexport) TBool DoHasCapability(TCapability aCapability) const;
- __declspec(dllexport) TBool DoHasCapability(TCapability aCapability, TCapability aCapability2, const char* aDiagnostic) const;
- __declspec(dllexport) TBool DoHasCapability(TCapability aCapability, TCapability aCapability2) const;
- protected:
- TInt iHandle;
- };
- inline TBool operator==(RMessagePtr2 aLeft,RMessagePtr2 aRight);
- inline TBool operator!=(RMessagePtr2 aLeft,RMessagePtr2 aRight);
- class CSession2;
- #line 3100
- class RMessage2 : public RMessagePtr2
- {
- friend class CServer2;
- public:
- enum TSessionMessages {
- EConnect=-1,
- EDisConnect=-2
- };
- public:
- inline RMessage2();
- __declspec(dllexport) explicit RMessage2(const RMessagePtr2& aPtr);
- void SetAuthorised() const;
- void ClearAuthorised() const;
- TBool Authorised() const;
- inline TInt Function() const;
- inline TInt Int0() const;
- inline TInt Int1() const;
- inline TInt Int2() const;
- inline TInt Int3() const;
- inline const TAny* Ptr0() const;
- inline const TAny* Ptr1() const;
- inline const TAny* Ptr2() const;
- inline const TAny* Ptr3() const;
- inline CSession2* Session() const;
- protected:
- TInt iFunction;
- TInt iArgs[KMaxMessageArguments];
- private:
- TInt iSpare1;
- protected:
- const TAny* iSessionPtr;
- private:
- mutable TInt iFlags;
- TInt iSpare3;
- friend class RMessage;
- };
- #line 3176
- typedef TBuf8<KMaxMediaPassword> TMediaPassword;
- const TUint32 KEmulatorImageFlagAllowDllData = 0x01;
- const TInt KCapabilitySetMaxSize = (((TInt)ECapability_HardLimit + 7)>>3);
- const TInt KMaxSecurityPolicySize = KCapabilitySetMaxSize + 3*sizeof(TUint32);
- #line 3207
- class TCapabilitySet
- {
- public:
- inline TCapabilitySet();
- inline TCapabilitySet(TCapability aCapability);
- __declspec(dllexport) TCapabilitySet(TCapability aCapability1, TCapability aCapability2);
- __declspec(dllexport) void SetEmpty();
- inline void Set(TCapability aCapability);
- inline void Set(TCapability aCapability1, TCapability aCapability2);
- __declspec(dllexport) void SetAllSupported();
- __declspec(dllexport) void AddCapability(TCapability aCapability);
- __declspec(dllexport) void RemoveCapability(TCapability aCapability);
- __declspec(dllexport) void Union(const TCapabilitySet& aCapabilities);
- __declspec(dllexport) void Intersection(const TCapabilitySet& aCapabilities);
- __declspec(dllexport) void Remove(const TCapabilitySet& aCapabilities);
- __declspec(dllexport) TBool HasCapability(TCapability aCapability) const;
- __declspec(dllexport) TBool HasCapabilities(const TCapabilitySet& aCapabilities) const;
- __declspec(dllexport) void SetDisabled();
- TBool NotEmpty() const;
- private:
- TUint32 iCaps[KCapabilitySetMaxSize / sizeof(TUint32)];
- };
- struct SCapabilitySet
- {
- enum {ENCapW=2};
- inline void AddCapability(TCapability aCap1) {((TCapabilitySet*)this)->AddCapability(aCap1);}
- inline void Remove(const SCapabilitySet& aCaps) {((TCapabilitySet*)this)->Remove(*((TCapabilitySet*)&aCaps));}
- inline TBool NotEmpty() const {return ((TCapabilitySet*)this)->NotEmpty();}
- inline const TUint32& operator[] (TInt aIndex) const { return iCaps[aIndex]; }
- inline TUint32& operator[] (TInt aIndex) { return iCaps[aIndex]; }
- TUint32 iCaps[ENCapW];
- };
- struct SSecurityInfo
- {
- TUint32 iSecureId;
- TUint32 iVendorId;
- SCapabilitySet iCaps;
- };
- #line 3299
- class RProcess;
- class RThread;
- class RMessagePtr2;
- class RSessionBase;
- #line 3314
- class TSecurityInfo
- {
- public:
- inline TSecurityInfo();
- __declspec(dllexport) TSecurityInfo(RProcess aProcess);
- __declspec(dllexport) TSecurityInfo(RThread aThread);
- __declspec(dllexport) TSecurityInfo(RMessagePtr2 aMesPtr);
- inline void Set(RProcess aProcess);
- inline void Set(RThread aThread);
- inline void Set(RMessagePtr2 aMsgPtr);
- TInt Set(RSessionBase aSession);
- inline void SetToCurrentInfo();
- __declspec(dllexport) void SetToCreatorInfo();
- public:
- TSecureId iSecureId;
- TVendorId iVendorId;
- TCapabilitySet iCaps;
- };
- #line 3403
- class TSecurityPolicy
- {
- public:
- enum TSecPolicyType
- {
- EAlwaysFail=0,
- EAlwaysPass=1,
- };
- public:
- inline TSecurityPolicy();
- __declspec(dllexport) TSecurityPolicy(TSecPolicyType aType);
- __declspec(dllexport) TSecurityPolicy(TCapability aCap1, TCapability aCap2 = ECapability_None, TCapability aCap3 = ECapability_None);
- __declspec(dllexport) TSecurityPolicy(TCapability aCap1, TCapability aCap2, TCapability aCap3, TCapability aCap4, TCapability aCap5 = ECapability_None, TCapability aCap6 = ECapability_None, TCapability aCap7 = ECapability_None);
- __declspec(dllexport) TSecurityPolicy(TSecureId aSecureId, TCapability aCap1 = ECapability_None, TCapability aCap2 = ECapability_None, TCapability aCap3 = ECapability_None);
- __declspec(dllexport) TSecurityPolicy(TVendorId aVendorId, TCapability aCap1 = ECapability_None, TCapability aCap2 = ECapability_None, TCapability aCap3 = ECapability_None);
- __declspec(dllexport) TInt Set(const TDesC8& aDes);
- __declspec(dllexport) TPtrC8 Package() const;
- #line 3436
- inline TBool CheckPolicy(RProcess aProcess, const char* aDiagnostic=0) const;
- inline TBool CheckPolicy(RThread aThread, const char* aDiagnostic=0) const;
- inline TBool CheckPolicy(RMessagePtr2 aMsgPtr, const char* aDiagnostic=0) const;
- inline TBool CheckPolicy(RMessagePtr2 aMsgPtr, TSecurityInfo& aMissing, const char* aDiagnostic=0) const;
- inline TBool CheckPolicyCreator(const char* aDiagnostic=0) const;
- #line 3457
- TInt CheckPolicy(RSessionBase aSession) const;
- TBool Validate() const;
- private:
- __declspec(dllexport) TBool DoCheckPolicy(RProcess aProcess, const char* aDiagnostic) const;
- __declspec(dllexport) TBool DoCheckPolicy(RProcess aProcess) const;
- __declspec(dllexport) TBool DoCheckPolicy(RThread aThread, const char* aDiagnostic) const;
- __declspec(dllexport) TBool DoCheckPolicy(RThread aThread) const;
- __declspec(dllexport) TBool DoCheckPolicy(RMessagePtr2 aMsgPtr, const char* aDiagnostic) const;
- __declspec(dllexport) TBool DoCheckPolicy(RMessagePtr2 aMsgPtr) const;
- __declspec(dllexport) TBool DoCheckPolicyCreator(const char* aDiagnostic) const;
- __declspec(dllexport) TBool DoCheckPolicyCreator() const;
- TBool DoCheckPolicy(RMessagePtr2 aMsgPtr, TSecurityInfo& aMissing, const char* aDiagnostic) const;
- TBool DoCheckPolicy(RMessagePtr2 aMsgPtr, TSecurityInfo& aMissing) const;
- public:
- enum TType
- {
- ETypeFail=0,
- ETypePass=1,
- ETypeC3=2,
- ETypeC7=3,
- ETypeS3=4,
- ETypeV3=5,
- ETypeLimit
- };
- protected:
- TBool CheckPolicy(const SSecurityInfo& aSecInfo, SSecurityInfo& aMissing) const;
- private:
- void ConstructAndCheck3(TCapability aCap1, TCapability aCap2, TCapability aCap3);
- private:
- TUint8 iType;
- TUint8 iCaps[3];
- union
- {
- TUint32 iSecureId;
- TUint32 iVendorId;
- TUint8 iExtraCaps[4];
- };
- friend class TCompiledSecurityPolicy;
- };
- typedef TPckgBuf<TSecurityPolicy> TSecurityPolicyBuf;
- #line 3589
- struct TStaticSecurityPolicy
- {
- inline const TSecurityPolicy* operator&() const;
- inline operator const TSecurityPolicy&() const;
- inline const TSecurityPolicy& operator()() const;
- inline TBool CheckPolicy(RProcess aProcess, const char* aDiagnostic=0) const;
- inline TBool CheckPolicy(RThread aThread, const char* aDiagnostic=0) const;
- inline TBool CheckPolicy(RMessagePtr2 aMsgPtr, const char* aDiagnostic=0) const;
- inline TBool CheckPolicy(RMessagePtr2 aMsgPtr, TSecurityInfo& aMissing, const char* aDiagnostic=0) const;
- inline TBool CheckPolicyCreator(const char* aDiagnostic=0) const;
- #line 3620
- TUint32 iA;
- TUint32 iB;
- };
- enum __invalid_capability_value {};
- #line 4482
- class TPlatSecDiagnostic;
- class PlatSec
- {
- public:
- #line 4509
- __declspec(dllexport) static TBool IsCapabilityEnforced(TCapability aCapability);
- enum TConfigSetting
- {
- EPlatSecEnforcement,
- EPlatSecDiagnotics,
- EPlatSecProcessIsolation,
- EPlatSecEnforceSysBin,
- };
- #line 4535
- __declspec(dllexport) static TInt ConfigSetting(TConfigSetting aSetting);
- #line 4544
- public:
- static inline TInt LoaderCapabilityViolation(const TDesC8& aImporterName, const TDesC8& aFileName, const SCapabilitySet& aMissingCaps);
- #line 4564
- static inline TInt LoaderCapabilityViolation(RProcess aLoadingProcess, const TDesC8& aFileName, const SCapabilitySet& aMissingCaps);
- static inline TInt CreatorCapabilityCheckFail(TCapability aCapability, const char* aContextText);
- static inline TInt CreatorCapabilityCheckFail(const TCapabilitySet& aMissingCaps, const char* aContextText);
- static inline TInt CapabilityCheckFail(TInt aHandle, TCapability aCapability, const char* aContextText);
- static inline TInt CapabilityCheckFail(TInt aHandle, const TCapabilitySet& aMissingCaps, const char* aContextText);
- static inline TInt PolicyCheckFail(TInt aHandle, const SSecurityInfo& aMissing, const char* aContextText);
- static inline TInt CapabilityCheckFail(RMessagePtr2 aMessage, TCapability aCapability, const char* aContextText);
- static inline TInt CapabilityCheckFail(RMessagePtr2 aMessage, const TCapabilitySet& aMissingCaps, const char* aContextText);
- static inline TInt PolicyCheckFail(RMessagePtr2 aMessage, const SSecurityInfo& aMissingCaps, const char* aContextText);
- static inline TInt PolicyCheckFail(RSessionBase aSession, const SSecurityInfo& aMissingCaps, const char* aContextText);
- static inline TInt CreatorPolicyCheckFail(const SSecurityInfo& aMissingCaps, const char* aContextText);
- static inline TInt CreatorCapabilityCheckFail(TCapability aCapability);
- static inline TInt CreatorCapabilityCheckFail(const TCapabilitySet& aMissingCaps);
- static inline TInt CapabilityCheckFail(TInt aHandle, TCapability aCapability);
- static inline TInt CapabilityCheckFail(TInt aHandle, const TCapabilitySet& aMissingCaps);
- static inline TInt PolicyCheckFail(TInt aHandle, const SSecurityInfo& aMissing);
- static inline TInt CapabilityCheckFail(RMessagePtr2 aMessage, TCapability aCapability);
- static inline TInt CapabilityCheckFail(RMessagePtr2 aMessage, const TCapabilitySet& aMissingCaps);
- static inline TInt PolicyCheckFail(RMessagePtr2 aMessage, const SSecurityInfo& aMissingCaps);
- static inline TInt CreatorPolicyCheckFail(const SSecurityInfo& aMissingCaps);
- private:
- __declspec(dllexport) static TInt EmitDiagnostic(TPlatSecDiagnostic& aDiagnostic, const char* aContextText);
- #line 4616
- public:
- __declspec(dllexport) static TInt EmitDiagnostic();
- };
- struct TEmulatorImageHeader
- {
- TUid iUids[KMaxCheckedUid];
- TProcessPriority iPriority;
- SSecurityInfo iS;
- TUint32 iSpare1;
- TUint32 iSpare2;
- TUint32 iModuleVersion;
- TUint32 iFlags;
- };
- #line 4648
- class TProcessMemoryInfo
- {
- public:
- TUint32 iCodeBase;
- TUint32 iCodeSize;
- TUint32 iConstDataBase;
- TUint32 iConstDataSize;
- TUint32 iInitialisedDataBase;
- TUint32 iInitialisedDataSize;
- TUint32 iUninitialisedDataBase;
- TUint32 iUninitialisedDataSize;
- };
- #line 4709
- typedef TProcessMemoryInfo TModuleMemoryInfo;
- class CBase;
- #line 4768
- template <class T>
- class TArray
- {
- public:
- inline TArray(TInt (*aCount)(const CBase* aPtr),const TAny*(*anAt)(const CBase* aPtr,TInt anIndex),const CBase* aPtr);
- inline TInt Count() const;
- inline const T& operator[](TInt anIndex) const;
- private:
- const CBase* iPtr;
- TInt (*iCount)(const CBase* aPtr);
- const TAny*(*iAt)(const CBase* aPtr,TInt anIndex);
- };
- #line 4796
- typedef TBool (*TGeneralIdentityRelation)(const TAny*, const TAny*);
- #line 4812
- typedef TInt (*TGeneralLinearOrder)(const TAny*, const TAny*);
- #line 4832
- template <class T>
- class TIdentityRelation
- {
- public:
- inline TIdentityRelation( TBool (*anIdentity)(const T&, const T&) );
- inline operator TGeneralIdentityRelation() const;
- private:
- TGeneralIdentityRelation iIdentity;
- };
- #line 4857
- class DefaultIdentity
- {
- public:
- __declspec(dllexport) static TBool Integer(const TInt&, const TInt&);
- __declspec(dllexport) static TBool Des8(const TDesC8&, const TDesC8&);
- __declspec(dllexport) static TBool Des16(const TDesC16&, const TDesC16&);
- };
- #line 4883
- template <class T>
- class TLinearOrder
- {
- public:
- inline TLinearOrder( TInt(*anOrder)(const T&, const T&) );
- inline operator TGeneralLinearOrder() const;
- private:
- TGeneralLinearOrder iOrder;
- };
- #line 4913
- enum TArrayFindMode
- {
- #line 4923
- EArrayFindMode_Any = 0,
- EArrayFindMode_First = 1,
- EArrayFindMode_Last = 2,
- EArrayFindMode_Limit = 3
- };
- #line 4954
- class RPointerArrayBase
- {
- protected:
- __declspec(dllexport) RPointerArrayBase();
- __declspec(dllexport) RPointerArrayBase(TInt aGranularity);
- __declspec(dllexport) RPointerArrayBase(TInt aMinGrowBy, TInt aFactor);
- __declspec(dllexport) void Close();
- __declspec(dllexport) TInt Count() const;
- inline void ZeroCount() {iCount=0;}
- inline TAny** Entries() {return iEntries;}
- __declspec(dllexport) TAny*& At(TInt anIndex) const;
- __declspec(dllexport) TInt Append(const TAny* anEntry);
- __declspec(dllexport) TInt Insert(const TAny* anEntry, TInt aPos);
- __declspec(dllexport) void Remove(TInt anIndex);
- __declspec(dllexport) void Compress();
- __declspec(dllexport) void Reset();
- __declspec(dllexport) TInt Find(const TAny* anEntry) const;
- __declspec(dllexport) TInt Find(const TAny* anEntry, TGeneralIdentityRelation anIdentity) const;
- __declspec(dllexport) TInt FindIsqSigned(TInt anEntry) const;
- __declspec(dllexport) TInt FindIsqUnsigned(TUint anEntry) const;
- __declspec(dllexport) TInt FindIsq(const TAny* anEntry, TGeneralLinearOrder anOrder) const;
- __declspec(dllexport) TInt FindIsqSigned(TInt anEntry, TInt aMode) const;
- __declspec(dllexport) TInt FindIsqUnsigned(TUint anEntry, TInt aMode) const;
- __declspec(dllexport) TInt FindIsq(const TAny* anEntry, TGeneralLinearOrder anOrder, TInt aMode) const;
- __declspec(dllexport) TInt InsertIsqSigned(TInt anEntry, TBool aAllowRepeats);
- __declspec(dllexport) TInt InsertIsqUnsigned(TUint anEntry, TBool aAllowRepeats);
- __declspec(dllexport) TInt InsertIsq(const TAny* anEntry, TGeneralLinearOrder anOrder, TBool aAllowRepeats);
- __declspec(dllexport) TInt BinarySearchSigned(TInt anEntry, TInt& anIndex) const;
- __declspec(dllexport) TInt BinarySearchUnsigned(TUint anEntry, TInt& anIndex) const;
- __declspec(dllexport) TInt BinarySearch(const TAny* anEntry, TInt& anIndex, TGeneralLinearOrder anOrder) const;
- __declspec(dllexport) TInt BinarySearchSigned(TInt anEntry, TInt& anIndex, TInt aMode) const;
- __declspec(dllexport) TInt BinarySearchUnsigned(TUint anEntry, TInt& anIndex, TInt aMode) const;
- __declspec(dllexport) TInt BinarySearch(const TAny* anEntry, TInt& anIndex, TGeneralLinearOrder anOrder, TInt aMode) const;
- __declspec(dllexport) RPointerArrayBase(TAny** aEntries, TInt aCount);
- __declspec(dllexport) void GranularCompress();
- __declspec(dllexport) TInt DoReserve(TInt aCount);
- __declspec(dllexport) void HeapSortSigned();
- __declspec(dllexport) void HeapSortUnsigned();
- __declspec(dllexport) void HeapSort(TGeneralLinearOrder anOrder);
- __declspec(dllexport) static TInt GetCount(const CBase* aPtr);
- __declspec(dllexport) static const TAny* GetElementPtr(const CBase* aPtr, TInt aIndex);
- private:
- TInt Grow();
- private:
- TInt iCount;
- TAny** iEntries;
- TInt iAllocated;
- TInt iGranularity;
- TInt iSpare1;
- TInt iSpare2;
- };
- #line 5024
- template <class T>
- class RPointerArray : private RPointerArrayBase
- {
- public:
- inline RPointerArray();
- inline explicit RPointerArray(TInt aGranularity);
- inline RPointerArray(TInt aMinGrowBy, TInt aFactor);
- inline void Close();
- inline TInt Count() const;
- inline T* const& operator[](TInt anIndex) const;
- inline T*& operator[](TInt anIndex);
- inline TInt Append(const T* anEntry);
- inline TInt Insert(const T* anEntry, TInt aPos);
- inline void Remove(TInt anIndex);
- inline void Compress();
- inline void Reset();
- void ResetAndDestroy();
- inline TInt Find(const T* anEntry) const;
- inline TInt Find(const T* anEntry, TIdentityRelation<T> anIdentity) const;
- inline TInt FindInAddressOrder(const T* anEntry) const;
- inline TInt FindInOrder(const T* anEntry, TLinearOrder<T> anOrder) const;
- inline TInt FindInAddressOrder(const T* anEntry, TInt& anIndex) const;
- inline TInt FindInOrder(const T* anEntry, TInt& anIndex, TLinearOrder<T> anOrder) const;
- template <class K>
- inline TInt FindInOrder(const K& aKey, TInt (*apfnCompare)(const K* k, const T& t)) const
- { return RPointerArrayBase::FindIsq((T*)&aKey,*(TLinearOrder<T> *)&apfnCompare); }
- inline TInt SpecificFindInAddressOrder(const T* anEntry, TInt aMode) const;
- inline TInt SpecificFindInOrder(const T* anEntry, TLinearOrder<T> anOrder, TInt aMode) const;
- inline TInt SpecificFindInAddressOrder(const T* anEntry, TInt& anIndex, TInt aMode) const;
- inline TInt SpecificFindInOrder(const T* anEntry, TInt& anIndex, TLinearOrder<T> anOrder, TInt aMode) const;
- inline TInt InsertInAddressOrder(const T* anEntry);
- inline TInt InsertInOrder(const T* anEntry, TLinearOrder<T> anOrder);
- inline TInt InsertInAddressOrderAllowRepeats(const T* anEntry);
- inline TInt InsertInOrderAllowRepeats(const T* anEntry, TLinearOrder<T> anOrder);
- inline void AppendL(const T* anEntry);
- inline void InsertL(const T* anEntry, TInt aPos);
- inline TInt FindL(const T* anEntry) const;
- inline TInt FindL(const T* anEntry, TIdentityRelation<T> anIdentity) const;
- inline TInt FindInAddressOrderL(const T* anEntry) const;
- inline TInt FindInOrderL(const T* anEntry, TLinearOrder<T> anOrder) const;
- inline void FindInAddressOrderL(const T* anEntry, TInt& anIndex) const;
- inline void FindInOrderL(const T* anEntry, TInt& anIndex, TLinearOrder<T> anOrder) const;
- inline TInt SpecificFindInAddressOrderL(const T* anEntry, TInt aMode) const;
- inline TInt SpecificFindInOrderL(const T* anEntry, TLinearOrder<T> anOrder, TInt aMode) const;
- inline void SpecificFindInAddressOrderL(const T* anEntry, TInt& anIndex, TInt aMode) const;
- inline void SpecificFindInOrderL(const T* anEntry, TInt& anIndex, TLinearOrder<T> anOrder, TInt aMode) const;
- inline void InsertInAddressOrderL(const T* anEntry);
- inline void InsertInOrderL(const T* anEntry, TLinearOrder<T> anOrder);
- inline void InsertInAddressOrderAllowRepeatsL(const T* anEntry);
- inline void InsertInOrderAllowRepeatsL(const T* anEntry, TLinearOrder<T> anOrder);
- inline RPointerArray(T** aEntries, TInt aCount);
- inline void GranularCompress();
- inline TInt Reserve(TInt aCount);
- inline void ReserveL(TInt aCount);
- inline void SortIntoAddressOrder();
- inline void Sort(TLinearOrder<T> anOrder);
- inline TArray<T*> Array() const;
- };
- #line 5099
- template<> class RPointerArray<TAny> : private RPointerArrayBase
- {
- public:
- inline RPointerArray();
- inline explicit RPointerArray(TInt aGranularity);
- inline RPointerArray(TInt aMinGrowBy, TInt aFactor);
- inline void Close();
- inline TInt Count() const;
- inline TAny* const& operator[](TInt anIndex) const;
- inline TAny*& operator[](TInt anIndex);
- inline TInt Append(const TAny* anEntry);
- inline TInt Insert(const TAny* anEntry, TInt aPos);
- inline void Remove(TInt anIndex);
- inline void Compress();
- inline void Reset();
- inline TInt Find(const TAny* anEntry) const;
- inline TInt FindInAddressOrder(const TAny* anEntry) const;
- inline TInt FindInAddressOrder(const TAny* anEntry, TInt& anIndex) const;
- inline TInt SpecificFindInAddressOrder(const TAny* anEntry, TInt aMode) const;
- inline TInt SpecificFindInAddressOrder(const TAny* anEntry, TInt& anIndex, TInt aMode) const;
- inline TInt InsertInAddressOrder(const TAny* anEntry);
- inline TInt InsertInAddressOrderAllowRepeats(const TAny* anEntry);
- inline void AppendL(const TAny* anEntry);
- inline void InsertL(const TAny* anEntry, TInt aPos);
- inline TInt FindL(const TAny* anEntry) const;
- inline TInt FindInAddressOrderL(const TAny* anEntry) const;
- inline void FindInAddressOrderL(const TAny* anEntry, TInt& anIndex) const;
- inline TInt SpecificFindInAddressOrderL(const TAny* anEntry, TInt aMode) const;
- inline void SpecificFindInAddressOrderL(const TAny* anEntry, TInt& anIndex, TInt aMode) const;
- inline void InsertInAddressOrderL(const TAny* anEntry);
- inline void InsertInAddressOrderAllowRepeatsL(const TAny* anEntry);
- inline RPointerArray(TAny** aEntries, TInt aCount);
- inline void GranularCompress();
- inline void SortIntoAddressOrder();
- inline TArray<TAny*> Array() const;
- };
- #line 5150
- class RArrayBase
- {
- protected:
- __declspec(dllexport) RArrayBase(TInt anEntrySize);
- __declspec(dllexport) RArrayBase(TInt anEntrySize, TInt aGranularity);
- __declspec(dllexport) RArrayBase(TInt anEntrySize, TInt aGranularity, TInt aKeyOffset);
- __declspec(dllexport) RArrayBase(TInt anEntrySize, TInt aMinGrowBy, TInt aKeyOffset, TInt aFactor);
- __declspec(dllexport) void Close();
- __declspec(dllexport) TInt Count() const;
- __declspec(dllexport) TAny* At(TInt anIndex) const;
- __declspec(dllexport) TInt Append(const TAny* anEntry);
- __declspec(dllexport) TInt Insert(const TAny* anEntry, TInt aPos);
- __declspec(dllexport) void Remove(TInt anIndex);
- __declspec(dllexport) void Compress();
- __declspec(dllexport) void Reset();
- __declspec(dllexport) TInt Find(const TAny* anEntry) const;
- __declspec(dllexport) TInt Find(const TAny* anEntry, TGeneralIdentityRelation anIdentity) const;
- __declspec(dllexport) TInt FindIsqSigned(const TAny* anEntry) const;
- __declspec(dllexport) TInt FindIsqUnsigned(const TAny* anEntry) const;
- __declspec(dllexport) TInt FindIsq(const TAny* anEntry, TGeneralLinearOrder anOrder) const;
- __declspec(dllexport) TInt FindIsqSigned(const TAny* anEntry, TInt aMode) const;
- __declspec(dllexport) TInt FindIsqUnsigned(const TAny* anEntry, TInt aMode) const;
- __declspec(dllexport) TInt FindIsq(const TAny* anEntry, TGeneralLinearOrder anOrder, TInt aMode) const;
- __declspec(dllexport) TInt InsertIsqSigned(const TAny* anEntry, TBool aAllowRepeats);
- __declspec(dllexport) TInt InsertIsqUnsigned(const TAny* anEntry, TBool aAllowRepeats);
- __declspec(dllexport) TInt InsertIsq(const TAny* anEntry, TGeneralLinearOrder anOrder, TBool aAllowRepeats);
- __declspec(dllexport) TInt BinarySearchSigned(const TAny* anEntry, TInt& anIndex) const;
- __declspec(dllexport) TInt BinarySearchUnsigned(const TAny* anEntry, TInt& anIndex) const;
- __declspec(dllexport) TInt BinarySearch(const TAny* anEntry, TInt& anIndex, TGeneralLinearOrder anOrder) const;
- __declspec(dllexport) TInt BinarySearchSigned(const TAny* anEntry, TInt& anIndex, TInt aMode) const;
- __declspec(dllexport) TInt BinarySearchUnsigned(const TAny* anEntry, TInt& anIndex, TInt aMode) const;
- __declspec(dllexport) TInt BinarySearch(const TAny* anEntry, TInt& anIndex, TGeneralLinearOrder anOrder, TInt aMode) const;
- __declspec(dllexport) RArrayBase(TInt aEntrySize,TAny* aEntries, TInt aCount);
- __declspec(dllexport) void GranularCompress();
- __declspec(dllexport) TInt DoReserve(TInt aCount);
- __declspec(dllexport) void HeapSortSigned();
- __declspec(dllexport) void HeapSortUnsigned();
- __declspec(dllexport) void HeapSort(TGeneralLinearOrder anOrder);
- __declspec(dllexport) static TInt GetCount(const CBase* aPtr);
- __declspec(dllexport) static const TAny* GetElementPtr(const CBase* aPtr, TInt aIndex);
- private:
- TInt Grow();
- private:
- TInt iCount;
- TAny* iEntries;
- TInt iEntrySize;
- TInt iKeyOffset;
- TInt iAllocated;
- TInt iGranularity;
- TInt iSpare1;
- TInt iSpare2;
- };
- #line 5244
- template <class T>
- class RArray : private RArrayBase
- {
- public:
- inline RArray();
- inline explicit RArray(TInt aGranularity);
- inline RArray(TInt aGranularity, TInt aKeyOffset);
- inline RArray(TInt aMinGrowBy, TInt aKeyOffset, TInt aFactor);
- inline void Close();
- inline TInt Count() const;
- inline const T& operator[](TInt anIndex) const;
- inline T& operator[](TInt anIndex);
- inline TInt Append(const T& anEntry);
- inline TInt Insert(const T& anEntry, TInt aPos);
- inline void Remove(TInt anIndex);
- inline void Compress();
- inline void Reset();
- inline TInt Find(const T& anEntry) const;
- inline TInt Find(const T& anEntry, TIdentityRelation<T> anIdentity) const;
- inline TInt FindInSignedKeyOrder(const T& anEntry) const;
- inline TInt FindInUnsignedKeyOrder(const T& anEntry) const;
- inline TInt FindInOrder(const T& anEntry, TLinearOrder<T> anOrder) const;
- inline TInt FindInSignedKeyOrder(const T& anEntry, TInt& anIndex) const;
- inline TInt FindInUnsignedKeyOrder(const T& anEntry, TInt& anIndex) const;
- inline TInt FindInOrder(const T& anEntry, TInt& anIndex, TLinearOrder<T> anOrder) const;
- template <class K>
- inline TInt FindInOrder(const K& aKey, TInt (*apfnCompare)(const K* k, const T& t)) const
- { return RArrayBase::FindIsq((T*)&aKey,*(TLinearOrder<T> *)&apfnCompare); }
- inline TInt SpecificFindInSignedKeyOrder(const T& anEntry, TInt aMode) const;
- inline TInt SpecificFindInUnsignedKeyOrder(const T& anEntry, TInt aMode) const;
- inline TInt SpecificFindInOrder(const T& anEntry, TLinearOrder<T> anOrder, TInt aMode) const;
- inline TInt SpecificFindInSignedKeyOrder(const T& anEntry, TInt& anIndex, TInt aMode) const;
- inline TInt SpecificFindInUnsignedKeyOrder(const T& anEntry, TInt& anIndex, TInt aMode) const;
- inline TInt SpecificFindInOrder(const T& anEntry, TInt& anIndex, TLinearOrder<T> anOrder, TInt aMode) const;
- inline TInt InsertInSignedKeyOrder(const T& anEntry);
- inline TInt InsertInUnsignedKeyOrder(const T& anEntry);
- inline TInt InsertInOrder(const T& anEntry, TLinearOrder<T> anOrder);
- inline TInt InsertInSignedKeyOrderAllowRepeats(const T& anEntry);
- inline TInt InsertInUnsignedKeyOrderAllowRepeats(const T& anEntry);
- inline TInt InsertInOrderAllowRepeats(const T& anEntry, TLinearOrder<T> anOrder);
- inline void AppendL(const T& anEntry);
- inline void InsertL(const T& anEntry, TInt aPos);
- inline TInt FindL(const T& anEntry) const;
- inline TInt FindL(const T& anEntry, TIdentityRelation<T> anIdentity) const;
- inline TInt FindInSignedKeyOrderL(const T& anEntry) const;
- inline TInt FindInUnsignedKeyOrderL(const T& anEntry) const;
- inline TInt FindInOrderL(const T& anEntry, TLinearOrder<T> anOrder) const;
- inline void FindInSignedKeyOrderL(const T& anEntry, TInt& anIndex) const;
- inline void FindInUnsignedKeyOrderL(const T& anEntry, TInt& anIndex) const;
- inline void FindInOrderL(const T& anEntry, TInt& anIndex, TLinearOrder<T> anOrder) const;
- inline TInt SpecificFindInSignedKeyOrderL(const T& anEntry, TInt aMode) const;
- inline TInt SpecificFindInUnsignedKeyOrderL(const T& anEntry, TInt aMode) const;
- inline TInt SpecificFindInOrderL(const T& anEntry, TLinearOrder<T> anOrder, TInt aMode) const;
- inline void SpecificFindInSignedKeyOrderL(const T& anEntry, TInt& anIndex, TInt aMode) const;
- inline void SpecificFindInUnsignedKeyOrderL(const T& anEntry, TInt& anIndex, TInt aMode) const;
- inline void SpecificFindInOrderL(const T& anEntry, TInt& anIndex, TLinearOrder<T> anOrder, TInt aMode) const;
- inline void InsertInSignedKeyOrderL(const T& anEntry);
- inline void InsertInUnsignedKeyOrderL(const T& anEntry);
- inline void InsertInOrderL(const T& anEntry, TLinearOrder<T> anOrder);
- inline void InsertInSignedKeyOrderAllowRepeatsL(const T& anEntry);
- inline void InsertInUnsignedKeyOrderAllowRepeatsL(const T& anEntry);
- inline void InsertInOrderAllowRepeatsL(const T& anEntry, TLinearOrder<T> anOrder);
- inline RArray(TInt aEntrySize,T* aEntries, TInt aCount);
- inline void GranularCompress();
- inline TInt Reserve(TInt aCount);
- inline void ReserveL(TInt aCount);
- inline void SortSigned();
- inline void SortUnsigned();
- inline void Sort(TLinearOrder<T> anOrder);
- inline TArray<T> Array() const;
- };
- #line 5331
- template<> class RArray<TInt> : private RPointerArrayBase
- {
- public:
- inline RArray();
- inline explicit RArray(TInt aGranularity);
- inline RArray(TInt aMinGrowBy, TInt aFactor);
- inline void Close();
- inline TInt Count() const;
- inline const TInt& operator[](TInt anIndex) const;
- inline TInt& operator[](TInt anIndex);
- inline TInt Append(TInt anEntry);
- inline TInt Insert(TInt anEntry, TInt aPos);
- inline void Remove(TInt anIndex);
- inline void Compress();
- inline void Reset();
- inline TInt Find(TInt anEntry) const;
- inline TInt FindInOrder(TInt anEntry) const;
- inline TInt FindInOrder(TInt anEntry, TInt& anIndex) const;
- inline TInt SpecificFindInOrder(TInt anEntry, TInt aMode) const;
- inline TInt SpecificFindInOrder(TInt anEntry, TInt& anIndex, TInt aMode) const;
- inline TInt InsertInOrder(TInt anEntry);
- inline TInt InsertInOrderAllowRepeats(TInt anEntry);
- inline void AppendL(TInt anEntry);
- inline void InsertL(TInt anEntry, TInt aPos);
- inline TInt FindL(TInt anEntry) const;
- inline TInt FindInOrderL(TInt anEntry) const;
- inline void FindInOrderL(TInt anEntry, TInt& anIndex) const;
- inline TInt SpecificFindInOrderL(TInt anEntry, TInt aMode) const;
- inline void SpecificFindInOrderL(TInt anEntry, TInt& anIndex, TInt aMode) const;
- inline void InsertInOrderL(TInt anEntry);
- inline void InsertInOrderAllowRepeatsL(TInt anEntry);
- inline RArray(TInt* aEntries, TInt aCount);
- inline void GranularCompress();
- inline TInt Reserve(TInt aCount);
- inline void ReserveL(TInt aCount);
- inline void Sort();
- inline TArray<TInt> Array() const;
- };
- #line 5387
- template<> class RArray<TUint> : private RPointerArrayBase
- {
- public:
- inline RArray();
- inline explicit RArray(TInt aGranularity);
- inline RArray(TInt aMinGrowBy, TInt aFactor);
- inline void Close();
- inline TInt Count() const;
- inline const TUint& operator[](TInt anIndex) const;
- inline TUint& operator[](TInt anIndex);
- inline TInt Append(TUint anEntry);
- inline TInt Insert(TUint anEntry, TInt aPos);
- inline void Remove(TInt anIndex);
- inline void Compress();
- inline void Reset();
- inline TInt Find(TUint anEntry) const;
- inline TInt FindInOrder(TUint anEntry) const;
- inline TInt FindInOrder(TUint anEntry, TInt& anIndex) const;
- inline TInt SpecificFindInOrder(TUint anEntry, TInt aMode) const;
- inline TInt SpecificFindInOrder(TUint anEntry, TInt& anIndex, TInt aMode) const;
- inline TInt InsertInOrder(TUint anEntry);
- inline TInt InsertInOrderAllowRepeats(TUint anEntry);
- inline void AppendL(TUint anEntry);
- inline void InsertL(TUint anEntry, TInt aPos);
- inline TInt FindL(TUint anEntry) const;
- inline TInt FindInOrderL(TUint anEntry) const;
- inline void FindInOrderL(TUint anEntry, TInt& anIndex) const;
- inline TInt SpecificFindInOrderL(TUint anEntry, TInt aMode) const;
- inline void SpecificFindInOrderL(TUint anEntry, TInt& anIndex, TInt aMode) const;
- inline void InsertInOrderL(TUint anEntry);
- inline void InsertInOrderAllowRepeatsL(TUint anEntry);
- inline RArray(TUint* aEntries, TInt aCount);
- inline void GranularCompress();
- inline TInt Reserve(TInt aCount);
- inline void ReserveL(TInt aCount);
- inline void Sort();
- inline TArray<TUint> Array() const;
- };
- #line 5822
- extern TAny* operator new(TUint aSize) throw() ;
- extern TAny* operator new(TUint aSize,TUint anExtraSize) throw() ;
- extern void operator delete(TAny* aPtr) throw() ;
- extern TAny* operator new[](TUint aSize) throw() ;
- extern void operator delete[](TAny* aPtr) throw() ;
- inline TAny* operator new(TUint aSize, TAny* aBase) throw() ;
- inline TAny* operator new[](TUint aSize, TAny* aBase) throw() ;
- inline void operator delete(TAny* aPtr, TAny* aBase) throw() ;
- inline void operator delete[](TAny* aPtr, TAny* aBase) throw() ;
- #line 5886
- TBool operator==(TTrue,volatile const TBool);
- TBool operator==(volatile const TBool,TTrue);
- TBool operator!=(TTrue,volatile const TBool);
- TBool operator!=(volatile const TBool,TTrue);
- #line 5928
- class TIpcArgs
- {
- public:
- enum TArgType
- {
- EUnspecified = 0,
- EHandle = 1,
- EFlagDes = 4,
- EFlagConst = 2,
- EFlag16Bit = 1,
- EDes8 = EFlagDes,
- EDes16 = EFlagDes|EFlag16Bit,
- EDesC8 = EFlagDes|EFlagConst,
- EDesC16 = EFlagDes|EFlagConst|EFlag16Bit,
- };
- enum {
- KBitsPerType=3
- };
- enum TNothing {
- #line 5976
- ENothing
- };
- public:
- inline TIpcArgs()
- :iFlags(0)
- {}
- #line 5998
- template <class T0>
- inline explicit TIpcArgs(T0 a0)
- {
- Assign(iArgs[0],a0);
- iFlags=(Type(a0)<<(0*KBitsPerType));
- }
- #line 6015
- template <class T0,class T1>
- inline TIpcArgs(T0 a0,T1 a1)
- {
- Assign(iArgs[0],a0);
- Assign(iArgs[1],a1);
- iFlags=(Type(a0)<<(0*KBitsPerType))|(Type(a1)<<(1*KBitsPerType));
- }
- #line 6035
- template <class T0,class T1,class T2>
- inline TIpcArgs(T0 a0,T1 a1,T2 a2)
- {
- Assign(iArgs[0],a0);
- Assign(iArgs[1],a1);
- Assign(iArgs[2],a2);
- iFlags=(Type(a0)<<(0*KBitsPerType))|(Type(a1)<<(1*KBitsPerType))|(Type(a2)<<(2*KBitsPerType));
- }
- #line 6058
- template <class T0,class T1,class T2,class T3>
- inline TIpcArgs(T0 a0,T1 a1,T2 a2,T3 a3)
- {
- Assign(iArgs[0],a0);
- Assign(iArgs[1],a1);
- Assign(iArgs[2],a2);
- Assign(iArgs[3],a3);
- iFlags=(Type(a0)<<(0*KBitsPerType))|(Type(a1)<<(1*KBitsPerType))|(Type(a2)<<(2*KBitsPerType))|(Type(a3)<<(3*KBitsPerType));
- }
- inline void Set(TInt aIndex,TNothing);
- inline void Set(TInt aIndex,TInt aValue);
- inline void Set(TInt aIndex,const TAny* aValue);
- inline void Set(TInt aIndex,RHandleBase aValue);
- inline void Set(TInt aIndex,const TDesC8* aValue);
- inline void Set(TInt aIndex,const TDesC16* aValue);
- inline void Set(TInt aIndex,TDes8* aValue);
- inline void Set(TInt aIndex,TDes16* aValue);
- private:
- inline static TArgType Type(TNothing);
- inline static TArgType Type(TInt);
- inline static TArgType Type(const TAny*);
- inline static TArgType Type(RHandleBase aValue);
- inline static TArgType Type(const TDesC8*);
- inline static TArgType Type(const TDesC16*);
- inline static TArgType Type(TDes8*);
- inline static TArgType Type(TDes16*);
- inline static void Assign(TInt&,TNothing);
- inline static void Assign(TInt& aArg,TInt aValue);
- inline static void Assign(TInt& aArg,const TAny* aValue);
- inline static void Assign(TInt& aArg,RHandleBase aValue);
- inline static void Assign(TInt& aArg,const TDesC8* aValue);
- inline static void Assign(TInt& aArg,const TDesC16* aValue);
- inline static void Assign(TInt& aArg,TDes8* aValue);
- inline static void Assign(TInt& aArg,TDes16* aValue);
- public:
- TInt iArgs[KMaxMessageArguments];
- #line 6123
- TInt iFlags;
- };
- struct SInt64
- {
- public:
- inline SInt64();
- inline SInt64(Int64 a);
- inline SInt64& operator=(Int64 a);
- inline operator Int64() const;
- public:
- TUint32 iData[2];
- };
- struct SUint64
- {
- public:
- inline SUint64();
- inline SUint64(Uint64 a);
- inline SUint64& operator=(Uint64 a);
- inline operator Uint64() const;
- public:
- TUint32 iData[2];
- };
- struct SDouble
- {
- public:
- inline SDouble();
- inline SDouble(TReal a);
- inline SDouble& operator=(TReal a);
- inline operator TReal() const;
- public:
- TUint32 iData[2];
- };
- #line 6181
- class TThreadStackInfo
- {
- public:
- TLinAddr iBase;