S60UIExampledocument.inc
上传用户:laixiong
上传日期:2007-03-11
资源大小:2994k
文件大小:1147k
源码类别:
Symbian
开发平台:
C/C++
- template <class T>
- inline TInt CArrayVar<T>::FindIsq(const T &aRef,TKeyArrayVar &aKey,TInt &anIndex) const
- #line 1565
- {return(CArrayVarBase::FindIsq(&aRef,aKey,anIndex));}
- template <class T>
- inline void CArrayVar<T>::InsertL(TInt anIndex,const T &aRef,TInt aLength)
- #line 1595
- {CArrayVarBase::InsertL(anIndex,&aRef,aLength);}
- template <class T>
- inline TInt CArrayVar<T>::InsertIsqL(const T &aRef,TInt aLength,TKeyArrayVar &aKey)
- #line 1628
- {return(CArrayVarBase::InsertIsqL(&aRef,aLength,aKey));}
- template <class T>
- inline TInt CArrayVar<T>::InsertIsqAllowDuplicatesL(const T &aRef,TInt aLength,TKeyArrayVar &aKey)
- #line 1658
- {return(CArrayVarBase::InsertIsqAllowDuplicatesL(&aRef,aLength,aKey));}
- template <class T>
- inline const TArray<T> CArrayVar<T>::Array() const
- {return(TArray<T>(CountR,AtR,this));}
- inline const TAny *CArrayVar<TAny>::At(TInt anIndex) const
- #line 1692
- {return(CArrayVarBase::At(anIndex));}
- inline CArrayVar<TAny>::CArrayVar(TBufRep aRep,TInt aGranularity)
- : CArrayVarBase(aRep,aGranularity)
- #line 1714
- {}
- inline TAny *CArrayVar<TAny>::At(TInt anIndex)
- #line 1736
- {return(CArrayVarBase::At(anIndex));}
- inline void CArrayVar<TAny>::AppendL(const TAny *aPtr,TInt aLength)
- {CArrayVarBase::InsertL(Count(),aPtr,aLength);}
- inline TAny *CArrayVar<TAny>::ExtendL(TInt aLength)
- #line 1773
- {return(CArrayVarBase::ExpandL(Count(),aLength));}
- template <class T>
- inline CArrayVarFlat<T>::CArrayVarFlat(TInt aGranularity)
- : CArrayVar<T>((TBufRep)CBufFlat::NewL,aGranularity)
- #line 1791
- {}
- template <class T>
- inline CArrayVarSeg<T>::CArrayVarSeg(TInt aGranularity)
- : CArrayVar<T>((TBufRep)CBufSeg::NewL,aGranularity)
- #line 1809
- {}
- inline TInt CArrayPakBase::Count() const
- {return(iCount);}
- template <class T>
- inline CArrayPak<T>::CArrayPak(TBufRep aRep,TInt aGranularity)
- : CArrayPakBase(aRep,aGranularity)
- {}
- template <class T>
- inline const T &CArrayPak<T>::operator[](TInt anIndex) const
- #line 1857
- {return(*((const T *)CArrayPakBase::At(anIndex)));}
- template <class T>
- inline T &CArrayPak<T>::operator[](TInt anIndex)
- #line 1881
- {return(*((T *)CArrayPakBase::At(anIndex)));}
- template <class T>
- inline const T &CArrayPak<T>::At(TInt anIndex) const
- #line 1905
- {return(*((const T *)CArrayPakBase::At(anIndex)));}
- template <class T>
- inline T &CArrayPak<T>::At(TInt anIndex)
- #line 1929
- {return(*((T *)CArrayPakBase::At(anIndex)));}
- template <class T>
- inline void CArrayPak<T>::AppendL(const T &aRef,TInt aLength)
- #line 1948
- {CArrayPakBase::InsertL(Count(),&aRef,aLength);}
- template <class T>
- inline T &CArrayPak<T>::ExpandL(TInt anIndex,TInt aLength)
- #line 1988
- {return(*new(CArrayPakBase::ExpandL(anIndex,aLength)) T);}
- template <class T>
- inline T &CArrayPak<T>::ExtendL(TInt aLength)
- #line 2021
- {return(*new(CArrayPakBase::ExpandL(Count(),aLength)) T);}
- template <class T>
- inline TInt CArrayPak<T>::Find(const T &aRef,TKeyArrayPak &aKey,TInt &anIndex) const
- #line 2051
- {return(CArrayPakBase::Find(&aRef,aKey,anIndex));}
- template <class T>
- inline TInt CArrayPak<T>::FindIsq(const T &aRef,TKeyArrayPak &aKey,TInt &anIndex) const
- #line 2088
- {return(CArrayPakBase::FindIsq(&aRef,aKey,anIndex));}
- template <class T>
- inline void CArrayPak<T>::InsertL(TInt anIndex,const T &aRef,TInt aLength)
- #line 2114
- {CArrayPakBase::InsertL(anIndex,&aRef,aLength);}
- template <class T>
- inline TInt CArrayPak<T>::InsertIsqL(const T &aRef,TInt aLength,TKeyArrayPak &aKey)
- #line 2146
- {return(CArrayPakBase::InsertIsqL(&aRef,aLength,aKey));}
- template <class T>
- inline TInt CArrayPak<T>::InsertIsqAllowDuplicatesL(const T &aRef,TInt aLength,TKeyArrayPak &aKey)
- #line 2175
- {return(CArrayPakBase::InsertIsqAllowDuplicatesL(&aRef,aLength,aKey));}
- template <class T>
- inline const TArray<T> CArrayPak<T>::Array() const
- {return(TArray<T>(CountR,AtR,this));}
- inline CArrayPak<TAny>::CArrayPak(TBufRep aRep,TInt aGranularity)
- : CArrayPakBase(aRep,aGranularity)
- #line 2209
- {}
- inline const TAny *CArrayPak<TAny>::At(TInt anIndex) const
- #line 2231
- {return(CArrayPakBase::At(anIndex));}
- inline TAny *CArrayPak<TAny>::At(TInt anIndex)
- #line 2253
- {return(CArrayPakBase::At(anIndex));}
- inline void CArrayPak<TAny>::AppendL(const TAny *aPtr,TInt aLength)
- #line 2269
- {CArrayPakBase::InsertL(Count(),aPtr,aLength);}
- inline TAny *CArrayPak<TAny>::ExtendL(TInt aLength)
- #line 2290
- {return(CArrayPakBase::ExpandL(Count(),aLength));}
- template <class T>
- inline CArrayPakFlat<T>::CArrayPakFlat(TInt aGranularity)
- : CArrayPak<T>((TBufRep)CBufFlat::NewL,aGranularity)
- #line 2308
- {}
- inline TInt CObject::UniqueID() const
- #line 2326
- {return(iContainer->UniqueID());}
- inline TInt CObject::AccessCount() const
- {return(iAccessCount);}
- inline void CObject::Inc()
- #line 2351
- {iAccessCount++;}
- inline void CObject::Dec()
- #line 2365
- {iAccessCount--;}
- inline CObject * CObject::Owner() const
- {return(iOwner);}
- inline void CObject::SetOwner(CObject *anOwner)
- #line 2393
- {iOwner=anOwner;}
- inline TInt CObjectIx::Count() const
- #line 2409
- {return iHighWaterMark;}
- inline TInt CObjectIx::ActiveCount() const
- {return iNumEntries;}
- inline TInt CObjectCon::UniqueID() const
- {return iUniqueID;}
- inline TInt CObjectCon::Count() const
- {return iCount;}
- inline TInt CCirBufBase::Count() const
- {return(iCount);}
- inline TInt CCirBufBase::Length() const
- #line 2474
- {return(iLength);}
- template <class T>
- inline CCirBuf<T>::CCirBuf()
- : CCirBufBase(sizeof(T))
- #line 2491
- {}
- template <class T>
- inline TInt CCirBuf<T>::Add(const T *aPtr)
- #line 2514
- {return(DoAdd((const TUint8 *)aPtr));}
- template <class T>
- inline TInt CCirBuf<T>::Add(const T *aPtr,TInt aCount)
- #line 2541
- {return(DoAdd((const TUint8 *)aPtr,aCount));}
- template <class T>
- inline TInt CCirBuf<T>::Remove(T *aPtr)
- #line 2560
- {return(DoRemove((TUint8 *)aPtr));}
- template <class T>
- inline TInt CCirBuf<T>::Remove(T *aPtr,TInt aCount)
- #line 2585
- {return(DoRemove((TUint8 *)aPtr,aCount));}
- inline TBool CActive::IsActive() const
- #line 2605
- {return(iStatus.iFlags&TRequestStatus::EActive);}
- inline TBool CActive::IsAdded() const
- #line 2628
- {return(iLink.iNext!=0 );}
- inline TInt CActive::Priority() const
- {return iLink.iPriority;}
- inline TDeltaTimerEntry::TDeltaTimerEntry(TCallBack& aCallback)
- {iCallBack=aCallback;}
- inline TDeltaTimerEntry::TDeltaTimerEntry()
- {}
- inline void TDeltaTimerEntry::Set(TCallBack& aCallback)
- {iCallBack=aCallback;}
- #line 2681
- inline const RMessage2 &CServer2::Message() const
- {return iMessage;}
- #line 2695
- inline const CServer2 *CSession2::Server() const
- {return iServer;}
- inline RThread& CAsyncOneShot::Thread()
- { return iThread; }
- inline TInt CActiveScheduler::Level() const
- #line 2724
- {return StackDepth();}
- inline TBool CActiveSchedulerWait::IsStarted() const
- #line 2743
- {return iLoop != 0 ;}
- inline void CleanupStack::Pop(TAny* aExpectedItem)
- #line 2768
- { CleanupStack::Check(aExpectedItem); CleanupStack::Pop(); }
- inline void CleanupStack::Pop(TInt aCount, TAny* aLastExpectedItem)
- #line 2795
- {
- if (--aCount)
- CleanupStack::Pop(aCount);
- CleanupStack::Check(aLastExpectedItem);
- CleanupStack::Pop();
- }
- inline void CleanupStack::PopAndDestroy(TAny* aExpectedItem)
- #line 2823
- { CleanupStack::Check(aExpectedItem); CleanupStack::PopAndDestroy(); }
- inline void CleanupStack::PopAndDestroy(TInt aCount, TAny* aLastExpectedItem)
- #line 2851
- {
- if (--aCount)
- CleanupStack::PopAndDestroy(aCount);
- CleanupStack::Check(aLastExpectedItem);
- CleanupStack::PopAndDestroy();
- }
- #line 2961
- inline TCleanupItem::TCleanupItem(TCleanupOperation anOperation)
- : iOperation(anOperation)
- {}
- inline TCleanupItem::TCleanupItem(TCleanupOperation anOperation,TAny *aPtr)
- : iOperation(anOperation), iPtr(aPtr)
- #line 2988
- {}
- inline CCleanup &TCleanupTrapHandler::Cleanup()
- {return(*iCleanup);}
- template <class T>
- inline TAutoClose<T>::~TAutoClose()
- {if (!std::uncaught_exception()) iObj.Close();}
- template <class T>
- inline void TAutoClose<T>::PushL()
- {CleanupStack::PushL(TCleanupItem(Close, (TAny *)&iObj));}
- template <class T>
- inline void TAutoClose<T>::Pop()
- {CleanupStack::Pop();}
- template <class T>
- void TAutoClose<T>::Close(TAny *aObj)
- {((T *)aObj)->Close();}
- template <class T>
- inline void CleanupDelete<T>::PushL(T* aPtr)
- #line 3053
- {CleanupStack::PushL(TCleanupItem(&Delete,aPtr));}
- template <class T>
- void CleanupDelete<T>::Delete(TAny *aPtr)
- {delete (static_cast<T*>(aPtr)) ;}
- template <class T>
- inline void CleanupDeletePushL(T* aPtr)
- {CleanupDelete<T>::PushL(aPtr);}
- template <class T>
- inline void CleanupArrayDelete<T>::PushL(T* aPtr)
- #line 3091
- {CleanupStack::PushL(TCleanupItem(&ArrayDelete,aPtr));}
- template <class T>
- void CleanupArrayDelete<T>::ArrayDelete(TAny *aPtr)
- {delete [] (static_cast<T*>(aPtr)) ;}
- template <class T>
- inline void CleanupArrayDeletePushL(T* aPtr)
- {CleanupArrayDelete<T>::PushL(aPtr);}
- template <class T>
- inline void CleanupClose<T>::PushL(T& aRef)
- {CleanupStack::PushL(TCleanupItem(&Close,&aRef));}
- template <class T>
- void CleanupClose<T>::Close(TAny *aPtr)
- {((static_cast<T*>(aPtr)) )->Close();}
- template <class T>
- inline void CleanupClosePushL(T& aRef)
- {CleanupClose<T>::PushL(aRef);}
- template <class T>
- inline void CleanupRelease<T>::PushL(T& aRef)
- {CleanupStack::PushL(TCleanupItem(&Release,&aRef));}
- template <class T>
- void CleanupRelease<T>::Release(TAny *aPtr)
- {((static_cast<T*>(aPtr)) )->Release();}
- template <class T>
- inline void CleanupReleasePushL(T& aRef)
- {CleanupRelease<T>::PushL(aRef);}
- #line 3245 "C:\Symbian\9.1\S60_3rd\epoc32\include\e32base.h" /* stack depth 6 */
- #line 14 "C:\Symbian\9.1\S60_3rd\epoc32\include\coeaui.h" /* stack depth 5 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\w32std.h" /* stack depth 6 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\fntstore.h" /* stack depth 7 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\f32file.h" /* stack depth 8 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\e32svr.h" /* stack depth 9 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\e32hal.h" /* stack depth 10 */
- #line 14
- const TInt KMaxRomDevices=8;
- #line 33
- enum TDigitizerCalibrationType
- {
- EFactory,
- ESaved
- };
- #line 61
- class TDigitizerCalibration
- {
- public:
- TPoint iTl;
- TPoint iBl;
- TPoint iTr;
- TPoint iBr;
- };
- #line 83
- enum TKeyboard
- {
- EKeyboard_Keypad=1,
- EKeyboard_Full=2,
- };
- #line 115
- class TKeyboardInfoV01
- {
- public:
- TInt iDeviceKeys;
- #line 135
- TInt iAppsKeys;
- #line 148
- TKeyboard iKeyboardType;
- };
- #line 162
- typedef TPckgBuf<TKeyboardInfoV01> TKeyboardInfoV01Buf;
- #line 182
- class TDigitiserInfoV01
- {
- public:
- TPoint iOffsetToDisplay;
- TSize iDigitiserSize;
- };
- #line 196
- class TDigitiserInfoV02 : public TDigitiserInfoV01
- {
- TInt iZRange;
- TUint8 iThetaSupported;
- TUint8 iPhiSupported;
- TUint8 iAlphaSupported;
- TUint8 iPressureSupported;
- };
- #line 214
- typedef TPckgBuf<TDigitiserInfoV01> TDigitiserInfoV01Buf;
- #line 224
- typedef TPckgBuf<TDigitiserInfoV02> TDigitiserInfoV02Buf;
- #line 241
- class TMouseInfoV01
- {
- public:
- TInt iMouseButtons;
- TPoint iOffsetToDisplay;
- TSize iMouseAreaSize;
- };
- #line 260
- typedef TPckgBuf<TMouseInfoV01> TMouseInfoV01Buf;
- #line 279
- class TVariantInfoV01
- {
- public:
- TVersion iRomVersion;
- SInt64 iMachineUniqueId;
- TUint iLedCapabilities;
- TInt iProcessorClockInKHz;
- TInt iSpeedFactor;
- };
- #line 321
- typedef TPckgBuf<TVariantInfoV01> TVariantInfoV01Buf;
- #line 334
- enum TMachineStartupType
- {
- EStartupCold,EStartupColdReset,EStartupNewOs,
- EStartupPowerFail,EStartupWarmReset,EStartupKernelFault,
- EStartupSafeReset
- };
- #line 350
- enum TXYInputType
- {
- EXYInputNone,
- EXYInputPointer,
- EXYInputMouse,
- EXYInputDeltaMouse
- };
- #line 367
- class TMachineInfoV1
- {
- public:
- TVersion iRomVersion;
- TXYInputType iXYInputType;
- TBool iKeyboardPresent;
- TBool iBacklightPresent;
- TSize iDisplaySizeInPixels;
- TSize iXYInputSizeInPixels;
- TSize iPhysicalScreenSize;
- TPoint iOffsetToDisplayInPixels;
- TInt iKeyboardId;
- TInt iDisplayId;
- SInt64 iMachineUniqueId;
- TUint iLedCapabilities;
- TInt iProcessorClockInKHz;
- TInt iSpeedFactor;
- TInt iMaximumDisplayColors;
- };
- typedef TPckgBuf<TMachineInfoV1> TMachineInfoV1Buf;
- #line 401
- class TMachineInfoV2 : public TMachineInfoV1
- {
- public:
- TInt iLanguageIndex;
- TInt iKeyboardIndex;
- };
- typedef TPckgBuf<TMachineInfoV2> TMachineInfoV2Buf;
- #line 422
- class TMemoryInfoV1
- {
- public:
- TInt iTotalRamInBytes;
- TInt iTotalRomInBytes;
- TInt iMaxFreeRamInBytes;
- TInt iFreeRamInBytes;
- TInt iInternalDiskRamInBytes;
- TBool iRomIsReprogrammable;
- };
- typedef TPckgBuf<TMemoryInfoV1> TMemoryInfoV1Buf;
- #line 447
- class TRomInfoEntryV1
- {
- public:
- enum TRomTypeV1
- {
- ERomTypeRom=0,
- ERomTypeFlash=1
- };
- TInt iSize;
- TInt iWidth;
- TInt iSpeed;
- TRomTypeV1 iType;
- };
- #line 470
- class TRomInfoV1
- {
- public:
- TRomInfoEntryV1 iEntry[KMaxRomDevices];
- };
- typedef TPckgBuf<TRomInfoV1> TRomInfoV1Buf;
- const TUint KRuggedFileSystem=0x01;
- class TDriveInfoV1
- {
- public:
- TInt iTotalSupportedDrives;
- TInfoName iDriveName[KMaxLocalDrives];
- TInt iTotalSockets;
- TInfoName iSocketName[KMaxPBusSockets];
- TInt iRuggedFileSystem;
- TUint iRegisteredDriveBitmask;
- };
- typedef TPckgBuf<TDriveInfoV1> TDriveInfoV1Buf;
- class TDriveInfoV18
- {
- public:
- TInt iTotalSupportedDrives;
- TBuf8<KMaxInfoName> iDriveName[KMaxLocalDrives];
- TInt iTotalSockets;
- TBuf8<KMaxInfoName> iSocketName[KMaxPBusSockets];
- TInt iRuggedFileSystem;
- TUint iRegisteredDriveBitmask;
- };
- typedef TPckgBuf<TDriveInfoV18> TDriveInfoV1Buf8;
- #line 536
- class TExcInfo
- {
- public:
- TAny *iCodeAddress;
- TAny *iDataAddress;
- TInt iExtraData;
- };
- #line 575
- class UserHal
- {
- public:
- __declspec(dllexport) static TInt MemoryInfo(TDes8& anInfo);
- __declspec(dllexport) static TInt RomInfo(TDes8& anInfo);
- __declspec(dllexport) static TInt StartupReason(TMachineStartupType& aReason);
- __declspec(dllexport) static TInt FaultReason(TInt &aReason);
- __declspec(dllexport) static TInt ExceptionId(TInt &anId);
- __declspec(dllexport) static TInt ExceptionInfo(TExcInfo &aInfo);
- __declspec(dllexport) static TInt PageSizeInBytes(TInt& aSize);
- __declspec(dllexport) static TInt MachineInfo(TDes8& anInfo);
- __declspec(dllexport) static TInt TickPeriod(TTimeIntervalMicroSeconds32& aPeriod);
- __declspec(dllexport) static TInt DriveInfo(TDes8& anInfo);
- __declspec(dllexport) static TInt SwitchOff();
- __declspec(dllexport) static TInt SetXYInputCalibration(const TDigitizerCalibration& aCalibration);
- __declspec(dllexport) static TInt CalibrationPoints(TDigitizerCalibration& aCalibration);
- __declspec(dllexport) static TInt SaveXYInputCalibration();
- __declspec(dllexport) static TInt RestoreXYInputCalibration(TDigitizerCalibrationType aType);
- };
- #line 8 "C:\Symbian\9.1\S60_3rd\epoc32\include\e32svr.h" /* stack depth 9 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\d32locd.h" /* stack depth 10 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\partitions.h" /* stack depth 11 */
- #line 15
- const TUint KPartitionTypeEmpty=0x00;
- const TUint KPartitionTypeFAT12=0x01;
- const TUint KPartitionTypeXENIXroot=0x02;
- const TUint KPartitionTypeXENIXusr=0x03;
- const TUint KPartitionTypeFAT16small=0x04;
- const TUint KPartitionTypeExtended=0x05;
- const TUint KPartitionTypeFAT16=0x06;
- const TUint KPartitionTypeNTFS=0x07;
- const TUint KPartitionTypeAIX=0x08;
- const TUint KPartitionTypeAIXboot=0x09;
- const TUint KPartitionTypeOS2BootManager=0x0a;
- const TUint KPartitionTypeWin95FAT32=0x0b;
- const TUint KPartitionTypeWin95FAT32LBA=0x0c;
- const TUint KPartitionTypeWin95FAT16LBA=0x0e;
- const TUint KPartitionTypeWin95ExtdLBA=0x0f;
- const TUint KPartitionTypeOPUS=0x10;
- const TUint KPartitionTypeHiddenFAT12=0x11;
- const TUint KPartitionTypeCompaqDiag=0x12;
- const TUint KPartitionTypeHiddenFAT16small=0x14;
- const TUint KPartitionTypeHiddenFAT16=0x16;
- const TUint KPartitionTypeHiddenNTFS=0x17;
- const TUint KPartitionTypeASTSmartSleep=0x18;
- const TUint KPartitionTypeHiddenWin95FAT32=0x1b;
- const TUint KPartitionTypeHiddenWin95FAT32LBA=0x1c;
- const TUint KPartitionTypeHiddenWin95FAT16LBA=0x1e;
- const TUint KPartitionTypeNECDOS=0x24;
- const TUint KPartitionTypePlan9=0x39;
- const TUint KPartitionTypePartitionMagic=0x3c;
- const TUint KPartitionTypeVenix80286=0x40;
- const TUint KPartitionTypePPCPRePBoot=0x41;
- const TUint KPartitionTypeSFS=0x42;
- const TUint KPartitionTypeQNX4x=0x4d;
- const TUint KPartitionTypeQNX4x_2=0x4e;
- const TUint KPartitionTypeQNX4x_3=0x4f;
- const TUint KPartitionTypeOnTrackDM=0x50;
- const TUint KPartitionTypeOnTrackDM6Aux=0x51;
- const TUint KPartitionTypeCPM=0x52;
- const TUint KPartitionTypeOnTrackDM6Aux_2=0x53;
- const TUint KPartitionTypeOnTrackDM6=0x54;
- const TUint KPartitionTypeEZDrive=0x55;
- const TUint KPartitionTypeGoldenBow=0x56;
- const TUint KPartitionTypePriamEdisk=0x5c;
- const TUint KPartitionTypeSpeedStor=0x61;
- const TUint KPartitionTypeGNU_HURD=0x63;
- const TUint KPartitionTypeNovellNetware=0x64;
- const TUint KPartitionTypeNovellNetware_2=0x65;
- const TUint KPartitionTypeDiskSecure=0x70;
- const TUint KPartitionTypePCIX=0x75;
- const TUint KPartitionTypeOldMinix=0x80;
- const TUint KPartitionTypeMinixOldLinux=0x81;
- const TUint KPartitionTypeLinuxSwap=0x82;
- const TUint KPartitionTypeLinux=0x83;
- const TUint KPartitionTypeOS2Hidden=0x84;
- const TUint KPartitionTypeLinuxExtended=0x85;
- const TUint KPartitionTypeNTFSvolset=0x86;
- const TUint KPartitionTypeNTFSvolset_2=0x87;
- const TUint KPartitionTypeLinuxLVM=0x8e;
- const TUint KPartitionTypeAmoeba=0x93;
- const TUint KPartitionTypeAmoebaBBT=0x94;
- const TUint KPartitionTypeBSD_OS=0x9f;
- const TUint KPartitionTypeIBMThinkpad=0xa0;
- const TUint KPartitionTypeFreeBSD=0xa5;
- const TUint KPartitionTypeOpenBSD=0xa6;
- const TUint KPartitionTypeNeXTSTEP=0xa7;
- const TUint KPartitionTypeNetBSD=0xa9;
- const TUint KPartitionTypeBSDIfs=0xb7;
- const TUint KPartitionTypeBSDIswap=0xb8;
- const TUint KPartitionTypeBootWizardHidden=0xbb;
- const TUint KPartitionTypeDRDOS=0xc1;
- const TUint KPartitionTypeDRDOS_2=0xc4;
- const TUint KPartitionTypeDRDOS_3=0xc6;
- const TUint KPartitionTypeSyrinx=0xc7;
- const TUint KPartitionTypeNonFSData=0xda;
- const TUint KPartitionTypeCPM_CTOS=0xdb;
- const TUint KPartitionTypeDellUtility=0xde;
- const TUint KPartitionTypeBootIt=0xdf;
- const TUint KPartitionTypeDOSaccess=0xe1;
- const TUint KPartitionTypeDOS_RO=0xe3;
- const TUint KPartitionTypeSymbianCrashLog=0xf0;
- const TUint KPartitionTypeSpeedStor_2=0xf1;
- const TUint KPartitionTypeDOSsecondary=0xf2;
- const TUint KPartitionTypeSpeedStor_3=0xf4;
- const TUint KPartitionTypeRofs=0xfa;
- const TUint KPartitionTypeIso9660=0xfb;
- const TUint KPartitionTypeEneaLFFS=0xfc;
- const TUint KPartitionTypeLinuxRaidAuto=0xfd;
- const TUint KPartitionTypeLANStep=0xfe;
- const TUint KPartitionTypeBBT=0xff;
- inline TBool PartitionIsFAT(TUint a)
- {
- return (
- a==KPartitionTypeFAT12 ||
- a==KPartitionTypeFAT16small ||
- a==KPartitionTypeFAT16 ||
- a==KPartitionTypeFAT16 ||
- a==KPartitionTypeWin95FAT16LBA ||
- a==KPartitionTypeHiddenFAT12 ||
- a==KPartitionTypeHiddenFAT16small ||
- a==KPartitionTypeHiddenFAT16 ||
- a==KPartitionTypeHiddenWin95FAT16LBA
- );
- }
- inline TBool PartitionIsFAT32(TUint a)
- {
- return (
- a==KPartitionTypeWin95FAT32 ||
- a==KPartitionTypeWin95FAT32LBA ||
- a==KPartitionTypeHiddenWin95FAT32 ||
- a==KPartitionTypeHiddenWin95FAT32LBA
- );
- }
- inline TBool PartitionIsNTFS(TUint a)
- {
- return (
- a==KPartitionTypeNTFS ||
- a==KPartitionTypeHiddenNTFS
- );
- }
- const TUint KBootIndicatorBootable=0x80;
- class TMBRPartitionEntry
- {
- public:
- TBool IsValidPartition()
- { return (iNumSectors>0 && iPartitionType!=KPartitionTypeEmpty); }
- TBool IsValidDosPartition()
- { return (iNumSectors>0 && PartitionIsFAT(iPartitionType)); }
- TBool IsDefaultBootPartition()
- { return(iX86BootIndicator==KBootIndicatorBootable && (IsValidDosPartition() || IsValidFAT32Partition())); }
- TBool IsValidFAT32Partition()
- { return (iNumSectors>0 && PartitionIsFAT32(iPartitionType)); }
- public:
- TUint8 iX86BootIndicator;
- TUint8 iStartHead;
- TUint8 iStartSector;
- TUint8 iStartCylinder;
- TUint8 iPartitionType;
- TUint8 iEndHead;
- TUint8 iEndSector;
- TUint8 iEndCylinder;
- TUint32 iFirstSector;
- TUint32 iNumSectors;
- };
- const TUint KMBRFirstPartitionOffset=0x1BE;
- const TUint KMBRSignatureOffset=0x1FE;
- const TUint KMBRSignature=0xAA55;
- const TInt KMBRMaxPrimaryPartitions=4;
- class TMasterBootRecord
- {
- public:
- TUint8 iBootCode[KMBRFirstPartitionOffset];
- TMBRPartitionEntry iPartitionEntry[KMBRMaxPrimaryPartitions];
- TUint16 iSignature;
- };
- #line 9 "C:\Symbian\9.1\S60_3rd\epoc32\include\d32locd.h" /* stack depth 10 */
- #line 21
- enum TMediaDevice { EFixedMedia0, EFixedMedia1, EFixedMedia2, EFixedMedia3,
- EFixedMedia4, EFixedMedia5, EFixedMedia6, EFixedMedia7,
- ERemovableMedia0, ERemovableMedia1, ERemovableMedia2, ERemovableMedia3,
- EInvalidMedia
- };
- #line 36
- typedef signed int TSocket;
- class TLDriveAssignInfo
- {
- public:
- TMediaDevice iDevice;
- TInt iPriority;
- };
- class TMediaDeviceAssignInfo
- {
- public:
- TInt iFirstMedia;
- TInt iLastMedia;
- };
- class TLocalDriveCaps
- {
- public:
- __declspec(dllexport) TLocalDriveCaps();
- public:
- TInt64 iSize;
- TMediaType iType;
- TBatteryState iBattery;
- TUint iDriveAtt;
- TUint iMediaAtt;
- TUint8* iBaseAddress;
- TUint16 iFileSystemId;
- TUint16 iPartitionType;
- };
- typedef TPckgBuf<TLocalDriveCaps> TLocalDriveCapsBuf;
- class TLocalDriveCapsV2 : public TLocalDriveCaps
- {
- public:
- TUint iHiddenSectors;
- TUint iEraseBlockSize;
- };
- typedef TPckgBuf<TLocalDriveCapsV2> TLocalDriveCapsV2Buf;
- class TLDFormatInfo
- {
- public:
- TInt64 iCapacity;
- TUint16 iSectorsPerCluster;
- TUint16 iSectorsPerTrack;
- TUint16 iNumberOfSides;
- enum TFATBits {EFBDontCare, EFB12 = 12, EFB16 = 16, EFB32 = 32};
- TFATBits iFATBits;
- TUint32 iPad;
- };
- typedef TPckgBuf<TLDFormatInfo> TSpecialFormatInfoBuf;
- class TLocalDriveCapsV3 : public TLocalDriveCapsV2
- {
- public:
- TLDFormatInfo iFormatInfo;
- TBool iExtraInfo;
- TInt iMaxBytesPerFormat;
- };
- void __compile_time_assert(int __check[((((TInt)&(((TLocalDriveCaps *)0x1000)->iSize))-0x1000)%8 == 0)?1:-1]) ;
- void __compile_time_assert(int __check[((((TInt)&(((TLocalDriveCapsV3 *)0x1000)->iFormatInfo.iCapacity))-0x1000) % 8 == 0)?1:-1]) ;
- typedef TPckgBuf<TLocalDriveCapsV3> TLocalDriveCapsV3Buf;
- class TLocalDriveCapsV4 : public TLocalDriveCapsV3
- {
- public:
- TInt iNumOfBlocks;
- TInt iNumPagesPerBlock;
- TInt iNumBytesMain;
- TInt iNumBytesSpare;
- TInt iEffectiveBlks;
- TInt iStartPage;
- };
- typedef TPckgBuf<TLocalDriveCapsV4> TLocalDriveCapsV4Buf;
- typedef TBuf8<64 > TMediaSerialNumber;
- class TLocalDriveCapsV5 : public TLocalDriveCapsV4
- {
- public:
- TUint iSerialNumLength;
- TUint8 iSerialNum[64 ];
- };
- typedef TPckgBuf<TLocalDriveCapsV5> TLocalDriveCapsV5Buf;
- class TFormatInfo
- {
- public:
- __declspec(dllexport) TFormatInfo();
- public:
- TBool iFormatIsCurrent;
- TInt i512ByteSectorsFormatted;
- TInt iMaxBytesPerFormat;
- };
- class TErrorInfo
- {
- public:
- enum TReasonCode
- {
- ENoError=0,
- EBadSector=1,
- };
- public:
- TReasonCode iReasonCode;
- union
- {
- TInt64 iErrorPos;
- TInt iOtherInfo;
- };
- };
- typedef TPckgBuf<TErrorInfo> TErrorInfoBuf;
- class TLocalDriveMessageData
- {
- public:
- inline TLocalDriveMessageData()
- {}
- inline TLocalDriveMessageData(TInt64 aPos, TInt aLength, const TAny* aPtr, TInt aHandle, TInt anOffset, TInt aFlags)
- : iPos(aPos), iLength(aLength), iPtr(aPtr), iHandle(aHandle), iOffset(anOffset), iFlags(aFlags)
- {}
- public:
- TInt64 iPos;
- TInt iLength;
- const TAny* iPtr;
- TInt iHandle;
- TInt iOffset;
- TInt iFlags;
- };
- class TLocalDriveControlIOData
- {
- public:
- inline TLocalDriveControlIOData()
- {}
- inline TLocalDriveControlIOData(TInt aCommand, TAny* aParam1, TAny* aParam2, TInt aHandle)
- : iCommand(aCommand), iParam1(aParam1), iParam2(aParam2), iHandle(aHandle)
- {}
- public:
- TInt iCommand;
- TAny* iParam1;
- TAny* iParam2;
- TInt iHandle;
- };
- class TLocalDrivePasswordData
- {
- public:
- TLocalDrivePasswordData(const TDesC8& aOldPasswd, const TDesC8& aNewPasswd, TBool aStorePasswd)
- : iOldPasswd(&aOldPasswd), iNewPasswd(&aNewPasswd), iStorePasswd(aStorePasswd)
- {}
- TLocalDrivePasswordData()
- : iOldPasswd(&KNullDesC8), iNewPasswd(&KNullDesC8), iStorePasswd(EFalse)
- {}
- public:
- const TDesC8 *iOldPasswd;
- const TDesC8 *iNewPasswd;
- TBool iStorePasswd;
- };
- typedef TPckgBuf<TLocalDrivePasswordData> TLocalDrivePasswordDataPckg;
- class TPasswordStore
- {
- public:
- virtual TInt Init()=0;
- virtual TInt ReadPasswordData(TDes8 &aBuf)=0;
- virtual TInt WritePasswordData(TDesC8 &aBuf)=0;
- virtual TInt PasswordStoreLengthInBytes()=0;
- enum {EMaxPasswordLength=256};
- };
- class TMountInfoData
- {
- public:
- TDesC8* iInfo;
- TAny* iThread;
- };
- const TInt KLocalDriveMajorVersion=1;
- const TInt KLocalDriveMinorVersion=0;
- const TInt KLocalDriveBuildVersion=160;
- const static TLitC<sizeof(L"LocDrv")/2> KLitLocalDriveLddName={sizeof(L"LocDrv")/2-1,L"LocDrv"} ;
- const TInt KLocalMessageHandle=-1;
- class RLocalDrive : public RBusLogicalChannel
- {
- public:
- enum TControl
- {
- EControlRead=0,
- EControlWrite=1,
- EControlCaps=2,
- EControlFormat=3,
- EControlEnlarge=4,
- EControlReduce=5,
- EControlForceMediaChange=6,
- EControlMediaDevice=7,
- EControlPasswordLock=8,
- EControlPasswordUnlock=9,
- EControlPasswordClear=10,
- EControlNotifyChange=11,
- 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 11 */
- 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 10 */
- #line 9 "C:\Symbian\9.1\S60_3rd\epoc32\include\e32svr.h" /* stack depth 9 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\e32notif.h" /* stack depth 10 */
- #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 9 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\e32ldr.h" /* stack depth 10 */
- #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 9 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\e32event.h" /* stack depth 10 */
- #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 9 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\e32ktran.h" /* stack depth 10 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\e32keys.h" /* stack depth 11 */
- #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 10 */
- 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 9 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\e32debug.h" /* stack depth 10 */
- #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 9 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\e32lmsg.h" /* stack depth 10 */
- #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 9 */
- 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 8 */
- #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 9 */
- #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 8 */
- #line 20 "C:\Symbian\9.1\S60_3rd\epoc32\include\fntstore.h" /* stack depth 7 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\gdi.h" /* stack depth 8 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\s32std.h" /* stack depth 9 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\s32strm.h" /* stack depth 10 */
- #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 11 */
- 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 10 */
- #line 8 "C:\Symbian\9.1\S60_3rd\epoc32\include\s32std.h" /* stack depth 9 */
- 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 10 */
- 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 9 */
- #line 21 "C:\Symbian\9.1\S60_3rd\epoc32\include\gdi.h" /* stack depth 8 */
- 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);