S60UIExampleApplication.inc
上传用户:laixiong
上传日期:2007-03-11
资源大小:2994k
文件大小:540k
源码类别:
Symbian
开发平台:
C/C++
- __declspec(dllexport) virtual TInt RunError(TInt aError);
- protected:
- __declspec(dllexport) virtual TInt Extension_(TUint aExtensionId, TAny*& a0, TAny* a1);
- public:
- #line 1704
- TRequestStatus iStatus;
- private:
- TPriQueLink iLink;
- TAny* iSpare;
- friend class CActiveScheduler;
- friend class CServer;
- friend class CServer2;
- };
- class CIdle : public CActive
- #line 1729
- {
- public:
- __declspec(dllexport) static CIdle* New(TInt aPriority);
- __declspec(dllexport) static CIdle* NewL(TInt aPriority);
- __declspec(dllexport) ~CIdle();
- __declspec(dllexport) void Start(TCallBack aCallBack);
- protected:
- __declspec(dllexport) CIdle(TInt aPriority);
- __declspec(dllexport) void RunL();
- __declspec(dllexport) void DoCancel();
- protected:
- TCallBack iCallBack;
- };
- class CAsyncOneShot : public CActive
- #line 1782
- {
- public:
- __declspec(dllexport) CAsyncOneShot(TInt aPriority);
- __declspec(dllexport) virtual void DoCancel();
- __declspec(dllexport) virtual void Call();
- __declspec(dllexport) virtual ~CAsyncOneShot();
- inline RThread& Thread();
- private:
- void Setup();
- RThread iThread;
- };
- class CAsyncCallBack : public CAsyncOneShot
- {
- public:
- __declspec(dllexport) CAsyncCallBack(TInt aPriority);
- __declspec(dllexport) CAsyncCallBack(const TCallBack& aCallBack, TInt aPriority);
- __declspec(dllexport) void Set(const TCallBack& aCallBack);
- __declspec(dllexport) void CallBack();
- __declspec(dllexport) virtual ~CAsyncCallBack();
- protected:
- virtual void RunL();
- protected:
- TCallBack iCallBack;
- };
- class TDeltaTimerEntry
- #line 1838
- {
- friend class CDeltaTimer;
- public:
- inline TDeltaTimerEntry(TCallBack& aCallback);
- inline TDeltaTimerEntry();
- inline void Set(TCallBack& aCallback);
- private:
- TCallBack iCallBack;
- TTickCountQueLink iLink;
- };
- class CDeltaTimer : public CActive
- #line 1893
- {
- public:
- __declspec(dllexport) virtual void Queue(TTimeIntervalMicroSeconds32 aTimeInMicroSeconds, TDeltaTimerEntry& aEntry);
- __declspec(dllexport) virtual void Remove(TDeltaTimerEntry& aEntry);
- __declspec(dllexport) TInt QueueLong(TTimeIntervalMicroSeconds aTimeInMicroSeconds, TDeltaTimerEntry& aEntry);
- __declspec(dllexport) static CDeltaTimer* NewL(TInt aPriority);
- __declspec(dllexport) static CDeltaTimer* NewL(TInt aPriority, TTimeIntervalMicroSeconds32 aGranularity);
- ~CDeltaTimer();
- private:
- CDeltaTimer(TInt aPriority, TInt aTickPeriod);
- void DoCancel();
- void RunL();
- void Activate(TBool aRequeueTimer = EFalse);
- private:
- RTimer iTimer;
- TTickCountQue iQueue;
- const TInt iTickPeriod;
- TBool iQueueBusy;
- };
- class CTimer : public CActive
- #line 1974
- {
- public:
- __declspec(dllexport) ~CTimer();
- __declspec(dllexport) void At(const TTime& aTime);
- __declspec(dllexport) void AtUTC(const TTime& aTimeInUTC);
- __declspec(dllexport) void After(TTimeIntervalMicroSeconds32 anInterval);
- __declspec(dllexport) void Lock(TTimerLockSpec aLock);
- __declspec(dllexport) void Inactivity(TTimeIntervalSeconds aSeconds);
- __declspec(dllexport) void HighRes(TTimeIntervalMicroSeconds32 aInterval);
- protected:
- __declspec(dllexport) CTimer(TInt aPriority);
- __declspec(dllexport) void ConstructL();
- __declspec(dllexport) void DoCancel();
- private:
- RTimer iTimer;
- };
- class CPeriodic : public CTimer
- #line 2035
- {
- public:
- __declspec(dllexport) static CPeriodic* New(TInt aPriority);
- __declspec(dllexport) static CPeriodic* NewL(TInt aPriority);
- __declspec(dllexport) ~CPeriodic();
- __declspec(dllexport) void Start(TTimeIntervalMicroSeconds32 aDelay,TTimeIntervalMicroSeconds32 anInterval,TCallBack aCallBack);
- protected:
- __declspec(dllexport) CPeriodic(TInt aPriority);
- __declspec(dllexport) void RunL();
- private:
- TTimeIntervalMicroSeconds32 iInterval;
- TCallBack iCallBack;
- };
- class MBeating
- #line 2067
- {
- public:
- virtual void Beat() =0;
- #line 2084
- virtual void Synchronize() =0;
- };
- class CHeartbeat : public CTimer
- #line 2131
- {
- public:
- __declspec(dllexport) static CHeartbeat* New(TInt aPriority);
- __declspec(dllexport) static CHeartbeat* NewL(TInt aPriority);
- __declspec(dllexport) ~CHeartbeat();
- __declspec(dllexport) void Start(TTimerLockSpec aLock,MBeating *aBeating);
- protected:
- __declspec(dllexport) CHeartbeat(TInt aPriority);
- __declspec(dllexport) void RunL();
- private:
- TTimerLockSpec iLock;
- MBeating *iBeating;
- };
- class CServer2;
- #line 2170
- class CSession2 : public CBase
- {
- friend class CServer2;
- public:
- __declspec(dllexport) virtual ~CSession2() =0;
- private:
- __declspec(dllexport) virtual void CreateL();
- public:
- inline const CServer2* Server() const;
- __declspec(dllexport) void ResourceCountMarkStart();
- __declspec(dllexport) void ResourceCountMarkEnd(const RMessage2& aMessage);
- __declspec(dllexport) virtual TInt CountResources();
- #line 2192
- virtual void ServiceL(const RMessage2& aMessage) =0;
- __declspec(dllexport) virtual void ServiceError(const RMessage2& aMessage,TInt aError);
- protected:
- __declspec(dllexport) CSession2();
- __declspec(dllexport) virtual void Disconnect(const RMessage2& aMessage);
- __declspec(dllexport) virtual TInt Extension_(TUint aExtensionId, TAny*& a0, TAny* a1);
- public:
- enum TPanicNo {ESesCountResourcesNotImplemented=1,ESesFoundResCountHeaven};
- private:
- TInt iResourceCountMark;
- TDblQueLink iLink;
- const CServer2* iServer;
- TAny* iSpare;
- };
- #line 2224
- class CServer2 : public CActive
- {
- public:
- enum TServerType
- {
- EUnsharableSessions = EIpcSession_Unsharable,
- ESharableSessions = EIpcSession_Sharable,
- EGlobalSharableSessions = EIpcSession_GlobalSharable,
- };
- public:
- __declspec(dllexport) virtual ~CServer2() =0;
- __declspec(dllexport) TInt Start(const TDesC& aName);
- __declspec(dllexport) void StartL(const TDesC& aName);
- __declspec(dllexport) void ReStart();
- #line 2264
- inline RServer2 Server() const { return iServer; }
- protected:
- inline const RMessage2& Message() const;
- __declspec(dllexport) CServer2(TInt aPriority, TServerType aType=EUnsharableSessions);
- __declspec(dllexport) void DoCancel();
- __declspec(dllexport) void RunL();
- __declspec(dllexport) TInt RunError(TInt aError);
- __declspec(dllexport) virtual void DoConnect(const RMessage2& aMessage);
- __declspec(dllexport) virtual TInt Extension_(TUint aExtensionId, TAny*& a0, TAny* a1);
- private:
- #line 2298
- __declspec(dllexport) virtual CSession2* NewSessionL(const TVersion& aVersion,const RMessage2& aMessage) const =0;
- void Connect(const RMessage2& aMessage);
- void DoConnectL(const RMessage2& aMessage,CSession2* volatile& aSession);
- public:
- enum TPanic
- {
- EBadMessageNumber,
- ESessionNotConnected,
- ESessionAlreadyConnected,
- EClientDoesntHaveRequiredCaps,
- };
- private:
- TInt iSessionType;
- RServer2 iServer;
- RMessage2 iMessage;
- TAny* iSpare;
- TDblQue<CSession2> iSessionQ;
- protected:
- TDblQueIter<CSession2> iSessionIter;
- private:
- void Disconnect(const RMessage2& aMessage);
- static void BadMessage(const RMessage2& aMessage);
- static void NotConnected(const RMessage2& aMessage);
- friend class CPolicyServer;
- };
- #line 2405
- class CPolicyServer : public CServer2
- {
- public:
- enum TFailureAction
- {
- EFailClient = 0,
- EPanicClient= 1,
- };
- #line 2428
- enum TCustomResult
- {
- EPass = 0,
- EFail = 1,
- EAsync = 2,
- };
- #line 2442
- class TPolicyElement
- {
- public:
- #line 2475
- TStaticSecurityPolicy iPolicy;
- TInt iAction;
- };
- enum TSpecialCase
- {
- ECustomCheck =255u,
- ENotSupported =254u,
- EAlwaysPass =253u,
- ESpecialCaseLimit =252u,
- ESpecialCaseHardLimit =250u
- };
- #line 2548
- class TPolicy
- {
- public:
- TUint8 iOnConnect;
- TUint16 iRangeCount;
- #line 2578
- const TInt* iRanges;
- #line 2616
- const TUint8* iElementsIndex;
- #line 2645
- const TPolicyElement* iElements;
- };
- public:
- #line 2663
- __declspec(dllexport) void ProcessL(const RMessage2& aMsg);
- #line 2681
- __declspec(dllexport) void CheckFailedL(const RMessage2& aMsg, TInt aAction, const TSecurityInfo& aMissing);
- #line 2696
- __declspec(dllexport) void ProcessError(const RMessage2& aMsg, TInt aError);
- protected:
- #line 2709
- __declspec(dllexport) CPolicyServer(TInt aPriority, const TPolicy& aPolicy, TServerType aType=EUnsharableSessions);
- #line 2759
- __declspec(dllexport) virtual TCustomResult CustomSecurityCheckL(const RMessage2& aMsg, TInt& aAction, TSecurityInfo& aMissing);
- #line 2810
- __declspec(dllexport) virtual TCustomResult CustomFailureActionL(const RMessage2& aMsg, TInt aAction, const TSecurityInfo& aMissing);
- protected:
- __declspec(dllexport) virtual TInt Extension_(TUint aExtensionId, TAny*& a0, TAny* a1);
- private:
- __declspec(dllexport) virtual void RunL();
- __declspec(dllexport) virtual TInt RunError(TInt aError);
- const CPolicyServer::TPolicyElement* FindPolicyElement(TInt aFn, TUint& aSpecialCase) const;
- private:
- const TPolicy& iPolicy;
- };
- class CActiveScheduler : public CBase
- #line 2853
- {
- friend class CActiveSchedulerWait;
- public:
- struct TLoop;
- typedef TLoop* TLoopOwner;
- public:
- __declspec(dllexport) CActiveScheduler();
- __declspec(dllexport) ~CActiveScheduler();
- __declspec(dllexport) static void Install(CActiveScheduler* aScheduler);
- __declspec(dllexport) static CActiveScheduler* Current();
- __declspec(dllexport) static void Add(CActive* aActive);
- __declspec(dllexport) static void Start();
- __declspec(dllexport) static void Stop();
- __declspec(dllexport) static TBool RunIfReady(TInt& aError, TInt aMinimumPriority);
- __declspec(dllexport) static CActiveScheduler* Replace(CActiveScheduler* aNewActiveScheduler);
- __declspec(dllexport) virtual void WaitForAnyRequest();
- __declspec(dllexport) virtual void Error(TInt aError) const;
- __declspec(dllexport) void Halt(TInt aExitCode) const;
- __declspec(dllexport) TInt StackDepth() const;
- private:
- static void Start(TLoopOwner* aOwner);
- __declspec(dllexport) virtual void OnStarting();
- __declspec(dllexport) virtual void OnStopping();
- __declspec(dllexport) virtual void Reserved_1();
- __declspec(dllexport) virtual void Reserved_2();
- void Run(TLoopOwner* const volatile& aLoop);
- void DoRunL(TLoopOwner* const volatile& aLoop, CActive* volatile & aCurrentObj);
- protected:
- __declspec(dllexport) virtual TInt Extension_(TUint aExtensionId, TAny*& a0, TAny* a1);
- protected:
- inline TInt Level() const;
- private:
- TLoop* iStack;
- TPriQue<CActive> iActiveQ;
- TAny* iSpare;
- };
- class CActiveSchedulerWait : public CBase
- #line 2908
- {
- public:
- __declspec(dllexport) CActiveSchedulerWait();
- __declspec(dllexport) ~CActiveSchedulerWait();
- __declspec(dllexport) void Start();
- __declspec(dllexport) void AsyncStop();
- __declspec(dllexport) void AsyncStop(const TCallBack& aCallMeWhenStopped);
- inline TBool IsStarted() const;
- __declspec(dllexport) TBool CanStopNow() const;
- private:
- CActiveScheduler::TLoopOwner iLoop;
- };
- class CleanupStack
- {
- public:
- __declspec(dllexport) static void PushL(TAny* aPtr);
- __declspec(dllexport) static void PushL(CBase* aPtr);
- __declspec(dllexport) static void PushL(TCleanupItem anItem);
- __declspec(dllexport) static void Pop();
- __declspec(dllexport) static void Pop(TInt aCount);
- __declspec(dllexport) static void PopAndDestroy();
- __declspec(dllexport) static void PopAndDestroy(TInt aCount);
- __declspec(dllexport) static void Check(TAny* aExpectedItem);
- inline static void Pop(TAny* aExpectedItem);
- inline static void Pop(TInt aCount, TAny* aLastExpectedItem);
- inline static void PopAndDestroy(TAny* aExpectedItem);
- inline static void PopAndDestroy(TInt aCount, TAny* aLastExpectedItem);
- };
- #line 2961
- template <class T>
- class CleanupDelete
- {
- public:
- inline static void PushL(T* aPtr);
- private:
- static void Delete(TAny *aPtr);
- };
- #line 3009
- template <class T>
- inline void CleanupDeletePushL(T* aPtr);
- #line 3025
- template <class T>
- class CleanupArrayDelete
- {
- public:
- inline static void PushL(T* aPtr);
- private:
- static void ArrayDelete(TAny *aPtr);
- };
- #line 3075
- template <class T>
- inline void CleanupArrayDeletePushL(T* aPtr);
- #line 3091
- template <class T>
- class CleanupClose
- {
- public:
- inline static void PushL(T& aRef);
- private:
- static void Close(TAny *aPtr);
- };
- #line 3153
- template <class T>
- inline void CleanupClosePushL(T& aRef);
- #line 3169
- template <class T>
- class CleanupRelease
- {
- public:
- inline static void PushL(T& aRef);
- private:
- static void Release(TAny *aPtr);
- };
- #line 3227
- template <class T>
- inline void CleanupReleasePushL(T& aRef);
- class CConsoleBase;
- class Console
- {
- public:
- __declspec(dllexport) static CConsoleBase* NewL(const TDesC& aTitle,TSize aSize);
- };
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\e32base.inl" /* stack depth 6 */
- inline TAny* CBase::operator new(TUint aSize, TAny* aBase) throw()
- #line 19
- { Mem::FillZ(aBase, aSize); return aBase; }
- inline TAny* CBase::operator new(TUint aSize) throw()
- #line 36
- { return User::AllocZ(aSize); }
- inline TAny* CBase::operator new(TUint aSize, TLeave)
- #line 53
- { return User::AllocZL(aSize); }
- inline TAny* CBase::operator new(TUint aSize, TUint aExtraSize) throw()
- #line 74
- { return User::AllocZ(aSize + aExtraSize); }
- inline TAny* CBase::operator new(TUint aSize, TLeave, TUint aExtraSize)
- #line 95
- { return User::AllocZL(aSize + aExtraSize); }
- inline TInt CBufBase::Size() const
- #line 111
- {return(iSize);}
- inline TInt CBufFlat::Capacity() const
- {return(iMaxSize);}
- inline TInt CArrayFixBase::Count() const
- {return(iCount);}
- inline TInt CArrayFixBase::Length() const
- {return(iLength);}
- template <class T>
- inline CArrayFix<T>::CArrayFix(TBufRep aRep,TInt aGranularity)
- : CArrayFixBase(aRep,sizeof(T),aGranularity)
- {}
- template <class T>
- inline const T &CArrayFix<T>::operator[](TInt anIndex) const
- #line 183
- {return(*((const T *)CArrayFixBase::At(anIndex)));}
- template <class T>
- inline T &CArrayFix<T>::operator[](TInt anIndex)
- #line 207
- {return(*((T *)CArrayFixBase::At(anIndex)));}
- template <class T>
- inline const T &CArrayFix<T>::At(TInt anIndex) const
- #line 231
- {return(*((const T *)CArrayFixBase::At(anIndex)));}
- template <class T>
- inline const T *CArrayFix<T>::End(TInt anIndex) const
- #line 259
- {return((const T *)CArrayFixBase::End(anIndex));}
- template <class T>
- inline const T *CArrayFix<T>::Back(TInt anIndex) const
- #line 288
- {return((const T *)CArrayFixBase::Back(anIndex));}
- template <class T>
- inline T &CArrayFix<T>::At(TInt anIndex)
- #line 312
- {return(*((T *)CArrayFixBase::At(anIndex)));}
- template <class T>
- inline T *CArrayFix<T>::End(TInt anIndex)
- #line 338
- {return(((T *)CArrayFixBase::End(anIndex)));}
- template <class T>
- inline T *CArrayFix<T>::Back(TInt anIndex)
- #line 367
- {return(((T *)CArrayFixBase::Back(anIndex)));}
- template <class T>
- inline void CArrayFix<T>::AppendL(const T &aRef)
- #line 383
- {CArrayFixBase::InsertL(Count(),&aRef);}
- template <class T>
- inline void CArrayFix<T>::AppendL(const T *aPtr,TInt aCount)
- #line 404
- {CArrayFixBase::InsertL(Count(),aPtr,aCount);}
- template <class T>
- inline void CArrayFix<T>::AppendL(const T &aRef,TInt aReplicas)
- #line 423
- {CArrayFixBase::InsertRepL(Count(),&aRef,aReplicas);}
- template <class T>
- inline T &CArrayFix<T>::ExpandL(TInt anIndex)
- #line 461
- {return(*new(CArrayFixBase::ExpandL(anIndex)) T);}
- template <class T>
- inline T &CArrayFix<T>::ExtendL()
- #line 492
- {return(*new(CArrayFixBase::ExpandL(Count())) T);}
- template <class T>
- inline TInt CArrayFix<T>::Find(const T &aRef,TKeyArrayFix &aKey,TInt &anIndex) const
- #line 525
- {return(CArrayFixBase::Find(&aRef,aKey,anIndex));}
- template <class T>
- inline TInt CArrayFix<T>::FindIsq(const T &aRef,TKeyArrayFix &aKey,TInt &anIndex) const
- #line 562
- {return(CArrayFixBase::FindIsq(&aRef,aKey,anIndex));}
- template <class T>
- inline void CArrayFix<T>::InsertL(TInt anIndex,const T &aRef)
- #line 589
- {CArrayFixBase::InsertL(anIndex,&aRef);}
- template <class T>
- inline void CArrayFix<T>::InsertL(TInt anIndex,const T *aPtr,TInt aCount)
- #line 622
- {CArrayFixBase::InsertL(anIndex,aPtr,aCount);}
- template <class T>
- inline void CArrayFix<T>::InsertL(TInt anIndex,const T &aRef,TInt aReplicas)
- #line 655
- {CArrayFixBase::InsertRepL(anIndex,&aRef,aReplicas);}
- template <class T>
- inline TInt CArrayFix<T>::InsertIsqL(const T &aRef,TKeyArrayFix &aKey)
- #line 684
- {return(CArrayFixBase::InsertIsqL(&aRef,aKey));}
- template <class T>
- inline TInt CArrayFix<T>::InsertIsqAllowDuplicatesL(const T &aRef,TKeyArrayFix &aKey)
- #line 711
- {return(CArrayFixBase::InsertIsqAllowDuplicatesL(&aRef,aKey));}
- template <class T>
- inline void CArrayFix<T>::ResizeL(TInt aCount)
- #line 746
- {TUint8 b[sizeof(T)]; new(&b[0]) T; CArrayFixBase::ResizeL(aCount,&b[0]);}
- template <class T>
- inline void CArrayFix<T>::ResizeL(TInt aCount,const T &aRef)
- #line 783
- {CArrayFixBase::ResizeL(aCount,&aRef);}
- template <class T>
- inline const TArray<T> CArrayFix<T>::Array() const
- {return(TArray<T>(CountR,AtR,this));}
- inline CArrayFix<TAny>::CArrayFix(TBufRep aRep,TInt aRecordLength,TInt aGranularity)
- : CArrayFixBase(aRep,aRecordLength,aGranularity)
- {}
- inline const TAny *CArrayFix<TAny>::At(TInt anIndex) const
- #line 825
- {return(CArrayFixBase::At(anIndex));}
- inline const TAny *CArrayFix<TAny>::End(TInt anIndex) const
- #line 850
- {return(CArrayFixBase::End(anIndex));}
- inline const TAny *CArrayFix<TAny>::Back(TInt anIndex) const
- #line 877
- {return(CArrayFixBase::Back(anIndex));}
- inline TAny *CArrayFix<TAny>::At(TInt anIndex)
- #line 897
- {return(CArrayFixBase::At(anIndex));}
- inline TAny *CArrayFix<TAny>::End(TInt anIndex)
- #line 922
- {return(CArrayFixBase::End(anIndex));}
- inline TAny *CArrayFix<TAny>::Back(TInt anIndex)
- #line 949
- {return(CArrayFixBase::Back(anIndex));}
- inline void CArrayFix<TAny>::AppendL(const TAny *aPtr)
- #line 964
- {CArrayFixBase::InsertL(Count(),aPtr);}
- inline void CArrayFix<TAny>::AppendL(const TAny *aPtr,TInt aCount)
- #line 982
- {CArrayFixBase::InsertL(Count(),aPtr,aCount);}
- inline TAny *CArrayFix<TAny>::ExtendL()
- #line 1001
- {return(CArrayFixBase::ExpandL(Count()));}
- template <class T>
- inline CArrayFixFlat<T>::CArrayFixFlat(TInt aGranularity)
- : CArrayFix<T>((TBufRep)CBufFlat::NewL,aGranularity)
- #line 1024
- {}
- template <class T>
- inline void CArrayFixFlat<T>::SetReserveL(TInt aCount)
- #line 1050
- {this->SetReserveFlatL(aCount);}
- inline CArrayFixFlat<TAny>::CArrayFixFlat(TInt aRecordLength,TInt aGranularity)
- : CArrayFix<TAny>((TBufRep)CBufFlat::NewL,aRecordLength,aGranularity)
- #line 1069
- {}
- inline void CArrayFixFlat<TAny>::SetReserveL(TInt aCount)
- #line 1094
- {SetReserveFlatL(aCount);}
- inline void CArrayFixFlat<TInt>::SetReserveL(TInt aCount)
- #line 1119
- {SetReserveFlatL(aCount);}
- inline void CArrayFixFlat<TUid>::SetReserveL(TInt aCount)
- #line 1144
- {SetReserveFlatL(aCount);}
- template <class T>
- inline CArrayFixSeg<T>::CArrayFixSeg(TInt aGranularity)
- : CArrayFix<T>((TBufRep)CBufSeg::NewL,aGranularity)
- #line 1168
- {}
- inline CArrayFixSeg<TAny>::CArrayFixSeg(TInt aRecordLength,TInt aGranularity)
- : CArrayFix<TAny>((TBufRep)CBufSeg::NewL,aRecordLength,aGranularity)
- #line 1188
- {}
- template <class T>
- inline CArrayPtr<T>::CArrayPtr(TBufRep aRep,TInt aGranularity)
- : CArrayFix<T*>(aRep,aGranularity)
- {}
- template <class T>
- void CArrayPtr<T>::ResetAndDestroy()
- #line 1221
- {
- for (TInt i=0;i<this->Count();++i)
- delete this->At(i);
- this->Reset();
- }
- template <class T>
- inline CArrayPtrFlat<T>::CArrayPtrFlat(TInt aGranularity)
- : CArrayPtr<T>((TBufRep)CBufFlat::NewL,aGranularity)
- #line 1243
- {}
- template <class T>
- inline void CArrayPtrFlat<T>::SetReserveL(TInt aCount)
- #line 1269
- {this->SetReserveFlatL(aCount);}
- template <class T>
- inline CArrayPtrSeg<T>::CArrayPtrSeg(TInt aGranularity)
- : CArrayPtr<T>((TBufRep)CBufSeg::NewL,aGranularity)
- #line 1287
- {}
- inline TInt CArrayVarBase::Count() const
- {return(iCount);}
- template <class T>
- inline CArrayVar<T>::CArrayVar(TBufRep aRep,TInt aGranularity)
- : CArrayVarBase(aRep,aGranularity)
- {}
- template <class T>
- inline const T &CArrayVar<T>::operator[](TInt anIndex) const
- #line 1334
- {return(*((const T *)CArrayVarBase::At(anIndex)));}
- template <class T>
- inline T &CArrayVar<T>::operator[](TInt anIndex)
- #line 1358
- {return(*((T *)CArrayVarBase::At(anIndex)));}
- template <class T>
- inline const T &CArrayVar<T>::At(TInt anIndex) const
- #line 1381
- {return(*((const T *)CArrayVarBase::At(anIndex)));}
- template <class T>
- inline T &CArrayVar<T>::At(TInt anIndex)
- #line 1403
- {return(*((T *)CArrayVarBase::At(anIndex)));}
- template <class T>
- inline void CArrayVar<T>::AppendL(const T &aRef,TInt aLength)
- #line 1423
- {CArrayVarBase::InsertL(Count(),&aRef,aLength);}
- template <class T>
- inline T &CArrayVar<T>::ExpandL(TInt anIndex,TInt aLength)
- #line 1465
- {return(*new(CArrayVarBase::ExpandL(anIndex,aLength)) T);}
- template <class T>
- inline T &CArrayVar<T>::ExtendL(TInt aLength)
- #line 1499
- {return(*new(CArrayVarBase::ExpandL(Count(),aLength)) T);}
- template <class T>
- inline TInt CArrayVar<T>::Find(const T &aRef,TKeyArrayVar &aKey,TInt &anIndex) const
- #line 1529
- {return(CArrayVarBase::Find(&aRef,aKey,anIndex));}
- 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 5 */
- #line 13 "C:\Symbian\9.1\S60_3rd\epoc32\include\apparc.h" /* stack depth 4 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\f32file.h" /* stack depth 5 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\e32svr.h" /* stack depth 6 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\e32hal.h" /* stack depth 7 */
- #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 6 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\d32locd.h" /* stack depth 7 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\partitions.h" /* stack depth 8 */
- #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 7 */
- #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 8 */
- 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 7 */
- #line 9 "C:\Symbian\9.1\S60_3rd\epoc32\include\e32svr.h" /* stack depth 6 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\e32notif.h" /* stack depth 7 */
- #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 6 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\e32ldr.h" /* stack depth 7 */
- #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 6 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\e32event.h" /* stack depth 7 */
- #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 6 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\e32ktran.h" /* stack depth 7 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\e32keys.h" /* stack depth 8 */
- #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 7 */
- 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 6 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\e32debug.h" /* stack depth 7 */
- #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 6 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\e32lmsg.h" /* stack depth 7 */
- #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 6 */
- 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 5 */
- #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);