S60UIExampleApplication.inc
上传用户:laixiong
上传日期:2007-03-11
资源大小:2994k
文件大小:540k
源码类别:
Symbian
开发平台:
C/C++
- __declspec(dllexport) TInt Copy(const RFile& anOld,const TDesC& aNew,TUint aSwitches,TRequestStatus& aStatus);
- protected:
- CFileMan(RFs& aFs);
- TInt RenameInvalidEntry(const TDesC& anOld,const TDesC& aNew,TUint aSwitch=EOverWrite);
- private:
- void CompleteOperationL();
- void DoOperationL();
- void CheckForDirectory();
- void SetFlags(TBool aOverWrite,TBool aRecurse,TBool aScanDirection,TBool aMoveRename);
- void GetSrcAndTrg(TParse& aSrcName,TFileName& aTrgName);
- void DoSynchronize(TInt aRetVal);
- TInt CheckRenameAllowed(const TDesC& aSrcName,const TDesC& aTrgName);
- private:
- void DoAttribsL();
- void DoCopyOrMoveL();
- void DoDeleteL();
- void DoRenameL();
- void DoRmDirL();
- void DoCopyFromHandleL();
- TInt DoCopy(const RFile& aSrcFile, RFile& aDstFile, TInt& aRet);
- private:
- TParse iTrgFile;
- TAction iAction;
- TUint iSetMask;
- TUint iClearMask;
- TTime iTime;
- TInt iBytesTransferred;
- RFile iSrcFileHandle;
- friend void RenameInvalidEntryL(RFs& aFs,TParse& aSrcFile);
- };
- class TFindFile
- #line 2167
- {
- public:
- __declspec(dllexport) TFindFile(RFs& aFs);
- __declspec(dllexport) TInt FindByPath(const TDesC& aFileName,const TDesC* aPathList);
- __declspec(dllexport) TInt FindByDir(const TDesC& aFileName,const TDesC& aDirPath);
- __declspec(dllexport) TInt Find();
- __declspec(dllexport) TInt FindWildByPath(const TDesC& aFileName,const TDesC* aPathList,CDir*& aDirList);
- __declspec(dllexport) TInt FindWildByDir(const TDesC& aFileName,const TDesC& aDirPath,CDir*& aDir);
- __declspec(dllexport) TInt FindWild(CDir*& aDirList);
- inline const TDesC& File() const;
- private:
- TInt DoFind();
- TInt DoFindByPath(const TDesC& aFileName,const TDesC* aPathList);
- TInt DoFindByDir(const TDesC& aFileName,const TDesC& aDir);
- TInt DoFindInDir();
- TInt DoFindNextInPath();
- TInt DoFindNextInDriveList();
- private:
- RFs* const iFs;
- TParse iFile;
- TInt iPathPos;
- TInt iCurrentDrive;
- TInt iMode;
- const TDesC* iPath;
- TDriveList iDrvList;
- CDir** iDir;
- TUint32 iReserved;
- };
- #line 2208
- typedef CDir CFileList;
- class TOpenFileScan
- #line 2226
- {
- public:
- __declspec(dllexport) TOpenFileScan(RFs& aFs);
- __declspec(dllexport) void NextL(CFileList*& aFileList);
- __declspec(dllexport) TThreadId ThreadId() const;
- private:
- RFs* iFs;
- TThreadId iThreadId;
- TInt iScanPos;
- TInt iEntryListPos;
- };
- class TFileText
- {
- public:
- enum TFileState
- {
- EStartOfFile,
- ENormal,
- EReverse
- };
- public:
- __declspec(dllexport) TFileText();
- __declspec(dllexport) void Set(RFile& aFile);
- __declspec(dllexport) TInt Read(TDes& aDes);
- __declspec(dllexport) TInt Write(const TDesC& aDes);
- __declspec(dllexport) TInt Seek(TSeek aMode);
- private:
- void NextRecord();
- TInt CheckForTerminator(TBool& anAnswer);
- TInt FillBuffer();
- private:
- const TText* iNext;
- const TText* iEnd;
- TFileState iState;
- RFile iFile;
- TBuf8<0x100> iReadBuf;
- };
- #line 2284
- __declspec(dllexport) TBool FileNamesIdentical(const TDesC& aFileName1,const TDesC& aFileName2);
- #line 2294
- class TLocalDriveMappingInfo
- {
- public:
- enum TDrvMapOperation {EWriteMappingsAndSet=0,EWriteMappingsNoSet=1,ESwapIntMappingAndSet=2};
- public:
- TInt iDriveMapping[KMaxLocalDrives];
- TDrvMapOperation iOperation;
- };
- typedef TPckgBuf<TLocalDriveMappingInfo> TLocalDriveMappingInfoBuf;
- class RPlugin : public RSubSessionBase
- {
- public:
- __declspec(dllexport) TInt Open(RFs& aFs, TInt aPos);
- __declspec(dllexport) void Close();
- protected:
- __declspec(dllexport) void DoRequest(TInt aReqNo,TRequestStatus& aStatus) const;
- __declspec(dllexport) void DoRequest(TInt aReqNo,TRequestStatus& aStatus,TDes8& a1) const;
- __declspec(dllexport) void DoRequest(TInt aReqNo,TRequestStatus& aStatus,TDes8& a1,TDes8& a2) const;
- __declspec(dllexport) TInt DoControl(TInt aFunction) const;
- __declspec(dllexport) TInt DoControl(TInt aFunction,TDes8& a1) const;
- __declspec(dllexport) TInt DoControl(TInt aFunction,TDes8& a1,TDes8& a2) const;
- __declspec(dllexport) void DoCancel(TUint aReqMask) const;
- };
- #line 2334
- const TInt KPluginAutoAttach = 0x19;
- #line 2345
- const TInt KPluginAutoLocate = 0xC8;
- const TInt KFileServerUidValue = 0x100039e3;
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\f32file.inl" /* stack depth 6 */
- #line 10
- inline const TUid& TEntry::operator[](TInt anIndex) const
- #line 21
- {return(iType[anIndex]);}
- inline TBool TEntry::IsUidPresent(TUid aUid) const
- #line 37
- {return(iType.IsPresent(aUid));}
- inline TBool TEntry::IsTypeValid() const
- #line 51
- {return(iType.IsValid());}
- inline TUid TEntry::MostDerivedUid() const
- #line 65
- {return(iType.MostDerived());}
- inline TInt EntrySize(const TEntry& anEntry)
- {return(sizeof(TUint)+sizeof(TInt)+sizeof(TTime)+sizeof(TInt)+sizeof(TUidType)+anEntry.iName.Size());}
- inline const TDesC& TFindFile::File() const
- #line 93
- {return iFile.FullName();}
- inline RFs& CDirScan::Fs()
- {return(*iFs);}
- inline TDriveUnit::operator TInt() const
- {return(iDrive);}
- #line 2355 "C:\Symbian\9.1\S60_3rd\epoc32\include\f32file.h" /* stack depth 5 */
- #line 16 "C:\Symbian\9.1\S60_3rd\epoc32\include\apparc.h" /* stack depth 4 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\gdi.h" /* stack depth 5 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\s32std.h" /* stack depth 6 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\s32strm.h" /* stack depth 7 */
- #line 12
- const TInt KMaxCardinality=0x1fffffff;
- class MStreamBuf;
- class RWriteStream;
- #line 27
- class RReadStream
- {
- public:
- inline RReadStream();
- inline RReadStream(MStreamBuf* aSource);
- inline MStreamBuf* Source();
- inline void Close();
- __declspec(dllexport) void Release();
- __declspec(dllexport) void PushL();
- inline void Pop();
- __declspec(dllexport) void ReadL(TDes8& aDes);
- __declspec(dllexport) void ReadL(TDes8& aDes,TInt aLength);
- __declspec(dllexport) void ReadL(TDes8& aDes,TChar aDelim);
- __declspec(dllexport) void ReadL(TUint8* aPtr,TInt aLength);
- __declspec(dllexport) void ReadL(TInt aLength);
- inline void ReadL(RWriteStream& aStream);
- inline void ReadL(RWriteStream& aStream,TInt aLength);
- __declspec(dllexport) void ReadL(TDes16& aDes);
- __declspec(dllexport) void ReadL(TDes16& aDes,TInt aLength);
- __declspec(dllexport) void ReadL(TDes16& aDes,TChar aDelim);
- __declspec(dllexport) void ReadL(TUint16* aPtr,TInt aLength);
- __declspec(dllexport) TInt8 ReadInt8L();
- __declspec(dllexport) TInt16 ReadInt16L();
- __declspec(dllexport) TInt32 ReadInt32L();
- __declspec(dllexport) TUint8 ReadUint8L();
- __declspec(dllexport) TUint16 ReadUint16L();
- __declspec(dllexport) TUint32 ReadUint32L();
- __declspec(dllexport) TReal32 ReadReal32L() ;
- __declspec(dllexport) TReal64 ReadReal64L() ;
- protected:
- inline void Attach(MStreamBuf* aSource);
- inline void Detach();
- private:
- MStreamBuf* iSrc;
- private:
- friend class RWriteStream;
- };
- template <class T>
- class MExternalizer;
- class TStreamRef;
- #line 82
- class RWriteStream
- {
- public:
- inline RWriteStream();
- inline RWriteStream(const MExternalizer<TStreamRef>& anExter);
- inline RWriteStream(MStreamBuf* aSink);
- inline MStreamBuf* Sink();
- __declspec(dllexport) void Close();
- __declspec(dllexport) void Release();
- __declspec(dllexport) void CommitL();
- __declspec(dllexport) void PushL();
- inline void Pop();
- __declspec(dllexport) void WriteL(const TDesC8& aDes);
- __declspec(dllexport) void WriteL(const TDesC8& aDes,TInt aLength);
- __declspec(dllexport) void WriteL(const TUint8* aPtr,TInt aLength);
- __declspec(dllexport) void WriteL(RReadStream& aStream);
- __declspec(dllexport) void WriteL(RReadStream& aStream,TInt aLength);
- __declspec(dllexport) void WriteL(const TDesC16& aDes);
- __declspec(dllexport) void WriteL(const TDesC16& aDes,TInt aLength);
- __declspec(dllexport) void WriteL(const TUint16* aPtr,TInt aLength);
- __declspec(dllexport) void WriteInt8L(TInt aValue);
- __declspec(dllexport) void WriteInt16L(TInt aValue);
- __declspec(dllexport) void WriteInt32L(TInt32 aValue);
- __declspec(dllexport) void WriteUint8L(TUint aValue);
- __declspec(dllexport) void WriteUint16L(TUint aValue);
- __declspec(dllexport) void WriteUint32L(TUint32 aValue);
- __declspec(dllexport) void WriteReal32L(TReal aValue) ;
- __declspec(dllexport) void WriteReal64L(TReal64 aValue) ;
- protected:
- inline void Attach(MStreamBuf* aSink);
- inline void Detach();
- private:
- __declspec(dllexport) void WriteRefL(TStreamRef aRef);
- private:
- MStreamBuf* iSnk;
- const MExternalizer<TStreamRef> * iExterL;
- private:
- friend class TStreamRef;
- };
- template <class T>
- inline RWriteStream& operator<<(RWriteStream& aStream,const T& anObject);
- template <class T>
- inline RReadStream& operator>>(RReadStream& aStream,T& anObject);
- #line 142
- class TCardinality
- {
- public:
- TCardinality() {}
- inline TCardinality(TInt aCount);
- inline operator TInt() const;
- __declspec(dllexport) void ExternalizeL(RWriteStream& aStream) const;
- __declspec(dllexport) void InternalizeL(RReadStream& aStream);
- private:
- TInt iCount;
- private:
- __declspec(dllexport) static void __DbgChkRange(TInt aCount);
- };
- typedef void (*TExternalizeFunction)(const TAny* aPtr,RWriteStream& aStream);
- typedef void (*TInternalizeFunction)(TAny* aPtr,RReadStream& aStream);
- #line 171
- template <class T>
- class TExternalizer
- {
- public:
- inline void operator()(const T& anObject,RWriteStream& aStream) const;
- inline static TExternalizeFunction Function();
- private:
- static void ExternalizeAsL(const TAny* aPtr,RWriteStream& aStream);
- };
- #line 188
- template<> class TExternalizer<TAny>
- {
- public:
- TExternalizer() {}
- inline TExternalizer(TExternalizeFunction aFunction);
- inline void operator()(const TAny* aPtr,RWriteStream& aStream) const;
- inline TExternalizeFunction Function() const;
- private:
- TExternalizeFunction iFunc;
- };
- template <class T>
- class TInternalizer
- {
- public:
- inline void operator()(T& anObject,RReadStream& aStream) const;
- inline static TInternalizeFunction Function();
- private:
- static void InternalizeAsL(TAny* aPtr,RReadStream& aStream);
- };
- template<> class TInternalizer<TAny>
- {
- public:
- TInternalizer() {}
- inline TInternalizer(TInternalizeFunction aFunction);
- inline void operator()(TAny* aPtr,RReadStream& aStream) const;
- inline TInternalizeFunction Function() const;
- private:
- TInternalizeFunction iFunc;
- };
- #line 258
- template <class T>
- class MExternalizer
- {
- public:
- inline void operator()(const T& anObject,RWriteStream& aStream) const;
- private:
- virtual void ExternalizeL(const T& anObject,RWriteStream& aStream) const=0;
- };
- #line 281
- template <class T>
- class MInternalizer
- {
- public:
- inline void operator()(T& anObject,RReadStream& aStream) const;
- private:
- virtual void InternalizeL(T& anObject,RReadStream& aStream) const=0;
- };
- class TStreamRef
- {
- public:
- inline TStreamRef(const TAny* aPtr,TExternalizeFunction aFunction);
- inline const TAny* Ptr() const;
- inline TExternalizeFunction Function() const;
- inline void ExternalizeL(RWriteStream& aStream) const;
- private:
- const TAny* iPtr;
- TExternalizeFunction iFunc;
- };
- class Externalize
- {
- public:
- class Member {};
- class Function {};
- };
- class Internalize
- {
- public:
- class Member {};
- class Function {};
- };
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\s32strm.inl" /* stack depth 8 */
- inline RReadStream::RReadStream()
- : iSrc(0 )
- {}
- inline RReadStream::RReadStream(MStreamBuf* aSource)
- : iSrc(aSource)
- {}
- inline MStreamBuf* RReadStream::Source()
- #line 32
- {return iSrc;}
- inline void RReadStream::Close()
- {Release();}
- inline void RReadStream::ReadL(RWriteStream& aStream)
- {aStream.WriteL(*this);}
- inline void RReadStream::ReadL(RWriteStream& aStream,TInt aLength)
- {aStream.WriteL(*this,aLength);}
- inline void RReadStream::Pop()
- {CleanupStack::Pop();}
- inline void RReadStream::Attach(MStreamBuf* aSource)
- #line 66
- {iSrc=aSource;}
- inline void RReadStream::Detach()
- {iSrc=0 ;}
- inline RWriteStream::RWriteStream()
- : iSnk(0 ),iExterL(0 )
- {}
- inline RWriteStream::RWriteStream(const MExternalizer<TStreamRef>& anExter)
- : iSnk(0 ),iExterL(&anExter)
- {}
- inline RWriteStream::RWriteStream(MStreamBuf* aSink)
- : iSnk(aSink),iExterL(0 )
- {}
- inline MStreamBuf* RWriteStream::Sink()
- {return iSnk;}
- inline void RWriteStream::Pop()
- {CleanupStack::Pop();}
- inline void RWriteStream::Attach(MStreamBuf* aSink)
- #line 119
- {iSnk=aSink;}
- inline void RWriteStream::Detach()
- {iSnk=0 ;}
- inline TCardinality::TCardinality(TInt aCount)
- :iCount(aCount)
- {
- __DbgChkRange(aCount);
- }
- inline TCardinality::operator TInt() const
- {
- __DbgChkRange(iCount);
- return iCount;
- }
- template <class T>
- inline void TExternalizer<T>::operator()(const T& anObject,RWriteStream& aStream) const
- {aStream<<anObject;}
- template <class T>
- inline TExternalizeFunction TExternalizer<T>::Function()
- {return &ExternalizeAsL;}
- template <class T>
- void TExternalizer<T>::ExternalizeAsL(const TAny* aPtr,RWriteStream& aStream)
- {aStream<<*((const T*)aPtr);}
- inline TExternalizer<TAny>::TExternalizer(TExternalizeFunction aFunction)
- : iFunc(aFunction)
- {}
- inline void TExternalizer<TAny>::operator()(const TAny* aPtr,RWriteStream& aStream) const
- {(*iFunc)(aPtr,aStream);}
- inline TExternalizeFunction TExternalizer<TAny>::Function() const
- {return iFunc;}
- template <class T>
- inline void TInternalizer<T>::operator()(T& anObject,RReadStream& aStream) const
- {aStream>>anObject;}
- template <class T>
- inline TInternalizeFunction TInternalizer<T>::Function()
- {return &InternalizeAsL;}
- template <class T>
- void TInternalizer<T>::InternalizeAsL(TAny* aPtr,RReadStream& aStream)
- {aStream>> *((T*)aPtr);}
- inline TInternalizer<TAny>::TInternalizer(TInternalizeFunction aFunction)
- : iFunc(aFunction)
- {}
- inline void TInternalizer<TAny>::operator()(TAny* aPtr,RReadStream& aStream) const
- {(*iFunc)(aPtr,aStream);}
- inline TInternalizeFunction TInternalizer<TAny>::Function() const
- {return iFunc;}
- template <class T>
- inline void MExternalizer<T>::operator()(const T& anObject,RWriteStream& aStream) const
- {ExternalizeL(anObject,aStream);}
- template <class T>
- inline void MInternalizer<T>::operator()(T& anObject,RReadStream& aStream) const
- {InternalizeL(anObject,aStream);}
- inline TStreamRef::TStreamRef(const TAny* aPtr,TExternalizeFunction aFunction)
- : iPtr(aPtr),iFunc(aFunction)
- {}
- inline const TAny* TStreamRef::Ptr() const
- {return iPtr;}
- inline TExternalizeFunction TStreamRef::Function() const
- {return iFunc;}
- inline void TStreamRef::ExternalizeL(RWriteStream& aStream) const
- {aStream.WriteRefL(*this);}
- __declspec(dllexport) void ExternalizeL(TInt64 anInt64,RWriteStream& aStream);
- __declspec(dllexport) void InternalizeL(TInt64& anInt64,RReadStream& aStream);
- __declspec(dllexport) void ExternalizeL(const TDesC8& aDes8,RWriteStream& aStream);
- __declspec(dllexport) void ExternalizeL(const TDesC16& aDes16,RWriteStream& aStream);
- __declspec(dllexport) void InternalizeL(TDes8& aDes8,RReadStream& aStream);
- __declspec(dllexport) void InternalizeL(TDes16& aDes16,RReadStream& aStream);
- __declspec(dllexport) void ExternalizeL(const TCheckedUid& aUid,RWriteStream& aStream);
- __declspec(dllexport) void InternalizeL(TCheckedUid& aUid,RReadStream& aStream);
- __declspec(dllexport) void ExternalizeL(TPoint aPoint,RWriteStream& aStream);
- __declspec(dllexport) void ExternalizeL(TSize aSize,RWriteStream& aStream);
- __declspec(dllexport) void ExternalizeL(const TRect& aRect,RWriteStream& aStream);
- __declspec(dllexport) void InternalizeL(TPoint& aPoint,RReadStream& aStream);
- __declspec(dllexport) void InternalizeL(TSize& aSize,RReadStream& aStream);
- __declspec(dllexport) void InternalizeL(TRect& aRect,RReadStream& aStream);
- __declspec(dllexport) void ExternalizeL(const CBufBase& aBuf,RWriteStream& aStream);
- __declspec(dllexport) void InternalizeL(CBufBase& aBuf,RReadStream& aStream);
- __declspec(dllexport) void ArrayExternalizeCountL(TInt aCount,RWriteStream& aStream);
- __declspec(dllexport) void DoExternalizeAllL(const CArrayFixBase& anArray,RWriteStream& aStream,TExternalizer<TAny> anExter);
- __declspec(dllexport) TInt ArrayInternalizeCountL(RReadStream& aStream);
- __declspec(dllexport) void DoInternalizeAllL(CArrayFixBase& anArray,RReadStream& aStream,TInternalizer<TAny> anInter);
- template <class T>
- inline void ExternalizeCountL(const CArrayFix<T>& anArray,RWriteStream& aStream)
- {ArrayExternalizeCountL(anArray.Count(),aStream);}
- template <class T>
- inline void ExternalizeAllL(const CArrayFix<T>& anArray,RWriteStream& aStream)
- {DoExternalizeAllL(anArray,aStream,TExternalizer<T>::Function());}
- template <class T>
- void InternalizeCountL(CArrayFix<T>& anArray,RReadStream& aStream)
- {
- TInt n=ArrayInternalizeCountL(aStream);
- anArray.ResizeL(n);
- }
- template <class T>
- inline void InternalizeAllL(CArrayFix<T>& anArray,RReadStream& aStream)
- {DoInternalizeAllL(anArray,aStream,TInternalizer<T>::Function());}
- template <class T>
- void ExternalizeL(const CArrayFix<T>& anArray,RWriteStream& aStream)
- {
- ExternalizeCountL(anArray,aStream);
- ExternalizeAllL(anArray,aStream);
- }
- template <class T>
- void InternalizeL(CArrayFix<T>& anArray,RReadStream& aStream)
- {
- InternalizeCountL(anArray,aStream);
- InternalizeAllL(anArray,aStream);
- }
- template <class T>
- inline void ExternalizeL(const T* aPtr,RWriteStream& aStream)
- {aStream<<TStreamRef(aPtr,TExternalizer<T>::Function());}
- template <class T>
- inline void DoExternalizeL(const T& anObject,RWriteStream& aStream,Externalize::Member)
- {anObject.ExternalizeL(aStream);}
- template <class T>
- inline void DoInternalizeL(T& anObject,RReadStream& aStream,Internalize::Member)
- {anObject.InternalizeL(aStream);}
- template <class T>
- inline void DoExternalizeL(const T& anObject,RWriteStream& aStream,Externalize::Function)
- {ExternalizeL(anObject,aStream);}
- template <class T>
- inline void DoInternalizeL(T& anObject,RReadStream& aStream,Internalize::Function)
- {InternalizeL(anObject,aStream);}
- inline Externalize::Member Externalization(const TAny*)
- {return Externalize::Member();}
- inline Internalize::Member Internalization(TAny*)
- {return Internalize::Member();}
- inline Externalize::Function Externalization(const TDesC8*)
- {return Externalize::Function();}
- inline Externalize::Function Externalization(const TDesC16*)
- {return Externalize::Function();}
- inline Internalize::Function Internalization(TDes8*)
- {return Internalize::Function();}
- inline Internalize::Function Internalization(TDes16*)
- {return Internalize::Function();}
- inline Externalize::Function Externalization(const CBufBase*)
- {return Externalize::Function();}
- inline Externalize::Function Externalization(const CArrayFixBase*)
- {return Externalize::Function();}
- inline Internalize::Function Internalization(CBufBase*)
- {return Internalize::Function();}
- inline Internalize::Function Internalization(CArrayFixBase*)
- {return Internalize::Function();}
- template <class T>
- inline Externalize::Function Externalization(T*const*)
- {return Externalize::Function();}
- template <class T>
- inline RWriteStream& operator<<(RWriteStream& aStream,const T& anObject)
- {DoExternalizeL(anObject,aStream,Externalization(&anObject));return aStream;}
- template <class T>
- inline RReadStream& operator>>(RReadStream& aStream,T& anObject)
- {DoInternalizeL(anObject,aStream,Internalization(&anObject));return aStream;}
- inline RWriteStream& operator<<(RWriteStream& aStream,const TInt8& anInt8)
- {aStream.WriteInt8L(anInt8);return aStream;}
- inline RWriteStream& operator<<(RWriteStream& aStream,const TInt16& anInt16)
- {aStream.WriteInt16L(anInt16);return aStream;}
- inline RWriteStream& operator<<(RWriteStream& aStream,const TInt32& anInt32)
- {aStream.WriteInt32L(anInt32);return aStream;}
- inline RWriteStream& operator<<(RWriteStream& aStream,const TUint8& aUint8)
- {aStream.WriteUint8L(aUint8);return aStream;}
- inline RWriteStream& operator<<(RWriteStream& aStream,const TUint16& aUint16)
- {aStream.WriteUint16L(aUint16);return aStream;}
- inline RWriteStream& operator<<(RWriteStream& aStream,const TUint32& aUint32)
- {aStream.WriteUint32L(aUint32);return aStream;}
- inline RWriteStream& operator<<(RWriteStream& aStream,const TReal32& aReal32)
- {aStream.WriteReal32L(aReal32);return aStream;}
- inline RWriteStream& operator<<(RWriteStream& aStream,const TReal64& aReal64)
- {aStream.WriteReal64L(aReal64);return aStream;}
- inline RReadStream& operator>>(RReadStream& aStream,TInt8& anInt8)
- {anInt8=aStream.ReadInt8L();return aStream;}
- inline RReadStream& operator>>(RReadStream& aStream,TInt16& anInt16)
- {anInt16=aStream.ReadInt16L();return aStream;}
- inline RReadStream& operator>>(RReadStream& aStream,TInt32& anInt32)
- {anInt32=aStream.ReadInt32L();return aStream;}
- inline RReadStream& operator>>(RReadStream& aStream,TUint8& aUint8)
- {aUint8=aStream.ReadUint8L();return aStream;}
- inline RReadStream& operator>>(RReadStream& aStream,TUint16& aUint16)
- {aUint16=aStream.ReadUint16L();return aStream;}
- inline RReadStream& operator>>(RReadStream& aStream,TUint32& aUint32)
- {aUint32=aStream.ReadUint32L();return aStream;}
- inline RReadStream& operator>>(RReadStream& aStream,TReal32& aReal32)
- {aReal32=aStream.ReadReal32L();return aStream;}
- inline RReadStream& operator>>(RReadStream& aStream,TReal64& aReal64)
- {aReal64=aStream.ReadReal64L();return aStream;}
- inline RWriteStream& operator<<(RWriteStream& aStream,const TInt64& anInt64)
- {ExternalizeL(anInt64,aStream);return aStream;}
- inline RReadStream& operator>>(RReadStream& aStream,TInt64& anInt64)
- {InternalizeL(anInt64,aStream);return aStream;}
- inline RWriteStream& operator<<(RWriteStream& aStream,const TUid& aUid)
- {return aStream<<aUid.iUid;}
- inline RWriteStream& operator<<(RWriteStream& aStream,const TCheckedUid& aUid)
- {ExternalizeL(aUid,aStream);return aStream;}
- inline RReadStream& operator>>(RReadStream& aStream,TUid& aUid)
- {return aStream>>aUid.iUid;}
- inline RReadStream& operator>>(RReadStream& aStream,TCheckedUid& aUid)
- {InternalizeL(aUid,aStream);return aStream;}
- inline RWriteStream& operator<<(RWriteStream& aStream,const TPoint& aPoint)
- {ExternalizeL(aPoint,aStream);return aStream;}
- inline RWriteStream& operator<<(RWriteStream& aStream,const TSize& aSize)
- {ExternalizeL(aSize,aStream);return aStream;}
- inline RWriteStream& operator<<(RWriteStream& aStream,const TRect& aRect)
- {ExternalizeL(aRect,aStream);return aStream;}
- inline RReadStream& operator>>(RReadStream& aStream,TPoint& aPoint)
- {InternalizeL(aPoint,aStream);return aStream;}
- inline RReadStream& operator>>(RReadStream& aStream,TSize& aSize)
- {InternalizeL(aSize,aStream);return aStream;}
- inline RReadStream& operator>>(RReadStream& aStream,TRect& aRect)
- {InternalizeL(aRect,aStream);return aStream;}
- inline RWriteStream& operator<<(RWriteStream& aStream,const TStreamRef& aRef)
- {aRef.ExternalizeL(aStream);return aStream;}
- #line 351 "C:\Symbian\9.1\S60_3rd\epoc32\include\s32strm.h" /* stack depth 7 */
- #line 8 "C:\Symbian\9.1\S60_3rd\epoc32\include\s32std.h" /* stack depth 6 */
- const TUint32 KNullStreamIdValue=0;
- const TUint32 KMaxStreamIdValue=0xfffffff;
- const TUint32 KMaskStreamIdValue=0xfffffff;
- const TInt KShiftStreamIdValue=28;
- #line 28
- class TStreamId
- {
- public:
- TStreamId() {}
- inline TStreamId(TUint32 aValue);
- inline TBool operator==(TStreamId anId) const;
- inline TBool operator!=(TStreamId anId) const;
- inline void ExternalizeL(RWriteStream& aStream) const;
- __declspec(dllexport) void InternalizeL(RReadStream& aStream);
- inline TUint32 Value() const;
- private:
- TUint32 iVal;
- private:
- __declspec(dllexport) static void __DbgChkRange(TUint32 aValue);
- };
- class CStreamStore;
- class RStoreReadStream : public RReadStream
- {
- public:
- __declspec(dllexport) void OpenL(const CStreamStore& aStore,TStreamId anId);
- __declspec(dllexport) void OpenLC(const CStreamStore& aStore,TStreamId anId);
- };
- #line 84
- class RStoreWriteStream : public RWriteStream
- {
- public:
- RStoreWriteStream() {}
- inline RStoreWriteStream(const MExternalizer<TStreamRef>& anExter);
- __declspec(dllexport) TStreamId CreateL(CStreamStore& aStore);
- __declspec(dllexport) TStreamId CreateLC(CStreamStore& aStore);
- __declspec(dllexport) void OpenL(CStreamStore& aStore,TStreamId anId);
- __declspec(dllexport) void OpenLC(CStreamStore& aStore,TStreamId anId);
- __declspec(dllexport) void ReplaceL(CStreamStore& aStore,TStreamId anId);
- __declspec(dllexport) void ReplaceLC(CStreamStore& aStore,TStreamId anId);
- __declspec(dllexport) void AppendL(CStreamStore& aStore,TStreamId anId);
- __declspec(dllexport) void AppendLC(CStreamStore& aStore,TStreamId anId);
- };
- #line 115
- class TSwizzleCBase
- {
- public:
- inline TBool operator==(const TSwizzleCBase& aSwizzle) const;
- inline TBool operator==(const TAny* aPtr) const;
- inline TBool operator!=(const TSwizzleCBase& aSwizzle) const;
- inline TBool operator!=(const TAny* aPtr) const;
- inline TBool IsPtr() const;
- inline TBool IsId() const;
- __declspec(dllexport) TStreamId AsId() const;
- __declspec(dllexport) void InternalizeL(RReadStream& aStream);
- protected:
- TSwizzleCBase() {}
- inline TSwizzleCBase(const TAny* aPtr);
- __declspec(dllexport) TSwizzleCBase(TStreamId anId);
- inline TSwizzleCBase(TStreamRef aRef);
- inline const TAny* Ptr() const;
- __declspec(dllexport) void DoExternalizeL(RWriteStream& aStream,TExternalizer<TAny> anExter) const;
- private:
- __declspec(dllexport) static TBool IsPtrRep(const TAny* aPtr);
- __declspec(dllexport) static TBool IsIdRep(const TAny* aPtr);
- private:
- const TAny* iPtr;
- private:
- __declspec(dllexport) static void __DbgChkPtr(const TAny* aPtr);
- __declspec(dllexport) static void __DbgChkRef(TStreamRef aRef);
- };
- inline TBool operator==(const TAny* aPtr,const TSwizzleCBase& aSwizzle);
- inline TBool operator!=(const TAny* aPtr,const TSwizzleCBase& aSwizzle);
- #line 158
- class TSwizzleBase : public TSwizzleCBase
- {
- protected:
- TSwizzleBase() {}
- inline TSwizzleBase(TAny* aPtr);
- inline TSwizzleBase(TStreamId anId);
- inline TAny* Ptr() const;
- };
- #line 184
- template <class T>
- class TSwizzle : public TSwizzleBase
- {
- public:
- TSwizzle() {}
- inline TSwizzle(T* aPtr);
- inline TSwizzle(TStreamId anId);
- inline TSwizzle<T>& operator=(T* aPtr);
- inline T* AsPtr() const;
- inline operator T*() const;
- inline T& operator*() const;
- inline T* operator->() const;
- inline void ExternalizeL(RWriteStream& aStream) const;
- };
- #line 208
- template<> class TSwizzle<TAny> : public TSwizzleBase
- {
- public:
- TSwizzle() {}
- inline TSwizzle(TAny* aPtr);
- inline TSwizzle(TStreamId anId);
- inline TSwizzle(const TSwizzleBase& aSwizzle);
- inline TSwizzle<TAny>& operator=(TAny* aPtr);
- inline TSwizzle<TAny>& operator=(const TSwizzleBase& aSwizzle);
- inline TAny* AsPtr() const;
- inline operator TAny*() const;
- };
- #line 242
- template <class T>
- class TSwizzleC : public TSwizzleCBase
- {
- public:
- TSwizzleC() {}
- inline TSwizzleC(const T* aPtr);
- inline TSwizzleC(TStreamId anId);
- inline TSwizzleC(TSwizzle<T> aSwizzle);
- inline TSwizzleC<T>& operator=(const T* aPtr);
- inline const T* AsPtr() const;
- inline operator const T*() const;
- inline const T& operator*() const;
- inline const T* operator->() const;
- inline void ExternalizeL(RWriteStream& aStream) const;
- };
- template<> class TSwizzleC<TAny> : public TSwizzleCBase
- {
- public:
- TSwizzleC() {}
- inline TSwizzleC(const TAny* aPtr);
- inline TSwizzleC(TStreamId anId);
- inline TSwizzleC(const TSwizzleCBase& aSwizzle);
- inline TSwizzleC(TStreamRef aRef);
- inline TSwizzleC<TAny>& operator=(const TAny* aPtr);
- inline TSwizzleC<TAny>& operator=(const TSwizzleCBase& aSwizzle);
- inline const TAny* AsPtr() const;
- inline operator const TAny*() const;
- };
- #line 296
- class CStoreMap : public CBase,public MExternalizer<TStreamRef>
- {
- public:
- struct TEntry {TSwizzleC<TAny> swizzle;TStreamId id;};
- typedef const TEntry* TIterator;
- public:
- __declspec(dllexport) static CStoreMap* NewL(CStreamStore& aStore);
- __declspec(dllexport) static CStoreMap* NewLC(CStreamStore& aStore);
- __declspec(dllexport) CStoreMap(CStreamStore& aStore);
- __declspec(dllexport) ~CStoreMap();
- __declspec(dllexport) void BindL(TSwizzleC<TAny> aSwizzle,TStreamId anId);
- __declspec(dllexport) void Unbind(TSwizzleC<TAny> aSwizzle);
- __declspec(dllexport) void Forget(TStreamId anId);
- __declspec(dllexport) void Reset();
- __declspec(dllexport) void ResetAndDestroy();
- __declspec(dllexport) TStreamId At(TSwizzleC<TAny> aSwizzle) const;
- __declspec(dllexport) TSwizzleC<TAny> Label(TStreamId anId) const;
- __declspec(dllexport) TIterator Begin() const;
- __declspec(dllexport) TIterator End() const;
- private:
- void ExternalizeL(const TStreamRef& aRef,RWriteStream& aStream) const;
- private:
- CArrayFixFlat<TEntry> iArray;
- TStreamId iFree;
- CStreamStore* iStore;
- };
- #line 343
- class CStreamDictionary : public CBase
- {
- public:
- __declspec(dllexport) static CStreamDictionary* NewL();
- __declspec(dllexport) static CStreamDictionary* NewLC();
- __declspec(dllexport) CStreamDictionary();
- __declspec(dllexport) ~CStreamDictionary();
- __declspec(dllexport) void AssignL(TUid aUid,TStreamId anId);
- __declspec(dllexport) void Remove(TUid aUid);
- __declspec(dllexport) TStreamId At(TUid aUid) const;
- __declspec(dllexport) TBool IsNull() const;
- __declspec(dllexport) void ExternalizeL(RWriteStream& aStream) const;
- __declspec(dllexport) void InternalizeL(RReadStream& aStream);
- private:
- class TEntry
- {
- public:
- TEntry() {}
- inline TEntry(TUid aUid,TStreamId anId);
- void ExternalizeL(RWriteStream& aStream) const;
- void InternalizeL(RReadStream& aStream);
- public:
- TUid iUid;
- TStreamId iId;
- };
- private:
- CArrayFixSeg<TEntry> iArray;
- };
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\s32std.inl" /* stack depth 7 */
- inline TStreamId::TStreamId(TUint32 aValue)
- : iVal(aValue)
- #line 22
- {
- __DbgChkRange(aValue);
- }
- inline TBool TStreamId::operator==(TStreamId anId) const
- {return iVal==anId.iVal;}
- inline TBool TStreamId::operator!=(TStreamId anId) const
- {return iVal!=anId.iVal;}
- inline void TStreamId::ExternalizeL(RWriteStream& aStream) const
- {
- __DbgChkRange(iVal);
- aStream<<iVal;
- }
- inline TUint32 TStreamId::Value() const
- {
- __DbgChkRange(iVal);
- return iVal;
- }
- inline RStoreWriteStream::RStoreWriteStream(const MExternalizer<TStreamRef>& anExter)
- : RWriteStream(anExter)
- {}
- inline TSwizzleCBase::TSwizzleCBase(TStreamRef aRef)
- : iPtr(aRef.Ptr())
- {
- __DbgChkRef(aRef);
- }
- inline TBool TSwizzleCBase::operator==(const TSwizzleCBase& aSwizzle) const
- #line 97
- {return iPtr==aSwizzle.iPtr;}
- inline TBool TSwizzleCBase::operator==(const TAny* aPtr) const
- #line 110
- {return iPtr==aPtr;}
- inline TBool TSwizzleCBase::operator!=(const TSwizzleCBase& aSwizzle) const
- #line 126
- {return iPtr!=aSwizzle.iPtr;}
- inline TBool TSwizzleCBase::operator!=(const TAny* aPtr) const
- #line 139
- {return iPtr!=aPtr;}
- inline TBool TSwizzleCBase::IsPtr() const
- {return IsPtrRep(iPtr);}
- inline TBool TSwizzleCBase::IsId() const
- {return IsIdRep(iPtr);}
- inline TSwizzleCBase::TSwizzleCBase(const TAny* aPtr)
- : iPtr(aPtr)
- {
- __DbgChkPtr(aPtr);
- }
- inline const TAny* TSwizzleCBase::Ptr() const
- {
- __DbgChkPtr(iPtr);
- return iPtr;
- }
- inline TBool operator==(const TAny* aPtr,const TSwizzleCBase& aSwizzle)
- {return aSwizzle==aPtr;}
- inline TBool operator!=(const TAny* aPtr,const TSwizzleCBase& aSwizzle)
- {return aSwizzle!=aPtr;}
- inline TSwizzleBase::TSwizzleBase(TAny* aPtr)
- : TSwizzleCBase(aPtr)
- {}
- inline TSwizzleBase::TSwizzleBase(TStreamId anId)
- : TSwizzleCBase(anId)
- {}
- inline TAny* TSwizzleBase::Ptr() const
- {return (TAny*)TSwizzleCBase::Ptr();}
- template <class T>
- inline TSwizzle<T>::TSwizzle(T* aPtr)
- : TSwizzleBase(aPtr)
- {}
- template <class T>
- inline TSwizzle<T>::TSwizzle(TStreamId anId)
- : TSwizzleBase(anId)
- {}
- template <class T>
- inline TSwizzle<T>& TSwizzle<T>::operator=(T* aPtr)
- {return *this=TSwizzle<T>(aPtr);}
- template <class T>
- inline T* TSwizzle<T>::AsPtr() const
- {return (T*)Ptr();}
- template <class T>
- inline TSwizzle<T>::operator T*() const
- {return AsPtr();}
- template <class T>
- inline T& TSwizzle<T>::operator*() const
- {return *AsPtr();}
- template <class T>
- inline T* TSwizzle<T>::operator->() const
- {return AsPtr();}
- template <class T>
- inline void TSwizzle<T>::ExternalizeL(RWriteStream& aStream) const
- #line 252
- {TSwizzleBase::DoExternalizeL(aStream,TExternalizer<T>::Function());}
- inline TSwizzle<TAny>::TSwizzle(TAny* aPtr)
- : TSwizzleBase(aPtr)
- {}
- inline TSwizzle<TAny>::TSwizzle(TStreamId anId)
- : TSwizzleBase(anId)
- {}
- inline TSwizzle<TAny>::TSwizzle(const TSwizzleBase& aSwizzle)
- : TSwizzleBase(aSwizzle)
- {}
- inline TSwizzle<TAny>& TSwizzle<TAny>::operator=(TAny* aPtr)
- {return *this=TSwizzle<TAny>(aPtr);}
- inline TSwizzle<TAny>& TSwizzle<TAny>::operator=(const TSwizzleBase& aSwizzle)
- {return *this=TSwizzle<TAny>(aSwizzle);}
- inline TAny* TSwizzle<TAny>::AsPtr() const
- {return Ptr();}
- inline TSwizzle<TAny>::operator TAny*() const
- {return AsPtr();}
- template <class T>
- inline TSwizzleC<T>::TSwizzleC(const T* aPtr)
- : TSwizzleCBase(aPtr)
- {}
- template <class T>
- inline TSwizzleC<T>::TSwizzleC(TStreamId anId)
- : TSwizzleCBase(anId)
- {}
- template <class T>
- inline TSwizzleC<T>::TSwizzleC(TSwizzle<T> aSwizzle)
- : TSwizzleCBase(aSwizzle)
- #line 328
- {}
- template <class T>
- inline TSwizzleC<T>& TSwizzleC<T>::operator=(const T* aPtr)
- {return *this=TSwizzleC<T>(aPtr);}
- template <class T>
- inline const T* TSwizzleC<T>::AsPtr() const
- #line 350
- {return (const T*)Ptr();}
- template <class T>
- inline TSwizzleC<T>::operator const T*() const
- {return AsPtr();}
- template <class T>
- inline const T& TSwizzleC<T>::operator*() const
- {return *AsPtr();}
- template <class T>
- inline const T* TSwizzleC<T>::operator->() const
- #line 373
- {return AsPtr();}
- template <class T>
- inline void TSwizzleC<T>::ExternalizeL(RWriteStream& aStream) const
- #line 393
- {TSwizzleCBase::DoExternalizeL(aStream,TExternalizer<T>::Function());}
- inline TSwizzleC<TAny>::TSwizzleC(const TAny* aPtr)
- : TSwizzleCBase(aPtr)
- {}
- inline TSwizzleC<TAny>::TSwizzleC(TStreamId anId)
- : TSwizzleCBase(anId)
- {}
- inline TSwizzleC<TAny>::TSwizzleC(const TSwizzleCBase& aSwizzle)
- : TSwizzleCBase(aSwizzle)
- {}
- inline TSwizzleC<TAny>::TSwizzleC(TStreamRef aRef)
- : TSwizzleCBase(aRef)
- {}
- inline TSwizzleC<TAny>& TSwizzleC<TAny>::operator=(const TAny* aPtr)
- {return *this=TSwizzleC<TAny>(aPtr);}
- inline TSwizzleC<TAny>& TSwizzleC<TAny>::operator=(const TSwizzleCBase& aSwizzle)
- {return *this=TSwizzleC<TAny>(aSwizzle);}
- inline const TAny* TSwizzleC<TAny>::AsPtr() const
- {return Ptr();}
- inline TSwizzleC<TAny>::operator const TAny*() const
- {return AsPtr();}
- #line 375 "C:\Symbian\9.1\S60_3rd\epoc32\include\s32std.h" /* stack depth 6 */
- #line 21 "C:\Symbian\9.1\S60_3rd\epoc32\include\gdi.h" /* stack depth 5 */
- const TInt KDefaultScreenNo = 0;
- class TOpenFontCharMetrics;
- const TInt KTwipsPerInch=1440;
- const TInt KTwipsPerPoint=20;
- const TInt KPointsPerInch=72;
- const TInt KTwipsPerCm=567;
- #line 131
- enum TGdiPanic
- {
- EGdiPanic_Unknown = 0,
- EGdiPanic_InvalidInputParam = 1,
- EGdiPanic_OutOfText = 2,
- EGdiPanic_Invariant = 3
- };
- #line 178
- class TRgb
- {
- public:
- inline TRgb();
- inline TRgb(TUint32 aValue);
- inline TRgb(TUint32 aInternalValue, TInt aAlpha);
- inline TRgb(TInt aRed,TInt aGreen,TInt aBlue);
- inline TRgb(TInt aRed, TInt aGreen, TInt aBlue, TInt aAlpha);
- inline TInt Red() const;
- inline TInt Green() const;
- inline TInt Blue() const;
- inline TInt Alpha() const;
- __declspec(dllexport) void SetRed(TInt aRed);
- __declspec(dllexport) void SetGreen(TInt aGreen);
- __declspec(dllexport) void SetBlue(TInt aBlue);
- __declspec(dllexport) void SetAlpha(TInt aAlpha);
- __declspec(dllexport) static TRgb Gray2(TInt aGray2);
- __declspec(dllexport) static TRgb Gray4(TInt aGray4);
- __declspec(dllexport) static TRgb Gray16(TInt aGray16);
- __declspec(dllexport) static TRgb Gray256(TInt aGray256);
- __declspec(dllexport) static TRgb Color16(TInt aColor16);
- __declspec(dllexport) static TRgb Color256(TInt aColor256);
- __declspec(dllexport) static TRgb Color4K(TInt aColor4K);
- __declspec(dllexport) static TRgb Color64K(TInt aColor64K);
- __declspec(dllexport) static TRgb Color16M(TInt aColor16M);
- __declspec(dllexport) TInt Gray2() const;
- __declspec(dllexport) TInt Gray4() const;
- __declspec(dllexport) TInt Gray16() const;
- __declspec(dllexport) TInt Gray256() const;
- __declspec(dllexport) TInt Color16() const;
- __declspec(dllexport) TInt Color256() const;
- __declspec(dllexport) TInt Color4K() const;
- __declspec(dllexport) TInt Color64K() const;
- __declspec(dllexport) TInt Color16M() const;
- inline TBool operator==(const TRgb& aColor) const;
- inline TBool operator!=(const TRgb& aColor) const;
- inline TRgb operator~() const;
- inline TRgb operator&(const TRgb& aColor);
- inline TRgb operator|(const TRgb& aColor);
- inline TRgb operator^(const TRgb& aColor);
- inline TRgb& operator&=(const TRgb& aColor);
- inline TRgb& operator|=(const TRgb& aColor);
- inline TRgb& operator^=(const TRgb& aColor);
- inline TUint32 Value() const;
- inline TUint32 Internal() const;
- inline void SetInternal(TUint32 aInternal);
- __declspec(dllexport) TInt Difference(const TRgb& aColor) const;
- __declspec(dllexport) void InternalizeL(RReadStream& aStream);
- __declspec(dllexport) void ExternalizeL(RWriteStream& aStream) const;
- __declspec(dllexport) static TRgb Color16MU(TInt a0RGB);
- __declspec(dllexport) TInt Color16MU() const;
- __declspec(dllexport) static TRgb Color16MA(TUint aARGB);
- __declspec(dllexport) TUint Color16MA() const;
- inline TInt _Gray2() const;
- inline TInt _Gray4() const;
- inline TInt _Gray16() const;
- inline TInt _Gray256() const;
- inline TInt _Color4K() const;
- inline TInt _Color64K() const;
- inline TInt _Color16M() const;
- inline TInt _Color16MU() const;
- inline TUint _Color16MA() const;
- inline static TRgb _Gray2(TInt aGray2);
- inline static TRgb _Gray4(TInt aGray4);
- inline static TRgb _Gray16(TInt aGray16);
- inline static TRgb _Gray256(TInt aGray256);
- inline static TRgb _Color4K(TInt aColor4K);
- inline static TRgb _Color64K(TInt aColor64K);
- inline static TRgb _Color16M(TInt aColor16M);
- inline static TRgb _Color16MU(TInt a0RGB);
- inline static TRgb _Color16MA(TUint aARGB);
- private:
- TUint32 iValue;
- };
- #line 279
- enum TDisplayMode
- {
- ENone,
- EGray2,
- EGray4,
- EGray16,
- EGray256,
- EColor16,
- EColor256,
- EColor64K,
- EColor16M,
- ERgb,
- EColor4K,
- EColor16MU,
- EColor16MA,
- EColorLast
- };
- class TDisplayModeUtils
- {
- public:
- __declspec(dllexport) static TBool IsDisplayModeColor(TDisplayMode aDispMode);
- __declspec(dllexport) static TInt NumDisplayModeColors(TDisplayMode aDispMode);
- __declspec(dllexport) static TInt NumDisplayModeBitsPerPixel(TDisplayMode aDispMode);
- };
- #line 351
- class CPalette : public CBase
- {
- public:
- __declspec(dllexport) static CPalette* NewL(TInt aNumberOfEntries);
- __declspec(dllexport) static CPalette* NewDefaultL(TDisplayMode aDispMode);
- __declspec(dllexport) ~CPalette();
- __declspec(dllexport) void Clear();
- inline TInt Entries() const;
- __declspec(dllexport) TRgb GetEntry(TInt aPaletteIndex) const;
- __declspec(dllexport) TRgb NearestEntry(const TRgb& aColor) const;
- __declspec(dllexport) TInt NearestIndex(const TRgb& aColor) const;
- __declspec(dllexport) void SetEntry(TInt aPaletteIndex,const TRgb& aPaletteEntry);
- __declspec(dllexport) void GetDataPtr(TInt aFirstColor,TInt aNumColors,TPtr8& aPtr);
- protected:
- __declspec(dllexport) CPalette();
- void ConstructL(TInt aNumberOfEntries);
- protected:
- TRgb* iArray;
- TInt iNumEntries;
- };
- class TColor256Util
- {
- public:
- __declspec(dllexport) void Construct(const CPalette& aPalette);
- __declspec(dllexport) TInt Color256(TRgb aRgb) const;
- __declspec(dllexport) void Color256(TUint8* aDestination,const TRgb* aSource,TInt aNumPixels) const;
- inline TRgb Color256(TInt aColor256) const;
- __declspec(dllexport) static const TColor256Util* Default();
- public:
- TUint32 iColorTable[256];
- #line 404
- TUint8 iInverseColorTable[0x1000];
- };
- #line 419
- class TLinearDDA
- {
- public:
- enum TLineMode
- {
- ECenter,
- ELeft
- };
- public:
- __declspec(dllexport) TLinearDDA();
- __declspec(dllexport) TLinearDDA(const TLinearDDA& aLine);
- __declspec(dllexport) void Construct(const TPoint& aStart,const TPoint& aFinish,TLineMode aMode=ECenter);
- __declspec(dllexport) TBool SingleStep(TPoint& aPosition);
- __declspec(dllexport) TBool SingleScanline(TPoint& aStartPosition,TPoint& aEndPosition);
- __declspec(dllexport) TBool NextStep(TPoint& aPosition);
- __declspec(dllexport) void JumpToRect(const TRect& aRect);
- __declspec(dllexport) void JumpToXCoord(const TInt aXCoord,TInt& aYCoord);
- __declspec(dllexport) void JumpToYCoord(TInt& aXCoord,const TInt aYCoord);
- private:
- void UpdatePosition();
- private:
- enum TLineStatus
- {
- EInitialised,
- ECurrent,
- EComplete
- };
- private:
- TInt iCount;
- TSize iDifference;
- TPoint iFinish;
- TInt iGradient;
- TPoint iInc;
- TPoint iPos;
- TPoint iStart;
- TRect iBoundingRect;
- TBool iBoundingRectSet;
- TBool iInside;
- TLineStatus iStatus;
- };
- #line 471
- enum TFontPosture
- {
- EPostureUpright,
- EPostureItalic
- };
- enum TFontStrokeWeight
- {
- EStrokeWeightNormal,
- EStrokeWeightBold
- };
- enum TFontPrintPosition
- {
- EPrintPosNormal,
- EPrintPosSuperscript,
- EPrintPosSubscript
- };
- enum TFontUnderline
- {
- EUnderlineOff,
- EUnderlineOn
- };
- enum TFontStrikethrough
- {
- EStrikethroughOff,
- EStrikethroughOn
- };
- const TInt KMaxTypefaceNameLength=0x18;
- #line 556
- class TTypeface
- {
- public:
- enum
- {
- EProportional=1,
- ESerif=2,
- ESymbol=4
- };
- public:
- __declspec(dllexport) TTypeface();
- __declspec(dllexport) TBool operator==(const TTypeface& aTypeface) const;
- __declspec(dllexport) void InternalizeL(RReadStream& aStream);
- __declspec(dllexport) void ExternalizeL(RWriteStream& aStream) const;
- __declspec(dllexport) void SetAttributes(TInt aMask);
- __declspec(dllexport) void SetIsProportional(TBool aIsProportional);
- __declspec(dllexport) void SetIsSerif(TBool aIsSerif);
- __declspec(dllexport) void SetIsSymbol(TBool aIsSymbol);
- __declspec(dllexport) TInt Attributes() const;
- __declspec(dllexport) TBool IsProportional() const;
- __declspec(dllexport) TBool IsSerif() const;
- __declspec(dllexport) TBool IsSymbol() const;
- public:
- TBufC<KMaxTypefaceNameLength> iName;
- private:
- TUint32 iFlags;
- };
- #line 600
- enum TGlyphBitmapType
- {
- EDefaultGlyphBitmap = 0,
- EMonochromeGlyphBitmap,
- EAntiAliasedGlyphBitmap
- };
- #line 618
- class FontEffect
- {
- public:
- enum TEffect
- {
- ENone = 0x0,
- EAlgorithmicBold= 0x10,
- EDropShadow = 0x20,
- EOutline = 0x40,
- EEmbossed = 0x80,
- EEngraved = 0x100,
- ESoftEdge = 0x200,
- EUserDefined1 = 0x400,
- EUserDefined2 = 0x800,
- EUserDefined3 = 0x1000,
- EUserDefined4 = 0x2000,
- EUserDefined5 = 0x4000,
- EUserDefined6 = 0x8000,
- };
- public:
- __declspec(dllexport) static TBool IsEffectOn(TEffect aEffect, TUint32 aFontEffect);
- __declspec(dllexport) static void SetEffect(TEffect aEffect, TBool aOn, TUint32& aFontEffect);
- };
- #line 661
- class TFontStyle
- {
- public:
- __declspec(dllexport) TFontStyle();
- __declspec(dllexport) TFontStyle(TFontPosture aPost,TFontStrokeWeight aStrWgt,TFontPrintPosition aPrintPos);
- __declspec(dllexport) void InternalizeL(RReadStream& aStream);
- __declspec(dllexport) void ExternalizeL(RWriteStream& aStream) const;
- __declspec(dllexport) TFontPosture Posture() const;
- __declspec(dllexport) TFontStrokeWeight StrokeWeight() const;
- __declspec(dllexport) TFontPrintPosition PrintPosition() const;
- __declspec(dllexport) void SetPosture(TFontPosture aPosture);
- __declspec(dllexport) void SetStrokeWeight(TFontStrokeWeight aStrokeWeight);
- __declspec(dllexport) void SetPrintPosition(TFontPrintPosition aPrintPosition);
- inline TGlyphBitmapType BitmapType() const;
- inline void SetBitmapType(TGlyphBitmapType aBitmapType);
- inline TBool operator==(const TFontStyle& aFontStyle) const;
- __declspec(dllexport) TUint32 Effects() const;
- __declspec(dllexport) TBool IsEffectOn(FontEffect::TEffect aEffect) const;
- __declspec(dllexport) void SetEffects(TUint32 aEffects);
- __declspec(dllexport) void SetEffects(FontEffect::TEffect aEffect, TBool aOn);
- private:
- enum
- {
- EItalic=0x1,
- EBold=0x2,
- ESuper=0x4,
- ESub=0x8
- };
- private:
- TUint32 iFlags;
- TAny* iReserved1;
- TAny* iReserved2;
- };
- #line 703
- class TFontSpec
- {
- public:
- __declspec(dllexport) TFontSpec();
- __declspec(dllexport) TFontSpec(const TDesC& aTypefaceName,TInt aHeight);
- __declspec(dllexport) TBool operator==(const TFontSpec& aFontSpec) const;
- __declspec(dllexport) void InternalizeL(RReadStream& aStream);
- __declspec(dllexport) void ExternalizeL(RWriteStream& aStream) const;
- public:
- TTypeface iTypeface;
- TInt iHeight;
- TFontStyle iFontStyle;
- };
- #line 731
- class TTypefaceSupport
- {
- public:
- TTypeface iTypeface;
- TInt iNumHeights;
- TInt iMinHeightInTwips;
- TInt iMaxHeightInTwips;
- TBool iIsScalable;
- };
- const TInt KSuperSubScalingPercentage=67;
- const TInt KSuperscriptOffsetPercentage=-28;
- const TInt KSubscriptOffsetPercentage=14;
- class CFont;
- #line 783
- class CTypefaceStore : public CBase
- {
- public:
- __declspec(dllexport) ~CTypefaceStore();
- #line 801
- virtual TInt GetNearestFontInTwips(CFont*& aFont, const TFontSpec& aFontSpec) = 0;
- #line 815
- virtual TInt GetNearestFontToDesignHeightInTwips(CFont*& aFont, const TFontSpec& aFontSpec) = 0;
- #line 836
- virtual TInt GetNearestFontToMaxHeightInTwips(CFont*& aFont, const TFontSpec& aFontSpec, TInt aMaxHeight) = 0;
- virtual TInt NumTypefaces() const=0;
- #line 854
- virtual void TypefaceSupport(TTypefaceSupport& aTypefaceSupport,TInt aTypefaceIndex) const=0;
- #line 865
- virtual TInt FontHeightInTwips(TInt aTypefaceIndex,TInt aHeightIndex) const=0;
- __declspec(dllexport) void ReleaseFont(CFont* aFont);
- __declspec(dllexport) static TInt BaselineOffset(TInt aHeight,TFontPrintPosition aPos);
- __declspec(dllexport) static TInt SuperSubHeight(TInt aHeight,TFontPrintPosition aPos);
- protected:
- __declspec(dllexport) CTypefaceStore();
- __declspec(dllexport) void ConstructL();
- __declspec(dllexport) void AddFontL(CFont* aFont);
- protected:
- class TFontAccess
- {
- public:
- CFont* iFont;
- TInt iAccessCount;
- };
- protected:
- #line 896
- CArrayFixFlat<TFontAccess> * iFontAccess;
- };
- const TInt KMaxFontCacheEntries=32;
- #line 919
- class CFontCache : public CBase
- {
- public:
- __declspec(dllexport) CFontCache();
- __declspec(dllexport) CFontCache(TInt aMaxEntries);
- __declspec(dllexport) ~CFontCache();
- __declspec(dllexport) CFont* Search(const TFontSpec& aFontSpec);
- __declspec(dllexport) CFont* AddEntryL(CFont* aFont,const TFontSpec& aFontSpec);
- __declspec(dllexport) CFont* RemoveFirstEntry();
- public:
- TInt iNumHits;
- TInt iNumMisses;
- private:
- class CFontCacheEntry : public CBase
- {
- public:
- CFontCacheEntry(CFont* aFont,const TFontSpec& aFontSpec,CFontCacheEntry* aNext);
- public:
- CFont* iFont;
- TFontSpec iSpec;
- CFontCacheEntry* iNext;
- };
- private:
- TInt iNumEntries;
- TInt iMaxEntries;
- CFontCacheEntry* iFirst;
- };
- #line 960
- class MGraphicsDeviceMap
- {
- public:
- __declspec(dllexport) MGraphicsDeviceMap();
- __declspec(dllexport) virtual ~MGraphicsDeviceMap();
- __declspec(dllexport) TPoint TwipsToPixels(const TPoint& aTwipPoint) const;
- __declspec(dllexport) TRect TwipsToPixels(const TRect& aTwipRect) const;
- __declspec(dllexport) TPoint PixelsToTwips(const TPoint& aPixelPoint) const;
- __declspec(dllexport) TRect PixelsToTwips(const TRect& aPixelRect) const;
- virtual TInt HorizontalTwipsToPixels(TInt aTwips) const=0;
- virtual TInt VerticalTwipsToPixels(TInt aTwips) const=0;
- virtual TInt HorizontalPixelsToTwips(TInt aPixels) const=0;
- virtual TInt VerticalPixelsToTwips(TInt aPixels) const=0;
- #line 1016
- virtual TInt GetNearestFontInTwips(CFont*& aFont,const TFontSpec& aFontSpec)=0;
- #line 1034
- virtual TInt GetNearestFontToDesignHeightInTwips(CFont*& , const TFontSpec& ){return 0;}
- #line 1056
- virtual TInt GetNearestFontToMaxHeightInTwips(CFont*& , const TFontSpec& , TInt ){return 0;}
- #line 1068
- virtual void ReleaseFont(CFont* aFont)=0;
- };
- class CGraphicsContext;
- #line 1083
- class CGraphicsDevice : public CBase , public MGraphicsDeviceMap
- {
- public:
- virtual TDisplayMode DisplayMode() const=0;
- virtual TSize SizeInPixels() const=0;
- virtual TSize SizeInTwips() const=0;
- virtual TInt CreateContext(CGraphicsContext*& aGC)=0;
- virtual TInt NumTypefaces() const=0;
- #line 1129
- virtual void TypefaceSupport(TTypefaceSupport& aTypefaceSupport,TInt aTypefaceIndex) const=0;
- #line 1143
- virtual TInt FontHeightInTwips(TInt aTypefaceIndex,TInt aHeightIndex) const=0;
- virtual void PaletteAttributes(TBool& aModifiable,TInt& aNumEntries) const=0;
- virtual void SetPalette(CPalette* aPalette)=0;
- virtual TInt GetPalette(CPalette*& aPalette) const=0;
- };
- #line 1175
- class TCodeSection
- {
- public:
- TInt iStart;
- TInt iEnd;
- };
- const TUid KFontCapitalAscent = {0x1020498E};
- const TUid KFontMaxAscent = {0x10204B10};
- const TUid KFontStandardDescent = {0x10204B11};
- const TUid KFontMaxDescent = {0x10205AFC};
- const TUid KFontLineGap = {0x10204B12};
- #line 1209
- class CFont : public CBase
- {
- friend class CTypefaceStore;
- public:
- #line 1221
- enum TTextDirection
- {
- EHorizontal,
- EVertical
- };
- #line 1240
- class TPositionParam
- {
- public:
- TPositionParam():
- iDirection(EHorizontal),
- iFlags(0),
- iPosInText(0),
- iOutputGlyphs(0)
- {
- }
- enum
- {
- EMaxInputChars = 18,
- EMaxOutputGlyphs = 8
- };
- enum TFlags
- {
- EFLogicalOrder = 1
- };
- TInt16 iDirection;
- TUint16 iFlags;
- TPtrC iText;
- TInt iPosInText;
- TPoint iPen;
- class TOutput
- {
- public:
- TOutput() : iBitmapSize(TSize::EUninitialized),
- iBounds(TRect::EUninitialized) {}
- TUint iCode;
- const TUint8* iBitmap;
- TSize iBitmapSize;
- TRect iBounds;
- };
- TOutput iOutput[EMaxOutputGlyphs];
- TInt iOutputGlyphs;
- };
- #line 1317
- class TMeasureTextInput
- {
- public:
- TMeasureTextInput():
- iStartInputChar(0),
- iEndInputChar(KMaxTInt),
- iDirection(EHorizontal),
- iFlags(0),
- iMaxAdvance(KMaxTInt),
- iMaxBounds(KMaxTInt),
- iCharJustNum(0),
- iCharJustExcess(0),
- iWordJustNum(0),
- iWordJustExcess(0)
- {
- }
- enum TFlags
- {
- EFVisualOrder = 1
- };
- TInt iStartInputChar;
- TInt iEndInputChar;
- TUint16 iDirection;
- TUint16 iFlags;
- TInt iMaxAdvance;
- TInt iMaxBounds;
- TInt iCharJustNum;
- TInt iCharJustExcess;
- TInt iWordJustNum;
- TInt iWordJustExcess;
- };
- #line 1389
- class TMeasureTextOutput
- {
- public:
- TInt iChars;
- TInt iGlyphs;
- TInt iGroups;
- TInt iSpaces;
- TRect iBounds;
- TSize iMaxGlyphSize;
- };
- #line 1422
- enum TCharacterDataAvailability
- {
- ENoCharacterData,
- ECharacterWidthOnly,
- EAllCharacterData
- };
- private:
- virtual TUid DoTypeUid() const=0;
- virtual TInt DoHeightInPixels() const=0;
- virtual TInt DoAscentInPixels() const=0;
- __declspec(dllexport) virtual TInt DoDescentInPixels() const;
- virtual TInt DoCharWidthInPixels(TChar aChar) const=0;
- virtual TInt DoTextWidthInPixels(const TDesC& aText) const=0;
- virtual TInt DoBaselineOffsetInPixels() const=0;
- virtual TInt DoTextCount(const TDesC& aText,TInt aWidthInPixels) const=0;
- virtual TInt DoTextCount(const TDesC& aText,TInt aWidthInPixels,TInt& aExcessWidthInPixels) const=0;
- virtual TInt DoMaxCharWidthInPixels() const=0;
- virtual TInt DoMaxNormalCharWidthInPixels() const=0;
- virtual TFontSpec DoFontSpecInTwips() const=0;
- protected:
- __declspec(dllexport) virtual TCharacterDataAvailability DoGetCharacterData(TUint aCode, TOpenFontCharMetrics& aMetrics,const TUint8*& aBitmap,TSize& aBitmapSize) const;
- __declspec(dllexport) virtual TBool DoGetCharacterPosition(TPositionParam& aParam) const;
- __declspec(dllexport) virtual TInt DoExtendedFunction(TUid aFunctionId, TAny* aParam = 0 ) const;
- protected:
- __declspec(dllexport) virtual ~CFont();
- public:
- inline TInt FontCapitalAscent() const;
- inline TInt FontMaxAscent() const;
- inline TInt FontStandardDescent() const;
- inline TInt FontMaxDescent() const;
- inline TInt FontLineGap() const;
- inline TInt FontMaxHeight() const;
- public:
- #line 1475
- __declspec(dllexport) TUid TypeUid() const;
- __declspec(dllexport) TInt HeightInPixels() const;
- __declspec(dllexport) TInt AscentInPixels() const;
- __declspec(dllexport) TInt DescentInPixels() const;
- __declspec(dllexport) TInt CharWidthInPixels(TChar aChar) const;
- __declspec(dllexport) TInt TextWidthInPixels(const TDesC& aText) const;
- __declspec(dllexport) TInt BaselineOffsetInPixels() const;
- #line 1528
- __declspec(dllexport) TInt TextCount(const TDesC& aText,TInt aWidthInPixels) const;
- #line 1544
- __declspec(dllexport) TInt TextCount(const TDesC& aText,TInt aWidthInPixels,TInt& aExcessWidthInPixels) const;
- __declspec(dllexport) TInt MaxCharWidthInPixels() const;
- __declspec(dllexport) TInt MaxNormalCharWidthInPixels() const;
- __declspec(dllexport) TFontSpec FontSpecInTwips() const;
- __declspec(dllexport) TCharacterDataAvailability GetCharacterData(TUint aCode, TOpenFontCharMetrics& aMetrics,const TUint8*& aBitmap,TSize& aBitmapSize) const;
- __declspec(dllexport) TBool GetCharacterPosition(TPositionParam& aParam) const;
- __declspec(dllexport) TInt WidthZeroInPixels() const;
- __declspec(dllexport) TInt MeasureText(const TDesC& aText, const TMeasureTextInput* aInput = 0 , TMeasureTextOutput* aOutput = 0 ) const;
- __declspec(dllexport) static TBool CharactersJoin(TInt aLeftCharacter, TInt aRightCharacter);
- __declspec(dllexport) TInt ExtendedFunction(TUid aFunctionId, TAny* aParam = 0 ) const;
- };
- class CFbsBitmap;
- class CWsBitmap;
- #line 1602
- class CGraphicsContext : public CBase
- {
- public:
- enum TTextAlign
- {
- ELeft,
- ECenter,
- ERight
- };
- #line 1628
- enum TDrawModeComponents
- {
- EInvertScreen=1,
- EXor=2,
- EOr=4,
- EAnd=8,
- ELogicalOp=14,
- EInvertPen=16,
- EPenmode=32,
- EWriteAlpha=64,
- };
- #line 1682
- enum TDrawMode
- {
- EDrawModeAND=EAnd,
- EDrawModeNOTAND=EInvertScreen|EAnd,
- EDrawModePEN=EPenmode,
- EDrawModeANDNOT=EAnd|EInvertPen,
- EDrawModeXOR=EXor,
- EDrawModeOR=EOr,
- EDrawModeNOTANDNOT=EInvertScreen|EAnd|EInvertPen,
- EDrawModeNOTXOR=EInvertScreen|EXor,
- EDrawModeNOTSCREEN=EInvertScreen,
- EDrawModeNOTOR=EInvertScreen|EOr,
- EDrawModeNOTPEN=EInvertPen|EPenmode,
- EDrawModeORNOT=EOr|EInvertPen,
- EDrawModeNOTORNOT=EInvertScreen|EOr|EInvertPen,
- EDrawModeWriteAlpha=EWriteAlpha,
- };
- #line 1730
- enum TPenStyle
- {
- ENullPen,
- ESolidPen,
- EDottedPen,
- EDashedPen,
- EDotDashPen,
- EDotDotDashPen
- };
- enum TBrushStyle
- {
- ENullBrush,
- ESolidBrush,
- EPatternedBrush,
- EVerticalHatchBrush,
- EForwardDiagonalHatchBrush,
- EHorizontalHatchBrush,
- ERearwardDiagonalHatchBrush,
- ESquareCrossHatchBrush,
- EDiamondCrossHatchBrush
- };
- #line 1799
- enum TFillRule
- {
- EAlternate,
- EWinding
- };
- struct TDrawTextParam
- {
- public:
- TDrawTextParam():
- iDirection(CFont::EHorizontal),
- iCharJustNum(0),
- iCharJustExcess(0),
- iWordJustNum(0),
- iWordJustExcess(0)
- {}
- public:
- CFont::TTextDirection iDirection;
- TInt iCharJustNum;
- TInt iCharJustExcess;
- TInt iWordJustNum;
- TInt iWordJustExcess;
- };
- struct TDrawTextExtendedParam : public TDrawTextParam
- {
- public:
- TDrawTextExtendedParam():
- iParRightToLeft(EFalse)
- {}
- public:
- TBool iParRightToLeft;
- };
- public:
- virtual CGraphicsDevice* Device() const=0;
- virtual void SetOrigin(const TPoint& aPos=TPoint(0,0))=0;
- #line 1912
- virtual void SetDrawMode(TDrawMode aDrawingMode)=0;
- virtual void SetClippingRect(const TRect& aRect)=0;
- virtual void CancelClippingRect()=0;
- #line 1941
- virtual void Reset()=0;
- #line 1964
- virtual void UseFont(const CFont* aFont)=0;
- virtual void DiscardFont()=0;
- virtual void SetUnderlineStyle(TFontUnderline aUnderlineStyle)=0;
- virtual void SetStrikethroughStyle(TFontStrikethrough aStrikethroughStyle)=0;
- __declspec(dllexport) static TInt JustificationInPixels(TInt aExcessPixels,TInt aTotalUnits,TInt aFirstUnit,TInt aNumUnits);
- __declspec(dllexport) static TInt JustificationInPixels(TInt& aExcessPixels,TInt& aTotalUnits);
- #line 2034
- virtual void SetWordJustification(TInt aExcessWidth,TInt aNumGaps)=0;
- #line 2110
- virtual void SetCharJustification(TInt aExcessWidth,TInt aNumChars)=0;
- #line 2125
- virtual void SetPenColor(const TRgb& aColor)=0;
- #line 2165
- virtual void SetPenStyle(TPenStyle aPenStyle)=0;
- #line 2204
- virtual void SetPenSize(const TSize& aSize)=0;
- #line 2221
- virtual void SetBrushColor(const TRgb& aColor)=0;
- #line 2242
- virtual void SetBrushStyle(TBrushStyle aBrushStyle)=0;
- #line 2270
- virtual void SetBrushOrigin(const TPoint& aOrigin)=0;
- #line 2295
- virtual void UseBrushPattern(const CFbsBitmap* aBitmap)=0;
- #line 2309
- virtual void DiscardBrushPattern()=0;
- #line 2327
- virtual void MoveTo(const TPoint& aPoint)=0;
- #line 2344
- virtual void MoveBy(const TPoint& aVector)=0;
- #line 2358
- virtual void Plot(const TPoint& aPoint)=0;
- #line 2397
- virtual void DrawArc(const TRect& aRect,const TPoint& aStart,const TPoint& aEnd)=0;
- virtual void DrawLine(const TPoint& aPoint1,const TPoint& aPoint2)=0;
- virtual void DrawLineTo(const TPoint& aPoint)=0;
- #line 2424
- virtual void DrawLineBy(const TPoint& aVector)=0;
- virtual void DrawPolyLine(const CArrayFix<TPoint> * aPointList)=0;
- #line 2441
- virtual void DrawPolyLine(const TPoint* aPointList,TInt aNumPoints)=0;
- #line 2488
- virtual void DrawPie(const TRect& aRect,const TPoint& aStart,const TPoint& aEnd)=0;
- #line 2504
- virtual void DrawEllipse(const TRect& aRect)=0;
- virtual void DrawRect(const TRect& aRect)=0;
- #line 2529
- virtual void DrawRoundRect(const TRect& aRect,const TSize& aCornerSize)=0;
- #line 2546
- virtual TInt DrawPolygon(const CArrayFix<TPoint> * aPointList,TFillRule aFillRule=EAlternate)=0;
- #line 2565
- virtual TInt DrawPolygon(const TPoint* aPointList,TInt aNumPoints,TFillRule aFillRule=EAlternate)=0;
- #line 2588
- virtual void DrawBitmap(const TPoint& aTopLeft,const CFbsBitmap* aSource)=0;
- #line 2611
- virtual void DrawBitmap(const TRect& aDestRect,const CFbsBitmap* aSource)=0;
- #line 2634
- virtual void DrawBitmap(const TRect& aDestRect,const CFbsBitmap* aSource,const TRect& aSourceRect)=0;
- #line 2650
- virtual void DrawBitmapMasked(const TRect& aDestRect,const CFbsBitmap* aBitmap,const TRect& aSourceRect,const CFbsBitmap* aMaskBitmap,TBool aInvertMask)=0;
- #line 2677
- virtual void DrawBitmapMasked(const TRect& aDestRect,const CWsBitmap* aBitmap,const TRect& aSourceRect,const CWsBitmap* aMaskBitmap,TBool aInvertMask)=0;
- #line 2694
- virtual void DrawText(const TDesC& aText,const TPoint& aPosition) = 0;
- #line 2750
- virtual void DrawText(const TDesC& aText,const TRect& aBox,TInt aBaselineOffset,TTextAlign aAlignment = ELeft,
- TInt aLeftMargin = 0) = 0;
- __declspec(dllexport) virtual void DrawText(const TDesC& aText,const TPoint& aPosition,const TDrawTextParam& aParam);
- __declspec(dllexport) virtual void Reserved();
- __declspec(dllexport) TInt DrawTextExtended(const TDesC& aText,const TPoint& aPosition,const TDrawTextExtendedParam& aParam);
- #line 2766
- virtual void MapColors(const TRect &aRect,const TRgb *aColors,TInt aNumPairs,TBool aMapForwards) = 0;
- virtual TInt SetClippingRegion(const TRegion &aRegion) = 0;
- virtual void CancelClippingRegion() = 0;
- virtual void DrawTextVertical(const TDesC& aText,const TPoint& aPos,TBool aUp) = 0;
- #line 2791
- virtual void DrawTextVertical(const TDesC& aText,const TRect& aBox,TInt aBaselineOffset,TBool aUp,TTextAlign aVert=ELeft,TInt aMargin=0) = 0;
- protected:
- __declspec(dllexport) virtual void Reserved_CGraphicsContext_1();
- __declspec(dllexport) virtual void Reserved_CGraphicsContext_2();
- };
- #line 2822
- class CBitmapContext : public CGraphicsContext
- {
- public:
- virtual void Clear()=0;
- #line 2839
- virtual void Clear(const TRect& aRect)=0;
- #line 2848
- virtual void CopyRect(const TPoint& aOffset,const TRect& aRect)=0;
- #line 2857
- virtual void BitBlt(const TPoint& aPoint,const CFbsBitmap* aBitmap)=0;
- #line 2872
- virtual void BitBlt(const TPoint& aPoint,const CFbsBitmap* aBitmap,const TRect& aRect)=0;
- #line 2906
- virtual void BitBltMasked(const TPoint& aPoint,const CFbsBitmap* aBitmap,const TRect& aSourceRect,const CFbsBitmap* aMaskBitmap,TBool aInvertMask)=0;
- virtual void SetFaded(TBool aFaded)=0;
- #line 2932
- virtual void SetFadingParameters(TUint8 aBlackMap,TUint8 aWhiteMap)=0;
- #line 2952
- virtual TInt AlphaBlendBitmaps(const TPoint& aDestPt, const CFbsBitmap* aSrcBmp, const TRect& aSrcRect, const CFbsBitmap* aAlphaBmp, const TPoint& aAlphaPt) = 0;
- #line 2965
- virtual TInt AlphaBlendBitmaps(const TPoint& aDestPt, const CWsBitmap* aSrcBmp, const TRect& aSrcRect, const CWsBitmap* aAlphaBmp, const TPoint& aAlphaPt) = 0;
- protected:
- __declspec(dllexport) void Reserved_CGraphicsContext_1();
- __declspec(dllexport) void Reserved_CGraphicsContext_2();
- __declspec(dllexport) virtual void Reserved_CBitmapContext_1();
- __declspec(dllexport) virtual void Reserved_CBitmapContext_2();
- __declspec(dllexport) virtual void Reserved_CBitmapContext_3();
- };
- #line 2988
- class CBitmapDevice : public CGraphicsDevice
- {
- public:
- #line 2999
- virtual void GetPixel(TRgb& aColor,const TPoint& aPixel) const=0;
- #line 3017
- virtual void GetScanLine(TDes8& aBuf,const TPoint& aStartPixel,TInt aLength,TDisplayMode aDispMode) const=0;
- #line 3027
- virtual TInt AddFile(const TDesC& aName,TInt& aId)=0;
- virtual void RemoveFile(TInt aId=0)=0;
- #line 3051
- virtual TInt GetNearestFontInPixels(CFont*& aFont, const TFontSpec& aFontSpec) = 0;
- #line 3070
- virtual TInt GetNearestFontToDesignHeightInPixels(CFont*& , const TFontSpec& ){return 0;}
- #line 3092
- virtual TInt GetNearestFontToMaxHeightInPixels(CFont*& , const TFontSpec& , TInt ){return 0;}
- #line 3115
- virtual TInt FontHeightInPixels(TInt aTypefaceIndex,TInt aHeightIndex) const=0;
- inline TInt CreateBitmapContext(CBitmapContext*& aGC);
- };
- class TMargins
- {
- public:
- __declspec(dllexport) void InternalizeL(RReadStream& aStream);
- __declspec(dllexport) void ExternalizeL(RWriteStream& aStream) const;
- __declspec(dllexport) TBool operator==(const TMargins& aMargins) const;
- __declspec(dllexport) TBool operator!=(const TMargins& aMargins) const;
- public:
- TInt iLeft;
- TInt iRight;
- TInt iTop;
- TInt iBottom;
- };
- #line 3150
- class TPictureCapability
- {
- public:
- enum TScalingType
- {
- ENotScaleable,
- EFullyScaleable,
- EScaleableMaintainingAspectRatio
- };
- public:
- inline TPictureCapability(TScalingType aScalingType,TBool aCroppable);
- public:
- TScalingType iScalingType;
- TBool iIsCroppable;
- };
- #line 3200
- class CPicture : public CBase
- {
- public:
- enum TDetach
- {
- EDetachFull,
- EDetachDraw
- };
- public:
- __declspec(dllexport) virtual ~CPicture();
- #line 3227
- virtual void Draw(CGraphicsContext& aGc,const TPoint& aTopLeft,const TRect& aClipRect,MGraphicsDeviceMap* aMap) const=0;
- __declspec(dllexport) virtual TStreamId StoreL(CStreamStore& aStore) const;
- virtual void DetachFromStoreL(TDetach =EDetachFull) {}
- #line 3239
- virtual void ExternalizeL(RWriteStream& aStream) const =0;
- virtual void GetOriginalSizeInTwips(TSize& aSize) const =0;
- __declspec(dllexport) virtual void SetScaleFactor(TInt aScaleFactorWidth,TInt aScaleFactorHeight);
- __declspec(dllexport) virtual void SetCropInTwips(const TMargins& aMargins);
- __declspec(dllexport) virtual TPictureCapability Capability() const;
- __declspec(dllexport) virtual void GetCropInTwips(TMargins& aMargins) const;
- __declspec(dllexport) virtual TInt ScaleFactorWidth() const;
- __declspec(dllexport) virtual TInt ScaleFactorHeight() const;
- __declspec(dllexport) virtual TBool LineBreakPossible(TUint aClass,TBool aBeforePicture,TBool aHaveSpaces) const;
- __declspec(dllexport) virtual TBool NativePixelSize(TSize& aPixelSize);
- __declspec(dllexport) void GetSizeInPixels(MGraphicsDeviceMap* aMap, TSize& aSize) const;
- __declspec(dllexport) void SetSizeInPixels(MGraphicsDeviceMap* aMap, const TSize& aSize);
- __declspec(dllexport) void AddCropInPixels(MGraphicsDeviceMap* aMap, const TMargins& aMargins);
- __declspec(dllexport) void GetSizeInTwips(TSize& aSize) const;
- __declspec(dllexport) void SetSizeInTwips(const TSize& aSize);
- __declspec(dllexport) void ResetToOriginal();
- protected:
- __declspec(dllexport) CPicture();
- };
- #line 3277
- class TPictureHeader
- {
- public:
- __declspec(dllexport) TPictureHeader();
- __declspec(dllexport) void InternalizeL(RReadStream& aStream);
- __declspec(dllexport) void ExternalizeL(RWriteStream& aStream) const;
- __declspec(dllexport) void DeletePicture();
- public:
- TSwizzle<CPicture> iPicture;
- TUid iPictureType;
- TSize iSize;
- };
- #line 3304
- class MPictureFactory
- {
- public:
- #line 3324
- virtual void NewPictureL(TPictureHeader& aHeader,const CStreamStore& aDeferredPictureStore)const=0;
- };
- #line 3335
- const TInt KMaxPrinterModelNameLength=0x20;
- #line 3344
- typedef TBuf<KMaxPrinterModelNameLength> TPrinterModelName;
- #line 3357
- class TPageSpec
- {
- public:
- enum TPageOrientation
- {
- EPortrait,
- ELandscape
- };
- public:
- __declspec(dllexport) TPageSpec();
- __declspec(dllexport) TPageSpec(TPageOrientation aOrientation,const TSize& aSize);
- __declspec(dllexport) void InternalizeL(RReadStream& aStream);
- __declspec(dllexport) void ExternalizeL(RWriteStream& aStream) const;
- __declspec(dllexport) TSize OrientedPageSize() const;
- __declspec(dllexport) TBool operator==(const TPageSpec& aPageSpec) const;
- __declspec(dllexport) TBool operator!=(const TPageSpec& aPageSpec) const;
- public:
- TSize iPortraitPageSize;
- TPageOrientation iOrientation;
- };
- #line 3398
- class TBandAttributes
- {
- public:
- TRect iRect;
- TBool iTextIsIgnored;
- TBool iGraphicsIsIgnored;
- TBool iFirstBandOnPage;
- };
- #line 3423
- class CPrinterPort : public CBase
- {
- public:
- virtual void WriteRequest(const TDesC8& aBuf,TRequestStatus& aRequestStatus)=0;
- virtual void Cancel()=0;
- };
- #line 3445
- class TPrinterModelEntry
- {
- public:
- TPrinterModelName iModelName;
- TBool iRequiresPrinterPort;
- TUid iUid;
- public:
- __declspec(dllexport) void InternalizeL(RReadStream& aStream);
- __declspec(dllexport) void ExternalizeL(RWriteStream& aStream) const;
- };
- #line 3469
- class TPrinterModelHeader
- {
- public:
- TPrinterModelEntry iEntry;
- TStreamId iModelDataStreamId;
- public:
- __declspec(dllexport) void InternalizeL(RReadStream& aStream);
- __declspec(dllexport) void ExternalizeL(RWriteStream& aStream) const;
- };
- #line 3496
- class CPrinterControl : public CBase
- {
- public:
- enum TMoreOnPage
- {
- EMoreOnPage,
- ENoMoreOnPage
- };
- public:
- __declspec(dllexport) ~CPrinterControl();
- virtual TInt BandsPerPage()=0;
- #line 3528
- virtual TMoreOnPage QueueGetBand(TRequestStatus& aStatus, TBandAttributes& aBand)=0;
- #line 3539
- virtual void QueueEndPrint(TRequestStatus& aStatus)=0;
- virtual void AbortPrint()=0;
- protected:
- __declspec(dllexport) CPrinterControl(CPrinterPort* aPrinterPort);
- protected:
- enum TState
- {
- ENotPrinting,
- EPrinting
- };
- TState iState;
- CPrinterPort* iPrinterPort;
- };
- class CDictionaryStore;
- class RFs;
- #line 3590
- class CPrinterDevice : public CGraphicsDevice
- {
- public:
- __declspec(dllexport) ~CPrinterDevice();
- inline TPageSpec CurrentPageSpecInTwips() const {return(iCurrentPageSpecInTwips);}
- __declspec(dllexport) virtual void SelectPageSpecInTwips(const TPageSpec& aPageSpec);
- __declspec(dllexport) virtual TRect PrintablePageInPixels() const;
- virtual TPrinterModelEntry Model()const =0;
- virtual TInt SetModel(const TPrinterModelHeader& aModel,CStreamStore& aStore)=0;
- #line 3627
- virtual void CreateControlL(CPrinterPort* aPrinterPort)=0;
- __declspec(dllexport) virtual void DeleteControl();
- virtual void InternalizePropertiesL(RReadStream& ) {}
- virtual void ExternalizePropertiesL(RWriteStream& ) const {}
- __declspec(dllexport) void RestorePropertiesL();
- __declspec(dllexport) void StorePropertiesL() const;
- protected:
- __declspec(dllexport) CPrinterDevice();
- public:
- CPrinterControl* iControl;
- protected:
- TPageSpec iCurrentPageSpecInTwips;
- };
- #line 3669
- class CPrinterModelList : public CBase
- {
- public:
- virtual TInt ModelCount() const=0;
- #line 3686
- virtual const TPrinterModelEntry operator[](TInt anIndex)=0;
- virtual TInt UidToNum(TUid aModelUid) const=0;
- };
- #line 3705
- class MPageRegionPrinter
- {
- public:
- #line 3718
- virtual void PrintBandL(CGraphicsDevice* aDevice,TInt aPageNo,const TBandAttributes& aBandInPixels)=0;
- };
- const TInt KPdrStoreFileUidVal=268435514;
- const TInt KPdlUidVal=268450588;
- const TInt KUdlUidVal=268450589;
- #line 3746
- class CPrinterDriverUI : public CBase
- {
- protected:
- __declspec(dllexport) CPrinterDriverUI();
- public:
- __declspec(dllexport) virtual TBool BeforePrintL();
- __declspec(dllexport) virtual void AfterPrintL();
- __declspec(dllexport) virtual void SetPropertiesL();
- __declspec(dllexport) virtual TBool CanSetProperties();
- virtual TInt SetPrinterDevice(CPrinterDevice* aPrinterDevice)=0;
- };
- class CFileStore;
- #line 3790
- class CPrinterDriver : public CBase
- {
- public:
- __declspec(dllexport) static CPrinterDriver* NewL();
- __declspec(dllexport) ~CPrinterDriver();
- __declspec(dllexport) void OpenPdrL(const TDesC &aName);
- __declspec(dllexport) void Close();
- __declspec(dllexport) TInt NumModels() const;
- __declspec(dllexport) TPrinterModelEntry Model(TInt aNum) const;
- inline CPrinterDevice* PrinterDevice() {return iPrinterDevice;}
- __declspec(dllexport) CPrinterDevice* CreatePrinterDeviceL(TUid aModelUid);
- __declspec(dllexport) CPrinterDriverUI* CreatePrinterDriverUIL();
- private:
- CPrinterDriver();
- void DeletePrinterDevice();
- void DoOpenPdrL(const TDesC &aName);
- void DoCreatePrinterDeviceL(TUid aModelUid);
- void LoadLibraryL(RLibrary& aLibrary,const TDesC& aExt,TUid aUid2);
- private:
- RFs iFs;
- CFileStore *iPdrStore;
- TInt iNumModels;
- TPrinterModelHeader* iModelList;
- TFileName iPdlName;
- TUid iPdlUid;
- RLibrary iPdlLibrary;
- CPrinterDevice* iPrinterDevice;
- RLibrary iUdlLibrary;
- };
- class RResourceFile;
- class CPdrModelList : public CPrinterModelList
- {
- public:
- __declspec(dllexport) static CPdrModelList* NewL();
- __declspec(dllexport) virtual ~CPdrModelList();
- __declspec(dllexport) TInt ModelCount() const;
- __declspec(dllexport) const TPrinterModelEntry operator [] (TInt anIndex);
- __declspec(dllexport) TInt UidToNum(TUid aModelUid) const;
- __declspec(dllexport) void AddDirectoryL(const TDesC& aDir);
- __declspec(dllexport) CPrinterModelList* ScanForModelsL();
- __declspec(dllexport) CPrinterDriver* CreatePrinterDriverL(TInt anIndex);
- private:
- CPdrModelList();
- void ConstructL();
- private:
- class TFileEntry
- {
- public:
- TFileName iFileName;
- TDesC* iDirectory;
- };
- class TModelEntry
- {
- public:
- TPrinterModelEntry iEntry;
- TFileEntry* iFile;
- };
- private:
- void ScanDirectoryL(TInt aDirIndex);
- void ListModelsL(TInt aFileIndex, TParse& aParser, TFileName& aNameOfLoadedResourceFile, TFileName& aTempFileName, RResourceFile& aResourceFile, HBufC8*& aResource);
- HBufC* NewPathBufL(const TFileEntry& aFileEntry);
- private:
- CArrayFixSeg<TModelEntry> * iModelArray;
- CArrayFixFlat<TFileEntry> * iFileArray;
- CArrayFixFlat<HBufC*> * iDirectoryArray;
- RFs iFileServer;
- };
- #line 3881
- class TZoomFactor : public MGraphicsDeviceMap
- {
- public:
- __declspec(dllexport) TZoomFactor();
- __declspec(dllexport) ~TZoomFactor();
- inline TZoomFactor(const MGraphicsDeviceMap* aDevice);
- inline TZoomFactor(const TZoomFactor* aDevice);
- __declspec(dllexport) TInt ZoomFactor() const;
- __declspec(dllexport) void SetZoomFactor(TInt aZoomFactor);
- inline void SetGraphicsDeviceMap(const MGraphicsDeviceMap* aDevice);
- inline const MGraphicsDeviceMap* GraphicsDeviceMap() const;
- __declspec(dllexport) void SetTwipToPixelMapping(const TSize& aSizeInPixels,const TSize& aSizeInTwips);
- __declspec(dllexport) TInt HorizontalTwipsToPixels(TInt aTwipWidth) const;
- __declspec(dllexport) TInt VerticalTwipsToPixels(TInt aTwipHeight) const;
- __declspec(dllexport) TInt HorizontalPixelsToTwips(TInt aPixelWidth) const;
- __declspec(dllexport) TInt VerticalPixelsToTwips(TInt aPixelHeight) const;
- __declspec(dllexport) virtual TInt GetNearestFontInTwips(CFont*& aFont, const TFontSpec& aFontSpec);
- __declspec(dllexport) virtual TInt GetNearestFontToDesignHeightInTwips(CFont*& aFont, const TFontSpec& aFontSpec);
- __declspec(dllexport) virtual TInt GetNearestFontToMaxHeightInTwips(CFont*& aFont, const TFontSpec& aFontSpec, TInt aMaxHeight);
- __declspec(dllexport) void ReleaseFont(CFont* aFont);
- public:
- enum {EZoomOneToOne=1000};
- private:
- TInt iZoomFactor;
- const MGraphicsDeviceMap* iDevice;
- };
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\gdi.inl" /* stack depth 6 */
- #line 11
- inline TRgb::TRgb():
- iValue(0xffffffff)
- {}
- inline TRgb::TRgb(TUint32 aValue):
- iValue(((aValue & 0xff0000) >> 16) | (aValue & 0x00ff00) | ((aValue & 0x0000ff) << 16) | (0xff000000 - (aValue & 0xff000000)))
- #line 32
- {}
- inline TRgb::TRgb(TUint32 aInternalValue, TInt aAlpha) :
- iValue((aInternalValue & 0x00ffffff) | (aAlpha << 24))
- #line 49
- {
- }
- inline TRgb::TRgb(TInt aRed,TInt aGreen,TInt aBlue):
- iValue(aRed<<16|aGreen<<8|aBlue|0xff000000)
- {}
- #line 78
- inline TRgb::TRgb(TInt aRed,TInt aGreen,TInt aBlue, TInt aAlpha):
- iValue(aRed<<16|aGreen<<8|aBlue|aAlpha<<24)
- {}
- inline TInt TRgb::Red() const
- {return((iValue&0xff0000)>>16);}
- inline TInt TRgb::Green() const
- {return((iValue&0xff00)>>8);}
- inline TInt TRgb::Blue() const
- {return(iValue&0xff);}
- inline TBool TRgb::operator==(const TRgb& aColor) const
- #line 113
- {return(iValue==aColor.iValue);}
- inline TBool TRgb::operator!=(const TRgb& aColor) const
- #line 125
- {return(!(*this==aColor));}
- inline TRgb& TRgb::operator&=(const TRgb& aColor)
- #line 140
- {iValue&=aColor.iValue;return(*this);}
- inline TRgb& TRgb::operator|=(const TRgb& aColor)
- #line 155
- {iValue|=aColor.iValue;return(*this);}
- inline TRgb& TRgb::operator^=(const TRgb& aColor)
- #line 171
- {iValue^=aColor.iValue;iValue^=0xff000000; return(*this);}
- inline TUint32 TRgb::Value() const
- {return (((iValue & 0xff0000) >> 16) | (iValue & 0x00ff00) | ((iValue & 0x0000ff) << 16) | (0xff000000 - (iValue & 0xff000000)));}
- inline TUint32 TRgb::Internal() const
- {return (iValue);}
- inline void TRgb::SetInternal(TUint32 aInternal)
- {iValue = aInternal;}
- inline TRgb TRgb::operator~() const
- {TRgb rgb; rgb.SetInternal(iValue^0x00ffffff); return rgb;}
- inline TRgb TRgb::operator&(const TRgb& aColor)
- {TRgb rgb; rgb.SetInternal(iValue&aColor.iValue); return rgb;}
- inline TRgb TRgb::operator|(const TRgb& aColor)
- {TRgb rgb; rgb.SetInternal(iValue|aColor.iValue); return rgb;}
- inline TRgb TRgb::operator^(const TRgb& aColor)
- {TRgb rgb; rgb.SetInternal(iValue^aColor.iValue); return rgb;}
- #line 234
- inline TRgb TRgb::_Gray2(TInt aGray2)
- {
- if(aGray2) return(TRgb(0xffffff, 0xff));
- return(TRgb(0, 0xff));
- }
- #line 248
- inline TRgb TRgb::_Gray4(TInt aGray4)
- {
- aGray4&=3;
- aGray4|=aGray4<<2;
- aGray4|=aGray4<<4;
- return(TRgb(aGray4,aGray4,aGray4));
- }
- #line 264
- inline TRgb TRgb::_Gray16(TInt aGray16)
- {
- aGray16&=0xf;
- aGray16|=aGray16<<4;
- return(TRgb(aGray16,aGray16,aGray16));
- }
- #line 279
- inline TRgb TRgb::_Gray256(TInt aGray256)
- {
- aGray256&=0xff;
- return(TRgb(aGray256,aGray256,aGray256));
- }
- #line 292
- inline TRgb TRgb::_Color4K(TInt aColor4K)
- {
- TUint32 value = (aColor4K & 0xf00) << 8;
- value |= (aColor4K & 0x0f0) << 4;
- value |= (aColor4K & 0x00f);
- return TRgb(value | (value << 4), 0xff);
- }
- #line 307
- inline TRgb TRgb::_Color64K(TInt aColor64K)
- {
- TInt red = (aColor64K&0xF800)>>8;
- red += red>>5;
- TInt green = (aColor64K&0x07E0)>>3;
- green += green>>6;
- TInt blue = (aColor64K&0x001F)<<3;
- blue += blue>>5;
- return TRgb(red,green,blue);
- }
- #line 325
- inline TRgb TRgb::_Color16M(TInt a0RGB)
- {
- return TRgb(a0RGB, 0xff);
- }
- inline TRgb TRgb::_Color16MU(TInt a0RGB)
- {
- return TRgb(a0RGB, 0xff);
- }
- inline TInt TRgb::_Gray2() const
- {
- return(Gray256()>>7);
- }
- inline TInt TRgb::_Gray4() const
- {
- return(Gray256()>>6);
- }
- inline TInt TRgb::_Gray16() const
- {
- return(Gray256()>>4);
- }
- inline TInt TRgb::_Gray256() const
- {
- return(((Red()<<1)+Green()+(Green()<<2)+Blue())>>3);
- }
- inline TInt TRgb::_Color4K() const
- {
- TInt color4K = (iValue & 0x0000f0) >> 4;
- color4K |= (iValue & 0x00f000) >> 8;
- color4K |= (iValue & 0xf00000) >> 12;
- return color4K;
- }
- inline TInt TRgb::_Color64K() const
- {
- TInt color64K = (iValue & 0x0000f8) >> 3;
- color64K |= (iValue & 0x00fc00) >> 5;
- color64K |= (iValue & 0xf80000) >> 8;
- return color64K;
- }
- inline TInt TRgb::_Color16M() const
- {
- return (iValue & 0xffffff);
- }
- inline TInt TRgb::_Color16MU() const
- {
- return (iValue & 0xffffff);
- }
- inline TInt TRgb::Alpha() const
- {return (iValue >> 24);}
- #line 432
- inline TRgb TRgb::_Color16MA(TUint aARGB)
- {
- TRgb col; col.SetInternal(aARGB);
- return col;
- }
- inline TUint TRgb::_Color16MA() const
- {
- return (iValue);
- }
- inline TInt CPalette::Entries() const
- {return(iNumEntries);}
- inline TRgb TColor256Util::Color256(TInt aColor256) const
- { return TRgb(iColorTable[aColor256]); }
- inline TBool TFontStyle::operator==(const TFontStyle& aFontStyle) const
- {return(iFlags==aFontStyle.iFlags);}
- inline TGlyphBitmapType TFontStyle::BitmapType() const
- {
- return (TGlyphBitmapType)(iFlags >> 16);
- }
- inline void TFontStyle::SetBitmapType(TGlyphBitmapType aBitmapType)
- #line 502
- {
- iFlags &= 0xFFFF;
- iFlags |= (aBitmapType << 16);
- }
- inline TInt CBitmapDevice::CreateBitmapContext(CBitmapContext*& aGC)
- {return(CreateContext((CGraphicsContext*&)aGC));}
- inline TPictureCapability::TPictureCapability(TScalingType aScalingType,TBool aCroppable):
- iScalingType(aScalingType),iIsCroppable(aCroppable)
- {}
- inline TZoomFactor::TZoomFactor(const MGraphicsDeviceMap* aDevice):
- iZoomFactor(TZoomFactor::EZoomOneToOne),
- iDevice(aDevice)
- {}
- inline TZoomFactor::TZoomFactor(const TZoomFactor* aDevice):
- iDevice(aDevice)
- {
- iZoomFactor=aDevice->iZoomFactor;
- }
- inline void TZoomFactor::SetGraphicsDeviceMap(const MGraphicsDeviceMap* aDevice)
- {iDevice=aDevice;}
- inline const MGraphicsDeviceMap* TZoomFactor::GraphicsDeviceMap() const
- {return(iDevice);}
- #line 579
- inline TInt CFont::FontCapitalAscent() const
- {
- return ExtendedFunction(KFontCapitalAscent);
- }
- #line 595
- inline TInt CFont::FontMaxAscent() const
- {
- return ExtendedFunction(KFontMaxAscent);
- }
- #line 608
- inline TInt CFont::FontStandardDescent() const
- {
- return ExtendedFunction(KFontStandardDescent);
- }
- #line 623
- inline TInt CFont::FontMaxDescent() const
- {
- return ExtendedFunction(KFontMaxDescent);
- }
- inline TInt CFont::FontLineGap() const
- {
- return ExtendedFunction(KFontLineGap);
- }
- #line 648
- inline TInt CFont::FontMaxHeight() const
- {
- return FontMaxAscent() + FontMaxDescent();
- }
- #line 3912 "C:\Symbian\9.1\S60_3rd\epoc32\include\gdi.h" /* stack depth 5 */
- #line 19 "C:\Symbian\9.1\S60_3rd\epoc32\include\apparc.h" /* stack depth 4 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\apadef.h" /* stack depth 5 */
- #line 18
- const TUint KApaCommandLetterOpen='O';
- const TUint KApaCommandLetterCreate='C';
- const TUint KApaCommandLetterRun='R';
- const TUint KApaCommandLetterBackground='B';
- const TUint KApaCommandLetterViewActivate='V';
- const TUint KApaCommandLetterRunWithoutViews='W';
- enum TApaCommand
- {
- EApaCommandOpen,
- EApaCommandCreate,
- EApaCommandRun,
- EApaCommandBackground,
- EApaCommandViewActivate,
- EApaCommandRunWithoutViews
- };
- const TInt KApaMaxAppCaption=0x100;
- #line 82
- typedef TBuf<KApaMaxAppCaption> TApaAppCaption;
- const TInt KApaMaxCommandLine=0x100;
- typedef TBuf<KApaMaxCommandLine> TApaCommandLine;
- const TInt KApaMaxAppFileName=0x10;
- typedef TBuf<KApaMaxAppFileName> TApaAppFileName;
- const TInt KApaMaxAppGroupName=0x10;
- #line 118
- typedef TBuf<KApaMaxAppGroupName> TApaAppGroupName;
- const TInt KAppUidValue8 = 0x1000006c;
- const TUid KUidApp8={KAppUidValue8};
- #line 141
- const TInt KAppUidValue16 = 0x100039CE;
- const TUid KUidApp16={KAppUidValue16};
- const TUid KUidAppDllDoc8={268435565};
- const TUid KUidAppDllDoc16={0x10003A12};
- const TUid KUidPictureTypeDoor8={268435537};
- const TUid KUidPictureTypeDoor16={0x10003A33};
- const TUid KUidSecurityStream8={268435661};
- const TUid KUidSecurityStream16={0x10003A40};
- const TUid KUidAppIdentifierStream8={268435593};
- const TUid KUidAppIdentifierStream16={0x10003A34};
- #line 272
- const TUid KUidFileEmbeddedApplicationInterfaceUid={0x101f8c96};
- #line 22 "C:\Symbian\9.1\S60_3rd\epoc32\include\apparc.h" /* stack depth 4 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\apaid.h" /* stack depth 5 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\apmstd.h" /* stack depth 6 */
- #line 17
- const TInt KMaxDataTypeLength=256;
- class RReadStream;
- class RWriteStream;
- #line 31
- typedef TInt32 TDataTypePriority;
- const TInt32 KDataTypePriorityUserSpecified=KMaxTInt16;
- #line 46
- const TInt32 KDataTypePrioritySystem = 0xFFF9;
- #line 55
- const TInt32 KDataTypeUnTrustedPriorityThreshold=KMaxTInt16;
- #line 64
- const TInt32 KDataTypePriorityHigh=10000;
- #line 73
- const TInt32 KDataTypePriorityNormal=0;
- #line 82
- const TInt32 KDataTypePriorityLow=-10000;
- #line 91
- const TInt32 KDataTypePriorityLastResort=-20000;
- const TInt32 KDataTypePriorityNotSupported=KMinTInt16;
- class TDataType
- #line 110
- {
- public:
- __declspec(dllexport) TDataType();
- __declspec(dllexport) TDataType(const TDataType& aDataType);
- __declspec(dllexport) TDataType(const TDesC8& aDataType);
- __declspec(dllexport) TDataType(TUid aUid);
- __declspec(dllexport) TInt operator==(const TDataType& aDataType) const;
- __declspec(dllexport) TInt operator!=(const TDataType& aDataType) const;
- __declspec(dllexport) TBool IsNative() const;
- __declspec(dllexport) TBuf<KMaxDataTypeLength> Des() const;
- __declspec(dllexport) TPtrC8 Des8() const;
- __declspec(dllexport) TUid Uid() const;
- __declspec(dllexport) void InternalizeL(RReadStream& aReadStream);
- __declspec(dllexport) void ExternalizeL(RWriteStream& aWriteStream) const;
- private:
- void ParseDes();
- private:
- TBuf8<KMaxDataTypeLength> iDataType;
- TUid iUid;
- };
- #line 142
- const static TLitC8<sizeof( "X-Epoc-Url/")> KEpocUrlDataTypeHeader={sizeof( "X-Epoc-Url/")-1, "X-Epoc-Url/"} ;
- class TDataTypeWithPriority
- #line 159
- {
- public:
- __declspec(dllexport) TDataTypeWithPriority();
- __declspec(dllexport) TDataTypeWithPriority(const TDataType& aDataType, TDataTypePriority aPriority);
- __declspec(dllexport) void InternalizeL(RReadStream& aReadStream);
- __declspec(dllexport) void ExternalizeL(RWriteStream& aWriteStream) const;
- public:
- TDataType iDataType;
- TDataTypePriority iPriority;
- };
- #line 16 "C:\Symbian\9.1\S60_3rd\epoc32\include\apaid.h" /* stack depth 5 */
- class TApaAppIdentifier;
- class TApaAppEntry;
- class CApaAppFinder;
- class RReadStream;
- class RWriteStream;
- class RFs;
- class TApaAppIdentifier
- #line 49
- {
- public:
- __declspec(dllexport) TApaAppIdentifier();
- __declspec(dllexport) TApaAppIdentifier(TUid aAppUidType,const TFileName& aDllName);
- __declspec(dllexport) void ExternalizeL(RWriteStream& aStream)const;
- __declspec(dllexport) void InternalizeL(RReadStream& aStream);
- public:
- TUid iAppUid;
- TFileName iFullName;
- private:
- TInt iTApaAppIdentifier_Reserved1;
- };
- class TApaAppEntry
- #line 78
- {
- public:
- __declspec(dllexport) TApaAppEntry();
- __declspec(dllexport) TApaAppEntry(const TUidType& aAppUidType,const TFileName& aDllName);
- __declspec(dllexport) void ExternalizeL(RWriteStream& aStream)const;
- __declspec(dllexport) void InternalizeL(RReadStream& aStream);
- public:
- TUidType iUidType;
- TFileName iFullName;
- private:
- TInt iTApaAppEntry_Reserved1;
- };
- class TApaAppInfo
- #line 109
- {
- public:
- __declspec(dllexport) TApaAppInfo();
- __declspec(dllexport) TApaAppInfo(TUid aAppUid,const TFileName& aDllName,const TApaAppCaption& aCaption);
- __declspec(dllexport) TApaAppInfo(TUid aAppUid,const TFileName& aDllName,const TApaAppCaption& aCaption,const TApaAppCaption& aShortCaption);
- __declspec(dllexport) void ExternalizeL(RWriteStream& aStream)const;
- __declspec(dllexport) void InternalizeL(RReadStream& aStream);
- public:
- TUid iUid;
- TFileName iFullName;
- TApaAppCaption iCaption;
- TApaAppCaption iShortCaption;
- private:
- TInt iTApaAppInfo_Reserved1;
- };
- class TApaAppViewInfo
- #line 146
- {
- public:
- __declspec(dllexport) TApaAppViewInfo();
- __declspec(dllexport) TApaAppViewInfo(TUid aViewUid,const TApaAppCaption& aViewCaption,TInt aScreenMode);
- __declspec(dllexport) void ExternalizeL(RWriteStream& aStream)const;
- __declspec(dllexport) void InternalizeL(RReadStream& aStream);
- public:
- TUid iUid;
- TApaAppCaption iViewCaption;
- TInt iScreenMode;
- private:
- TInt iTApaAppViewInfo_Reserved1;
- };
- #line 171
- typedef CArrayFixFlat<TApaAppViewInfo> CApaAppViewArray;
- class TApaAppCapability
- {
- public:
- __declspec(dllexport) static void CopyCapability(TDes8& aDest,const TDesC8& aSource);
- __declspec(dllexport) void InternalizeL(RReadStream& aStream);
- __declspec(dllexport) void Internalize7_0L(RReadStream& aStream);
- __declspec(dllexport) void ExternalizeL(RWriteStream& aStream) const;
- private:
- __declspec(dllexport) void Externalize7_0L(RWriteStream& aStream) const;
- void DoInternalizeL(RReadStream& aStream, TBool& aLaunchInBackground, TApaAppGroupName& aGroupName);
- public:
- enum TEmbeddability {
- ENotEmbeddable=0,
- EEmbeddable=1,
- EEmbeddableOnly=2,
- EEmbeddableUiOrStandAlone=5,
- EEmbeddableUiNotStandAlone=6 };
- enum TCapabilityAttribute
- {
- EBuiltAsDll = 0x00000001,
- EControlPanelItem = 0x00000002,
- ENonNative = 0x00000004
- };
- public:
- TEmbeddability iEmbeddability;
- TBool iSupportsNewFile;
- TBool iAppIsHidden;
- TBool iLaunchInBackground;
- TApaAppGroupName iGroupName;
- TUint iAttributes;
- private:
- enum { EVersion=4 };
- private:
- TInt iTApaAppCapability_Reserved1;
- };
- typedef TPckgBuf<TApaAppCapability> TApaAppCapabilityBuf;
- class TApaEmbeddabilityFilter
- {
- public:
- __declspec(dllexport) TApaEmbeddabilityFilter();
- __declspec(dllexport) void AddEmbeddability(TApaAppCapability::TEmbeddability aEmbeddability);
- __declspec(dllexport) TBool MatchesEmbeddability(TApaAppCapability::TEmbeddability aEmbeddability) const;
- private:
- TUint iEmbeddabilityFlags;
- private:
- TInt iTApaEmbeddabilityFilter_Reserved1;
- };
- class CApaAppFinder : public CBase
- {
- public:
- virtual void FindAllAppsL()=0;
- virtual TBool NextL(TApaAppEntry& aEntry)=0;
- virtual TFileName FindAppL(const TDesC& aFileName,TUid aFileUid)=0;
- #line 282
- virtual TFileName DefaultAppInfoFileName()const=0;
- protected:
- __declspec(dllexport) CApaAppFinder();
- private:
- __declspec(dllexport) virtual void CApaAppFinder_Reserved1();
- __declspec(dllexport) virtual void CApaAppFinder_Reserved2();
- };
- const TUid KOpenServiceUid = { 0x10208DCA };
- #line 310
- class TApaAppServiceInfo
- {
- public:
- TApaAppServiceInfo();
- TApaAppServiceInfo(TUid aUid, CArrayFixFlat<TDataTypeWithPriority> * aDataTypes,
- HBufC8* aOpaqueData);
- void ExternalizeL(RWriteStream& aStream) const;
- void InternalizeL(RReadStream& aStream);
- void Release();
- CArrayFixFlat<TDataTypeWithPriority>& DataTypes();
- __declspec(dllexport) TUid Uid() const;
- __declspec(dllexport) const CArrayFixFlat<TDataTypeWithPriority>& DataTypes() const;
- __declspec(dllexport) const TDesC8& OpaqueData() const;
- private:
- TUid iUid;
- CArrayFixFlat<TDataTypeWithPriority> * iDataTypes;
- HBufC8* iOpaqueData;
- TInt iTApaAppServiceInfo;
- };
- #line 338
- class CApaAppServiceInfoArray : public CBase
- {
- protected:
- CApaAppServiceInfoArray();
- public:
- virtual TArray<TApaAppServiceInfo> Array()=0;
- private:
- __declspec(dllexport) virtual void CApaAppServiceInfoArray_Reserved1();
- __declspec(dllexport) virtual void CApaAppServiceInfoArray_Reserved2();
- private:
- TInt iCApaAppServiceInfoArray_Reserved1;
- };
- #line 25 "C:\Symbian\9.1\S60_3rd\epoc32\include\apparc.h" /* stack depth 4 */
- class CApaApplication;
- class CApaDocument;
- class CApaProcess;
- class MApaEmbeddedDocObserver;
- class CApaDll;
- class CApaExe;
- class RFile;
- class RReadStream;
- class RWriteStream;
- class CFileStore;
- class CPersistentStore;
- class CStreamDictionary;
- class CDictionaryStore;
- class TApaAppHolderInfo;
- class CImplementationInformation;
- class TApaApplicationFactory;
- class CApaAppHolder;
- class CApaAppServer;
- #line 62
- typedef CApaApplication* (*CreateCApaApplication)();
- class CApaApplication : public CBase
- #line 82
- {
- public:
- #line 94
- virtual void PreDocConstructL()=0;
- #line 106
- virtual CApaDocument* CreateDocumentL(CApaProcess* aProcess)=0;
- #line 115
- virtual TUid AppDllUid()const=0;
- __declspec(dllexport) static TInt GenerateFileName(RFs& aFs,TFileName& aRootName);
- __declspec(dllexport) CDictionaryStore* OpenIniFileL(RFs& aFs)const;
- #line 136
- virtual CDictionaryStore* OpenIniFileLC(RFs& aFs)const=0;
- #line 157
- __declspec(dllexport) virtual TFileName AppFullName()const;
- #line 172
- virtual void Capability(TDes8& aInfo)const=0;
- __declspec(dllexport) TFileName DllName()const;
- __declspec(dllexport) ~CApaApplication();
- __declspec(dllexport) virtual void NewAppServerL(CApaAppServer*& aAppServer);
- protected:
- __declspec(dllexport) CApaApplication();
- __declspec(dllexport) virtual void CApaApplication_Reserved1();
- __declspec(dllexport) virtual void CApaApplication_Reserved2();
- private:
- CApaAppHolder* iAppHolder;
- TUid iDtorKey;
- friend class CApaAppHolder;
- friend class CApaProcess;
- friend class TApaApplicationFactory;
- private:
- TInt iCApaApplication_Reserved1;
- };
- class CApaDocument : public CBase
- #line 211
- {
- public:
- class TCapability
- {
- public:
- __declspec(dllexport) TCapability();
- inline TBool CanDrawGlass()const;
- inline TBool CanPrint()const;
- inline void SetCanDrawGlass();
- inline void SetCanPrint();
- private:
- enum {
- ECanDrawGlass =0x01,
- ECanPrint =0x02
- };
- private:
- TUint iCapability;
- TInt TCapability_Reserved1;
- };
- public:
- #line 245
- virtual void NewDocumentL()=0;
- #line 259
- virtual CFileStore* CreateFileStoreLC(RFs& aFs,const TDesC& aFileName)=0;
- __declspec(dllexport) virtual CPicture* GlassPictureL();
- #line 276
- virtual void EditL(MApaEmbeddedDocObserver* aContainer,TBool aReadOnly=EFalse)=0;
- #line 289
- virtual void PrintL(const CStreamStore& aSourceStore)=0;
- #line 308
- virtual void SaveL()=0;
- #line 325
- virtual void StoreL(CStreamStore& aStore,CStreamDictionary& aStreamDic) const=0;
- #line 341
- virtual void RestoreL(const CStreamStore& aStore,const CStreamDictionary& aStreamDic)=0;
- #line 364
- inline virtual void DetachFromStoreL(CPicture::TDetach =CPicture::EDetachFull) {}
- __declspec(dllexport) virtual void ExternalizeL(RWriteStream& aStream)const;
- #line 381
- virtual TBool IsEmpty()const=0;
- __declspec(dllexport) virtual void ValidatePasswordL()const;
- __declspec(dllexport) virtual TCapability Capability()const;
- inline CApaApplication* Application()const;
- inline CApaProcess* Process()const;
- #line 396
- virtual TBool HasChanged()const =0;
- __declspec(dllexport) virtual ~CApaDocument();
- protected:
- __declspec(dllexport) CApaDocument();
- __declspec(dllexport) CApaDocument(CApaApplication& aApp,CApaProcess& aProcess);
- private:
- __declspec(dllexport) virtual void OpenFileL(CFileStore*& aFileStore, RFile& aFile);
- __declspec(dllexport) virtual void Reserved_2();
- protected:
- MApaEmbeddedDocObserver* iContainer;
- private:
- CApaApplication* iApplication;
- CApaProcess* iApaProcess;
- TInt iSpare;
- };
- class TApaApplicationFactory
- #line 426
- {
- public:
- typedef CApaApplication* (*TFunction)();
- public:
- __declspec(dllexport) TApaApplicationFactory();
- __declspec(dllexport) TApaApplicationFactory(TFunction aFunction);
- __declspec(dllexport) TApaApplicationFactory(const CImplementationInformation& aEmbeddedApplicationInformation);
- __declspec(dllexport) TApaApplicationFactory(TUid aEmbeddedApplicationUid);
- CApaApplication* CreateApplicationL() const;
- HBufC* AppFileNameL() const;
- TUid AppFileUid() const;
- private:
- enum TType
- {
- ETypeFunction,
- ETypeEmbeddedApplicationInformation,
- ETypeEmbeddedApplicationUid
- };
- private:
- static CApaApplication* CreateEmbeddedApplicationL(TUid aUid);
- static HBufC* EmbeddedApplicationDisplayNameLC(TUid aUid);
- static HBufC* FullAppFileNameL(const TDesC& aAppName);
- static void CleanupImplementationArray(TAny* aImplementationArray);
- private:
- TType iType;
- TUint iData;
- mutable CApaApplication* iApplication;
- TInt iSpare2;
- };
- class CApaParentProcessMonitor;
- class CApaProcess : public CBase
- #line 477
- {
- public:
- __declspec(dllexport) static CApaProcess* NewL(const RFs& aFs);
- __declspec(dllexport) void ResetL();
- __declspec(dllexport) static CStreamDictionary* ReadRootStreamLC(RFs& aFs,CFileStore*& aStore,const TDesC& aDocFullFileName,TUint aFileMode);
- __declspec(dllexport) static CStreamDictionary* ReadRootStreamLC(CFileStore*& aStore, const RFile& aFile);
- __declspec(dllexport) static void WriteRootStreamL(CPersistentStore& aStore,CStreamDictionary& aStreamDic,const CApaApplication& aApp);
- __declspec(dllexport) static void WriteRootStreamL(CPersistentStore& aStore,CStreamDictionary& aStreamDic,const TApaAppIdentifier& aAppId);
- __declspec(dllexport) static TApaAppIdentifier ReadAppIdentifierL(const CStreamStore& aStore,const CStreamDictionary& aStreamDic);
- __declspec(dllexport) static void WriteAppIdentifierL(CStreamStore& aStore,CStreamDictionary& aStreamDic,const TApaAppIdentifier& aAppId);
- __declspec(dllexport) CApaDocument* AddNewDocumentL(TApaApplicationFactory aApplicationFactory);
- __declspec(dllexport) CApaDocument* OpenNewDocumentL(CFileStore*& aStore,CStreamDictionary*& aStreamDic,const TDesC& aDocFullFileName,TUint aFileMode);
- __declspec(dllexport) void DestroyDocument(CApaDocument* aDoc);
- __declspec(dllexport) void SetMainDocument(CApaDocument* aDocument);
- __declspec(dllexport) void SetMainDocFileName(const TDesC& aMainDocFileName);
- __declspec(dllexport) void SetMainDocFileNameL(const TDesC& aMainDocFileName);
- __declspec(dllexport) TPtrC MainDocFileName()const;
- inline RFs& FsSession()const;
- inline CApaDocument* MainDocument()const;
- __declspec(dllexport) ~CApaProcess();
- protected:
- __declspec(dllexport) CApaProcess();
- __declspec(dllexport) CApaProcess(const RFs& aFs);
- __declspec(dllexport) void ConstructL();
- __declspec(dllexport) void ConstructL(TProcessId aParentProcessId);
- __declspec(dllexport) virtual void CApaProcess_Reserved1();
- __declspec(dllexport) virtual void CApaProcess_Reserved2();
- public:
- static TInt IdleRemoveApplications(TAny* aThis);
- void RemoveMarkedApplications();
- private:
- CApaDll* AddAppDllL(const TDesC& aDllFullPath);
- CApaExe* AddAppExeL(TApaApplicationFactory aApplicationFactory);
- void RemoveApp(CApaAppHolder* aAppHolder);
- CApaDocument* CreateDocL(CApaApplication* aApp);
- CApaAppHolder* FindAppInListL(const TDesC& aAppFileName,TUid aUid)const;
- void DeleteAllDocs();
- void MarkApplicationForRemoval(CApaApplication* aApp);
- static void DoReadRootStreamL(CStreamDictionary& aStreamDictionary, const CFileStore& aStore);
- private:
- CArrayFixFlat<TApaAppHolderInfo> * iAppList;
- CArrayFixFlat<CApaDocument*> * iDocList;
- CApaDocument* iMainDoc;
- HBufC* iMainDocFileName;
- RFs iFsSession;
- CIdle* iApplicationRemover;
- CApaParentProcessMonitor* iMonitor;
- TInt iCApaProcess_Reserved1;
- };
- class MApaEmbeddedDocObserver
- {
- public:
- enum TExitMode {
- EKeepChanges,
- ERevertToSaved,
- ENoChanges,
- EEmpty
- };
- public:
- virtual void NotifyExit(TExitMode aMode)=0;
- protected:
- __declspec(dllexport) MApaEmbeddedDocObserver();
- private:
- __declspec(dllexport) virtual void MApaEmbeddedDocObserver_Reserved1();
- __declspec(dllexport) virtual void MApaEmbeddedDocObserver_Reserved2();
- private:
- TInt iMApaEmbeddedDocObserver_Reserved1;
- };
- inline CApaApplication* CApaDocument::Application()const
- { return iApplication; }
- inline CApaProcess* CApaDocument::Process()const
- { return iApaProcess; }
- inline TBool CApaDocument::TCapability::CanDrawGlass()const
- { return iCapability&ECanDrawGlass; }
- inline TBool CApaDocument::TCapability::CanPrint()const
- { return iCapability&ECanPrint; }
- inline void CApaDocument::TCapability::SetCanDrawGlass()
- { iCapability = iCapability|ECanDrawGlass; }
- inline void CApaDocument::TCapability::SetCanPrint()
- { iCapability = iCapability|ECanPrint; }
- #line 648
- inline RFs& CApaProcess::FsSession()const
- { return (RFs&)iFsSession; }
- inline CApaDocument* CApaProcess::MainDocument()const
- { return iMainDoc; }
- #line 9 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikdoc.h" /* stack depth 3 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\savenotf.h" /* stack depth 4 */
- #line 19
- class MSaveObserver
- {
- public:
- enum TSaveType
- {
- ESaveNone,
- ESaveData,
- ESaveAll,
- ESaveQuick,
- EReleaseRAM,
- EReleaseDisk,
- };
- public:
- virtual void SaveL(TSaveType aSaveType)=0;
- };
- class RSaveSession : public RSessionBase
- {
- public:
- TInt ConnectL();
- void NotifySave(TRequestStatus& aStatus);
- void NotifySaveCancel();
- TInt HandleSaveError(TInt aError);
- TInt SwitchOff(MSaveObserver::TSaveType aAction, TBool aPowerOff);
- private:
- TInt StartServerL();
- };
- #line 61
- class CSaveNotifier : public CActive
- {
- friend class CPowerdownClient;
- public:
- __declspec(dllexport) static CSaveNotifier* NewL(MSaveObserver& aObserver);
- __declspec(dllexport) ~CSaveNotifier();
- __declspec(dllexport) void DelayRequeue();
- __declspec(dllexport) void Queue();
- __declspec(dllexport) void HandleError(TInt aError);
- private:
- __declspec(dllexport) TInt SwitchOff(MSaveObserver::TSaveType aAction, TBool aPowerOff);
- inline CSaveNotifier(MSaveObserver& aObserver);
- void ConstructL();
- void Start();
- private:
- void DoCancel();
- void RunL();
- private:
- RSaveSession iSaveSession;
- MSaveObserver& iSaveObserver;
- TUint iFlags;
- };
- #line 10 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikdoc.h" /* stack depth 3 */
- class CEikAppUi;
- class CEikApplication;
- class CApaWindowGroupName;
- class CEikDocument : public CApaDocument, public MSaveObserver
- #line 35
- {
- public:
- #line 46
- virtual CEikAppUi* CreateAppUiL()=0;
- __declspec(dllexport) virtual CFileStore* OpenFileL(TBool aDoOpen,const TDesC& aFilename,RFs& aFs);
- __declspec(dllexport) void PrepareToEditL(MApaEmbeddedDocObserver* aObserver,TBool aReadOnly);
- __declspec(dllexport) void PrepareToEditL();
- __declspec(dllexport) void SetAppFileMode(TUint aMode);
- __declspec(dllexport) TUint AppFileMode() const;
- __declspec(dllexport) virtual void UpdateTaskNameL(CApaWindowGroupName* aWgName);
- __declspec(dllexport) const TApaAppCaption& AppCaption() const;
- __declspec(dllexport) void SetChanged(TBool aHasChanged);
- __declspec(dllexport) void SetEditStoreL(CStreamStore* aStore);
- void SetEditStoreWithoutAppUiNotificationL(CStreamStore* aStore);
- inline CStreamStore* EditStore() const;
- __declspec(dllexport) ~CEikDocument();
- public:
- __declspec(dllexport) virtual void SaveL(MSaveObserver::TSaveType aSaveType);
- public:
- __declspec(dllexport) void NewDocumentL();
- __declspec(dllexport) CFileStore* CreateFileStoreLC(RFs& aFs,const TDesC& aFileName);
- __declspec(dllexport) void EditL(MApaEmbeddedDocObserver* aObserver,TBool aReadOnly=EFalse);
- __declspec(dllexport) void PrintL(const CStreamStore& aSourceStore);
- __declspec(dllexport) void SaveL();
- __declspec(dllexport) void StoreL(CStreamStore& aStore,CStreamDictionary& aStreamDic) const;
- __declspec(dllexport) void RestoreL(const CStreamStore& aStore,const CStreamDictionary& aStreamDic);
- __declspec(dllexport) void ExternalizeL(RWriteStream& aStream) const;
- __declspec(dllexport) TBool IsEmpty() const;
- __declspec(dllexport) TBool HasChanged() const;
- __declspec(dllexport) virtual void ValidatePasswordL()const;
- protected:
- __declspec(dllexport) CEikDocument();
- __declspec(dllexport) CEikDocument(CEikApplication& aApp);
- public:
- __declspec(dllexport) virtual void OpenFileL(CFileStore*& aFileStore, RFile& aFile);
- private:
- void NullAppUi();
- __declspec(dllexport) virtual void Reserved_2();
- protected:
- CEikAppUi* iAppUi;
- CStreamStore* iEditStore;
- private:
- TBool iChanged;
- TUint iAppFileMode;
- friend class CEikAppUi;
- };
- #line 116
- inline CStreamStore* CEikDocument::EditStore() const
- { return(iEditStore); }
- #line 25 "C:\Symbian\9.1\S60_3rd\epoc32\include\akndoc.h" /* stack depth 2 */
- #line 34
- class CAknDocument : public CEikDocument
- {
- public:
- #line 46
- __declspec(dllexport) CFileStore* OpenFileL(TBool aDoOpen,
- const TDesC& aFilename,
- RFs& aFs);
- __declspec(dllexport) void OpenFileL(CFileStore*& aFileStore, RFile& aFile);
- protected:
- __declspec(dllexport) CAknDocument(CEikApplication& aApp);
- };
- #line 10 "C:\gbtukmanpf01\NOK124\Courses\S60\05300-S60_C++_Introduction\Working\LabCode\Lab_05304-s2.cb1\starter\inc\S60UIExampleDocument.h" /* stack depth 1 */
- class CS60UIExampleAppUi;
- class CEikApplication;
- #line 26
- class CS60UIExampleDocument : public CAknDocument
- {
- public:
- #line 39
- static CS60UIExampleDocument* NewL(CEikApplication& aApp);
- #line 49
- static CS60UIExampleDocument* NewLC(CEikApplication& aApp);
- virtual ~CS60UIExampleDocument();
- public:
- #line 67
- CEikAppUi* CreateAppUiL();
- private:
- void ConstructL();
- CS60UIExampleDocument(CEikApplication& aApp);
- };
- #line 3 "C:\gbtukmanpf01\NOK124\Courses\S60\05300-S60_C++_Introduction\Working\LabCode\Lab_05304-s2.cb1\starter\src\S60UIExampleApplication.cpp" /* stack depth 0 */
- #line 1 "C:\gbtukmanpf01\NOK124\Courses\S60\05300-S60_C++_Introduction\Working\LabCode\Lab_05304-s2.cb1\starter\inc\S60UIExampleApplication.h" /* stack depth 1 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\aknapp.h" /* stack depth 2 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikapp.h" /* stack depth 3 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\apaflrec.h" /* stack depth 4 */
- #line 17
- class MApaAppStarter;
- class CApaAppLocator;
- class CApaFileRecognizer;
- class CApaFileRecognizerType;
- class CFileRecognizerExtension;
- class TApaAppEntry;
- class CApaCommandLine;
- class RFs;
- #line 44
- const TInt KFileRecognizerUidValue8=0x1000013E;
- const TUid KUidFileRecognizer8={KFileRecognizerUidValue8};
- const TUid KUidFileRecognizer16={0x10003A37};
- class CApaAppLocator : public CBase
- {
- public:
- virtual TInt GetAppEntryByUid(TApaAppEntry& aAppEntry,TUid aAppUid)=0;
- virtual TInt GetAppCapabilityByUid(TDes8& aCapabilityBuf,TUid aAppUid)=0;
- };
- class CApaFileRecognizer : public CBase
- {
- public:
- __declspec(dllexport) CApaFileRecognizerType* RecognizeFileL(const TDesC& aFullFileName,const TUidType* aUidType=0 );
- __declspec(dllexport) CApaAppLocator* AppLocator() const;
- __declspec(dllexport) ~CApaFileRecognizer();
- protected:
- __declspec(dllexport) CApaFileRecognizer(RFs& aFs);
- __declspec(dllexport) void AddFileRecognizerType(CApaFileRecognizerType* aFileRecognizerType);
- __declspec(dllexport) TInt RemoveFileRecognizerType(const CApaFileRecognizerType* aFileRecognizerType);
- __declspec(dllexport) void SetAppLocator(CApaAppLocator* aAppLocator);
- static inline void SetAppStarter(CApaFileRecognizerType* aRecognizer,MApaAppStarter* aAppStarter);
- __declspec(dllexport) void DestroyRecognizerList();
- protected:
- RFs& iFs;
- CApaAppLocator* iAppLocator;
- private:
- CApaFileRecognizerType *iFileRecognizerList;
- };
- class MApaAppStarter
- {
- public:
- virtual TThreadId StartAppL(const CApaCommandLine& aCommandLine)=0;
- protected:
- __declspec(dllexport) MApaAppStarter();
- private:
- __declspec(dllexport) virtual void MApaAppStarter_Reserved1();
- __declspec(dllexport) virtual void MApaAppStarter_Reserved2();
- private:
- TInt iMApaAppStarter_Reserved1;
- };
- class CApaFileRecognizerType : public CBase
- {
- public:
- enum TRecognizedType {EProgram,EDoc,EOtherFile,ENotRecognized};
- public:
- virtual TThreadId RunL(TApaCommand aCommand,const TDesC* aDocFileName=0 ,const TDesC8* aTailEnd=0 ) const=0;
- inline TUid AppUid()const;
- inline TUid TypeUid()const;
- inline TRecognizedType Type()const;
- __declspec(dllexport) void Capability(TDes8& aCapabilityBuf)const;
- __declspec(dllexport) void Lock();
- __declspec(dllexport) void Unlock();
- protected:
- __declspec(dllexport) CApaFileRecognizerType();
- __declspec(dllexport) ~CApaFileRecognizerType();
- __declspec(dllexport) TThreadId AppRunL(const CApaCommandLine& aCommandLine) const;
- private:
- inline void SetAppStarter(MApaAppStarter* aAppStarter);
- virtual TRecognizedType DoRecognizeFileL(RFs& aFs,TUidType aUidType)=0;
- TRecognizedType RecognizeFileL(RFs& aFs,const TDesC& aFullFileName,TUidType aUidType);
- TBool Locked()const;
- __declspec(dllexport) virtual void Reserved_1();
- public:
- __declspec(dllexport) static CApaFileRecognizerType* CreateFileRecognizerL(TUid aImplUid);
- protected:
- CApaFileRecognizer* iFileRecognizer;
- MApaAppStarter* iAppStarter;
- HBufC* iFullFileName;
- TUid iFileType;
- TUid iAppUid;
- TRecognizedType iRecognizedType;
- TApaAppCapabilityBuf* iCapabilityBuf;
- private:
- CApaFileRecognizerType* iNext;
- TInt iLock;
- CFileRecognizerExtension* iFileRecognizerExtn;
- private:
- friend class CApaFileRecognizer;
- };
- inline void CApaFileRecognizer::SetAppStarter(CApaFileRecognizerType* aRecognizer,MApaAppStarter* aAppStarter)
- { aRecognizer->SetAppStarter(aAppStarter); }
- inline void CApaFileRecognizerType::SetAppStarter(MApaAppStarter* aAppStarter)
- { iAppStarter = aAppStarter; }
- inline TUid CApaFileRecognizerType::AppUid() const
- { return iAppUid; }
- inline TUid CApaFileRecognizerType::TypeUid() const
- { return iFileType; }
- inline CApaFileRecognizerType::TRecognizedType CApaFileRecognizerType::Type()const
- { return iRecognizedType; }
- #line 10 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikapp.h" /* stack depth 3 */
- class CCoeEnv;
- class CEikApplication : public CApaApplication
- #line 31
- {
- public:
- __declspec(dllexport) ~CEikApplication();
- inline TInt ResourceFileOffset() const;
- inline CApaProcess* Process() const;
- inline const TApaAppCaption& AppCaption() const;
- __declspec(dllexport) virtual void GetDefaultDocumentFileName(TFileName& aDocumentName) const;
- __declspec(dllexport) virtual TFileName BitmapStoreName() const;
- __declspec(dllexport) CDictionaryStore* OpenIniFileLC(RFs& aFs) const;
- __declspec(dllexport) void Capability(TDes8& aInfo) const;
- __declspec(dllexport) void SetToIniFileNameL(TParse& aParser) const;
- protected:
- __declspec(dllexport) void PreDocConstructL();
- __declspec(dllexport) CApaDocument* CreateDocumentL(CApaProcess* aProcess);
- __declspec(dllexport) void NewAppServerL(CApaAppServer*& aAppServer);
- __declspec(dllexport) void EnsureCaptionIsLocalisedL(const TDesC& aLocalisableResourceFile);
- protected:
- __declspec(dllexport) CEikApplication();
- public:
- __declspec(dllexport) virtual TFileName ResourceFileName() const;
- private:
- __declspec(dllexport) virtual void CEikApplication_Reserved1();
- __declspec(dllexport) virtual void CEikApplication_Reserved2();
- private:
- virtual CApaDocument* CreateDocumentL()=0;
- private:
- void ParseWithPathAndExt(TParse& aParse, const TDesC& aPath, const TDesC& aExt) const;
- protected:
- CCoeEnv* iCoeEnv;
- TInt iResourceFileOffset;
- private:
- enum
- {
- EFlagCaptionCorrectlyLocalised=0x00000001
- };
- private:
- CApaProcess* iProcess;
- TApaAppCaption iCaption;
- TApaAppCapabilityBuf* iCapabilityBuf;
- TUint iAppFlags;
- TInt iSpare;
- };
- inline TInt CEikApplication::ResourceFileOffset() const
- { return(iResourceFileOffset); }
- inline CApaProcess* CEikApplication::Process() const
- { return(iProcess); }
- inline const TApaAppCaption& CEikApplication::AppCaption() const
- { return(iCaption); }
- #line 26 "C:\Symbian\9.1\S60_3rd\epoc32\include\aknapp.h" /* stack depth 2 */
- #line 35
- class CAknApplication : public CEikApplication
- {
- public:
- #line 48
- __declspec(dllexport) virtual void PreDocConstructL();
- #line 60
- __declspec(dllexport) CDictionaryStore* OpenIniFileLC(RFs& aFs) const;
- __declspec(dllexport) void NewAppServerL(CApaAppServer*& aAppServer);
- };
- #line 14 "C:\gbtukmanpf01\NOK124\Courses\S60\05300-S60_C++_Introduction\Working\LabCode\Lab_05304-s2.cb1\starter\inc\S60UIExampleApplication.h" /* stack depth 1 */
- #line 24
- class CS60UIExampleApplication : public CAknApplication
- {
- public:
- TUid AppDllUid() const;
- protected:
- CApaDocument* CreateDocumentL();
- };
- #line 4 "C:\gbtukmanpf01\NOK124\Courses\S60\05300-S60_C++_Introduction\Working\LabCode\Lab_05304-s2.cb1\starter\src\S60UIExampleApplication.cpp" /* stack depth 0 */
- const TUid KUidS60UIExampleApp = { 0x08B9993D };
- CApaDocument* CS60UIExampleApplication::CreateDocumentL()
- {
- return (static_cast<CApaDocument*>
- ( CS60UIExampleDocument::NewL( *this ) ) );
- }
- TUid CS60UIExampleApplication::AppDllUid() const
- {
- return KUidS60UIExampleApp;
- }