S60UIExampleHighScoreContainer.inc
上传用户:laixiong
上传日期:2007-03-11
资源大小:2994k
文件大小:1690k
源码类别:
Symbian
开发平台:
C/C++
- EControlNotifyChangeCancel=12,
- EControlReadPasswordStore=13,
- EControlWritePasswordStore=14,
- EControlPasswordStoreLengthInBytes=15,
- EControlIsRemovable=16,
- EControlSetMountInfo=17,
- EControlControlIO=18,
- EControlPasswordErase=19,
- EControlDeleteNotify=20,
- EControlGetLastErrorInfo=21,
- };
- enum TRemountFlags
- {
- ELocDrvRemountNotifyChange = 0,
- ELocDrvRemountForceMediaChange = 1,
- };
- public:
- inline TVersion VersionRequired() const;
- inline TInt Connect(TInt aDriveNumber, TBool& aChangedFlag);
- inline TInt Enlarge(TInt aLength);
- inline TInt Reduce(TInt aPos, TInt aLength);
- inline TInt Read(TInt64 aPos, TInt aLength, const TAny* aTrg, TInt aMessageHandle, TInt aOffset, TInt aFlags);
- inline TInt Read(TInt64 aPos, TInt aLength, const TAny* aTrg, TInt aMessageHandle, TInt anOffset);
- inline TInt Read(TInt64 aPos, TInt aLength, TDes8& aTrg);
- inline TInt Write(TInt64 aPos, TInt aLength, const TAny* aSrc, TInt aMessageHandle, TInt aOffset, TInt aFlags);
- inline TInt Write(TInt64 aPos, TInt aLength, const TAny* aSrc, TInt aMessageHandle, TInt anOffset);
- inline TInt Write(TInt64 aPos, const TDesC8& aSrc);
- inline TInt Caps(TDes8& anInfo);
- inline TInt Format(TInt64 aPos, TInt aLength);
- inline TInt ForceMediaChange(TInt aMode=0);
- inline void NotifyChange(TRequestStatus* aStatus);
- inline void NotifyChangeCancel();
- inline TInt SetMountInfo(const TDesC8* aInfo,TInt aMessageHandle);
- inline TMediaDevice MediaDevice();
- inline TInt IsRemovable(TInt& aSocketNum);
- inline TInt ControlIO(TInt aCommand, TAny* aParam1, TAny* aParam2);
- inline TInt Unlock(const TDesC8& aPassword, TBool aStorePassword);
- inline TInt SetPassword(const TDesC8& aOldPassword, const TDesC8& aNewPassword, TBool aStorePassword);
- inline TInt Clear(const TDesC8& aPassword);
- inline TInt ErasePassword();
- inline TInt ReadPasswordData(TDesC8& aStoreData);
- inline TInt WritePasswordData(const TDesC8& aStoreData);
- inline TInt PasswordStoreLengthInBytes();
- inline TInt DeleteNotify(TInt64 aPos, TInt aLength);
- inline TInt GetLastErrorInfo(TDesC8& aErrorInfo);
- };
- class TBusLocalDrive : public RLocalDrive
- {
- public:
- __declspec(dllexport) TBusLocalDrive();
- __declspec(dllexport) TInt Connect(TInt aDriveNumber, TBool& aChangedFlag);
- __declspec(dllexport) void Disconnect();
- __declspec(dllexport) TInt Enlarge(TInt aLength);
- __declspec(dllexport) TInt ReduceSize(TInt aPos, TInt aLength);
- __declspec(dllexport) TInt Read(TInt64 aPos,TInt aLength,const TAny* aTrg,TInt aMessageHandle,TInt aOffset,TInt aFlags);
- __declspec(dllexport) TInt Read(TInt64 aPos,TInt aLength,const TAny* aTrg,TInt aMessageHandle,TInt anOffset);
- __declspec(dllexport) TInt Read(TInt64 aPos,TInt aLength,TDes8& aTrg);
- __declspec(dllexport) TInt Write(TInt64 aPos,TInt aLength,const TAny* aSrc,TInt aMessageHandle,TInt aOffset,TInt aFlags);
- __declspec(dllexport) TInt Write(TInt64 aPos,TInt aLength,const TAny* aSrc,TInt aMessageHandle,TInt anOffset);
- __declspec(dllexport) TInt Write(TInt64 aPos,const TDesC8& aSrc);
- __declspec(dllexport) TInt Caps(TDes8& anInfo);
- __declspec(dllexport) TInt Format(TFormatInfo& anInfo);
- __declspec(dllexport) TInt Format(TInt64 aPos,TInt aLength);
- __declspec(dllexport) TInt SetMountInfo(const TDesC8* aMountInfo,TInt aMessageHandle);
- __declspec(dllexport) TInt ForceRemount(TUint aFlags=0);
- __declspec(dllexport) TInt ControlIO(TInt aCommand, TAny* aParam1, TAny* aParam2);
- __declspec(dllexport) TInt Unlock(const TDesC8& aPassword, TBool aStorePassword);
- __declspec(dllexport) TInt SetPassword(const TDesC8& aOldPassword, const TDesC8& aNewPassword, TBool aStorePassword);
- __declspec(dllexport) TInt Clear(const TDesC8& aPassword);
- __declspec(dllexport) TInt ErasePassword();
- __declspec(dllexport) TInt ReadPasswordData(TDes8 &aBuf);
- __declspec(dllexport) TInt WritePasswordData(const TDesC8 &aBuf);
- __declspec(dllexport) TInt PasswordStoreLengthInBytes();
- __declspec(dllexport) TInt DeleteNotify(TInt64 aPos, TInt aLength);
- __declspec(dllexport) TInt GetLastErrorInfo(TDes8& aErrorInfo);
- public:
- inline TInt& Status() {return(iStatus);}
- private:
- TInt CheckMount();
- private:
- TInt iStatus;
- };
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\d32locd.inl" /* stack depth 9 */
- inline TVersion RLocalDrive::VersionRequired() const
- { return TVersion(KLocalDriveMajorVersion,KLocalDriveMinorVersion,KLocalDriveBuildVersion); }
- inline TInt RLocalDrive::Connect(TInt aDriveNumber, TBool& aChangedFlag)
- { return DoCreate(KLitLocalDriveLddName,VersionRequired(),aDriveNumber,0 ,(const TDesC8*)&aChangedFlag,EOwnerProcess); }
- inline TInt RLocalDrive::Enlarge(TInt aLength)
- { return DoControl(EControlEnlarge, (TAny*)aLength); }
- inline TInt RLocalDrive::Reduce(TInt aPos, TInt aLength)
- { return DoControl(EControlReduce, (TAny*)aPos, (TAny*)aLength); }
- inline TInt RLocalDrive::Read(TInt64 aPos, TInt aLength, const TAny* aTrg, TInt aMessageHandle, TInt aOffset, TInt aFlags)
- { TLocalDriveMessageData d(aPos,aLength,aTrg,aMessageHandle,aOffset,aFlags); return DoControl(EControlRead, &d); }
- inline TInt RLocalDrive::Read(TInt64 aPos, TInt aLength, const TAny* aTrg, TInt aMessageHandle, TInt anOffset)
- { TLocalDriveMessageData d(aPos,aLength,aTrg,aMessageHandle,anOffset,0); return DoControl(EControlRead, &d); }
- inline TInt RLocalDrive::Read(TInt64 aPos, TInt aLength, TDes8& aTrg)
- { TLocalDriveMessageData d(aPos,aLength,&aTrg,KLocalMessageHandle,0,0); return DoControl(EControlRead, &d); }
- inline TInt RLocalDrive::Write(TInt64 aPos, TInt aLength, const TAny* aSrc, TInt aMessageHandle, TInt aOffset, TInt aFlags)
- { TLocalDriveMessageData d(aPos,aLength,aSrc,aMessageHandle,aOffset,aFlags); return DoControl(EControlWrite, &d); }
- inline TInt RLocalDrive::Write(TInt64 aPos, TInt aLength, const TAny* aSrc, TInt aMessageHandle, TInt anOffset)
- { TLocalDriveMessageData d(aPos,aLength,aSrc,aMessageHandle,anOffset,0); return DoControl(EControlWrite, &d); }
- inline TInt RLocalDrive::Write(TInt64 aPos, const TDesC8& aSrc)
- { TLocalDriveMessageData d(aPos,aSrc.Length(),&aSrc,KLocalMessageHandle,0,0); return DoControl(EControlWrite, &d); }
- inline TInt RLocalDrive::Caps(TDes8& anInfo)
- { return DoControl(EControlCaps, &anInfo); }
- inline TInt RLocalDrive::Format(TInt64 aPos, TInt aLength)
- { TLocalDriveMessageData d(aPos,aLength,0 ,KLocalMessageHandle,0,0); return DoControl(EControlFormat, &d); }
- inline TInt RLocalDrive::ForceMediaChange(TInt aMode)
- { return DoControl(EControlForceMediaChange, (TAny*)aMode); }
- inline void RLocalDrive::NotifyChange(TRequestStatus* aStatus)
- { *aStatus=KRequestPending; DoControl(EControlNotifyChange, aStatus); }
- inline void RLocalDrive::NotifyChangeCancel()
- { DoControl(EControlNotifyChangeCancel); }
- inline TMediaDevice RLocalDrive::MediaDevice()
- { return (TMediaDevice)DoControl(EControlMediaDevice); }
- inline TInt RLocalDrive::SetMountInfo(const TDesC8* aInfo,TInt aMessageHandle)
- { TLocalDriveMessageData d(0,0,aInfo,aMessageHandle,0,0); return DoControl(EControlSetMountInfo, &d); }
- inline TInt RLocalDrive::IsRemovable(TInt& aSocketNum)
- { return DoControl(EControlIsRemovable,&aSocketNum); }
- inline TInt RLocalDrive::ControlIO(TInt aCommand, TAny* aParam1, TAny* aParam2)
- { TLocalDriveControlIOData d(aCommand,aParam1,aParam2,KLocalMessageHandle); return DoControl(EControlControlIO,&d); }
- inline TInt RLocalDrive::Unlock(const TDesC8& aPassword, TBool aStorePassword)
- { TLocalDrivePasswordData d((TDesC8&)aPassword, (TDesC8&)aPassword, aStorePassword); return DoControl(EControlPasswordUnlock, &d); }
- inline TInt RLocalDrive::SetPassword(const TDesC8& aOldPassword, const TDesC8& aNewPassword, TBool aStorePassword)
- { TLocalDrivePasswordData d((TDesC8&)aOldPassword, (TDesC8&)aNewPassword, aStorePassword); return DoControl(EControlPasswordLock, &d); }
- inline TInt RLocalDrive::Clear(const TDesC8& aPassword)
- { TLocalDrivePasswordData d((TDesC8&)aPassword, (TDesC8&)aPassword, EFalse); return DoControl(EControlPasswordClear, &d); }
- inline TInt RLocalDrive::ErasePassword()
- { return DoControl(EControlPasswordErase); }
- inline TInt RLocalDrive::ReadPasswordData(TDesC8& aStoreData)
- { return DoControl(EControlReadPasswordStore, (TDesC8*)&aStoreData); }
- inline TInt RLocalDrive::WritePasswordData(const TDesC8& aStoreData)
- { return DoControl(EControlWritePasswordStore, (TDesC8*)&aStoreData); }
- inline TInt RLocalDrive::PasswordStoreLengthInBytes()
- { TInt length=0; return DoControl(EControlPasswordStoreLengthInBytes, (TAny*)&length)==KErrNone?length:0; }
- inline TInt RLocalDrive::DeleteNotify(TInt64 aPos, TInt aLength)
- { TLocalDriveMessageData d(aPos,aLength,0,KLocalMessageHandle,0,0); return DoControl(EControlDeleteNotify, &d); }
- inline TInt RLocalDrive::GetLastErrorInfo(TDesC8& aErrorInfo)
- { return DoControl(EControlGetLastErrorInfo, (TDesC8*)&aErrorInfo); }
- #line 500 "C:\Symbian\9.1\S60_3rd\epoc32\include\d32locd.h" /* stack depth 8 */
- #line 9 "C:\Symbian\9.1\S60_3rd\epoc32\include\e32svr.h" /* stack depth 7 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\e32notif.h" /* stack depth 8 */
- #line 16
- enum TNotifierMessage
- {
- ENotifierNotify,
- ENotifierInfoPrint,
- EStartNotifier,
- ECancelNotifier,
- EUpdateNotifier,
- EStartNotifierAndGetResponse,
- EStartNotifierFromSpecifiedDll,
- EStartNotifierFromSpecifiedDllAndGetResponse,
- ENotifierNotifyCancel,
- EUpdateNotifierAndGetResponse,
- };
- #line 10 "C:\Symbian\9.1\S60_3rd\epoc32\include\e32svr.h" /* stack depth 7 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\e32ldr.h" /* stack depth 8 */
- #line 15
- const TInt KMaxLibraryEntryPoints=0x100;
- const TInt KLoaderMajorVersionNumber=1;
- const TInt KLoaderMinorVersionNumber=0;
- enum TLoaderMsg
- {
- ELoadProcess=1,
- ELoadLibrary=2,
- ELoadLogicalDevice=3,
- ELoadPhysicalDevice=4,
- ELoadLocale=5,
- ELoadFileSystem=6,
- EGetInfo=7,
- ELoaderDebugFunction=8,
- ELoadFSExtension=9,
- EGetInfoFromHeader=10,
- ELoadFSPlugin=11,
- EMaxLoaderMsg
- };
- class TLdrInfo
- {
- public:
- __declspec(dllexport) TLdrInfo();
- public:
- TUidType iRequestedUids;
- TOwnerType iOwnerType;
- TInt iHandle;
- TUint32 iSecureId;
- TUint32 iRequestedVersion;
- };
- class RLoader : public RSessionBase
- {
- public:
- __declspec(dllexport) TInt Connect();
- TVersion Version() const;
- TInt LoadProcess(TInt& aHandle, const TDesC& aFileName, const TDesC& aCommand, const TUidType& aUidType, TOwnerType aType);
- __declspec(dllexport) TInt LoadLibrary(TInt& aHandle, const TDesC& aFileName, const TDesC& aPath, const TUidType& aType, TUint32 aModuleVersion);
- __declspec(dllexport) TInt GetInfo(const TDesC& aFileName, TDes8& aInfoBuf);
- TInt LoadDeviceDriver(const TDesC& aFileName, TInt aDeviceType);
- __declspec(dllexport) TInt DebugFunction(TInt aFunction, TInt a1, TInt a2, TInt a3);
- TInt LoadLocale(const TDesC& aLocaleDllName, TLibraryFunction* aExportList);
- TInt GetInfoFromHeader(const TDesC8& aHeader, TDes8& aInfoBuf);
- public:
- using RSessionBase::SendReceive;
- };
- enum TCodeSegAttributes
- {
- ECodeSegAttKernel =0x00000001,
- ECodeSegAttGlobal =0x00000002,
- ECodeSegAttFixed =0x00000004,
- ECodeSegAttABIMask =0x00000018,
- ECodeSegAttHDll =(TInt)0x80000000,
- ECodeSegAttExpVer =0x40000000,
- };
- class TCodeSegCreateInfo
- {
- public:
- TBuf8<KMaxFileName> iFileName;
- TUidType iUids;
- TUint32 iAttr;
- TInt iCodeSize;
- TInt iTextSize;
- TInt iDataSize;
- TInt iBssSize;
- TInt iTotalDataSize;
- TUint32 iEntryPtVeneer;
- TUint32 iFileEntryPoint;
- TInt iDepCount;
- TUint32 iExportDir;
- TInt iExportDirCount;
- TUint32 iCodeLoadAddress;
- TUint32 iCodeRunAddress;
- TUint32 iDataLoadAddress;
- TUint32 iDataRunAddress;
- TUint32 iExceptionDescriptor;
- TInt iRootNameOffset;
- TInt iRootNameLength;
- TInt iExtOffset;
- TUint32 iModuleVersion;
- SSecurityInfo iS;
- TAny* iHandle;
- TInt iClientProcessHandle;
- public:
- __declspec(dllexport) TPtrC8 RootName() const;
- __declspec(dllexport) void FullFileName(TDes8& aName) const;
- };
- class TProcessCreateInfo : public TCodeSegCreateInfo
- {
- public:
- TInt iHeapSizeMin;
- TInt iHeapSizeMax;
- TInt iStackSize;
- TInt iClientHandle;
- TInt iProcessHandle;
- TInt iFinalHandle;
- TOwnerType iOwnerType;
- TProcessPriority iPriority;
- TUint iSecurityZone;
- };
- const TUint KSecurityZoneUnique = 0u;
- const TUint KSecurityZoneLegacyCode = ~0u;
- class TLibraryCreateInfo
- {
- public:
- TAny* iCodeSegHandle;
- TInt iClientHandle;
- TInt iLibraryHandle;
- TOwnerType iOwnerType;
- };
- class TFindCodeSeg
- {
- public:
- TUidType iUids;
- const TAny* iRomImgHdr;
- TUint32 iAttrMask;
- TUint32 iAttrVal;
- TInt iProcess;
- SSecurityInfo iS;
- TUint32 iModuleVersion;
- TBuf8<KMaxLibraryName> iName;
- };
- class E32Loader
- {
- public:
- __declspec(dllexport) static TInt CodeSegCreate(TCodeSegCreateInfo& aInfo);
- __declspec(dllexport) static TInt CodeSegLoaded(TCodeSegCreateInfo& aInfo);
- __declspec(dllexport) static TInt LibraryCreate(TLibraryCreateInfo& aInfo);
- __declspec(dllexport) static TInt CodeSegOpen(TAny* aHandle, TInt aClientProcessHandle);
- __declspec(dllexport) static void CodeSegClose(TAny* aHandle);
- __declspec(dllexport) static void CodeSegNext(TAny*& aHandle, const TFindCodeSeg& aFind);
- __declspec(dllexport) static void CodeSegInfo(TAny* aHandle, TCodeSegCreateInfo& aInfo);
- __declspec(dllexport) static TInt CodeSegAddDependency(TAny* aImporter, TAny* aExporter);
- __declspec(dllexport) static void CodeSegDeferDeletes();
- __declspec(dllexport) static void CodeSegEndDeferDeletes();
- __declspec(dllexport) static TInt ProcessCreate(TProcessCreateInfo& aInfo, const TDesC8* aCommandLine);
- __declspec(dllexport) static TInt ProcessLoaded(TProcessCreateInfo& aInfo);
- __declspec(dllexport) static TInt CheckClientState(TInt aClientHandle);
- __declspec(dllexport) static TInt DeviceLoad(TAny* aHandle, TInt aType);
- __declspec(dllexport) static TAny* ThreadProcessCodeSeg(TInt aHandle);
- __declspec(dllexport) static void ReadExportDir(TAny* aHandle, TUint32* aDest);
- __declspec(dllexport) static TInt LocaleExports(TAny* aHandle, TLibraryFunction* aExportsList);
- __declspec(dllexport) static void GetV7StubAddresses(TLinAddr& aExe, TLinAddr& aDll);
- static TInt V7ExeEntryStub();
- static TInt V7DllEntryStub(TInt aReason);
- public:
- static TInt WaitDllLock();
- static TInt ReleaseDllLock();
- static TInt LibraryAttach(TInt aHandle, TInt& aNumEps, TLinAddr* aEpList);
- static TInt LibraryAttached(TInt aHandle);
- static TInt StaticCallList(TInt& aNumEps, TLinAddr* aEpList);
- static TInt LibraryDetach(TInt& aNumEps, TLinAddr* aEpList);
- static TInt LibraryDetached();
- };
- typedef TInt (*TSupervisorFunction)(TAny*);
- #line 11 "C:\Symbian\9.1\S60_3rd\epoc32\include\e32svr.h" /* stack depth 7 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\e32event.h" /* stack depth 8 */
- #line 14
- const TInt KUndefinedDeviceNumber = -1;
- #line 25
- class TRawEvent
- {
- public:
- enum TType
- {
- ENone,
- EPointerMove,
- EPointerSwitchOn,
- EKeyDown,
- EKeyUp,
- ERedraw,
- ESwitchOn,
- EActive,
- EInactive,
- EUpdateModifiers,
- EButton1Down,
- EButton1Up,
- EButton2Down,
- EButton2Up,
- EButton3Down,
- EButton3Up,
- ESwitchOff,
- EKeyRepeat,
- ECaseOpen,
- ECaseClose,
- #line 165
- EPointer3DInRange,
- #line 174
- EPointer3DOutOfRange,
- #line 183
- EPointer3DTilt,
- #line 192
- EPointer3DRotation,
- #line 201
- EPointer3DTiltAndMove,
- EButton4Down,
- EButton4Up,
- EButton5Down,
- EButton5Up,
- EButton6Down,
- EButton6Up
- };
- public:
- inline TRawEvent()
- { *(TInt*)&iType=0; }
- inline TType Type() const
- {return TType(iType);}
- inline TInt DeviceNumber() const
- {return TInt(iDeviceNumber-1);}
- inline void SetDeviceNumber(TInt aDeviceNumber)
- {iDeviceNumber = TUint8(aDeviceNumber+1);}
- __declspec(dllexport) TPoint Pos() const;
- __declspec(dllexport) TInt ScanCode() const;
- __declspec(dllexport) TInt Modifiers() const;
- __declspec(dllexport) TPoint3D Pos3D() const;
- #line 289
- __declspec(dllexport) TAngle3D Tilt() const;
- #line 299
- __declspec(dllexport) TInt Rotation() const;
- #line 309
- inline TUint Ticks() const
- {return iTicks;}
- inline TBool IsTip() const
- {return TBool(iTip);}
- inline void SetTip(TBool aTip)
- {iTip = TUint8(aTip);}
- __declspec(dllexport) void Set(TType aType,TInt aScanCode);
- __declspec(dllexport) void Set(TType aType,TInt aX,TInt aY);
- __declspec(dllexport) void Set(TType aType);
- __declspec(dllexport) void Set(TType aType,TInt aX,TInt aY,TInt aZ);
- __declspec(dllexport) void Set(TType aType,TInt aX,TInt aY,TInt aZ,TInt aPhi,TInt aTheta,TInt aAlpha);
- __declspec(dllexport) void SetTilt(TType aType,TInt aPhi,TInt aTheta);
- __declspec(dllexport) void SetRotation(TType aType,TInt aAlpha);
- protected:
- TUint8 iType;
- TUint8 iTip;
- TUint8 iSpare2;
- TUint8 iDeviceNumber;
- TUint iTicks;
- union
- {
- struct {TInt x;TInt y;} pos;
- struct {TInt x;TInt y;TInt z;TInt phi;TInt theta;TInt alpha;} pos3D;
- TInt scanCode;
- TInt modifiers;
- } iU;
- };
- #line 362
- class TRawEventBuf : public TPckgBuf<TRawEvent>
- {
- public:
- inline TRawEvent &Event() const {return(*((TRawEvent *)&iBuf[0]));}
- };
- #line 383
- class TScreenInfoV01
- {
- public:
- TBool iWindowHandleValid;
- TAny *iWindowHandle;
- TBool iScreenAddressValid;
- TAny *iScreenAddress;
- TSize iScreenSize;
- };
- #line 12 "C:\Symbian\9.1\S60_3rd\epoc32\include\e32svr.h" /* stack depth 7 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\e32ktran.h" /* stack depth 8 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\e32keys.h" /* stack depth 9 */
- #line 39
- enum TEventModifier
- {
- EModifierAutorepeatable=0x00000001,
- EModifierKeypad=0x00000002,
- EModifierLeftAlt=0x00000004,
- EModifierRightAlt=0x00000008,
- EModifierAlt=0x00000010,
- EModifierLeftCtrl=0x00000020,
- EModifierRightCtrl=0x00000040,
- EModifierCtrl=0x00000080,
- EModifierLeftShift=0x00000100,
- EModifierRightShift=0x00000200,
- EModifierShift=0x00000400,
- EModifierLeftFunc=0x00000800,
- EModifierRightFunc=0x00001000,
- EModifierFunc=0x00002000,
- EModifierCapsLock=0x00004000,
- EModifierNumLock=0x00008000,
- EModifierScrollLock=0x00010000,
- EModifierKeyUp=0x00020000,
- EModifierSpecial=0x00040000,
- EModifierDoubleClick=0x00080000,
- EModifierPureKeycode=0x00100000,
- EModifierKeyboardExtend=0x00200000,
- EModifierCancelRotation=0x00000000,
- EModifierRotateBy90=0x00400000,
- EModifierRotateBy180=0x00800000,
- EModifierRotateBy270=0x01000000,
- EModifierPointer3DButton1=0x02000000,
- EModifierPointer3DButton2=0x04000000,
- EModifierPointer3DButton3=0x08000000,
- EAllModifiers=0x0fffffff
- };
- #line 88
- enum TModifierState
- {
- ETurnOnModifier=0x40,
- ETurnOffModifier,
- EToggleModifier
- };
- #line 120
- enum TStdScanCode
- {
- EStdKeyNull=0x00,
- EStdKeyBackspace=0x01,
- EStdKeyTab=0x02,
- EStdKeyEnter=0x03,
- EStdKeyEscape=0x04,
- EStdKeySpace=0x05,
- EStdKeyPrintScreen=0x06,
- EStdKeyPause=0x07,
- EStdKeyHome=0x08,
- EStdKeyEnd=0x09,
- EStdKeyPageUp=0x0a,
- EStdKeyPageDown=0x0b,
- EStdKeyInsert=0x0c,
- EStdKeyDelete=0x0d,
- EStdKeyLeftArrow=0x0e,
- EStdKeyRightArrow=0x0f,
- EStdKeyUpArrow=0x10,
- EStdKeyDownArrow=0x11,
- EStdKeyLeftShift=0x12,
- EStdKeyRightShift=0x13,
- EStdKeyLeftAlt=0x14,
- EStdKeyRightAlt=0x15,
- EStdKeyLeftCtrl=0x16,
- EStdKeyRightCtrl=0x17,
- EStdKeyLeftFunc=0x18,
- EStdKeyRightFunc=0x19,
- EStdKeyCapsLock=0x1a,
- EStdKeyNumLock=0x1b,
- EStdKeyScrollLock=0x1c,
- EStdKeyF1=0x60,
- EStdKeyF2=0x61,
- EStdKeyF3=0x62,
- EStdKeyF4=0x63,
- EStdKeyF5=0x64,
- EStdKeyF6=0x65,
- EStdKeyF7=0x66,
- EStdKeyF8=0x67,
- EStdKeyF9=0x68,
- EStdKeyF10=0x69,
- EStdKeyF11=0x6a,
- EStdKeyF12=0x6b,
- EStdKeyF13=0x6c,
- EStdKeyF14=0x6d,
- EStdKeyF15=0x6e,
- EStdKeyF16=0x6f,
- EStdKeyF17=0x70,
- EStdKeyF18=0x71,
- EStdKeyF19=0x72,
- EStdKeyF20=0x73,
- EStdKeyF21=0x74,
- EStdKeyF22=0x75,
- EStdKeyF23=0x76,
- EStdKeyF24=0x77,
- EStdKeyXXX=0x78,
- EStdKeyComma=0x79,
- EStdKeyFullStop=0x7a,
- EStdKeyForwardSlash=0x7b,
- EStdKeyBackSlash=0x7c,
- EStdKeySemiColon=0x7d,
- EStdKeySingleQuote=0x7e,
- EStdKeyHash=0x7f,
- EStdKeySquareBracketLeft=0x80,
- EStdKeySquareBracketRight=0x81,
- EStdKeyMinus=0x82,
- EStdKeyEquals=0x83,
- EStdKeyNkpForwardSlash=0x84,
- EStdKeyNkpAsterisk=0x85,
- EStdKeyNkpMinus=0x86,
- EStdKeyNkpPlus=0x87,
- EStdKeyNkpEnter=0x88,
- EStdKeyNkp1=0x89,
- EStdKeyNkp2=0x8a,
- EStdKeyNkp3=0x8b,
- EStdKeyNkp4=0x8c,
- EStdKeyNkp5=0x8d,
- EStdKeyNkp6=0x8e,
- EStdKeyNkp7=0x8f,
- EStdKeyNkp8=0x90,
- EStdKeyNkp9=0x91,
- EStdKeyNkp0=0x92,
- EStdKeyNkpFullStop=0x93,
- EStdKeyMenu=0x94,
- EStdKeyBacklightOn=0x95,
- EStdKeyBacklightOff=0x96,
- EStdKeyBacklightToggle=0x97,
- EStdKeyIncContrast=0x98,
- EStdKeyDecContrast=0x99,
- EStdKeySliderDown=0x9a,
- EStdKeySliderUp=0x9b,
- EStdKeyDictaphonePlay=0x9c,
- EStdKeyDictaphoneStop=0x9d,
- EStdKeyDictaphoneRecord=0x9e,
- EStdKeyHelp=0x9f,
- EStdKeyOff=0xa0,
- EStdKeyDial=0xa1,
- EStdKeyIncVolume=0xa2,
- EStdKeyDecVolume=0xa3,
- EStdKeyDevice0=0xa4,
- EStdKeyDevice1=0xa5,
- EStdKeyDevice2=0xa6,
- EStdKeyDevice3=0xa7,
- EStdKeyDevice4=0xa8,
- EStdKeyDevice5=0xa9,
- EStdKeyDevice6=0xaa,
- EStdKeyDevice7=0xab,
- EStdKeyDevice8=0xac,
- EStdKeyDevice9=0xad,
- EStdKeyDeviceA=0xae,
- EStdKeyDeviceB=0xaf,
- EStdKeyDeviceC=0xb0,
- EStdKeyDeviceD=0xb1,
- EStdKeyDeviceE=0xb2,
- EStdKeyDeviceF=0xb3,
- EStdKeyApplication0=0xb4,
- EStdKeyApplication1=0xb5,
- EStdKeyApplication2=0xb6,
- EStdKeyApplication3=0xb7,
- EStdKeyApplication4=0xb8,
- EStdKeyApplication5=0xb9,
- EStdKeyApplication6=0xba,
- EStdKeyApplication7=0xbb,
- EStdKeyApplication8=0xbc,
- EStdKeyApplication9=0xbd,
- EStdKeyApplicationA=0xbe,
- EStdKeyApplicationB=0xbf,
- EStdKeyApplicationC=0xc0,
- EStdKeyApplicationD=0xc1,
- EStdKeyApplicationE=0xc2,
- EStdKeyApplicationF=0xc3,
- EStdKeyYes=0xc4,
- EStdKeyNo=0xc5,
- EStdKeyIncBrightness=0xc6,
- EStdKeyDecBrightness=0xc7,
- EStdKeyKeyboardExtend=0xc8,
- EStdKeyDevice10=0xc9,
- EStdKeyDevice11=0xca,
- EStdKeyDevice12=0xcb,
- EStdKeyDevice13=0xcc,
- EStdKeyDevice14=0xcd,
- EStdKeyDevice15=0xce,
- EStdKeyDevice16=0xcf,
- EStdKeyDevice17=0xd0,
- EStdKeyDevice18=0xd1,
- EStdKeyDevice19=0xd2,
- EStdKeyDevice1A=0xd3,
- EStdKeyDevice1B=0xd4,
- EStdKeyDevice1C=0xd5,
- EStdKeyDevice1D=0xd6,
- EStdKeyDevice1E=0xd7,
- EStdKeyDevice1F=0xd8,
- EStdKeyApplication10=0xd9,
- EStdKeyApplication11=0xda,
- EStdKeyApplication12=0xdb,
- EStdKeyApplication13=0xdc,
- EStdKeyApplication14=0xdd,
- EStdKeyApplication15=0xde,
- EStdKeyApplication16=0xdf,
- EStdKeyApplication17=0xe0,
- EStdKeyApplication18=0xe1,
- EStdKeyApplication19=0xe2,
- EStdKeyApplication1A=0xe3,
- EStdKeyApplication1B=0xe4,
- EStdKeyApplication1C=0xe5,
- EStdKeyApplication1D=0xe6,
- EStdKeyApplication1E=0xe7,
- EStdKeyApplication1F=0xe8
- };
- #line 303
- enum TKeyCode
- {
- EKeyNull=0x0000,
- EKeyBell=0x0007,
- EKeyBackspace=0x0008,
- EKeyTab=0x0009,
- EKeyLineFeed=0x000a,
- EKeyVerticalTab=0x000b,
- EKeyFormFeed=0x000c,
- EKeyEnter=0x000d,
- EKeyEscape=0x001b,
- EKeySpace=0x0020,
- EKeyDelete=0x007f,
- EKeyPrintScreen=0xf800 ,
- EKeyPause,
- EKeyHome,
- EKeyEnd,
- EKeyPageUp,
- EKeyPageDown,
- EKeyInsert,
- EKeyLeftArrow,
- EKeyRightArrow,
- EKeyUpArrow,
- EKeyDownArrow,
- EKeyLeftShift,
- EKeyRightShift,
- EKeyLeftAlt,
- EKeyRightAlt,
- EKeyLeftCtrl,
- EKeyRightCtrl,
- EKeyLeftFunc,
- EKeyRightFunc,
- EKeyCapsLock,
- EKeyNumLock,
- EKeyScrollLock,
- EKeyF1,
- EKeyF2,
- EKeyF3,
- EKeyF4,
- EKeyF5,
- EKeyF6,
- EKeyF7,
- EKeyF8,
- EKeyF9,
- EKeyF10,
- EKeyF11,
- EKeyF12,
- EKeyF13,
- EKeyF14,
- EKeyF15,
- EKeyF16,
- EKeyF17,
- EKeyF18,
- EKeyF19,
- EKeyF20,
- EKeyF21,
- EKeyF22,
- EKeyF23,
- EKeyF24,
- EKeyOff,
- EKeyIncContrast,
- EKeyDecContrast,
- EKeyBacklightOn,
- EKeyBacklightOff,
- EKeyBacklightToggle,
- EKeySliderDown,
- EKeySliderUp,
- EKeyMenu,
- EKeyDictaphonePlay,
- EKeyDictaphoneStop,
- EKeyDictaphoneRecord,
- EKeyHelp,
- EKeyDial,
- EKeyScreenDimension0,
- EKeyScreenDimension1,
- EKeyScreenDimension2,
- EKeyScreenDimension3,
- EKeyIncVolume,
- EKeyDecVolume,
- EKeyDevice0,
- EKeyDevice1,
- EKeyDevice2,
- EKeyDevice3,
- EKeyDevice4,
- EKeyDevice5,
- EKeyDevice6,
- EKeyDevice7,
- EKeyDevice8,
- EKeyDevice9,
- EKeyDeviceA,
- EKeyDeviceB,
- EKeyDeviceC,
- EKeyDeviceD,
- EKeyDeviceE,
- EKeyDeviceF,
- EKeyApplication0,
- EKeyApplication1,
- EKeyApplication2,
- EKeyApplication3,
- EKeyApplication4,
- EKeyApplication5,
- EKeyApplication6,
- EKeyApplication7,
- EKeyApplication8,
- EKeyApplication9,
- EKeyApplicationA,
- EKeyApplicationB,
- EKeyApplicationC,
- EKeyApplicationD,
- EKeyApplicationE,
- EKeyApplicationF,
- EKeyYes,
- EKeyNo,
- EKeyIncBrightness,
- EKeyDecBrightness,
- EKeyKeyboardExtend,
- EKeyDevice10,
- EKeyDevice11,
- EKeyDevice12,
- EKeyDevice13,
- EKeyDevice14,
- EKeyDevice15,
- EKeyDevice16,
- EKeyDevice17,
- EKeyDevice18,
- EKeyDevice19,
- EKeyDevice1A,
- EKeyDevice1B,
- EKeyDevice1C,
- EKeyDevice1D,
- EKeyDevice1E,
- EKeyDevice1F,
- EKeyApplication10,
- EKeyApplication11,
- EKeyApplication12,
- EKeyApplication13,
- EKeyApplication14,
- EKeyApplication15,
- EKeyApplication16,
- EKeyApplication17,
- EKeyApplication18,
- EKeyApplication19,
- EKeyApplication1A,
- EKeyApplication1B,
- EKeyApplication1C,
- EKeyApplication1D,
- EKeyApplication1E,
- EKeyApplication1F
- };
- #line 14 "C:\Symbian\9.1\S60_3rd\epoc32\include\e32ktran.h" /* stack depth 8 */
- class TMaskedModifiers
- {
- public:
- TUint iMask;
- TUint iValue;
- };
- enum TPattern
- {
- EAnyKey=0x00,
- EAnyAlphaNumeric,
- EAnyAlpha,
- EAnyAlphaLowerCase,
- EAnyAlphaUpperCase,
- EAnyDecimalDigit,
- EAnyDigitGivenRadix,
- EAnyModifierKey,
- EMatchKey=0x40,
- EMatchKeyCaseInsens,
- EMatchLeftOrRight
- };
- class TKeyCodePattern
- {
- public:
- TUint16 iKeyCode;
- TInt8 iPattern;
- TInt8 iFiller;
- };
- class TCaptureKey
- {
- public:
- TMaskedModifiers iModifiers;
- TKeyCodePattern iKeyCodePattern;
- TUint iApp;
- TUint iHandle;
- };
- class TKeyData
- {
- public:
- TInt iModifiers;
- TInt iApp;
- TInt iHandle;
- TBool iIsCaptureKey;
- TUint iKeyCode;
- };
- class CCaptureKeys: public CBase
- {
- public:
- __declspec(dllexport) CCaptureKeys();
- __declspec(dllexport) ~CCaptureKeys();
- __declspec(dllexport) void Construct();
- __declspec(dllexport) void AddCaptureKeyL(const TCaptureKey &aCaptureKey);
- __declspec(dllexport) void AddCaptureKeyL(const TCaptureKey &aCaptureKey, TUint8 aPriority);
- __declspec(dllexport) void SetCaptureKey(TUint32 aHandle, const TCaptureKey &aCaptureKey);
- __declspec(dllexport) void SetCaptureKey(TUint32 aHandle, const TCaptureKey &aCaptureKey, TUint8 aPriority);
- __declspec(dllexport) void CancelCaptureKey(TUint32 aHandle);
- __declspec(dllexport) void CancelAllCaptureKeys(TUint32 aApp);
- __declspec(dllexport) void ProcessCaptureKeys(TKeyData &aKeyData) const;
- protected:
- void CheckCaptureKey(const TCaptureKey &aCaptureKey);
- void removeCaptureKey(TUint index);
- protected:
- RArray<TCaptureKey> iCKarray;
- };
- class CKeyTranslator: public CBase
- {
- public:
- __declspec(dllexport) static CKeyTranslator *New();
- virtual TInt GetModifierState()=0;
- virtual void SetModifierState(TEventModifier aModifier,TModifierState aState)=0;
- virtual TBool TranslateKey(TUint aScanCode,TBool aKeyUp,const CCaptureKeys &aCaptureKeys,TKeyData &aKeyData)=0;
- virtual void UpdateModifiers(TInt aModifiers)=0;
- virtual TInt ChangeKeyData(const TDesC& aLibraryName)=0;
- };
- #line 13 "C:\Symbian\9.1\S60_3rd\epoc32\include\e32svr.h" /* stack depth 7 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\e32debug.h" /* stack depth 8 */
- #line 13
- const TInt KMaxProfiles=64;
- class TProfile
- {
- public:
- TInt iTime;
- TInt iCount;
- };
- class RDebug
- {
- public:
- __declspec(dllexport) static void Printf(const char*, ...);
- __declspec(dllexport) static TInt Print(TRefByValue<const TDesC> aFmt,...);
- __declspec(dllexport) static void RawPrint(const TDesC& aDes);
- };
- #line 14 "C:\Symbian\9.1\S60_3rd\epoc32\include\e32svr.h" /* stack depth 7 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\e32lmsg.h" /* stack depth 8 */
- #line 15
- const TInt KMaxLocaleMessageText=0x80;
- enum TLocaleMessage
- {
- EFileServer_Button1,
- EFileServer_Button2,
- EFileServer_PutTheCardBackLine1,
- EFileServer_PutTheCardBackLine2,
- EFileServer_LowPowerLine1,
- EFileServer_LowPowerLine2,
- EFileServer_DiskErrorLine1,
- EFileServer_DiskErrorLine2,
- ESoundDriver_Chimes,
- ESoundDriver_Rings,
- ESoundDriver_Signal,
- EMediaDriver_DiskNameInternal,
- EMediaDriver_DiskNameExternal1,
- EMediaDriver_DiskNameExternal2,
- EMediaDriver_DiskNameExternal3,
- EMediaDriver_DiskNameExternal4,
- EMediaDriver_DiskNameExternal5,
- EMediaDriver_DiskNameExternal6,
- EMediaDriver_DiskNameExternal7,
- EMediaDriver_DiskNameExternal8,
- EMediaDriver_SocketName0,
- EMediaDriver_SocketName1,
- EMediaDriver_SocketName2,
- EMediaDriver_SocketName3,
- ELocaleMessages_LastMsg
- };
- class TLocaleMessageText : public TBuf<KMaxLocaleMessageText>
- {
- public:
- __declspec(dllexport) TLocaleMessageText();
- __declspec(dllexport) TLocaleMessageText(TLocaleMessage aMessageNo);
- __declspec(dllexport) void Set(TLocaleMessage aMessageNo);
- };
- #line 15 "C:\Symbian\9.1\S60_3rd\epoc32\include\e32svr.h" /* stack depth 7 */
- enum TBlockType {EBlocked,EUnBlocked,ERelease};
- class UserSvr
- {
- public:
- __declspec(dllexport) static void CaptureEventHook();
- __declspec(dllexport) static void ReleaseEventHook();
- __declspec(dllexport) static void RequestEvent(TRawEventBuf &anEvent,TRequestStatus &aStatus);
- __declspec(dllexport) static void RequestEventCancel();
- __declspec(dllexport) static TInt AddEvent(const TRawEvent& anEvent);
- __declspec(dllexport) static void ScreenInfo(TDes8& anInfo);
- __declspec(dllexport) static TInt DllSetTls(TInt aHandle, TAny *aPtr);
- __declspec(dllexport) static TAny *DllTls(TInt aHandle);
- __declspec(dllexport) static void DllFreeTls(TInt aHandle);
- __declspec(dllexport) static void DllFileName(TInt aHandle, TDes &aFileName);
- __declspec(dllexport) static void FsRegisterThread();
- __declspec(dllexport) static void WsRegisterThread();
- __declspec(dllexport) static TBool TestBootSequence();
- __declspec(dllexport) static void WsRegisterSwitchOnScreenHandling(TBool aState);
- __declspec(dllexport) static void WsSwitchOnScreen();
- __declspec(dllexport) static TInt ChangeLocale(const TDesC& aLocaleDllName);
- __declspec(dllexport) static TInt ResetMachine(TMachineStartupType aType);
- __declspec(dllexport) static void UnlockRamDrive();
- __declspec(dllexport) static void LockRamDrive();
- __declspec(dllexport) static TUint32 RomRootDirectoryAddress();
- __declspec(dllexport) static TInt ExecuteInSupervisorMode(TSupervisorFunction aFunction, TAny* aParameter);
- __declspec(dllexport) static TUint32 RomHeaderAddress();
- __declspec(dllexport) static TUint32 DebugMask();
- __declspec(dllexport) static TUint32 DebugMask(TUint aIndex);
- __declspec(dllexport) static TInt HalFunction(TInt aGroup, TInt aFunction, TAny* a1, TAny* a2);
- __declspec(dllexport) static TInt HalFunction(TInt aGroup, TInt aFunction, TAny* a1, TAny* a2, TInt aDeviceNumber);
- __declspec(dllexport) static TInt HalGet(TInt,TAny*);
- __declspec(dllexport) static TInt HalSet(TInt,TAny*);
- __declspec(dllexport) static TInt SetMemoryThresholds(TInt aLowThreshold, TInt aGoodThreshold);
- __declspec(dllexport) static TBool IpcV1Available();
- __declspec(dllexport) static TLinAddr ExceptionDescriptor(TLinAddr aCodeAddress);
- __declspec(dllexport) static TInt LocalePropertiesSetDefaults();
- };
- #line 20 "C:\Symbian\9.1\S60_3rd\epoc32\include\f32file.h" /* stack depth 6 */
- #line 30
- const TInt KDefaultDrive=KMaxTInt;
- #line 43
- const TInt KDriveAbsent=0x00;
- #line 56
- const TInt KFileServerDefaultMessageSlots=-1;
- #line 70
- const TInt KEntryArraySize=(0x200*sizeof(TText));
- #line 81
- const TInt KPathDelimiter='\';
- #line 92
- const TInt KDriveDelimiter=':';
- #line 103
- const TInt KExtDelimiter='.';
- #line 114
- const TInt KMaxDrives=26;
- #line 129
- typedef TBuf8<KMaxDrives> TDriveList;
- #line 141
- const TInt KMaxDriveName=0x02;
- #line 158
- typedef TBuf<KMaxDriveName> TDriveName;
- #line 169
- const TUint KEntryAttNormal=0x0000;
- #line 180
- const TUint KEntryAttReadOnly=0x0001;
- #line 191
- const TUint KEntryAttHidden=0x0002;
- #line 202
- const TUint KEntryAttSystem=0x0004;
- #line 213
- const TUint KEntryAttVolume=0x0008;
- #line 224
- const TUint KEntryAttDir=0x0010;
- #line 235
- const TUint KEntryAttArchive=0x0020;
- #line 244
- const TUint KEntryAttXIP=0x0080;
- #line 263
- const TUint KEntryAttMatchMask=(KEntryAttHidden|KEntryAttSystem|KEntryAttDir);
- #line 280
- const TUint KEntryAttMaskSupported=0x3f;
- #line 300
- const TUint KEntryAttMatchExclusive=0x40000000;
- #line 329
- const TUint KEntryAttMatchExclude=0x08000000;
- #line 345
- const TUint KEntryAttAllowUid=0x10000000;
- const TUint KDebugNotifyMask=0xFF000000;
- enum TNotifyType
- #line 374
- {
- ENotifyAll=0x01,
- ENotifyEntry=0x02,
- ENotifyFile=0x04,
- ENotifyDir=0x08,
- ENotifyAttributes=0x10,
- ENotifyWrite=0x20,
- ENotifyDisk=0x40
- };
- enum TNotifyDismountMode
- #line 430
- {
- EFsDismountRegisterClient=0x01,
- EFsDismountNotifyClients=0x02,
- EFsDismountForceDismount=0x03,
- };
- enum TStartupConfigurationCmd
- #line 458
- {
- ELoaderPriority,
- EMaxStartupConfigurationCmd
- };
- enum TDriveNumber
- {
- EDriveA, EDriveB, EDriveC, EDriveD, EDriveE,
- EDriveF, EDriveG, EDriveH, EDriveI, EDriveJ,
- EDriveK, EDriveL, EDriveM, EDriveN, EDriveO,
- EDriveP, EDriveQ, EDriveR, EDriveS, EDriveT,
- EDriveU, EDriveV, EDriveW, EDriveX, EDriveY,
- EDriveZ
- };
- enum TEntryKey
- #line 501
- {
- ESortNone=0,
- #line 514
- ESortByName,
- #line 527
- ESortByExt,
- #line 536
- ESortBySize,
- #line 547
- ESortByDate,
- #line 556
- ESortByUid,
- #line 567
- EDirsAnyOrder=0,
- EDirsFirst=0x100,
- EDirsLast=0x200,
- #line 593
- EAscending=0,
- EDescending=0x400,
- #line 610
- EDirDescending=0x800
- };
- enum TFileMode
- #line 658
- {
- EFileShareExclusive,
- #line 676
- EFileShareReadersOnly,
- #line 688
- EFileShareAny,
- #line 700
- EFileShareReadersOrWriters,
- EFileStream=0,
- EFileStreamText=0x100,
- EFileRead=0,
- EFileWrite=0x200,
- #line 735
- EFileReadAsyncAll=0x400
- };
- #line 749
- const TUint KFileShareMask=0xff;
- enum TFormatMode
- {
- EHighDensity,
- ELowDensity,
- #line 780
- EFullFormat=0,
- #line 789
- EQuickFormat=0x100,
- ESpecialFormat=0x200
- };
- enum TSeek
- #line 813
- {
- ESeekAddress,
- ESeekStart,
- ESeekCurrent,
- ESeekEnd
- };
- class TEntry
- #line 869
- {
- public:
- __declspec(dllexport) TEntry();
- __declspec(dllexport) TEntry(const TEntry& aEntry);
- __declspec(dllexport) TEntry& operator=(const TEntry& aEntry);
- __declspec(dllexport) TBool IsReadOnly() const;
- __declspec(dllexport) TBool IsHidden() const;
- __declspec(dllexport) TBool IsSystem() const;
- __declspec(dllexport) TBool IsDir() const;
- __declspec(dllexport) TBool IsArchive() const;
- inline const TUid& operator[](TInt anIndex) const;
- inline TBool IsUidPresent(TUid aUid) const;
- inline TBool IsTypeValid() const;
- inline TUid MostDerivedUid() const;
- public:
- #line 893
- TUint iAtt;
- TInt iSize;
- TTime iModified;
- TUidType iType;
- #line 920
- TBufC<KMaxFileName> iName;
- private:
- TUint32 iReserved[2];
- };
- class RDir;
- class TEntryArray
- #line 947
- {
- public:
- __declspec(dllexport) TEntryArray();
- __declspec(dllexport) TInt Count() const;
- __declspec(dllexport) const TEntry& operator[](TInt anIndex) const;
- private:
- TInt iCount;
- TInt iIndex;
- const TEntry* iPos;
- TBuf8<KEntryArraySize> iBuf;
- friend class RDir;
- friend class RFs;
- };
- class TDriveInfo
- #line 973
- {
- public:
- TMediaType iType;
- TBatteryState iBattery;
- #line 997
- TUint iDriveAtt;
- #line 1010
- TUint iMediaAtt;
- private:
- TUint32 iReserved;
- };
- class TVolumeInfo
- #line 1033
- {
- public:
- __declspec(dllexport) TVolumeInfo();
- TDriveInfo iDrive;
- TUint iUniqueID;
- TInt64 iSize;
- TInt64 iFree;
- TBufC<KMaxFileName> iName;
- private:
- TUint32 iReserved[4];
- };
- class TDriveUnit
- #line 1094
- {
- public:
- inline TDriveUnit() {};
- __declspec(dllexport) TDriveUnit(TInt aDrive);
- __declspec(dllexport) TDriveUnit(const TDesC& aDrive);
- __declspec(dllexport) TDriveUnit& operator=(TInt aDrive);
- __declspec(dllexport) TDriveUnit& operator=(const TDesC& aDrive);
- inline operator TInt() const;
- __declspec(dllexport) TDriveName Name() const;
- private:
- TInt iDrive;
- };
- class RFs;
- class TParseBase
- #line 1139
- {
- private:
- struct SField {TUint8 pos;TUint8 len;TUint8 present;TUint8 filler;};
- enum TField {EDrive,EPath,EName,EExt,EMaxFields};
- enum TWild {EWildName=0x01,EWildExt=0x02,EWildEither=0x04,EIsRoot=0x08,EWildIsKMatchOne=0x10,EWildIsKMatchAny=0x20};
- public:
- __declspec(dllexport) TParseBase();
- __declspec(dllexport) TInt PopDir();
- __declspec(dllexport) TInt AddDir(const TDesC& aName);
- __declspec(dllexport) const TDesC& FullName() const;
- __declspec(dllexport) TPtrC Drive() const;
- __declspec(dllexport) TPtrC Path() const;
- __declspec(dllexport) TPtrC DriveAndPath() const;
- __declspec(dllexport) TPtrC Name() const;
- __declspec(dllexport) TPtrC Ext() const;
- __declspec(dllexport) TPtrC NameAndExt() const;
- __declspec(dllexport) TBool DrivePresent() const;
- __declspec(dllexport) TBool PathPresent() const;
- __declspec(dllexport) TBool NamePresent() const;
- __declspec(dllexport) TBool ExtPresent() const;
- __declspec(dllexport) TBool NameOrExtPresent() const;
- __declspec(dllexport) TBool IsRoot() const;
- __declspec(dllexport) TBool IsWild() const;
- __declspec(dllexport) TBool IsKMatchOne() const;
- __declspec(dllexport) TBool IsKMatchAny() const;
- __declspec(dllexport) TBool IsNameWild() const;
- __declspec(dllexport) TBool IsExtWild() const;
- protected:
- virtual TDes& NameBuf() = 0;
- virtual const TDesC& NameBufC() const = 0;
- TInt Set(const TDesC* aName,const TDesC* aRelated,const TDesC* aDefault,TBool allowWild);
- private:
- TInt ParseDrive(TLex& aName,TBool& aDone);
- TInt ParsePath(TLex& aName,TBool& aDone);
- TInt ParseName(TLex& aName,TBool& aDone);
- TInt ParseExt(TLex& aName,TBool& aDone);
- protected:
- TInt16 iMod;
- private:
- TInt16 iWild;
- SField iField[EMaxFields];
- };
- class TParsePtr : public TParseBase
- #line 1203
- {
- public:
- __declspec(dllexport) TParsePtr(TDes& aName);
- protected:
- __declspec(dllexport) TDes& NameBuf();
- __declspec(dllexport) const TDesC& NameBufC() const;
- private:
- TPtr iNameBuf;
- };
- class TParsePtrC : public TParseBase
- #line 1235
- {
- public:
- __declspec(dllexport) TParsePtrC(const TDesC& aName);
- protected:
- __declspec(dllexport) TDes& NameBuf();
- __declspec(dllexport) const TDesC& NameBufC() const;
- private:
- TPtrC iNameBuf;
- };
- class TParse : public TParseBase
- #line 1265
- {
- public:
- __declspec(dllexport) TParse();
- __declspec(dllexport) TInt Set(const TDesC& aName,const TDesC* aRelated,const TDesC* aDefault);
- __declspec(dllexport) TInt SetNoWild(const TDesC& aName,const TDesC* aRelated,const TDesC* aDefault);
- protected:
- __declspec(dllexport) TDes& NameBuf();
- __declspec(dllexport) const TDesC& NameBufC() const;
- private:
- TFileName iNameBuf;
- };
- class CDir : public CBase
- #line 1289
- {
- public:
- __declspec(dllexport) virtual ~CDir();
- __declspec(dllexport) TInt Count() const;
- __declspec(dllexport) const TEntry& operator[](TInt anIndex) const;
- __declspec(dllexport) TInt Sort(TUint aEntrySortKey);
- protected:
- __declspec(dllexport) CDir();
- __declspec(dllexport) static CDir* NewL();
- __declspec(dllexport) void AddL(const TEntry& anEntry);
- __declspec(dllexport) void ExtractL(TBool aRemove,CDir*& aDir);
- __declspec(dllexport) void Compress();
- protected:
- CArrayPakFlat<TEntry> * iArray;
- friend class RFs;
- friend class TOpenFileScan;
- };
- class RFs : public RSessionBase
- #line 1380
- {
- public:
- __declspec(dllexport) TInt Connect(TInt aMessageSlots=KFileServerDefaultMessageSlots);
- __declspec(dllexport) TVersion Version() const;
- __declspec(dllexport) TInt AddFileSystem(const TDesC& aFileName) const;
- __declspec(dllexport) TInt MountFileSystem(const TDesC& aFileSystemName,TInt aDrive) const;
- __declspec(dllexport) TInt MountFileSystem(const TDesC& aFileSystemName,TInt aDrive, TBool aIsSync) const;
- __declspec(dllexport) TInt MountFileSystemAndScan(const TDesC& aFileSystemName,TInt aDrive,TBool& aIsMountSuccess) const;
- __declspec(dllexport) TInt MountFileSystem(const TDesC& aFileSystemName,const TDesC& aExtensionName,TInt aDrive);
- __declspec(dllexport) TInt MountFileSystem(const TDesC& aFileSystemName,const TDesC& aExtensionName,TInt aDrive, TBool aIsSync);
- __declspec(dllexport) TInt MountFileSystemAndScan(const TDesC& aFileSystemName,const TDesC& aExtensionName,TInt aDrive,TBool& aIsMountSuccess) const;
- __declspec(dllexport) TInt DismountFileSystem(const TDesC& aFileSystemName,TInt aDrive) const;
- __declspec(dllexport) TInt RemoveFileSystem(const TDesC& aFileSystemName) const;
- __declspec(dllexport) TInt FileSystemName(TDes& aName,TInt aDrive) const;
- __declspec(dllexport) TInt AddExtension(const TDesC& aFileName);
- __declspec(dllexport) TInt MountExtension(const TDesC& aExtensionName,TInt aDrive);
- __declspec(dllexport) TInt DismountExtension(const TDesC& aExtensionName,TInt aDrive);
- __declspec(dllexport) TInt RemoveExtension(const TDesC& aExtensionName);
- __declspec(dllexport) TInt ExtensionName(TDes& aExtensionName,TInt aDrive,TInt aPos);
- __declspec(dllexport) TInt RemountDrive(TInt aDrive,const TDesC8* aMountInfo=0 ,TUint aFlags=0);
- __declspec(dllexport) void NotifyChange(TNotifyType aType,TRequestStatus& aStat);
- __declspec(dllexport) void NotifyChange(TNotifyType aType,TRequestStatus& aStat,const TDesC& aPathName);
- __declspec(dllexport) void NotifyChangeCancel();
- __declspec(dllexport) void NotifyChangeCancel(TRequestStatus& aStat);
- __declspec(dllexport) void NotifyDiskSpace(TInt64 aThreshold,TInt aDrive,TRequestStatus& aStat);
- __declspec(dllexport) void NotifyDiskSpaceCancel(TRequestStatus& aStat);
- __declspec(dllexport) void NotifyDiskSpaceCancel();
- __declspec(dllexport) TInt DriveList(TDriveList& aList) const;
- __declspec(dllexport) TInt Drive(TDriveInfo& anInfo,TInt aDrive=KDefaultDrive) const;
- __declspec(dllexport) TInt Volume(TVolumeInfo& aVol,TInt aDrive=KDefaultDrive) const;
- __declspec(dllexport) TInt SetVolumeLabel(const TDesC& aName,TInt aDrive=KDefaultDrive);
- __declspec(dllexport) TInt Subst(TDes& aPath,TInt aDrive=KDefaultDrive) const;
- __declspec(dllexport) TInt SetSubst(const TDesC& aPath,TInt aDrive=KDefaultDrive);
- __declspec(dllexport) TInt RealName(const TDesC& aName,TDes& aResult) const;
- __declspec(dllexport) TInt GetMediaSerialNumber(TMediaSerialNumber& aSerialNum, TInt aDrive);
- __declspec(dllexport) TInt SessionPath(TDes& aPath) const;
- __declspec(dllexport) TInt SetSessionPath(const TDesC& aPath);
- __declspec(dllexport) TInt Parse(const TDesC& aName,TParse& aParse) const;
- __declspec(dllexport) TInt Parse(const TDesC& aName,const TDesC& aRelated,TParse& aParse) const;
- __declspec(dllexport) TInt MkDir(const TDesC& aPath);
- __declspec(dllexport) TInt MkDirAll(const TDesC& aPath);
- __declspec(dllexport) TInt RmDir(const TDesC& aPath);
- __declspec(dllexport) TInt GetDir(const TDesC& aName,TUint anEntryAttMask,TUint anEntrySortKey,CDir*& anEntryList) const;
- __declspec(dllexport) TInt GetDir(const TDesC& aName,TUint anEntryAttMask,TUint anEntrySortKey,CDir*& anEntryList,CDir*& aDirList) const;
- __declspec(dllexport) TInt GetDir(const TDesC& aName,const TUidType& anEntryUid,TUint anEntrySortKey,CDir*& aFileList) const;
- __declspec(dllexport) TInt Delete(const TDesC& aName);
- __declspec(dllexport) TInt Rename(const TDesC& anOldName,const TDesC& aNewName);
- __declspec(dllexport) TInt Replace(const TDesC& anOldName,const TDesC& aNewName);
- __declspec(dllexport) TInt Att(const TDesC& aName,TUint& aAttValue) const;
- __declspec(dllexport) TInt SetAtt(const TDesC& aName,TUint aSetAttMask,TUint aClearAttMask);
- __declspec(dllexport) TInt Modified(const TDesC& aName,TTime& aTime) const;
- __declspec(dllexport) TInt SetModified(const TDesC& aName,const TTime& aTime);
- __declspec(dllexport) TInt Entry(const TDesC& aName,TEntry& anEntry) const;
- __declspec(dllexport) TInt SetEntry(const TDesC& aName,const TTime& aTime,TUint aSetAttMask,TUint aClearAttMask);
- __declspec(dllexport) TInt ReadFileSection(const TDesC& aName,TInt aPos,TDes8& aDes,TInt aLength) const;
- __declspec(dllexport) static TBool IsValidDrive(TInt aDrive);
- __declspec(dllexport) static TInt CharToDrive(TChar aChar,TInt& aDrive);
- __declspec(dllexport) static TInt DriveToChar(TInt aDrive,TChar& aChar);
- __declspec(dllexport) static TBool IsRomAddress(TAny* aAny);
- __declspec(dllexport) void ResourceCountMarkStart() const;
- __declspec(dllexport) void ResourceCountMarkEnd() const;
- __declspec(dllexport) TInt ResourceCount() const;
- __declspec(dllexport) TInt IsFileOpen(const TDesC& aFile,TBool& anAnswer) const;
- __declspec(dllexport) TInt CheckDisk(const TDesC& aDrive) const;
- __declspec(dllexport) TInt ScanDrive(const TDesC& aDrive) const;
- __declspec(dllexport) TInt GetShortName(const TDesC& aLongName,TDes& aShortName) const;
- __declspec(dllexport) TInt GetLongName(const TDesC& aShortName,TDes& aLongName) const;
- __declspec(dllexport) TBool GetNotifyUser();
- __declspec(dllexport) void SetNotifyUser(TBool aValue);
- __declspec(dllexport) TUint8* IsFileInRom(const TDesC& aFileName) const;
- __declspec(dllexport) TBool IsValidName(const TDesC& anEntryName) const;
- __declspec(dllexport) TBool IsValidName(const TDesC& aFileName,TText& aBadChar) const;
- __declspec(dllexport) TInt GetDriveName(TInt aDrive,TDes& aDriveName) const;
- __declspec(dllexport) TInt SetDriveName(TInt aDrive,const TDesC& aDriveName);
- __declspec(dllexport) TInt LoaderHeapFunction(TInt aFunction, TAny *aArg1=0 , TAny *aArg2=0 );
- __declspec(dllexport) TInt SetErrorCondition(TInt anError,TInt aCount=0);
- __declspec(dllexport) TInt SetDebugRegister(TInt aVal);
- __declspec(dllexport) TInt SetAllocFailure(TInt aAllocNum);
- __declspec(dllexport) void DebugNotify(TInt aDrive,TUint aNotifyType,TRequestStatus& aStat);
- __declspec(dllexport) TInt ControlIo(TInt aDrive,TInt aCommand);
- __declspec(dllexport) TInt ControlIo(TInt aDrive,TInt aCommand,TDes8& aParam1);
- __declspec(dllexport) TInt ControlIo(TInt aDrive,TInt aCommand,TDes8& aParam1,TDes8& aParam2);
- __declspec(dllexport) TInt ControlIo(TInt aDrive,TInt aCommand,TAny* aParam1,TAny* aParam2);
- __declspec(dllexport) TInt LockDrive(TInt aDrv, const TMediaPassword &aOld, const TMediaPassword &aNew, TBool aStr);
- __declspec(dllexport) TInt UnlockDrive(TInt aDrv, const TMediaPassword &Pswd, TBool aStr);
- __declspec(dllexport) TInt ClearPassword(TInt aDrv, const TMediaPassword &aPswd);
- __declspec(dllexport) TInt ErasePassword(TInt aDrv);
- __declspec(dllexport) TInt SetSessionToPrivate(TInt aDrive);
- __declspec(dllexport) TInt PrivatePath(TDes& aPath);
- __declspec(dllexport) TInt CreatePrivatePath(TInt aDrive);
- __declspec(dllexport) void StartupInitComplete(TRequestStatus& aStat);
- __declspec(dllexport) TInt SetLocalDriveMapping(const TDesC8& aMapping);
- __declspec(dllexport) TInt FinaliseDrives();
- __declspec(dllexport) TInt SwapFileSystem(const TDesC& aOldFileSystemName,const TDesC& aNewFileSystemName,TInt aDrive) const;
- __declspec(dllexport) TInt ReserveDriveSpace(TInt aDriveNo, TInt aSpace);
- __declspec(dllexport) TInt GetReserveAccess(TInt aDriveNo);
- __declspec(dllexport) TInt ReleaseReserveAccess(TInt aDriveNo);
- __declspec(dllexport) TInt AddPlugin(const TDesC& aFileName) const;
- __declspec(dllexport) TInt RemovePlugin(const TDesC& aPluginName) const;
- __declspec(dllexport) TInt PluginName(TDes& aPluginName,TInt aDrive,TInt aPos);
- __declspec(dllexport) TInt MountPlugin(const TDesC& aPluginName) const;
- __declspec(dllexport) TInt MountPlugin(const TDesC& aPluginName,TInt aDrive) const;
- __declspec(dllexport) TInt MountPlugin(const TDesC& aPluginName,TInt aDrive, TInt aPos) const;
- __declspec(dllexport) TInt DismountPlugin(const TDesC& aPluginName) const;
- __declspec(dllexport) TInt DismountPlugin(const TDesC& aPluginName,TInt aDrive) const;
- __declspec(dllexport) TInt DismountPlugin(const TDesC& aPluginName,TInt aDrive,TInt aPos) const;
- __declspec(dllexport) void NotifyDismount(TInt aDrive, TRequestStatus& aStat, TNotifyDismountMode aMode=EFsDismountRegisterClient) const;
- __declspec(dllexport) void NotifyDismountCancel(TRequestStatus& aStat) const;
- __declspec(dllexport) void NotifyDismountCancel() const;
- __declspec(dllexport) TInt AllowDismount(TInt aDrive) const;
- __declspec(dllexport) TInt SetStartupConfiguration(TInt aCommand,TAny* aParam1,TAny* aParam2) const;
- private:
- void GetDirL(const TDesC& aMatchName,TUint anEntryAttMask,TUint anEntrySortKey,CDir*& anEntryList,CDir*& aDirList,RDir& aDir) const;
- void GetDirL(const TDesC& aMatchName,TUint anEntryAttMask,TUint anEntrySortKey,CDir*& anEntryList,RDir& aDir) const;
- void GetDirL(const TDesC& aMatchName,const TUidType& aUidType,TUint anEntrySortKey,CDir*& anEntryList,RDir& aDir) const;
- void DoGetDirL(TUint anEntrySortKey,CDir*& anEntryList,RDir& aDir) const;
- TInt GetOpenFileList(TInt& aSessionNum,TInt& aLocalPos,TThreadId& aThreadId,TEntryArray& anArray) const;
- friend class TOpenFileScan;
- };
- #line 1569
- class RFile : public RSubSessionBase
- {
- public:
- __declspec(dllexport) TInt Open(RFs& aFs,const TDesC& aName,TUint aFileMode);
- __declspec(dllexport) void Close();
- __declspec(dllexport) TInt Create(RFs& aFs,const TDesC& aName,TUint aFileMode);
- __declspec(dllexport) TInt Replace(RFs& aFs,const TDesC& aName,TUint aFileMode);
- __declspec(dllexport) TInt Temp(RFs& aFs,const TDesC& aPath,TFileName& aName,TUint aFileMode);
- __declspec(dllexport) TInt Read(TDes8& aDes) const;
- __declspec(dllexport) void Read(TDes8& aDes,TRequestStatus& aStatus) const;
- __declspec(dllexport) TInt Read(TDes8& aDes,TInt aLength) const;
- __declspec(dllexport) void Read(TDes8& aDes,TInt aLength,TRequestStatus& aStatus) const;
- __declspec(dllexport) TInt Read(TInt aPos,TDes8& aDes) const;
- __declspec(dllexport) void Read(TInt aPos,TDes8& aDes,TRequestStatus& aStatus) const;
- __declspec(dllexport) TInt Read(TInt aPos,TDes8& aDes,TInt aLength) const;
- __declspec(dllexport) void Read(TInt aPos,TDes8& aDes,TInt aLength,TRequestStatus& aStatus) const;
- __declspec(dllexport) void ReadCancel(TRequestStatus& aStatus) const;
- __declspec(dllexport) void ReadCancel() const;
- __declspec(dllexport) TInt Write(const TDesC8& aDes);
- __declspec(dllexport) void Write(const TDesC8& aDes,TRequestStatus& aStatus);
- __declspec(dllexport) TInt Write(const TDesC8& aDes,TInt aLength);
- __declspec(dllexport) void Write(const TDesC8& aDes,TInt aLength,TRequestStatus& aStatus);
- __declspec(dllexport) TInt Write(TInt aPos,const TDesC8& aDes);
- __declspec(dllexport) void Write(TInt aPos,const TDesC8& aDes,TRequestStatus& aStatus);
- __declspec(dllexport) TInt Write(TInt aPos,const TDesC8& aDes,TInt aLength);
- __declspec(dllexport) void Write(TInt aPos,const TDesC8& aDes,TInt aLength,TRequestStatus& aStatus);
- __declspec(dllexport) TInt Lock(TInt aPos,TInt aLength) const;
- __declspec(dllexport) TInt UnLock(TInt aPos,TInt aLength) const;
- __declspec(dllexport) TInt Seek(TSeek aMode,TInt& aPos) const;
- __declspec(dllexport) TInt Flush();
- __declspec(dllexport) TInt Size(TInt& aSize) const;
- __declspec(dllexport) TInt SetSize(TInt aSize);
- __declspec(dllexport) TInt Att(TUint& aAttValue) const;
- __declspec(dllexport) TInt SetAtt(TUint aSetAttMask,TUint aClearAttMask);
- __declspec(dllexport) TInt Modified(TTime& aTime) const;
- __declspec(dllexport) TInt SetModified(const TTime& aTime);
- __declspec(dllexport) TInt Set(const TTime& aTime,TUint aSetAttMask,TUint aClearAttMask);
- __declspec(dllexport) TInt ChangeMode(TFileMode aNewMode);
- __declspec(dllexport) TInt Rename(const TDesC& aNewName);
- __declspec(dllexport) TInt Drive(TInt &aDriveNumber, TDriveInfo &aDriveInfo) const;
- __declspec(dllexport) TInt Adopt(RFs& aFs, TInt aHandle);
- __declspec(dllexport) TInt AdoptFromClient(const RMessage2& aMsg, TInt aFsHandleIndex, TInt aFileHandleIndex);
- __declspec(dllexport) TInt AdoptFromServer(TInt aFsHandle, TInt aFileHandle);
- __declspec(dllexport) TInt AdoptFromCreator(TInt aFsIndex, TInt aFileHandleIndex);
- __declspec(dllexport) TInt Name(TDes& aName) const;
- __declspec(dllexport) TInt TransferToServer(TIpcArgs& aIpcArgs, TInt aFsHandleIndex, TInt aFileHandleIndex) const;
- __declspec(dllexport) TInt TransferToClient(const RMessage2& aMsg, TInt aFileHandleIndex) const;
- __declspec(dllexport) TInt TransferToProcess(RProcess& aProcess, TInt aFsHandleIndex, TInt aFileHandleIndex) const;
- __declspec(dllexport) TInt Duplicate(const RFile& aFile, TOwnerType aType=EOwnerProcess);
- __declspec(dllexport) TInt FullName(TDes& aName) const;
- private:
- TInt DuplicateHandle(TInt& aSubSessionHandle) const;
- };
- class RDir : public RSubSessionBase
- #line 1655
- {
- public:
- __declspec(dllexport) TInt Open(RFs& aFs,const TDesC& aMatchName,const TUidType& aUidType);
- __declspec(dllexport) TInt Open(RFs& aFs,const TDesC& aMatchName,TUint anAttMask);
- __declspec(dllexport) void Close();
- __declspec(dllexport) TInt Read(TEntryArray& anArray) const;
- __declspec(dllexport) void Read(TEntryArray& anArray,TRequestStatus& aStatus) const;
- __declspec(dllexport) TInt Read(TEntry& anEntry) const;
- __declspec(dllexport) void Read(TPckg<TEntry>& anEntry,TRequestStatus& aStatus) const;
- };
- class RFormat : public RSubSessionBase
- #line 1681
- {
- public:
- __declspec(dllexport) TInt Open(RFs& aFs,const TDesC& aName,TUint aFormatMode,TInt& aCount);
- __declspec(dllexport) TInt Open(RFs& aFs,const TDesC& aName,TUint aFormatMode,TInt& aCount,const TDesC8& anInfo);
- __declspec(dllexport) void Close();
- __declspec(dllexport) TInt Next(TInt& aStep);
- __declspec(dllexport) void Next(TPckgBuf<TInt>& aStep,TRequestStatus& aStatus);
- };
- class RRawDisk : public RSubSessionBase
- #line 1704
- {
- public:
- __declspec(dllexport) TInt Open(RFs& aFs,TInt aDrive);
- __declspec(dllexport) void Close();
- __declspec(dllexport) TInt Read(TInt64 aPos,TDes8& aDes);
- __declspec(dllexport) TInt Write(TInt64 aPos,TDesC8& aDes);
- private:
- TInt iDrive;
- };
- class CDirStack;
- class CDirScan : public CBase
- #line 1733
- {
- public:
- enum TScanDirection
- {
- EScanUpTree,
- EScanDownTree
- };
- public:
- __declspec(dllexport) static CDirScan* NewL(RFs& aFs);
- __declspec(dllexport) static CDirScan* NewLC(RFs& aFs);
- __declspec(dllexport) ~CDirScan();
- __declspec(dllexport) void SetScanDataL(const TDesC& aMatchName,TUint anEntryAttMask,TUint anEntrySortMask,TScanDirection aScanDir=EScanDownTree);
- __declspec(dllexport) void NextL(CDir*& aDirEntries);
- __declspec(dllexport) TPtrC AbbreviatedPath();
- __declspec(dllexport) TPtrC FullPath();
- protected:
- CDirScan(RFs& aFs);
- private:
- inline RFs& Fs();
- void UpdateAbbreviatedPath();
- void ScanUpTreeL(CDir*& aDirEntries);
- void ScanDownTreeL(CDir*& aDirEntries);
- void GetDirEntriesL(CDir*& aDirEntries);
- private:
- RFs* const iFs;
- TParse iFullPath;
- TPtrC iAbbreviatedPath;
- TInt iAbbreviatedPathPos;
- TUint iEntryAttMask;
- TUint iEntrySortMask;
- TBool iScanning;
- TScanDirection iScanDir;
- CDirStack* iStack;
- };
- enum TFileManError
- #line 1792
- {
- ENoExtraInformation,
- #line 1808
- EInitializationFailed,
- #line 1819
- EScanNextDirectoryFailed,
- ESrcOpenFailed,
- ETrgOpenFailed,
- ENoFilesProcessed
- };
- class MFileManObserver
- #line 1868
- {
- public:
- enum TControl
- {
- EContinue,
- ERetry,
- EAbort,
- ECancel
- };
- public:
- __declspec(dllexport) virtual TControl NotifyFileManStarted();
- __declspec(dllexport) virtual TControl NotifyFileManOperation();
- __declspec(dllexport) virtual TControl NotifyFileManEnded();
- };
- class CFileBase : public CBase
- #line 1919
- {
- public:
- __declspec(dllexport) void SetObserver(MFileManObserver* anObserver);
- public:
- __declspec(dllexport) const TEntry& CurrentEntry();
- __declspec(dllexport) TPtrC AbbreviatedPath();
- __declspec(dllexport) TPtrC FullPath();
- __declspec(dllexport) TInt GetLastError();
- __declspec(dllexport) TFileManError GetMoreInfoAboutError();
- protected:
- __declspec(dllexport) CFileBase(RFs& anFs);
- __declspec(dllexport) void ConstructL();
- __declspec(dllexport) ~CFileBase();
- __declspec(dllexport) void RunL();
- __declspec(dllexport) void RunInSeparateThreadL(TThreadFunction aThreadFunction);
- virtual void CompleteOperationL() {};
- virtual void DoOperationL() = 0;
- protected:
- RFs iFs;
- RFs iFsOld;
- RThread iFManThread;
- RSemaphore iSynchronizer;
- CDirScan* iScanner;
- CDir* iDirList;
- TInt iCurrentEntry;
- TUint iMatchEntry;
- TUint iSwitches;
- TParse iSrcFile;
- MFileManObserver* iObserver;
- TInt iLastError;
- TFileManError iErrorInfo;
- TRequestStatus* iStatus;
- HBufC* iSessionPath;
- TInt iNumberOfFilesProcessed;
- friend void DoFManBaseOperationL(TAny* aPtr);
- friend TInt FManBaseThreadFunction(TAny* aPtr);
- };
- class CFileMan : public CFileBase
- #line 2007
- {
- public:
- enum TAction
- {
- ENone,
- EAttribs,
- ECopy,
- EDelete,
- EMove,
- ERename,
- ERmDir,
- ERenameInvalidEntry,
- ECopyFromHandle,
- };
- #line 2078
- enum TSwitch
- {
- EOverWrite=1,
- ERecurse=2
- };
- public:
- __declspec(dllexport) static CFileMan* NewL(RFs& aFs);
- __declspec(dllexport) static CFileMan* NewL(RFs& aFs,MFileManObserver* anObserver);
- ~CFileMan();
- __declspec(dllexport) TAction CurrentAction();
- __declspec(dllexport) void GetCurrentTarget(TFileName& aFile);
- __declspec(dllexport) void GetCurrentSource(TFileName& aFile);
- __declspec(dllexport) TInt BytesTransferredByCopyStep();
- public:
- __declspec(dllexport) TInt Attribs(const TDesC& aName,TUint aSetMask,TUint aClearMask,const TTime& aTime,TUint aSwitch=0);
- __declspec(dllexport) TInt Attribs(const TDesC& aName,TUint aSetMask,TUint aClearMask,const TTime& aTime,TUint aSwitch,TRequestStatus& aStatus);
- __declspec(dllexport) TInt Copy(const TDesC& anOld,const TDesC& aNew,TUint aSwitch=EOverWrite);
- __declspec(dllexport) TInt Copy(const TDesC& anOld,const TDesC& aNew,TUint aSwitch,TRequestStatus& aStatus);
- __declspec(dllexport) TInt Delete(const TDesC& aName,TUint aSwitch=0);
- __declspec(dllexport) TInt Delete(const TDesC& aName,TUint aSwitch,TRequestStatus& aStatus);
- __declspec(dllexport) TInt Move(const TDesC& anOld,const TDesC& aNew,TUint aSwitch=EOverWrite);
- __declspec(dllexport) TInt Move(const TDesC& anOld,const TDesC& aNew,TUint aSwitch,TRequestStatus& aStatus);
- __declspec(dllexport) TInt Rename(const TDesC& anOld,const TDesC& aNew,TUint aSwitch=EOverWrite);
- __declspec(dllexport) TInt Rename(const TDesC& anOld,const TDesC& aNew,TUint aSwitch,TRequestStatus& aStatus);
- __declspec(dllexport) TInt RmDir(const TDesC& aDirName);
- __declspec(dllexport) TInt RmDir(const TDesC& aDirName,TRequestStatus& aStatus);
- __declspec(dllexport) TInt Copy(const RFile& anOld,const TDesC& aNew,TUint aSwitches=EOverWrite);
- __declspec(dllexport) TInt Copy(const RFile& anOld,const TDesC& aNew,TUint aSwitches,TRequestStatus& aStatus);
- protected:
- CFileMan(RFs& aFs);
- TInt RenameInvalidEntry(const TDesC& anOld,const TDesC& aNew,TUint aSwitch=EOverWrite);
- private:
- void CompleteOperationL();
- void DoOperationL();
- void CheckForDirectory();
- void SetFlags(TBool aOverWrite,TBool aRecurse,TBool aScanDirection,TBool aMoveRename);
- void GetSrcAndTrg(TParse& aSrcName,TFileName& aTrgName);
- void DoSynchronize(TInt aRetVal);
- TInt CheckRenameAllowed(const TDesC& aSrcName,const TDesC& aTrgName);
- private:
- void DoAttribsL();
- void DoCopyOrMoveL();
- void DoDeleteL();
- void DoRenameL();
- void DoRmDirL();
- void DoCopyFromHandleL();
- TInt DoCopy(const RFile& aSrcFile, RFile& aDstFile, TInt& aRet);
- private:
- TParse iTrgFile;
- TAction iAction;
- TUint iSetMask;
- TUint iClearMask;
- TTime iTime;
- TInt iBytesTransferred;
- RFile iSrcFileHandle;
- friend void RenameInvalidEntryL(RFs& aFs,TParse& aSrcFile);
- };
- class TFindFile
- #line 2167
- {
- public:
- __declspec(dllexport) TFindFile(RFs& aFs);
- __declspec(dllexport) TInt FindByPath(const TDesC& aFileName,const TDesC* aPathList);
- __declspec(dllexport) TInt FindByDir(const TDesC& aFileName,const TDesC& aDirPath);
- __declspec(dllexport) TInt Find();
- __declspec(dllexport) TInt FindWildByPath(const TDesC& aFileName,const TDesC* aPathList,CDir*& aDirList);
- __declspec(dllexport) TInt FindWildByDir(const TDesC& aFileName,const TDesC& aDirPath,CDir*& aDir);
- __declspec(dllexport) TInt FindWild(CDir*& aDirList);
- inline const TDesC& File() const;
- private:
- TInt DoFind();
- TInt DoFindByPath(const TDesC& aFileName,const TDesC* aPathList);
- TInt DoFindByDir(const TDesC& aFileName,const TDesC& aDir);
- TInt DoFindInDir();
- TInt DoFindNextInPath();
- TInt DoFindNextInDriveList();
- private:
- RFs* const iFs;
- TParse iFile;
- TInt iPathPos;
- TInt iCurrentDrive;
- TInt iMode;
- const TDesC* iPath;
- TDriveList iDrvList;
- CDir** iDir;
- TUint32 iReserved;
- };
- #line 2208
- typedef CDir CFileList;
- class TOpenFileScan
- #line 2226
- {
- public:
- __declspec(dllexport) TOpenFileScan(RFs& aFs);
- __declspec(dllexport) void NextL(CFileList*& aFileList);
- __declspec(dllexport) TThreadId ThreadId() const;
- private:
- RFs* iFs;
- TThreadId iThreadId;
- TInt iScanPos;
- TInt iEntryListPos;
- };
- class TFileText
- {
- public:
- enum TFileState
- {
- EStartOfFile,
- ENormal,
- EReverse
- };
- public:
- __declspec(dllexport) TFileText();
- __declspec(dllexport) void Set(RFile& aFile);
- __declspec(dllexport) TInt Read(TDes& aDes);
- __declspec(dllexport) TInt Write(const TDesC& aDes);
- __declspec(dllexport) TInt Seek(TSeek aMode);
- private:
- void NextRecord();
- TInt CheckForTerminator(TBool& anAnswer);
- TInt FillBuffer();
- private:
- const TText* iNext;
- const TText* iEnd;
- TFileState iState;
- RFile iFile;
- TBuf8<0x100> iReadBuf;
- };
- #line 2284
- __declspec(dllexport) TBool FileNamesIdentical(const TDesC& aFileName1,const TDesC& aFileName2);
- #line 2294
- class TLocalDriveMappingInfo
- {
- public:
- enum TDrvMapOperation {EWriteMappingsAndSet=0,EWriteMappingsNoSet=1,ESwapIntMappingAndSet=2};
- public:
- TInt iDriveMapping[KMaxLocalDrives];
- TDrvMapOperation iOperation;
- };
- typedef TPckgBuf<TLocalDriveMappingInfo> TLocalDriveMappingInfoBuf;
- class RPlugin : public RSubSessionBase
- {
- public:
- __declspec(dllexport) TInt Open(RFs& aFs, TInt aPos);
- __declspec(dllexport) void Close();
- protected:
- __declspec(dllexport) void DoRequest(TInt aReqNo,TRequestStatus& aStatus) const;
- __declspec(dllexport) void DoRequest(TInt aReqNo,TRequestStatus& aStatus,TDes8& a1) const;
- __declspec(dllexport) void DoRequest(TInt aReqNo,TRequestStatus& aStatus,TDes8& a1,TDes8& a2) const;
- __declspec(dllexport) TInt DoControl(TInt aFunction) const;
- __declspec(dllexport) TInt DoControl(TInt aFunction,TDes8& a1) const;
- __declspec(dllexport) TInt DoControl(TInt aFunction,TDes8& a1,TDes8& a2) const;
- __declspec(dllexport) void DoCancel(TUint aReqMask) const;
- };
- #line 2334
- const TInt KPluginAutoAttach = 0x19;
- #line 2345
- const TInt KPluginAutoLocate = 0xC8;
- const TInt KFileServerUidValue = 0x100039e3;
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\f32file.inl" /* stack depth 7 */
- #line 10
- inline const TUid& TEntry::operator[](TInt anIndex) const
- #line 21
- {return(iType[anIndex]);}
- inline TBool TEntry::IsUidPresent(TUid aUid) const
- #line 37
- {return(iType.IsPresent(aUid));}
- inline TBool TEntry::IsTypeValid() const
- #line 51
- {return(iType.IsValid());}
- inline TUid TEntry::MostDerivedUid() const
- #line 65
- {return(iType.MostDerived());}
- inline TInt EntrySize(const TEntry& anEntry)
- {return(sizeof(TUint)+sizeof(TInt)+sizeof(TTime)+sizeof(TInt)+sizeof(TUidType)+anEntry.iName.Size());}
- inline const TDesC& TFindFile::File() const
- #line 93
- {return iFile.FullName();}
- inline RFs& CDirScan::Fs()
- {return(*iFs);}
- inline TDriveUnit::operator TInt() const
- {return(iDrive);}
- #line 2355 "C:\Symbian\9.1\S60_3rd\epoc32\include\f32file.h" /* stack depth 6 */
- #line 20 "C:\Symbian\9.1\S60_3rd\epoc32\include\fntstore.h" /* stack depth 5 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\gdi.h" /* stack depth 6 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\s32std.h" /* stack depth 7 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\s32strm.h" /* stack depth 8 */
- #line 12
- const TInt KMaxCardinality=0x1fffffff;
- class MStreamBuf;
- class RWriteStream;
- #line 27
- class RReadStream
- {
- public:
- inline RReadStream();
- inline RReadStream(MStreamBuf* aSource);
- inline MStreamBuf* Source();
- inline void Close();
- __declspec(dllexport) void Release();
- __declspec(dllexport) void PushL();
- inline void Pop();
- __declspec(dllexport) void ReadL(TDes8& aDes);
- __declspec(dllexport) void ReadL(TDes8& aDes,TInt aLength);
- __declspec(dllexport) void ReadL(TDes8& aDes,TChar aDelim);
- __declspec(dllexport) void ReadL(TUint8* aPtr,TInt aLength);
- __declspec(dllexport) void ReadL(TInt aLength);
- inline void ReadL(RWriteStream& aStream);
- inline void ReadL(RWriteStream& aStream,TInt aLength);
- __declspec(dllexport) void ReadL(TDes16& aDes);
- __declspec(dllexport) void ReadL(TDes16& aDes,TInt aLength);
- __declspec(dllexport) void ReadL(TDes16& aDes,TChar aDelim);
- __declspec(dllexport) void ReadL(TUint16* aPtr,TInt aLength);
- __declspec(dllexport) TInt8 ReadInt8L();
- __declspec(dllexport) TInt16 ReadInt16L();
- __declspec(dllexport) TInt32 ReadInt32L();
- __declspec(dllexport) TUint8 ReadUint8L();
- __declspec(dllexport) TUint16 ReadUint16L();
- __declspec(dllexport) TUint32 ReadUint32L();
- __declspec(dllexport) TReal32 ReadReal32L() ;
- __declspec(dllexport) TReal64 ReadReal64L() ;
- protected:
- inline void Attach(MStreamBuf* aSource);
- inline void Detach();
- private:
- MStreamBuf* iSrc;
- private:
- friend class RWriteStream;
- };
- template <class T>
- class MExternalizer;
- class TStreamRef;
- #line 82
- class RWriteStream
- {
- public:
- inline RWriteStream();
- inline RWriteStream(const MExternalizer<TStreamRef>& anExter);
- inline RWriteStream(MStreamBuf* aSink);
- inline MStreamBuf* Sink();
- __declspec(dllexport) void Close();
- __declspec(dllexport) void Release();
- __declspec(dllexport) void CommitL();
- __declspec(dllexport) void PushL();
- inline void Pop();
- __declspec(dllexport) void WriteL(const TDesC8& aDes);
- __declspec(dllexport) void WriteL(const TDesC8& aDes,TInt aLength);
- __declspec(dllexport) void WriteL(const TUint8* aPtr,TInt aLength);
- __declspec(dllexport) void WriteL(RReadStream& aStream);
- __declspec(dllexport) void WriteL(RReadStream& aStream,TInt aLength);
- __declspec(dllexport) void WriteL(const TDesC16& aDes);
- __declspec(dllexport) void WriteL(const TDesC16& aDes,TInt aLength);
- __declspec(dllexport) void WriteL(const TUint16* aPtr,TInt aLength);
- __declspec(dllexport) void WriteInt8L(TInt aValue);
- __declspec(dllexport) void WriteInt16L(TInt aValue);
- __declspec(dllexport) void WriteInt32L(TInt32 aValue);
- __declspec(dllexport) void WriteUint8L(TUint aValue);
- __declspec(dllexport) void WriteUint16L(TUint aValue);
- __declspec(dllexport) void WriteUint32L(TUint32 aValue);
- __declspec(dllexport) void WriteReal32L(TReal aValue) ;
- __declspec(dllexport) void WriteReal64L(TReal64 aValue) ;
- protected:
- inline void Attach(MStreamBuf* aSink);
- inline void Detach();
- private:
- __declspec(dllexport) void WriteRefL(TStreamRef aRef);
- private:
- MStreamBuf* iSnk;
- const MExternalizer<TStreamRef> * iExterL;
- private:
- friend class TStreamRef;
- };
- template <class T>
- inline RWriteStream& operator<<(RWriteStream& aStream,const T& anObject);
- template <class T>
- inline RReadStream& operator>>(RReadStream& aStream,T& anObject);
- #line 142
- class TCardinality
- {
- public:
- TCardinality() {}
- inline TCardinality(TInt aCount);
- inline operator TInt() const;
- __declspec(dllexport) void ExternalizeL(RWriteStream& aStream) const;
- __declspec(dllexport) void InternalizeL(RReadStream& aStream);
- private:
- TInt iCount;
- private:
- __declspec(dllexport) static void __DbgChkRange(TInt aCount);
- };
- typedef void (*TExternalizeFunction)(const TAny* aPtr,RWriteStream& aStream);
- typedef void (*TInternalizeFunction)(TAny* aPtr,RReadStream& aStream);
- #line 171
- template <class T>
- class TExternalizer
- {
- public:
- inline void operator()(const T& anObject,RWriteStream& aStream) const;
- inline static TExternalizeFunction Function();
- private:
- static void ExternalizeAsL(const TAny* aPtr,RWriteStream& aStream);
- };
- #line 188
- template<> class TExternalizer<TAny>
- {
- public:
- TExternalizer() {}
- inline TExternalizer(TExternalizeFunction aFunction);
- inline void operator()(const TAny* aPtr,RWriteStream& aStream) const;
- inline TExternalizeFunction Function() const;
- private:
- TExternalizeFunction iFunc;
- };
- template <class T>
- class TInternalizer
- {
- public:
- inline void operator()(T& anObject,RReadStream& aStream) const;
- inline static TInternalizeFunction Function();
- private:
- static void InternalizeAsL(TAny* aPtr,RReadStream& aStream);
- };
- template<> class TInternalizer<TAny>
- {
- public:
- TInternalizer() {}
- inline TInternalizer(TInternalizeFunction aFunction);
- inline void operator()(TAny* aPtr,RReadStream& aStream) const;
- inline TInternalizeFunction Function() const;
- private:
- TInternalizeFunction iFunc;
- };
- #line 258
- template <class T>
- class MExternalizer
- {
- public:
- inline void operator()(const T& anObject,RWriteStream& aStream) const;
- private:
- virtual void ExternalizeL(const T& anObject,RWriteStream& aStream) const=0;
- };
- #line 281
- template <class T>
- class MInternalizer
- {
- public:
- inline void operator()(T& anObject,RReadStream& aStream) const;
- private:
- virtual void InternalizeL(T& anObject,RReadStream& aStream) const=0;
- };
- class TStreamRef
- {
- public:
- inline TStreamRef(const TAny* aPtr,TExternalizeFunction aFunction);
- inline const TAny* Ptr() const;
- inline TExternalizeFunction Function() const;
- inline void ExternalizeL(RWriteStream& aStream) const;
- private:
- const TAny* iPtr;
- TExternalizeFunction iFunc;
- };
- class Externalize
- {
- public:
- class Member {};
- class Function {};
- };
- class Internalize
- {
- public:
- class Member {};
- class Function {};
- };
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\s32strm.inl" /* stack depth 9 */
- inline RReadStream::RReadStream()
- : iSrc(0 )
- {}
- inline RReadStream::RReadStream(MStreamBuf* aSource)
- : iSrc(aSource)
- {}
- inline MStreamBuf* RReadStream::Source()
- #line 32
- {return iSrc;}
- inline void RReadStream::Close()
- {Release();}
- inline void RReadStream::ReadL(RWriteStream& aStream)
- {aStream.WriteL(*this);}
- inline void RReadStream::ReadL(RWriteStream& aStream,TInt aLength)
- {aStream.WriteL(*this,aLength);}
- inline void RReadStream::Pop()
- {CleanupStack::Pop();}
- inline void RReadStream::Attach(MStreamBuf* aSource)
- #line 66
- {iSrc=aSource;}
- inline void RReadStream::Detach()
- {iSrc=0 ;}
- inline RWriteStream::RWriteStream()
- : iSnk(0 ),iExterL(0 )
- {}
- inline RWriteStream::RWriteStream(const MExternalizer<TStreamRef>& anExter)
- : iSnk(0 ),iExterL(&anExter)
- {}
- inline RWriteStream::RWriteStream(MStreamBuf* aSink)
- : iSnk(aSink),iExterL(0 )
- {}
- inline MStreamBuf* RWriteStream::Sink()
- {return iSnk;}
- inline void RWriteStream::Pop()
- {CleanupStack::Pop();}
- inline void RWriteStream::Attach(MStreamBuf* aSink)
- #line 119
- {iSnk=aSink;}
- inline void RWriteStream::Detach()
- {iSnk=0 ;}
- inline TCardinality::TCardinality(TInt aCount)
- :iCount(aCount)
- {
- __DbgChkRange(aCount);
- }
- inline TCardinality::operator TInt() const
- {
- __DbgChkRange(iCount);
- return iCount;
- }
- template <class T>
- inline void TExternalizer<T>::operator()(const T& anObject,RWriteStream& aStream) const
- {aStream<<anObject;}
- template <class T>
- inline TExternalizeFunction TExternalizer<T>::Function()
- {return &ExternalizeAsL;}
- template <class T>
- void TExternalizer<T>::ExternalizeAsL(const TAny* aPtr,RWriteStream& aStream)
- {aStream<<*((const T*)aPtr);}
- inline TExternalizer<TAny>::TExternalizer(TExternalizeFunction aFunction)
- : iFunc(aFunction)
- {}
- inline void TExternalizer<TAny>::operator()(const TAny* aPtr,RWriteStream& aStream) const
- {(*iFunc)(aPtr,aStream);}
- inline TExternalizeFunction TExternalizer<TAny>::Function() const
- {return iFunc;}
- template <class T>
- inline void TInternalizer<T>::operator()(T& anObject,RReadStream& aStream) const
- {aStream>>anObject;}
- template <class T>
- inline TInternalizeFunction TInternalizer<T>::Function()
- {return &InternalizeAsL;}
- template <class T>
- void TInternalizer<T>::InternalizeAsL(TAny* aPtr,RReadStream& aStream)
- {aStream>> *((T*)aPtr);}
- inline TInternalizer<TAny>::TInternalizer(TInternalizeFunction aFunction)
- : iFunc(aFunction)
- {}
- inline void TInternalizer<TAny>::operator()(TAny* aPtr,RReadStream& aStream) const
- {(*iFunc)(aPtr,aStream);}
- inline TInternalizeFunction TInternalizer<TAny>::Function() const
- {return iFunc;}
- template <class T>
- inline void MExternalizer<T>::operator()(const T& anObject,RWriteStream& aStream) const
- {ExternalizeL(anObject,aStream);}
- template <class T>
- inline void MInternalizer<T>::operator()(T& anObject,RReadStream& aStream) const
- {InternalizeL(anObject,aStream);}
- inline TStreamRef::TStreamRef(const TAny* aPtr,TExternalizeFunction aFunction)
- : iPtr(aPtr),iFunc(aFunction)
- {}
- inline const TAny* TStreamRef::Ptr() const
- {return iPtr;}
- inline TExternalizeFunction TStreamRef::Function() const
- {return iFunc;}
- inline void TStreamRef::ExternalizeL(RWriteStream& aStream) const
- {aStream.WriteRefL(*this);}
- __declspec(dllexport) void ExternalizeL(TInt64 anInt64,RWriteStream& aStream);
- __declspec(dllexport) void InternalizeL(TInt64& anInt64,RReadStream& aStream);
- __declspec(dllexport) void ExternalizeL(const TDesC8& aDes8,RWriteStream& aStream);
- __declspec(dllexport) void ExternalizeL(const TDesC16& aDes16,RWriteStream& aStream);
- __declspec(dllexport) void InternalizeL(TDes8& aDes8,RReadStream& aStream);
- __declspec(dllexport) void InternalizeL(TDes16& aDes16,RReadStream& aStream);
- __declspec(dllexport) void ExternalizeL(const TCheckedUid& aUid,RWriteStream& aStream);
- __declspec(dllexport) void InternalizeL(TCheckedUid& aUid,RReadStream& aStream);
- __declspec(dllexport) void ExternalizeL(TPoint aPoint,RWriteStream& aStream);
- __declspec(dllexport) void ExternalizeL(TSize aSize,RWriteStream& aStream);
- __declspec(dllexport) void ExternalizeL(const TRect& aRect,RWriteStream& aStream);
- __declspec(dllexport) void InternalizeL(TPoint& aPoint,RReadStream& aStream);
- __declspec(dllexport) void InternalizeL(TSize& aSize,RReadStream& aStream);
- __declspec(dllexport) void InternalizeL(TRect& aRect,RReadStream& aStream);
- __declspec(dllexport) void ExternalizeL(const CBufBase& aBuf,RWriteStream& aStream);
- __declspec(dllexport) void InternalizeL(CBufBase& aBuf,RReadStream& aStream);
- __declspec(dllexport) void ArrayExternalizeCountL(TInt aCount,RWriteStream& aStream);
- __declspec(dllexport) void DoExternalizeAllL(const CArrayFixBase& anArray,RWriteStream& aStream,TExternalizer<TAny> anExter);
- __declspec(dllexport) TInt ArrayInternalizeCountL(RReadStream& aStream);
- __declspec(dllexport) void DoInternalizeAllL(CArrayFixBase& anArray,RReadStream& aStream,TInternalizer<TAny> anInter);
- template <class T>
- inline void ExternalizeCountL(const CArrayFix<T>& anArray,RWriteStream& aStream)
- {ArrayExternalizeCountL(anArray.Count(),aStream);}
- template <class T>
- inline void ExternalizeAllL(const CArrayFix<T>& anArray,RWriteStream& aStream)
- {DoExternalizeAllL(anArray,aStream,TExternalizer<T>::Function());}
- template <class T>
- void InternalizeCountL(CArrayFix<T>& anArray,RReadStream& aStream)
- {
- TInt n=ArrayInternalizeCountL(aStream);
- anArray.ResizeL(n);
- }
- template <class T>
- inline void InternalizeAllL(CArrayFix<T>& anArray,RReadStream& aStream)
- {DoInternalizeAllL(anArray,aStream,TInternalizer<T>::Function());}
- template <class T>
- void ExternalizeL(const CArrayFix<T>& anArray,RWriteStream& aStream)
- {
- ExternalizeCountL(anArray,aStream);
- ExternalizeAllL(anArray,aStream);
- }
- template <class T>
- void InternalizeL(CArrayFix<T>& anArray,RReadStream& aStream)
- {
- InternalizeCountL(anArray,aStream);
- InternalizeAllL(anArray,aStream);
- }
- template <class T>
- inline void ExternalizeL(const T* aPtr,RWriteStream& aStream)
- {aStream<<TStreamRef(aPtr,TExternalizer<T>::Function());}
- template <class T>
- inline void DoExternalizeL(const T& anObject,RWriteStream& aStream,Externalize::Member)
- {anObject.ExternalizeL(aStream);}
- template <class T>
- inline void DoInternalizeL(T& anObject,RReadStream& aStream,Internalize::Member)
- {anObject.InternalizeL(aStream);}
- template <class T>
- inline void DoExternalizeL(const T& anObject,RWriteStream& aStream,Externalize::Function)
- {ExternalizeL(anObject,aStream);}
- template <class T>
- inline void DoInternalizeL(T& anObject,RReadStream& aStream,Internalize::Function)
- {InternalizeL(anObject,aStream);}
- inline Externalize::Member Externalization(const TAny*)
- {return Externalize::Member();}
- inline Internalize::Member Internalization(TAny*)
- {return Internalize::Member();}
- inline Externalize::Function Externalization(const TDesC8*)
- {return Externalize::Function();}
- inline Externalize::Function Externalization(const TDesC16*)
- {return Externalize::Function();}
- inline Internalize::Function Internalization(TDes8*)
- {return Internalize::Function();}
- inline Internalize::Function Internalization(TDes16*)
- {return Internalize::Function();}
- inline Externalize::Function Externalization(const CBufBase*)
- {return Externalize::Function();}
- inline Externalize::Function Externalization(const CArrayFixBase*)
- {return Externalize::Function();}
- inline Internalize::Function Internalization(CBufBase*)
- {return Internalize::Function();}
- inline Internalize::Function Internalization(CArrayFixBase*)
- {return Internalize::Function();}
- template <class T>
- inline Externalize::Function Externalization(T*const*)
- {return Externalize::Function();}
- template <class T>
- inline RWriteStream& operator<<(RWriteStream& aStream,const T& anObject)
- {DoExternalizeL(anObject,aStream,Externalization(&anObject));return aStream;}
- template <class T>
- inline RReadStream& operator>>(RReadStream& aStream,T& anObject)
- {DoInternalizeL(anObject,aStream,Internalization(&anObject));return aStream;}
- inline RWriteStream& operator<<(RWriteStream& aStream,const TInt8& anInt8)
- {aStream.WriteInt8L(anInt8);return aStream;}
- inline RWriteStream& operator<<(RWriteStream& aStream,const TInt16& anInt16)
- {aStream.WriteInt16L(anInt16);return aStream;}
- inline RWriteStream& operator<<(RWriteStream& aStream,const TInt32& anInt32)
- {aStream.WriteInt32L(anInt32);return aStream;}
- inline RWriteStream& operator<<(RWriteStream& aStream,const TUint8& aUint8)
- {aStream.WriteUint8L(aUint8);return aStream;}
- inline RWriteStream& operator<<(RWriteStream& aStream,const TUint16& aUint16)
- {aStream.WriteUint16L(aUint16);return aStream;}
- inline RWriteStream& operator<<(RWriteStream& aStream,const TUint32& aUint32)
- {aStream.WriteUint32L(aUint32);return aStream;}
- inline RWriteStream& operator<<(RWriteStream& aStream,const TReal32& aReal32)
- {aStream.WriteReal32L(aReal32);return aStream;}
- inline RWriteStream& operator<<(RWriteStream& aStream,const TReal64& aReal64)
- {aStream.WriteReal64L(aReal64);return aStream;}
- inline RReadStream& operator>>(RReadStream& aStream,TInt8& anInt8)
- {anInt8=aStream.ReadInt8L();return aStream;}
- inline RReadStream& operator>>(RReadStream& aStream,TInt16& anInt16)
- {anInt16=aStream.ReadInt16L();return aStream;}
- inline RReadStream& operator>>(RReadStream& aStream,TInt32& anInt32)
- {anInt32=aStream.ReadInt32L();return aStream;}
- inline RReadStream& operator>>(RReadStream& aStream,TUint8& aUint8)
- {aUint8=aStream.ReadUint8L();return aStream;}
- inline RReadStream& operator>>(RReadStream& aStream,TUint16& aUint16)
- {aUint16=aStream.ReadUint16L();return aStream;}
- inline RReadStream& operator>>(RReadStream& aStream,TUint32& aUint32)
- {aUint32=aStream.ReadUint32L();return aStream;}
- inline RReadStream& operator>>(RReadStream& aStream,TReal32& aReal32)
- {aReal32=aStream.ReadReal32L();return aStream;}
- inline RReadStream& operator>>(RReadStream& aStream,TReal64& aReal64)
- {aReal64=aStream.ReadReal64L();return aStream;}
- inline RWriteStream& operator<<(RWriteStream& aStream,const TInt64& anInt64)
- {ExternalizeL(anInt64,aStream);return aStream;}
- inline RReadStream& operator>>(RReadStream& aStream,TInt64& anInt64)
- {InternalizeL(anInt64,aStream);return aStream;}
- inline RWriteStream& operator<<(RWriteStream& aStream,const TUid& aUid)
- {return aStream<<aUid.iUid;}
- inline RWriteStream& operator<<(RWriteStream& aStream,const TCheckedUid& aUid)
- {ExternalizeL(aUid,aStream);return aStream;}
- inline RReadStream& operator>>(RReadStream& aStream,TUid& aUid)
- {return aStream>>aUid.iUid;}
- inline RReadStream& operator>>(RReadStream& aStream,TCheckedUid& aUid)
- {InternalizeL(aUid,aStream);return aStream;}
- inline RWriteStream& operator<<(RWriteStream& aStream,const TPoint& aPoint)
- {ExternalizeL(aPoint,aStream);return aStream;}
- inline RWriteStream& operator<<(RWriteStream& aStream,const TSize& aSize)
- {ExternalizeL(aSize,aStream);return aStream;}
- inline RWriteStream& operator<<(RWriteStream& aStream,const TRect& aRect)
- {ExternalizeL(aRect,aStream);return aStream;}
- inline RReadStream& operator>>(RReadStream& aStream,TPoint& aPoint)
- {InternalizeL(aPoint,aStream);return aStream;}
- inline RReadStream& operator>>(RReadStream& aStream,TSize& aSize)
- {InternalizeL(aSize,aStream);return aStream;}
- inline RReadStream& operator>>(RReadStream& aStream,TRect& aRect)
- {InternalizeL(aRect,aStream);return aStream;}
- inline RWriteStream& operator<<(RWriteStream& aStream,const TStreamRef& aRef)
- {aRef.ExternalizeL(aStream);return aStream;}
- #line 351 "C:\Symbian\9.1\S60_3rd\epoc32\include\s32strm.h" /* stack depth 8 */
- #line 8 "C:\Symbian\9.1\S60_3rd\epoc32\include\s32std.h" /* stack depth 7 */
- const TUint32 KNullStreamIdValue=0;
- const TUint32 KMaxStreamIdValue=0xfffffff;
- const TUint32 KMaskStreamIdValue=0xfffffff;
- const TInt KShiftStreamIdValue=28;
- #line 28
- class TStreamId
- {
- public:
- TStreamId() {}
- inline TStreamId(TUint32 aValue);
- inline TBool operator==(TStreamId anId) const;
- inline TBool operator!=(TStreamId anId) const;
- inline void ExternalizeL(RWriteStream& aStream) const;
- __declspec(dllexport) void InternalizeL(RReadStream& aStream);
- inline TUint32 Value() const;
- private:
- TUint32 iVal;
- private:
- __declspec(dllexport) static void __DbgChkRange(TUint32 aValue);
- };
- class CStreamStore;
- class RStoreReadStream : public RReadStream
- {
- public:
- __declspec(dllexport) void OpenL(const CStreamStore& aStore,TStreamId anId);
- __declspec(dllexport) void OpenLC(const CStreamStore& aStore,TStreamId anId);
- };
- #line 84
- class RStoreWriteStream : public RWriteStream
- {
- public:
- RStoreWriteStream() {}
- inline RStoreWriteStream(const MExternalizer<TStreamRef>& anExter);
- __declspec(dllexport) TStreamId CreateL(CStreamStore& aStore);
- __declspec(dllexport) TStreamId CreateLC(CStreamStore& aStore);
- __declspec(dllexport) void OpenL(CStreamStore& aStore,TStreamId anId);
- __declspec(dllexport) void OpenLC(CStreamStore& aStore,TStreamId anId);
- __declspec(dllexport) void ReplaceL(CStreamStore& aStore,TStreamId anId);
- __declspec(dllexport) void ReplaceLC(CStreamStore& aStore,TStreamId anId);
- __declspec(dllexport) void AppendL(CStreamStore& aStore,TStreamId anId);
- __declspec(dllexport) void AppendLC(CStreamStore& aStore,TStreamId anId);
- };
- #line 115
- class TSwizzleCBase
- {
- public:
- inline TBool operator==(const TSwizzleCBase& aSwizzle) const;
- inline TBool operator==(const TAny* aPtr) const;
- inline TBool operator!=(const TSwizzleCBase& aSwizzle) const;
- inline TBool operator!=(const TAny* aPtr) const;
- inline TBool IsPtr() const;
- inline TBool IsId() const;
- __declspec(dllexport) TStreamId AsId() const;
- __declspec(dllexport) void InternalizeL(RReadStream& aStream);
- protected:
- TSwizzleCBase() {}
- inline TSwizzleCBase(const TAny* aPtr);
- __declspec(dllexport) TSwizzleCBase(TStreamId anId);
- inline TSwizzleCBase(TStreamRef aRef);
- inline const TAny* Ptr() const;
- __declspec(dllexport) void DoExternalizeL(RWriteStream& aStream,TExternalizer<TAny> anExter) const;
- private:
- __declspec(dllexport) static TBool IsPtrRep(const TAny* aPtr);
- __declspec(dllexport) static TBool IsIdRep(const TAny* aPtr);
- private:
- const TAny* iPtr;
- private:
- __declspec(dllexport) static void __DbgChkPtr(const TAny* aPtr);
- __declspec(dllexport) static void __DbgChkRef(TStreamRef aRef);
- };
- inline TBool operator==(const TAny* aPtr,const TSwizzleCBase& aSwizzle);
- inline TBool operator!=(const TAny* aPtr,const TSwizzleCBase& aSwizzle);
- #line 158
- class TSwizzleBase : public TSwizzleCBase
- {
- protected:
- TSwizzleBase() {}
- inline TSwizzleBase(TAny* aPtr);
- inline TSwizzleBase(TStreamId anId);
- inline TAny* Ptr() const;
- };
- #line 184
- template <class T>
- class TSwizzle : public TSwizzleBase
- {
- public:
- TSwizzle() {}
- inline TSwizzle(T* aPtr);
- inline TSwizzle(TStreamId anId);
- inline TSwizzle<T>& operator=(T* aPtr);
- inline T* AsPtr() const;
- inline operator T*() const;
- inline T& operator*() const;
- inline T* operator->() const;
- inline void ExternalizeL(RWriteStream& aStream) const;
- };
- #line 208
- template<> class TSwizzle<TAny> : public TSwizzleBase
- {
- public:
- TSwizzle() {}
- inline TSwizzle(TAny* aPtr);
- inline TSwizzle(TStreamId anId);
- inline TSwizzle(const TSwizzleBase& aSwizzle);
- inline TSwizzle<TAny>& operator=(TAny* aPtr);
- inline TSwizzle<TAny>& operator=(const TSwizzleBase& aSwizzle);
- inline TAny* AsPtr() const;
- inline operator TAny*() const;
- };
- #line 242
- template <class T>
- class TSwizzleC : public TSwizzleCBase
- {
- public:
- TSwizzleC() {}
- inline TSwizzleC(const T* aPtr);
- inline TSwizzleC(TStreamId anId);
- inline TSwizzleC(TSwizzle<T> aSwizzle);
- inline TSwizzleC<T>& operator=(const T* aPtr);
- inline const T* AsPtr() const;
- inline operator const T*() const;
- inline const T& operator*() const;
- inline const T* operator->() const;
- inline void ExternalizeL(RWriteStream& aStream) const;
- };
- template<> class TSwizzleC<TAny> : public TSwizzleCBase
- {
- public:
- TSwizzleC() {}
- inline TSwizzleC(const TAny* aPtr);
- inline TSwizzleC(TStreamId anId);
- inline TSwizzleC(const TSwizzleCBase& aSwizzle);
- inline TSwizzleC(TStreamRef aRef);
- inline TSwizzleC<TAny>& operator=(const TAny* aPtr);
- inline TSwizzleC<TAny>& operator=(const TSwizzleCBase& aSwizzle);
- inline const TAny* AsPtr() const;
- inline operator const TAny*() const;
- };
- #line 296
- class CStoreMap : public CBase,public MExternalizer<TStreamRef>
- {
- public:
- struct TEntry {TSwizzleC<TAny> swizzle;TStreamId id;};
- typedef const TEntry* TIterator;
- public:
- __declspec(dllexport) static CStoreMap* NewL(CStreamStore& aStore);
- __declspec(dllexport) static CStoreMap* NewLC(CStreamStore& aStore);
- __declspec(dllexport) CStoreMap(CStreamStore& aStore);
- __declspec(dllexport) ~CStoreMap();
- __declspec(dllexport) void BindL(TSwizzleC<TAny> aSwizzle,TStreamId anId);
- __declspec(dllexport) void Unbind(TSwizzleC<TAny> aSwizzle);
- __declspec(dllexport) void Forget(TStreamId anId);
- __declspec(dllexport) void Reset();
- __declspec(dllexport) void ResetAndDestroy();
- __declspec(dllexport) TStreamId At(TSwizzleC<TAny> aSwizzle) const;
- __declspec(dllexport) TSwizzleC<TAny> Label(TStreamId anId) const;
- __declspec(dllexport) TIterator Begin() const;
- __declspec(dllexport) TIterator End() const;
- private:
- void ExternalizeL(const TStreamRef& aRef,RWriteStream& aStream) const;
- private:
- CArrayFixFlat<TEntry> iArray;
- TStreamId iFree;
- CStreamStore* iStore;
- };
- #line 343
- class CStreamDictionary : public CBase
- {
- public:
- __declspec(dllexport) static CStreamDictionary* NewL();
- __declspec(dllexport) static CStreamDictionary* NewLC();
- __declspec(dllexport) CStreamDictionary();
- __declspec(dllexport) ~CStreamDictionary();
- __declspec(dllexport) void AssignL(TUid aUid,TStreamId anId);
- __declspec(dllexport) void Remove(TUid aUid);
- __declspec(dllexport) TStreamId At(TUid aUid) const;
- __declspec(dllexport) TBool IsNull() const;
- __declspec(dllexport) void ExternalizeL(RWriteStream& aStream) const;
- __declspec(dllexport) void InternalizeL(RReadStream& aStream);
- private:
- class TEntry
- {
- public:
- TEntry() {}
- inline TEntry(TUid aUid,TStreamId anId);
- void ExternalizeL(RWriteStream& aStream) const;
- void InternalizeL(RReadStream& aStream);
- public:
- TUid iUid;
- TStreamId iId;
- };
- private:
- CArrayFixSeg<TEntry> iArray;
- };
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\s32std.inl" /* stack depth 8 */
- inline TStreamId::TStreamId(TUint32 aValue)
- : iVal(aValue)
- #line 22
- {
- __DbgChkRange(aValue);
- }
- inline TBool TStreamId::operator==(TStreamId anId) const
- {return iVal==anId.iVal;}
- inline TBool TStreamId::operator!=(TStreamId anId) const
- {return iVal!=anId.iVal;}
- inline void TStreamId::ExternalizeL(RWriteStream& aStream) const
- {
- __DbgChkRange(iVal);
- aStream<<iVal;
- }
- inline TUint32 TStreamId::Value() const
- {
- __DbgChkRange(iVal);
- return iVal;
- }
- inline RStoreWriteStream::RStoreWriteStream(const MExternalizer<TStreamRef>& anExter)
- : RWriteStream(anExter)
- {}
- inline TSwizzleCBase::TSwizzleCBase(TStreamRef aRef)
- : iPtr(aRef.Ptr())
- {
- __DbgChkRef(aRef);
- }
- inline TBool TSwizzleCBase::operator==(const TSwizzleCBase& aSwizzle) const
- #line 97
- {return iPtr==aSwizzle.iPtr;}
- inline TBool TSwizzleCBase::operator==(const TAny* aPtr) const
- #line 110
- {return iPtr==aPtr;}
- inline TBool TSwizzleCBase::operator!=(const TSwizzleCBase& aSwizzle) const
- #line 126
- {return iPtr!=aSwizzle.iPtr;}
- inline TBool TSwizzleCBase::operator!=(const TAny* aPtr) const
- #line 139
- {return iPtr!=aPtr;}
- inline TBool TSwizzleCBase::IsPtr() const
- {return IsPtrRep(iPtr);}
- inline TBool TSwizzleCBase::IsId() const
- {return IsIdRep(iPtr);}
- inline TSwizzleCBase::TSwizzleCBase(const TAny* aPtr)
- : iPtr(aPtr)
- {
- __DbgChkPtr(aPtr);
- }
- inline const TAny* TSwizzleCBase::Ptr() const
- {
- __DbgChkPtr(iPtr);
- return iPtr;
- }
- inline TBool operator==(const TAny* aPtr,const TSwizzleCBase& aSwizzle)
- {return aSwizzle==aPtr;}
- inline TBool operator!=(const TAny* aPtr,const TSwizzleCBase& aSwizzle)
- {return aSwizzle!=aPtr;}
- inline TSwizzleBase::TSwizzleBase(TAny* aPtr)
- : TSwizzleCBase(aPtr)
- {}
- inline TSwizzleBase::TSwizzleBase(TStreamId anId)
- : TSwizzleCBase(anId)
- {}
- inline TAny* TSwizzleBase::Ptr() const
- {return (TAny*)TSwizzleCBase::Ptr();}
- template <class T>
- inline TSwizzle<T>::TSwizzle(T* aPtr)
- : TSwizzleBase(aPtr)
- {}
- template <class T>
- inline TSwizzle<T>::TSwizzle(TStreamId anId)
- : TSwizzleBase(anId)
- {}
- template <class T>
- inline TSwizzle<T>& TSwizzle<T>::operator=(T* aPtr)
- {return *this=TSwizzle<T>(aPtr);}
- template <class T>
- inline T* TSwizzle<T>::AsPtr() const
- {return (T*)Ptr();}
- template <class T>
- inline TSwizzle<T>::operator T*() const
- {return AsPtr();}
- template <class T>
- inline T& TSwizzle<T>::operator*() const
- {return *AsPtr();}
- template <class T>
- inline T* TSwizzle<T>::operator->() const
- {return AsPtr();}
- template <class T>
- inline void TSwizzle<T>::ExternalizeL(RWriteStream& aStream) const
- #line 252
- {TSwizzleBase::DoExternalizeL(aStream,TExternalizer<T>::Function());}
- inline TSwizzle<TAny>::TSwizzle(TAny* aPtr)
- : TSwizzleBase(aPtr)
- {}
- inline TSwizzle<TAny>::TSwizzle(TStreamId anId)
- : TSwizzleBase(anId)
- {}
- inline TSwizzle<TAny>::TSwizzle(const TSwizzleBase& aSwizzle)
- : TSwizzleBase(aSwizzle)
- {}
- inline TSwizzle<TAny>& TSwizzle<TAny>::operator=(TAny* aPtr)
- {return *this=TSwizzle<TAny>(aPtr);}
- inline TSwizzle<TAny>& TSwizzle<TAny>::operator=(const TSwizzleBase& aSwizzle)
- {return *this=TSwizzle<TAny>(aSwizzle);}
- inline TAny* TSwizzle<TAny>::AsPtr() const
- {return Ptr();}
- inline TSwizzle<TAny>::operator TAny*() const
- {return AsPtr();}
- template <class T>
- inline TSwizzleC<T>::TSwizzleC(const T* aPtr)
- : TSwizzleCBase(aPtr)
- {}
- template <class T>
- inline TSwizzleC<T>::TSwizzleC(TStreamId anId)
- : TSwizzleCBase(anId)
- {}
- template <class T>
- inline TSwizzleC<T>::TSwizzleC(TSwizzle<T> aSwizzle)
- : TSwizzleCBase(aSwizzle)
- #line 328
- {}
- template <class T>
- inline TSwizzleC<T>& TSwizzleC<T>::operator=(const T* aPtr)
- {return *this=TSwizzleC<T>(aPtr);}
- template <class T>
- inline const T* TSwizzleC<T>::AsPtr() const
- #line 350
- {return (const T*)Ptr();}
- template <class T>
- inline TSwizzleC<T>::operator const T*() const
- {return AsPtr();}
- template <class T>
- inline const T& TSwizzleC<T>::operator*() const
- {return *AsPtr();}
- template <class T>
- inline const T* TSwizzleC<T>::operator->() const
- #line 373
- {return AsPtr();}
- template <class T>
- inline void TSwizzleC<T>::ExternalizeL(RWriteStream& aStream) const
- #line 393
- {TSwizzleCBase::DoExternalizeL(aStream,TExternalizer<T>::Function());}
- inline TSwizzleC<TAny>::TSwizzleC(const TAny* aPtr)
- : TSwizzleCBase(aPtr)
- {}
- inline TSwizzleC<TAny>::TSwizzleC(TStreamId anId)
- : TSwizzleCBase(anId)
- {}
- inline TSwizzleC<TAny>::TSwizzleC(const TSwizzleCBase& aSwizzle)
- : TSwizzleCBase(aSwizzle)
- {}
- inline TSwizzleC<TAny>::TSwizzleC(TStreamRef aRef)
- : TSwizzleCBase(aRef)
- {}
- inline TSwizzleC<TAny>& TSwizzleC<TAny>::operator=(const TAny* aPtr)
- {return *this=TSwizzleC<TAny>(aPtr);}
- inline TSwizzleC<TAny>& TSwizzleC<TAny>::operator=(const TSwizzleCBase& aSwizzle)
- {return *this=TSwizzleC<TAny>(aSwizzle);}
- inline const TAny* TSwizzleC<TAny>::AsPtr() const
- {return Ptr();}
- inline TSwizzleC<TAny>::operator const TAny*() const
- {return AsPtr();}
- #line 375 "C:\Symbian\9.1\S60_3rd\epoc32\include\s32std.h" /* stack depth 7 */
- #line 21 "C:\Symbian\9.1\S60_3rd\epoc32\include\gdi.h" /* stack depth 6 */
- const TInt KDefaultScreenNo = 0;
- class TOpenFontCharMetrics;
- const TInt KTwipsPerInch=1440;
- const TInt KTwipsPerPoint=20;
- const TInt KPointsPerInch=72;
- const TInt KTwipsPerCm=567;
- #line 131
- enum TGdiPanic
- {
- EGdiPanic_Unknown = 0,
- EGdiPanic_InvalidInputParam = 1,
- EGdiPanic_OutOfText = 2,
- EGdiPanic_Invariant = 3
- };
- #line 178
- class TRgb
- {
- public:
- inline TRgb();
- inline TRgb(TUint32 aValue);
- inline TRgb(TUint32 aInternalValue, TInt aAlpha);
- inline TRgb(TInt aRed,TInt aGreen,TInt aBlue);
- inline TRgb(TInt aRed, TInt aGreen, TInt aBlue, TInt aAlpha);
- inline TInt Red() const;
- inline TInt Green() const;
- inline TInt Blue() const;
- inline TInt Alpha() const;
- __declspec(dllexport) void SetRed(TInt aRed);
- __declspec(dllexport) void SetGreen(TInt aGreen);
- __declspec(dllexport) void SetBlue(TInt aBlue);
- __declspec(dllexport) void SetAlpha(TInt aAlpha);
- __declspec(dllexport) static TRgb Gray2(TInt aGray2);
- __declspec(dllexport) static TRgb Gray4(TInt aGray4);
- __declspec(dllexport) static TRgb Gray16(TInt aGray16);
- __declspec(dllexport) static TRgb Gray256(TInt aGray256);
- __declspec(dllexport) static TRgb Color16(TInt aColor16);
- __declspec(dllexport) static TRgb Color256(TInt aColor256);
- __declspec(dllexport) static TRgb Color4K(TInt aColor4K);
- __declspec(dllexport) static TRgb Color64K(TInt aColor64K);
- __declspec(dllexport) static TRgb Color16M(TInt aColor16M);
- __declspec(dllexport) TInt Gray2() const;
- __declspec(dllexport) TInt Gray4() const;
- __declspec(dllexport) TInt Gray16() const;
- __declspec(dllexport) TInt Gray256() const;
- __declspec(dllexport) TInt Color16() const;
- __declspec(dllexport) TInt Color256() const;
- __declspec(dllexport) TInt Color4K() const;
- __declspec(dllexport) TInt Color64K() const;
- __declspec(dllexport) TInt Color16M() const;
- inline TBool operator==(const TRgb& aColor) const;
- inline TBool operator!=(const TRgb& aColor) const;
- inline TRgb operator~() const;
- inline TRgb operator&(const TRgb& aColor);
- inline TRgb operator|(const TRgb& aColor);
- inline TRgb operator^(const TRgb& aColor);
- inline TRgb& operator&=(const TRgb& aColor);
- inline TRgb& operator|=(const TRgb& aColor);
- inline TRgb& operator^=(const TRgb& aColor);
- inline TUint32 Value() const;
- inline TUint32 Internal() const;
- inline void SetInternal(TUint32 aInternal);
- __declspec(dllexport) TInt Difference(const TRgb& aColor) const;
- __declspec(dllexport) void InternalizeL(RReadStream& aStream);
- __declspec(dllexport) void ExternalizeL(RWriteStream& aStream) const;
- __declspec(dllexport) static TRgb Color16MU(TInt a0RGB);
- __declspec(dllexport) TInt Color16MU() const;
- __declspec(dllexport) static TRgb Color16MA(TUint aARGB);
- __declspec(dllexport) TUint Color16MA() const;
- inline TInt _Gray2() const;
- inline TInt _Gray4() const;
- inline TInt _Gray16() const;
- inline TInt _Gray256() const;
- inline TInt _Color4K() const;
- inline TInt _Color64K() const;
- inline TInt _Color16M() const;
- inline TInt _Color16MU() const;
- inline TUint _Color16MA() const;
- inline static TRgb _Gray2(TInt aGray2);
- inline static TRgb _Gray4(TInt aGray4);
- inline static TRgb _Gray16(TInt aGray16);
- inline static TRgb _Gray256(TInt aGray256);
- inline static TRgb _Color4K(TInt aColor4K);
- inline static TRgb _Color64K(TInt aColor64K);
- inline static TRgb _Color16M(TInt aColor16M);
- inline static TRgb _Color16MU(TInt a0RGB);
- inline static TRgb _Color16MA(TUint aARGB);
- private:
- TUint32 iValue;
- };
- #line 279
- enum TDisplayMode
- {
- ENone,
- EGray2,
- EGray4,
- EGray16,
- EGray256,
- EColor16,
- EColor256,
- EColor64K,
- EColor16M,
- ERgb,
- EColor4K,
- EColor16MU,
- EColor16MA,
- EColorLast
- };
- class TDisplayModeUtils
- {
- public:
- __declspec(dllexport) static TBool IsDisplayModeColor(TDisplayMode aDispMode);
- __declspec(dllexport) static TInt NumDisplayModeColors(TDisplayMode aDispMode);
- __declspec(dllexport) static TInt NumDisplayModeBitsPerPixel(TDisplayMode aDispMode);
- };
- #line 351
- class CPalette : public CBase
- {
- public:
- __declspec(dllexport) static CPalette* NewL(TInt aNumberOfEntries);
- __declspec(dllexport) static CPalette* NewDefaultL(TDisplayMode aDispMode);
- __declspec(dllexport) ~CPalette();
- __declspec(dllexport) void Clear();
- inline TInt Entries() const;
- __declspec(dllexport) TRgb GetEntry(TInt aPaletteIndex) const;
- __declspec(dllexport) TRgb NearestEntry(const TRgb& aColor) const;
- __declspec(dllexport) TInt NearestIndex(const TRgb& aColor) const;
- __declspec(dllexport) void SetEntry(TInt aPaletteIndex,const TRgb& aPaletteEntry);
- __declspec(dllexport) void GetDataPtr(TInt aFirstColor,TInt aNumColors,TPtr8& aPtr);
- protected:
- __declspec(dllexport) CPalette();
- void ConstructL(TInt aNumberOfEntries);
- protected:
- TRgb* iArray;
- TInt iNumEntries;
- };
- class TColor256Util
- {
- public:
- __declspec(dllexport) void Construct(const CPalette& aPalette);
- __declspec(dllexport) TInt Color256(TRgb aRgb) const;
- __declspec(dllexport) void Color256(TUint8* aDestination,const TRgb* aSource,TInt aNumPixels) const;
- inline TRgb Color256(TInt aColor256) const;
- __declspec(dllexport) static const TColor256Util* Default();
- public:
- TUint32 iColorTable[256];
- #line 404
- TUint8 iInverseColorTable[0x1000];
- };
- #line 419
- class TLinearDDA
- {
- public:
- enum TLineMode
- {
- ECenter,
- ELeft
- };
- public:
- __declspec(dllexport) TLinearDDA();
- __declspec(dllexport) TLinearDDA(const TLinearDDA& aLine);
- __declspec(dllexport) void Construct(const TPoint& aStart,const TPoint& aFinish,TLineMode aMode=ECenter);
- __declspec(dllexport) TBool SingleStep(TPoint& aPosition);
- __declspec(dllexport) TBool SingleScanline(TPoint& aStartPosition,TPoint& aEndPosition);
- __declspec(dllexport) TBool NextStep(TPoint& aPosition);
- __declspec(dllexport) void JumpToRect(const TRect& aRect);
- __declspec(dllexport) void JumpToXCoord(const TInt aXCoord,TInt& aYCoord);
- __declspec(dllexport) void JumpToYCoord(TInt& aXCoord,const TInt aYCoord);
- private:
- void UpdatePosition();
- private:
- enum TLineStatus
- {
- EInitialised,
- ECurrent,
- EComplete
- };
- private:
- TInt iCount;
- TSize iDifference;
- TPoint iFinish;
- TInt iGradient;
- TPoint iInc;
- TPoint iPos;
- TPoint iStart;
- TRect iBoundingRect;
- TBool iBoundingRectSet;
- TBool iInside;
- TLineStatus iStatus;
- };
- #line 471
- enum TFontPosture
- {
- EPostureUpright,
- EPostureItalic
- };
- enum TFontStrokeWeight
- {
- EStrokeWeightNormal,
- EStrokeWeightBold
- };
- enum TFontPrintPosition
- {
- EPrintPosNormal,
- EPrintPosSuperscript,
- EPrintPosSubscript
- };
- enum TFontUnderline
- {
- EUnderlineOff,
- EUnderlineOn
- };
- enum TFontStrikethrough
- {
- EStrikethroughOff,
- EStrikethroughOn
- };
- const TInt KMaxTypefaceNameLength=0x18;
- #line 556
- class TTypeface
- {
- public:
- enum
- {
- EProportional=1,
- ESerif=2,
- ESymbol=4
- };
- public:
- __declspec(dllexport) TTypeface();
- __declspec(dllexport) TBool operator==(const TTypeface& aTypeface) const;
- __declspec(dllexport) void InternalizeL(RReadStream& aStream);
- __declspec(dllexport) void ExternalizeL(RWriteStream& aStream) const;
- __declspec(dllexport) void SetAttributes(TInt aMask);
- __declspec(dllexport) void SetIsProportional(TBool aIsProportional);
- __declspec(dllexport) void SetIsSerif(TBool aIsSerif);
- __declspec(dllexport) void SetIsSymbol(TBool aIsSymbol);
- __declspec(dllexport) TInt Attributes() const;
- __declspec(dllexport) TBool IsProportional() const;
- __declspec(dllexport) TBool IsSerif() const;
- __declspec(dllexport) TBool IsSymbol() const;
- public:
- TBufC<KMaxTypefaceNameLength> iName;
- private:
- TUint32 iFlags;
- };
- #line 600
- enum TGlyphBitmapType
- {
- EDefaultGlyphBitmap = 0,
- EMonochromeGlyphBitmap,
- EAntiAliasedGlyphBitmap
- };
- #line 618
- class FontEffect
- {
- public:
- enum TEffect
- {
- ENone = 0x0,
- EAlgorithmicBold= 0x10,
- EDropShadow = 0x20,
- EOutline = 0x40,
- EEmbossed = 0x80,
- EEngraved = 0x100,
- ESoftEdge = 0x200,
- EUserDefined1 = 0x400,
- EUserDefined2 = 0x800,
- EUserDefined3 = 0x1000,
- EUserDefined4 = 0x2000,
- EUserDefined5 = 0x4000,
- EUserDefined6 = 0x8000,
- };
- public:
- __declspec(dllexport) static TBool IsEffectOn(TEffect aEffect, TUint32 aFontEffect);
- __declspec(dllexport) static void SetEffect(TEffect aEffect, TBool aOn, TUint32& aFontEffect);
- };
- #line 661
- class TFontStyle
- {
- public:
- __declspec(dllexport) TFontStyle();
- __declspec(dllexport) TFontStyle(TFontPosture aPost,TFontStrokeWeight aStrWgt,TFontPrintPosition aPrintPos);
- __declspec(dllexport) void InternalizeL(RReadStream& aStream);
- __declspec(dllexport) void ExternalizeL(RWriteStream& aStream) const;
- __declspec(dllexport) TFontPosture Posture() const;
- __declspec(dllexport) TFontStrokeWeight StrokeWeight() const;
- __declspec(dllexport) TFontPrintPosition PrintPosition() const;
- __declspec(dllexport) void SetPosture(TFontPosture aPosture);
- __declspec(dllexport) void SetStrokeWeight(TFontStrokeWeight aStrokeWeight);
- __declspec(dllexport) void SetPrintPosition(TFontPrintPosition aPrintPosition);
- inline TGlyphBitmapType BitmapType() const;
- inline void SetBitmapType(TGlyphBitmapType aBitmapType);
- inline TBool operator==(const TFontStyle& aFontStyle) const;
- __declspec(dllexport) TUint32 Effects() const;
- __declspec(dllexport) TBool IsEffectOn(FontEffect::TEffect aEffect) const;
- __declspec(dllexport) void SetEffects(TUint32 aEffects);
- __declspec(dllexport) void SetEffects(FontEffect::TEffect aEffect, TBool aOn);
- private:
- enum
- {
- EItalic=0x1,
- EBold=0x2,
- ESuper=0x4,
- ESub=0x8
- };
- private:
- TUint32 iFlags;
- TAny* iReserved1;
- TAny* iReserved2;
- };
- #line 703
- class TFontSpec
- {
- public:
- __declspec(dllexport) TFontSpec();
- __declspec(dllexport) TFontSpec(const TDesC& aTypefaceName,TInt aHeight);
- __declspec(dllexport) TBool operator==(const TFontSpec& aFontSpec) const;
- __declspec(dllexport) void InternalizeL(RReadStream& aStream);
- __declspec(dllexport) void ExternalizeL(RWriteStream& aStream) const;
- public:
- TTypeface iTypeface;
- TInt iHeight;
- TFontStyle iFontStyle;
- };
- #line 731
- class TTypefaceSupport
- {
- public:
- TTypeface iTypeface;
- TInt iNumHeights;
- TInt iMinHeightInTwips;
- TInt iMaxHeightInTwips;
- TBool iIsScalable;
- };
- const TInt KSuperSubScalingPercentage=67;
- const TInt KSuperscriptOffsetPercentage=-28;
- const TInt KSubscriptOffsetPercentage=14;
- class CFont;
- #line 783
- class CTypefaceStore : public CBase
- {
- public:
- __declspec(dllexport) ~CTypefaceStore();
- #line 801
- virtual TInt GetNearestFontInTwips(CFont*& aFont, const TFontSpec& aFontSpec) = 0;
- #line 815
- virtual TInt GetNearestFontToDesignHeightInTwips(CFont*& aFont, const TFontSpec& aFontSpec) = 0;
- #line 836
- virtual TInt GetNearestFontToMaxHeightInTwips(CFont*& aFont, const TFontSpec& aFontSpec, TInt aMaxHeight) = 0;
- virtual TInt NumTypefaces() const=0;
- #line 854
- virtual void TypefaceSupport(TTypefaceSupport& aTypefaceSupport,TInt aTypefaceIndex) const=0;
- #line 865
- virtual TInt FontHeightInTwips(TInt aTypefaceIndex,TInt aHeightIndex) const=0;
- __declspec(dllexport) void ReleaseFont(CFont* aFont);
- __declspec(dllexport) static TInt BaselineOffset(TInt aHeight,TFontPrintPosition aPos);
- __declspec(dllexport) static TInt SuperSubHeight(TInt aHeight,TFontPrintPosition aPos);
- protected:
- __declspec(dllexport) CTypefaceStore();
- __declspec(dllexport) void ConstructL();
- __declspec(dllexport) void AddFontL(CFont* aFont);
- protected:
- class TFontAccess
- {
- public:
- CFont* iFont;
- TInt iAccessCount;
- };
- protected:
- #line 896
- CArrayFixFlat<TFontAccess> * iFontAccess;
- };
- const TInt KMaxFontCacheEntries=32;
- #line 919
- class CFontCache : public CBase
- {
- public:
- __declspec(dllexport) CFontCache();
- __declspec(dllexport) CFontCache(TInt aMaxEntries);
- __declspec(dllexport) ~CFontCache();
- __declspec(dllexport) CFont* Search(const TFontSpec& aFontSpec);
- __declspec(dllexport) CFont* AddEntryL(CFont* aFont,const TFontSpec& aFontSpec);
- __declspec(dllexport) CFont* RemoveFirstEntry();
- public:
- TInt iNumHits;
- TInt iNumMisses;
- private:
- class CFontCacheEntry : public CBase
- {
- public:
- CFontCacheEntry(CFont* aFont,const TFontSpec& aFontSpec,CFontCacheEntry* aNext);
- public:
- CFont* iFont;
- TFontSpec iSpec;
- CFontCacheEntry* iNext;
- };
- private:
- TInt iNumEntries;
- TInt iMaxEntries;
- CFontCacheEntry* iFirst;
- };
- #line 960
- class MGraphicsDeviceMap
- {
- public:
- __declspec(dllexport) MGraphicsDeviceMap();
- __declspec(dllexport) virtual ~MGraphicsDeviceMap();
- __declspec(dllexport) TPoint TwipsToPixels(const TPoint& aTwipPoint) const;
- __declspec(dllexport) TRect TwipsToPixels(const TRect& aTwipRect) const;
- __declspec(dllexport) TPoint PixelsToTwips(const TPoint& aPixelPoint) const;
- __declspec(dllexport) TRect PixelsToTwips(const TRect& aPixelRect) const;
- virtual TInt HorizontalTwipsToPixels(TInt aTwips) const=0;
- virtual TInt VerticalTwipsToPixels(TInt aTwips) const=0;
- virtual TInt HorizontalPixelsToTwips(TInt aPixels) const=0;
- virtual TInt VerticalPixelsToTwips(TInt aPixels) const=0;
- #line 1016
- virtual TInt GetNearestFontInTwips(CFont*& aFont,const TFontSpec& aFontSpec)=0;
- #line 1034
- virtual TInt GetNearestFontToDesignHeightInTwips(CFont*& , const TFontSpec& ){return 0;}
- #line 1056
- virtual TInt GetNearestFontToMaxHeightInTwips(CFont*& , const TFontSpec& , TInt ){return 0;}
- #line 1068
- virtual void ReleaseFont(CFont* aFont)=0;
- };
- class CGraphicsContext;
- #line 1083
- class CGraphicsDevice : public CBase , public MGraphicsDeviceMap
- {
- public:
- virtual TDisplayMode DisplayMode() const=0;
- virtual TSize SizeInPixels() const=0;
- virtual TSize SizeInTwips() const=0;
- virtual TInt CreateContext(CGraphicsContext*& aGC)=0;
- virtual TInt NumTypefaces() const=0;
- #line 1129
- virtual void TypefaceSupport(TTypefaceSupport& aTypefaceSupport,TInt aTypefaceIndex) const=0;
- #line 1143
- virtual TInt FontHeightInTwips(TInt aTypefaceIndex,TInt aHeightIndex) const=0;
- virtual void PaletteAttributes(TBool& aModifiable,TInt& aNumEntries) const=0;
- virtual void SetPalette(CPalette* aPalette)=0;
- virtual TInt GetPalette(CPalette*& aPalette) const=0;
- };
- #line 1175
- class TCodeSection
- {
- public:
- TInt iStart;
- TInt iEnd;
- };
- const TUid KFontCapitalAscent = {0x1020498E};
- const TUid KFontMaxAscent = {0x10204B10};
- const TUid KFontStandardDescent = {0x10204B11};
- const TUid KFontMaxDescent = {0x10205AFC};
- const TUid KFontLineGap = {0x10204B12};
- #line 1209
- class CFont : public CBase
- {
- friend class CTypefaceStore;
- public:
- #line 1221
- enum TTextDirection
- {
- EHorizontal,
- EVertical
- };
- #line 1240
- class TPositionParam
- {
- public:
- TPositionParam():
- iDirection(EHorizontal),
- iFlags(0),
- iPosInText(0),
- iOutputGlyphs(0)
- {
- }
- enum
- {
- EMaxInputChars = 18,
- EMaxOutputGlyphs = 8
- };
- enum TFlags
- {
- EFLogicalOrder = 1
- };
- TInt16 iDirection;
- TUint16 iFlags;
- TPtrC iText;
- TInt iPosInText;
- TPoint iPen;
- class TOutput