S60UIExampleInitialView.inc
上传用户:laixiong
上传日期:2007-03-11
资源大小:2994k
文件大小:1156k
源码类别:
Symbian
开发平台:
C/C++
- class TDriveUnit
- #line 1094
- {
- public:
- inline TDriveUnit() {};
- __declspec(dllexport) TDriveUnit(TInt aDrive);
- __declspec(dllexport) TDriveUnit(const TDesC& aDrive);
- __declspec(dllexport) TDriveUnit& operator=(TInt aDrive);
- __declspec(dllexport) TDriveUnit& operator=(const TDesC& aDrive);
- inline operator TInt() const;
- __declspec(dllexport) TDriveName Name() const;
- private:
- TInt iDrive;
- };
- class RFs;
- class TParseBase
- #line 1139
- {
- private:
- struct SField {TUint8 pos;TUint8 len;TUint8 present;TUint8 filler;};
- enum TField {EDrive,EPath,EName,EExt,EMaxFields};
- enum TWild {EWildName=0x01,EWildExt=0x02,EWildEither=0x04,EIsRoot=0x08,EWildIsKMatchOne=0x10,EWildIsKMatchAny=0x20};
- public:
- __declspec(dllexport) TParseBase();
- __declspec(dllexport) TInt PopDir();
- __declspec(dllexport) TInt AddDir(const TDesC& aName);
- __declspec(dllexport) const TDesC& FullName() const;
- __declspec(dllexport) TPtrC Drive() const;
- __declspec(dllexport) TPtrC Path() const;
- __declspec(dllexport) TPtrC DriveAndPath() const;
- __declspec(dllexport) TPtrC Name() const;
- __declspec(dllexport) TPtrC Ext() const;
- __declspec(dllexport) TPtrC NameAndExt() const;
- __declspec(dllexport) TBool DrivePresent() const;
- __declspec(dllexport) TBool PathPresent() const;
- __declspec(dllexport) TBool NamePresent() const;
- __declspec(dllexport) TBool ExtPresent() const;
- __declspec(dllexport) TBool NameOrExtPresent() const;
- __declspec(dllexport) TBool IsRoot() const;
- __declspec(dllexport) TBool IsWild() const;
- __declspec(dllexport) TBool IsKMatchOne() const;
- __declspec(dllexport) TBool IsKMatchAny() const;
- __declspec(dllexport) TBool IsNameWild() const;
- __declspec(dllexport) TBool IsExtWild() const;
- protected:
- virtual TDes& NameBuf() = 0;
- virtual const TDesC& NameBufC() const = 0;
- TInt Set(const TDesC* aName,const TDesC* aRelated,const TDesC* aDefault,TBool allowWild);
- private:
- TInt ParseDrive(TLex& aName,TBool& aDone);
- TInt ParsePath(TLex& aName,TBool& aDone);
- TInt ParseName(TLex& aName,TBool& aDone);
- TInt ParseExt(TLex& aName,TBool& aDone);
- protected:
- TInt16 iMod;
- private:
- TInt16 iWild;
- SField iField[EMaxFields];
- };
- class TParsePtr : public TParseBase
- #line 1203
- {
- public:
- __declspec(dllexport) TParsePtr(TDes& aName);
- protected:
- __declspec(dllexport) TDes& NameBuf();
- __declspec(dllexport) const TDesC& NameBufC() const;
- private:
- TPtr iNameBuf;
- };
- class TParsePtrC : public TParseBase
- #line 1235
- {
- public:
- __declspec(dllexport) TParsePtrC(const TDesC& aName);
- protected:
- __declspec(dllexport) TDes& NameBuf();
- __declspec(dllexport) const TDesC& NameBufC() const;
- private:
- TPtrC iNameBuf;
- };
- class TParse : public TParseBase
- #line 1265
- {
- public:
- __declspec(dllexport) TParse();
- __declspec(dllexport) TInt Set(const TDesC& aName,const TDesC* aRelated,const TDesC* aDefault);
- __declspec(dllexport) TInt SetNoWild(const TDesC& aName,const TDesC* aRelated,const TDesC* aDefault);
- protected:
- __declspec(dllexport) TDes& NameBuf();
- __declspec(dllexport) const TDesC& NameBufC() const;
- private:
- TFileName iNameBuf;
- };
- class CDir : public CBase
- #line 1289
- {
- public:
- __declspec(dllexport) virtual ~CDir();
- __declspec(dllexport) TInt Count() const;
- __declspec(dllexport) const TEntry& operator[](TInt anIndex) const;
- __declspec(dllexport) TInt Sort(TUint aEntrySortKey);
- protected:
- __declspec(dllexport) CDir();
- __declspec(dllexport) static CDir* NewL();
- __declspec(dllexport) void AddL(const TEntry& anEntry);
- __declspec(dllexport) void ExtractL(TBool aRemove,CDir*& aDir);
- __declspec(dllexport) void Compress();
- protected:
- CArrayPakFlat<TEntry> * iArray;
- friend class RFs;
- friend class TOpenFileScan;
- };
- class RFs : public RSessionBase
- #line 1380
- {
- public:
- __declspec(dllexport) TInt Connect(TInt aMessageSlots=KFileServerDefaultMessageSlots);
- __declspec(dllexport) TVersion Version() const;
- __declspec(dllexport) TInt AddFileSystem(const TDesC& aFileName) const;
- __declspec(dllexport) TInt MountFileSystem(const TDesC& aFileSystemName,TInt aDrive) const;
- __declspec(dllexport) TInt MountFileSystem(const TDesC& aFileSystemName,TInt aDrive, TBool aIsSync) const;
- __declspec(dllexport) TInt MountFileSystemAndScan(const TDesC& aFileSystemName,TInt aDrive,TBool& aIsMountSuccess) const;
- __declspec(dllexport) TInt MountFileSystem(const TDesC& aFileSystemName,const TDesC& aExtensionName,TInt aDrive);
- __declspec(dllexport) TInt MountFileSystem(const TDesC& aFileSystemName,const TDesC& aExtensionName,TInt aDrive, TBool aIsSync);
- __declspec(dllexport) TInt MountFileSystemAndScan(const TDesC& aFileSystemName,const TDesC& aExtensionName,TInt aDrive,TBool& aIsMountSuccess) const;
- __declspec(dllexport) TInt DismountFileSystem(const TDesC& aFileSystemName,TInt aDrive) const;
- __declspec(dllexport) TInt RemoveFileSystem(const TDesC& aFileSystemName) const;
- __declspec(dllexport) TInt FileSystemName(TDes& aName,TInt aDrive) const;
- __declspec(dllexport) TInt AddExtension(const TDesC& aFileName);
- __declspec(dllexport) TInt MountExtension(const TDesC& aExtensionName,TInt aDrive);
- __declspec(dllexport) TInt DismountExtension(const TDesC& aExtensionName,TInt aDrive);
- __declspec(dllexport) TInt RemoveExtension(const TDesC& aExtensionName);
- __declspec(dllexport) TInt ExtensionName(TDes& aExtensionName,TInt aDrive,TInt aPos);
- __declspec(dllexport) TInt RemountDrive(TInt aDrive,const TDesC8* aMountInfo=0 ,TUint aFlags=0);
- __declspec(dllexport) void NotifyChange(TNotifyType aType,TRequestStatus& aStat);
- __declspec(dllexport) void NotifyChange(TNotifyType aType,TRequestStatus& aStat,const TDesC& aPathName);
- __declspec(dllexport) void NotifyChangeCancel();
- __declspec(dllexport) void NotifyChangeCancel(TRequestStatus& aStat);
- __declspec(dllexport) void NotifyDiskSpace(TInt64 aThreshold,TInt aDrive,TRequestStatus& aStat);
- __declspec(dllexport) void NotifyDiskSpaceCancel(TRequestStatus& aStat);
- __declspec(dllexport) void NotifyDiskSpaceCancel();
- __declspec(dllexport) TInt DriveList(TDriveList& aList) const;
- __declspec(dllexport) TInt Drive(TDriveInfo& anInfo,TInt aDrive=KDefaultDrive) const;
- __declspec(dllexport) TInt Volume(TVolumeInfo& aVol,TInt aDrive=KDefaultDrive) const;
- __declspec(dllexport) TInt SetVolumeLabel(const TDesC& aName,TInt aDrive=KDefaultDrive);
- __declspec(dllexport) TInt Subst(TDes& aPath,TInt aDrive=KDefaultDrive) const;
- __declspec(dllexport) TInt SetSubst(const TDesC& aPath,TInt aDrive=KDefaultDrive);
- __declspec(dllexport) TInt RealName(const TDesC& aName,TDes& aResult) const;
- __declspec(dllexport) TInt GetMediaSerialNumber(TMediaSerialNumber& aSerialNum, TInt aDrive);
- __declspec(dllexport) TInt SessionPath(TDes& aPath) const;
- __declspec(dllexport) TInt SetSessionPath(const TDesC& aPath);
- __declspec(dllexport) TInt Parse(const TDesC& aName,TParse& aParse) const;
- __declspec(dllexport) TInt Parse(const TDesC& aName,const TDesC& aRelated,TParse& aParse) const;
- __declspec(dllexport) TInt MkDir(const TDesC& aPath);
- __declspec(dllexport) TInt MkDirAll(const TDesC& aPath);
- __declspec(dllexport) TInt RmDir(const TDesC& aPath);
- __declspec(dllexport) TInt GetDir(const TDesC& aName,TUint anEntryAttMask,TUint anEntrySortKey,CDir*& anEntryList) const;
- __declspec(dllexport) TInt GetDir(const TDesC& aName,TUint anEntryAttMask,TUint anEntrySortKey,CDir*& anEntryList,CDir*& aDirList) const;
- __declspec(dllexport) TInt GetDir(const TDesC& aName,const TUidType& anEntryUid,TUint anEntrySortKey,CDir*& aFileList) const;
- __declspec(dllexport) TInt Delete(const TDesC& aName);
- __declspec(dllexport) TInt Rename(const TDesC& anOldName,const TDesC& aNewName);
- __declspec(dllexport) TInt Replace(const TDesC& anOldName,const TDesC& aNewName);
- __declspec(dllexport) TInt Att(const TDesC& aName,TUint& aAttValue) const;
- __declspec(dllexport) TInt SetAtt(const TDesC& aName,TUint aSetAttMask,TUint aClearAttMask);
- __declspec(dllexport) TInt Modified(const TDesC& aName,TTime& aTime) const;
- __declspec(dllexport) TInt SetModified(const TDesC& aName,const TTime& aTime);
- __declspec(dllexport) TInt Entry(const TDesC& aName,TEntry& anEntry) const;
- __declspec(dllexport) TInt SetEntry(const TDesC& aName,const TTime& aTime,TUint aSetAttMask,TUint aClearAttMask);
- __declspec(dllexport) TInt ReadFileSection(const TDesC& aName,TInt aPos,TDes8& aDes,TInt aLength) const;
- __declspec(dllexport) static TBool IsValidDrive(TInt aDrive);
- __declspec(dllexport) static TInt CharToDrive(TChar aChar,TInt& aDrive);
- __declspec(dllexport) static TInt DriveToChar(TInt aDrive,TChar& aChar);
- __declspec(dllexport) static TBool IsRomAddress(TAny* aAny);
- __declspec(dllexport) void ResourceCountMarkStart() const;
- __declspec(dllexport) void ResourceCountMarkEnd() const;
- __declspec(dllexport) TInt ResourceCount() const;
- __declspec(dllexport) TInt IsFileOpen(const TDesC& aFile,TBool& anAnswer) const;
- __declspec(dllexport) TInt CheckDisk(const TDesC& aDrive) const;
- __declspec(dllexport) TInt ScanDrive(const TDesC& aDrive) const;
- __declspec(dllexport) TInt GetShortName(const TDesC& aLongName,TDes& aShortName) const;
- __declspec(dllexport) TInt GetLongName(const TDesC& aShortName,TDes& aLongName) const;
- __declspec(dllexport) TBool GetNotifyUser();
- __declspec(dllexport) void SetNotifyUser(TBool aValue);
- __declspec(dllexport) TUint8* IsFileInRom(const TDesC& aFileName) const;
- __declspec(dllexport) TBool IsValidName(const TDesC& anEntryName) const;
- __declspec(dllexport) TBool IsValidName(const TDesC& aFileName,TText& aBadChar) const;
- __declspec(dllexport) TInt GetDriveName(TInt aDrive,TDes& aDriveName) const;
- __declspec(dllexport) TInt SetDriveName(TInt aDrive,const TDesC& aDriveName);
- __declspec(dllexport) TInt LoaderHeapFunction(TInt aFunction, TAny *aArg1=0 , TAny *aArg2=0 );
- __declspec(dllexport) TInt SetErrorCondition(TInt anError,TInt aCount=0);
- __declspec(dllexport) TInt SetDebugRegister(TInt aVal);
- __declspec(dllexport) TInt SetAllocFailure(TInt aAllocNum);
- __declspec(dllexport) void DebugNotify(TInt aDrive,TUint aNotifyType,TRequestStatus& aStat);
- __declspec(dllexport) TInt ControlIo(TInt aDrive,TInt aCommand);
- __declspec(dllexport) TInt ControlIo(TInt aDrive,TInt aCommand,TDes8& aParam1);
- __declspec(dllexport) TInt ControlIo(TInt aDrive,TInt aCommand,TDes8& aParam1,TDes8& aParam2);
- __declspec(dllexport) TInt ControlIo(TInt aDrive,TInt aCommand,TAny* aParam1,TAny* aParam2);
- __declspec(dllexport) TInt LockDrive(TInt aDrv, const TMediaPassword &aOld, const TMediaPassword &aNew, TBool aStr);
- __declspec(dllexport) TInt UnlockDrive(TInt aDrv, const TMediaPassword &Pswd, TBool aStr);
- __declspec(dllexport) TInt ClearPassword(TInt aDrv, const TMediaPassword &aPswd);
- __declspec(dllexport) TInt ErasePassword(TInt aDrv);
- __declspec(dllexport) TInt SetSessionToPrivate(TInt aDrive);
- __declspec(dllexport) TInt PrivatePath(TDes& aPath);
- __declspec(dllexport) TInt CreatePrivatePath(TInt aDrive);
- __declspec(dllexport) void StartupInitComplete(TRequestStatus& aStat);
- __declspec(dllexport) TInt SetLocalDriveMapping(const TDesC8& aMapping);
- __declspec(dllexport) TInt FinaliseDrives();
- __declspec(dllexport) TInt SwapFileSystem(const TDesC& aOldFileSystemName,const TDesC& aNewFileSystemName,TInt aDrive) const;
- __declspec(dllexport) TInt ReserveDriveSpace(TInt aDriveNo, TInt aSpace);
- __declspec(dllexport) TInt GetReserveAccess(TInt aDriveNo);
- __declspec(dllexport) TInt ReleaseReserveAccess(TInt aDriveNo);
- __declspec(dllexport) TInt AddPlugin(const TDesC& aFileName) const;
- __declspec(dllexport) TInt RemovePlugin(const TDesC& aPluginName) const;
- __declspec(dllexport) TInt PluginName(TDes& aPluginName,TInt aDrive,TInt aPos);
- __declspec(dllexport) TInt MountPlugin(const TDesC& aPluginName) const;
- __declspec(dllexport) TInt MountPlugin(const TDesC& aPluginName,TInt aDrive) const;
- __declspec(dllexport) TInt MountPlugin(const TDesC& aPluginName,TInt aDrive, TInt aPos) const;
- __declspec(dllexport) TInt DismountPlugin(const TDesC& aPluginName) const;
- __declspec(dllexport) TInt DismountPlugin(const TDesC& aPluginName,TInt aDrive) const;
- __declspec(dllexport) TInt DismountPlugin(const TDesC& aPluginName,TInt aDrive,TInt aPos) const;
- __declspec(dllexport) void NotifyDismount(TInt aDrive, TRequestStatus& aStat, TNotifyDismountMode aMode=EFsDismountRegisterClient) const;
- __declspec(dllexport) void NotifyDismountCancel(TRequestStatus& aStat) const;
- __declspec(dllexport) void NotifyDismountCancel() const;
- __declspec(dllexport) TInt AllowDismount(TInt aDrive) const;
- __declspec(dllexport) TInt SetStartupConfiguration(TInt aCommand,TAny* aParam1,TAny* aParam2) const;
- private:
- void GetDirL(const TDesC& aMatchName,TUint anEntryAttMask,TUint anEntrySortKey,CDir*& anEntryList,CDir*& aDirList,RDir& aDir) const;
- void GetDirL(const TDesC& aMatchName,TUint anEntryAttMask,TUint anEntrySortKey,CDir*& anEntryList,RDir& aDir) const;
- void GetDirL(const TDesC& aMatchName,const TUidType& aUidType,TUint anEntrySortKey,CDir*& anEntryList,RDir& aDir) const;
- void DoGetDirL(TUint anEntrySortKey,CDir*& anEntryList,RDir& aDir) const;
- TInt GetOpenFileList(TInt& aSessionNum,TInt& aLocalPos,TThreadId& aThreadId,TEntryArray& anArray) const;
- friend class TOpenFileScan;
- };
- #line 1569
- class RFile : public RSubSessionBase
- {
- public:
- __declspec(dllexport) TInt Open(RFs& aFs,const TDesC& aName,TUint aFileMode);
- __declspec(dllexport) void Close();
- __declspec(dllexport) TInt Create(RFs& aFs,const TDesC& aName,TUint aFileMode);
- __declspec(dllexport) TInt Replace(RFs& aFs,const TDesC& aName,TUint aFileMode);
- __declspec(dllexport) TInt Temp(RFs& aFs,const TDesC& aPath,TFileName& aName,TUint aFileMode);
- __declspec(dllexport) TInt Read(TDes8& aDes) const;
- __declspec(dllexport) void Read(TDes8& aDes,TRequestStatus& aStatus) const;
- __declspec(dllexport) TInt Read(TDes8& aDes,TInt aLength) const;
- __declspec(dllexport) void Read(TDes8& aDes,TInt aLength,TRequestStatus& aStatus) const;
- __declspec(dllexport) TInt Read(TInt aPos,TDes8& aDes) const;
- __declspec(dllexport) void Read(TInt aPos,TDes8& aDes,TRequestStatus& aStatus) const;
- __declspec(dllexport) TInt Read(TInt aPos,TDes8& aDes,TInt aLength) const;
- __declspec(dllexport) void Read(TInt aPos,TDes8& aDes,TInt aLength,TRequestStatus& aStatus) const;
- __declspec(dllexport) void ReadCancel(TRequestStatus& aStatus) const;
- __declspec(dllexport) void ReadCancel() const;
- __declspec(dllexport) TInt Write(const TDesC8& aDes);
- __declspec(dllexport) void Write(const TDesC8& aDes,TRequestStatus& aStatus);
- __declspec(dllexport) TInt Write(const TDesC8& aDes,TInt aLength);
- __declspec(dllexport) void Write(const TDesC8& aDes,TInt aLength,TRequestStatus& aStatus);
- __declspec(dllexport) TInt Write(TInt aPos,const TDesC8& aDes);
- __declspec(dllexport) void Write(TInt aPos,const TDesC8& aDes,TRequestStatus& aStatus);
- __declspec(dllexport) TInt Write(TInt aPos,const TDesC8& aDes,TInt aLength);
- __declspec(dllexport) void Write(TInt aPos,const TDesC8& aDes,TInt aLength,TRequestStatus& aStatus);
- __declspec(dllexport) TInt Lock(TInt aPos,TInt aLength) const;
- __declspec(dllexport) TInt UnLock(TInt aPos,TInt aLength) const;
- __declspec(dllexport) TInt Seek(TSeek aMode,TInt& aPos) const;
- __declspec(dllexport) TInt Flush();
- __declspec(dllexport) TInt Size(TInt& aSize) const;
- __declspec(dllexport) TInt SetSize(TInt aSize);
- __declspec(dllexport) TInt Att(TUint& aAttValue) const;
- __declspec(dllexport) TInt SetAtt(TUint aSetAttMask,TUint aClearAttMask);
- __declspec(dllexport) TInt Modified(TTime& aTime) const;
- __declspec(dllexport) TInt SetModified(const TTime& aTime);
- __declspec(dllexport) TInt Set(const TTime& aTime,TUint aSetAttMask,TUint aClearAttMask);
- __declspec(dllexport) TInt ChangeMode(TFileMode aNewMode);
- __declspec(dllexport) TInt Rename(const TDesC& aNewName);
- __declspec(dllexport) TInt Drive(TInt &aDriveNumber, TDriveInfo &aDriveInfo) const;
- __declspec(dllexport) TInt Adopt(RFs& aFs, TInt aHandle);
- __declspec(dllexport) TInt AdoptFromClient(const RMessage2& aMsg, TInt aFsHandleIndex, TInt aFileHandleIndex);
- __declspec(dllexport) TInt AdoptFromServer(TInt aFsHandle, TInt aFileHandle);
- __declspec(dllexport) TInt AdoptFromCreator(TInt aFsIndex, TInt aFileHandleIndex);
- __declspec(dllexport) TInt Name(TDes& aName) const;
- __declspec(dllexport) TInt TransferToServer(TIpcArgs& aIpcArgs, TInt aFsHandleIndex, TInt aFileHandleIndex) const;
- __declspec(dllexport) TInt TransferToClient(const RMessage2& aMsg, TInt aFileHandleIndex) const;
- __declspec(dllexport) TInt TransferToProcess(RProcess& aProcess, TInt aFsHandleIndex, TInt aFileHandleIndex) const;
- __declspec(dllexport) TInt Duplicate(const RFile& aFile, TOwnerType aType=EOwnerProcess);
- __declspec(dllexport) TInt FullName(TDes& aName) const;
- private:
- TInt DuplicateHandle(TInt& aSubSessionHandle) const;
- };
- class RDir : public RSubSessionBase
- #line 1655
- {
- public:
- __declspec(dllexport) TInt Open(RFs& aFs,const TDesC& aMatchName,const TUidType& aUidType);
- __declspec(dllexport) TInt Open(RFs& aFs,const TDesC& aMatchName,TUint anAttMask);
- __declspec(dllexport) void Close();
- __declspec(dllexport) TInt Read(TEntryArray& anArray) const;
- __declspec(dllexport) void Read(TEntryArray& anArray,TRequestStatus& aStatus) const;
- __declspec(dllexport) TInt Read(TEntry& anEntry) const;
- __declspec(dllexport) void Read(TPckg<TEntry>& anEntry,TRequestStatus& aStatus) const;
- };
- class RFormat : public RSubSessionBase
- #line 1681
- {
- public:
- __declspec(dllexport) TInt Open(RFs& aFs,const TDesC& aName,TUint aFormatMode,TInt& aCount);
- __declspec(dllexport) TInt Open(RFs& aFs,const TDesC& aName,TUint aFormatMode,TInt& aCount,const TDesC8& anInfo);
- __declspec(dllexport) void Close();
- __declspec(dllexport) TInt Next(TInt& aStep);
- __declspec(dllexport) void Next(TPckgBuf<TInt>& aStep,TRequestStatus& aStatus);
- };
- class RRawDisk : public RSubSessionBase
- #line 1704
- {
- public:
- __declspec(dllexport) TInt Open(RFs& aFs,TInt aDrive);
- __declspec(dllexport) void Close();
- __declspec(dllexport) TInt Read(TInt64 aPos,TDes8& aDes);
- __declspec(dllexport) TInt Write(TInt64 aPos,TDesC8& aDes);
- private:
- TInt iDrive;
- };
- class CDirStack;
- class CDirScan : public CBase
- #line 1733
- {
- public:
- enum TScanDirection
- {
- EScanUpTree,
- EScanDownTree
- };
- public:
- __declspec(dllexport) static CDirScan* NewL(RFs& aFs);
- __declspec(dllexport) static CDirScan* NewLC(RFs& aFs);
- __declspec(dllexport) ~CDirScan();
- __declspec(dllexport) void SetScanDataL(const TDesC& aMatchName,TUint anEntryAttMask,TUint anEntrySortMask,TScanDirection aScanDir=EScanDownTree);
- __declspec(dllexport) void NextL(CDir*& aDirEntries);
- __declspec(dllexport) TPtrC AbbreviatedPath();
- __declspec(dllexport) TPtrC FullPath();
- protected:
- CDirScan(RFs& aFs);
- private:
- inline RFs& Fs();
- void UpdateAbbreviatedPath();
- void ScanUpTreeL(CDir*& aDirEntries);
- void ScanDownTreeL(CDir*& aDirEntries);
- void GetDirEntriesL(CDir*& aDirEntries);
- private:
- RFs* const iFs;
- TParse iFullPath;
- TPtrC iAbbreviatedPath;
- TInt iAbbreviatedPathPos;
- TUint iEntryAttMask;
- TUint iEntrySortMask;
- TBool iScanning;
- TScanDirection iScanDir;
- CDirStack* iStack;
- };
- enum TFileManError
- #line 1792
- {
- ENoExtraInformation,
- #line 1808
- EInitializationFailed,
- #line 1819
- EScanNextDirectoryFailed,
- ESrcOpenFailed,
- ETrgOpenFailed,
- ENoFilesProcessed
- };
- class MFileManObserver
- #line 1868
- {
- public:
- enum TControl
- {
- EContinue,
- ERetry,
- EAbort,
- ECancel
- };
- public:
- __declspec(dllexport) virtual TControl NotifyFileManStarted();
- __declspec(dllexport) virtual TControl NotifyFileManOperation();
- __declspec(dllexport) virtual TControl NotifyFileManEnded();
- };
- class CFileBase : public CBase
- #line 1919
- {
- public:
- __declspec(dllexport) void SetObserver(MFileManObserver* anObserver);
- public:
- __declspec(dllexport) const TEntry& CurrentEntry();
- __declspec(dllexport) TPtrC AbbreviatedPath();
- __declspec(dllexport) TPtrC FullPath();
- __declspec(dllexport) TInt GetLastError();
- __declspec(dllexport) TFileManError GetMoreInfoAboutError();
- protected:
- __declspec(dllexport) CFileBase(RFs& anFs);
- __declspec(dllexport) void ConstructL();
- __declspec(dllexport) ~CFileBase();
- __declspec(dllexport) void RunL();
- __declspec(dllexport) void RunInSeparateThreadL(TThreadFunction aThreadFunction);
- virtual void CompleteOperationL() {};
- virtual void DoOperationL() = 0;
- protected:
- RFs iFs;
- RFs iFsOld;
- RThread iFManThread;
- RSemaphore iSynchronizer;
- CDirScan* iScanner;
- CDir* iDirList;
- TInt iCurrentEntry;
- TUint iMatchEntry;
- TUint iSwitches;
- TParse iSrcFile;
- MFileManObserver* iObserver;
- TInt iLastError;
- TFileManError iErrorInfo;
- TRequestStatus* iStatus;
- HBufC* iSessionPath;
- TInt iNumberOfFilesProcessed;
- friend void DoFManBaseOperationL(TAny* aPtr);
- friend TInt FManBaseThreadFunction(TAny* aPtr);
- };
- class CFileMan : public CFileBase
- #line 2007
- {
- public:
- enum TAction
- {
- ENone,
- EAttribs,
- ECopy,
- EDelete,
- EMove,
- ERename,
- ERmDir,
- ERenameInvalidEntry,
- ECopyFromHandle,
- };
- #line 2078
- enum TSwitch
- {
- EOverWrite=1,
- ERecurse=2
- };
- public:
- __declspec(dllexport) static CFileMan* NewL(RFs& aFs);
- __declspec(dllexport) static CFileMan* NewL(RFs& aFs,MFileManObserver* anObserver);
- ~CFileMan();
- __declspec(dllexport) TAction CurrentAction();
- __declspec(dllexport) void GetCurrentTarget(TFileName& aFile);
- __declspec(dllexport) void GetCurrentSource(TFileName& aFile);
- __declspec(dllexport) TInt BytesTransferredByCopyStep();
- public:
- __declspec(dllexport) TInt Attribs(const TDesC& aName,TUint aSetMask,TUint aClearMask,const TTime& aTime,TUint aSwitch=0);
- __declspec(dllexport) TInt Attribs(const TDesC& aName,TUint aSetMask,TUint aClearMask,const TTime& aTime,TUint aSwitch,TRequestStatus& aStatus);
- __declspec(dllexport) TInt Copy(const TDesC& anOld,const TDesC& aNew,TUint aSwitch=EOverWrite);
- __declspec(dllexport) TInt Copy(const TDesC& anOld,const TDesC& aNew,TUint aSwitch,TRequestStatus& aStatus);
- __declspec(dllexport) TInt Delete(const TDesC& aName,TUint aSwitch=0);
- __declspec(dllexport) TInt Delete(const TDesC& aName,TUint aSwitch,TRequestStatus& aStatus);
- __declspec(dllexport) TInt Move(const TDesC& anOld,const TDesC& aNew,TUint aSwitch=EOverWrite);
- __declspec(dllexport) TInt Move(const TDesC& anOld,const TDesC& aNew,TUint aSwitch,TRequestStatus& aStatus);
- __declspec(dllexport) TInt Rename(const TDesC& anOld,const TDesC& aNew,TUint aSwitch=EOverWrite);
- __declspec(dllexport) TInt Rename(const TDesC& anOld,const TDesC& aNew,TUint aSwitch,TRequestStatus& aStatus);
- __declspec(dllexport) TInt RmDir(const TDesC& aDirName);
- __declspec(dllexport) TInt RmDir(const TDesC& aDirName,TRequestStatus& aStatus);
- __declspec(dllexport) TInt Copy(const RFile& anOld,const TDesC& aNew,TUint aSwitches=EOverWrite);
- __declspec(dllexport) TInt Copy(const RFile& anOld,const TDesC& aNew,TUint aSwitches,TRequestStatus& aStatus);
- protected:
- CFileMan(RFs& aFs);
- TInt RenameInvalidEntry(const TDesC& anOld,const TDesC& aNew,TUint aSwitch=EOverWrite);
- private:
- void CompleteOperationL();
- void DoOperationL();
- void CheckForDirectory();
- void SetFlags(TBool aOverWrite,TBool aRecurse,TBool aScanDirection,TBool aMoveRename);
- void GetSrcAndTrg(TParse& aSrcName,TFileName& aTrgName);
- void DoSynchronize(TInt aRetVal);
- TInt CheckRenameAllowed(const TDesC& aSrcName,const TDesC& aTrgName);
- private:
- void DoAttribsL();
- void DoCopyOrMoveL();
- void DoDeleteL();
- void DoRenameL();
- void DoRmDirL();
- void DoCopyFromHandleL();
- TInt DoCopy(const RFile& aSrcFile, RFile& aDstFile, TInt& aRet);
- private:
- TParse iTrgFile;
- TAction iAction;
- TUint iSetMask;
- TUint iClearMask;
- TTime iTime;
- TInt iBytesTransferred;
- RFile iSrcFileHandle;
- friend void RenameInvalidEntryL(RFs& aFs,TParse& aSrcFile);
- };
- class TFindFile
- #line 2167
- {
- public:
- __declspec(dllexport) TFindFile(RFs& aFs);
- __declspec(dllexport) TInt FindByPath(const TDesC& aFileName,const TDesC* aPathList);
- __declspec(dllexport) TInt FindByDir(const TDesC& aFileName,const TDesC& aDirPath);
- __declspec(dllexport) TInt Find();
- __declspec(dllexport) TInt FindWildByPath(const TDesC& aFileName,const TDesC* aPathList,CDir*& aDirList);
- __declspec(dllexport) TInt FindWildByDir(const TDesC& aFileName,const TDesC& aDirPath,CDir*& aDir);
- __declspec(dllexport) TInt FindWild(CDir*& aDirList);
- inline const TDesC& File() const;
- private:
- TInt DoFind();
- TInt DoFindByPath(const TDesC& aFileName,const TDesC* aPathList);
- TInt DoFindByDir(const TDesC& aFileName,const TDesC& aDir);
- TInt DoFindInDir();
- TInt DoFindNextInPath();
- TInt DoFindNextInDriveList();
- private:
- RFs* const iFs;
- TParse iFile;
- TInt iPathPos;
- TInt iCurrentDrive;
- TInt iMode;
- const TDesC* iPath;
- TDriveList iDrvList;
- CDir** iDir;
- TUint32 iReserved;
- };
- #line 2208
- typedef CDir CFileList;
- class TOpenFileScan
- #line 2226
- {
- public:
- __declspec(dllexport) TOpenFileScan(RFs& aFs);
- __declspec(dllexport) void NextL(CFileList*& aFileList);
- __declspec(dllexport) TThreadId ThreadId() const;
- private:
- RFs* iFs;
- TThreadId iThreadId;
- TInt iScanPos;
- TInt iEntryListPos;
- };
- class TFileText
- {
- public:
- enum TFileState
- {
- EStartOfFile,
- ENormal,
- EReverse
- };
- public:
- __declspec(dllexport) TFileText();
- __declspec(dllexport) void Set(RFile& aFile);
- __declspec(dllexport) TInt Read(TDes& aDes);
- __declspec(dllexport) TInt Write(const TDesC& aDes);
- __declspec(dllexport) TInt Seek(TSeek aMode);
- private:
- void NextRecord();
- TInt CheckForTerminator(TBool& anAnswer);
- TInt FillBuffer();
- private:
- const TText* iNext;
- const TText* iEnd;
- TFileState iState;
- RFile iFile;
- TBuf8<0x100> iReadBuf;
- };
- #line 2284
- __declspec(dllexport) TBool FileNamesIdentical(const TDesC& aFileName1,const TDesC& aFileName2);
- #line 2294
- class TLocalDriveMappingInfo
- {
- public:
- enum TDrvMapOperation {EWriteMappingsAndSet=0,EWriteMappingsNoSet=1,ESwapIntMappingAndSet=2};
- public:
- TInt iDriveMapping[KMaxLocalDrives];
- TDrvMapOperation iOperation;
- };
- typedef TPckgBuf<TLocalDriveMappingInfo> TLocalDriveMappingInfoBuf;
- class RPlugin : public RSubSessionBase
- {
- public:
- __declspec(dllexport) TInt Open(RFs& aFs, TInt aPos);
- __declspec(dllexport) void Close();
- protected:
- __declspec(dllexport) void DoRequest(TInt aReqNo,TRequestStatus& aStatus) const;
- __declspec(dllexport) void DoRequest(TInt aReqNo,TRequestStatus& aStatus,TDes8& a1) const;
- __declspec(dllexport) void DoRequest(TInt aReqNo,TRequestStatus& aStatus,TDes8& a1,TDes8& a2) const;
- __declspec(dllexport) TInt DoControl(TInt aFunction) const;
- __declspec(dllexport) TInt DoControl(TInt aFunction,TDes8& a1) const;
- __declspec(dllexport) TInt DoControl(TInt aFunction,TDes8& a1,TDes8& a2) const;
- __declspec(dllexport) void DoCancel(TUint aReqMask) const;
- };
- #line 2334
- const TInt KPluginAutoAttach = 0x19;
- #line 2345
- const TInt KPluginAutoLocate = 0xC8;
- const TInt KFileServerUidValue = 0x100039e3;
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\f32file.inl" /* stack depth 7 */
- #line 10
- inline const TUid& TEntry::operator[](TInt anIndex) const
- #line 21
- {return(iType[anIndex]);}
- inline TBool TEntry::IsUidPresent(TUid aUid) const
- #line 37
- {return(iType.IsPresent(aUid));}
- inline TBool TEntry::IsTypeValid() const
- #line 51
- {return(iType.IsValid());}
- inline TUid TEntry::MostDerivedUid() const
- #line 65
- {return(iType.MostDerived());}
- inline TInt EntrySize(const TEntry& anEntry)
- {return(sizeof(TUint)+sizeof(TInt)+sizeof(TTime)+sizeof(TInt)+sizeof(TUidType)+anEntry.iName.Size());}
- inline const TDesC& TFindFile::File() const
- #line 93
- {return iFile.FullName();}
- inline RFs& CDirScan::Fs()
- {return(*iFs);}
- inline TDriveUnit::operator TInt() const
- {return(iDrive);}
- #line 2355 "C:\Symbian\9.1\S60_3rd\epoc32\include\f32file.h" /* stack depth 6 */
- #line 20 "C:\Symbian\9.1\S60_3rd\epoc32\include\fntstore.h" /* stack depth 5 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\gdi.h" /* stack depth 6 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\s32std.h" /* stack depth 7 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\s32strm.h" /* stack depth 8 */
- #line 12
- const TInt KMaxCardinality=0x1fffffff;
- class MStreamBuf;
- class RWriteStream;
- #line 27
- class RReadStream
- {
- public:
- inline RReadStream();
- inline RReadStream(MStreamBuf* aSource);
- inline MStreamBuf* Source();
- inline void Close();
- __declspec(dllexport) void Release();
- __declspec(dllexport) void PushL();
- inline void Pop();
- __declspec(dllexport) void ReadL(TDes8& aDes);
- __declspec(dllexport) void ReadL(TDes8& aDes,TInt aLength);
- __declspec(dllexport) void ReadL(TDes8& aDes,TChar aDelim);
- __declspec(dllexport) void ReadL(TUint8* aPtr,TInt aLength);
- __declspec(dllexport) void ReadL(TInt aLength);
- inline void ReadL(RWriteStream& aStream);
- inline void ReadL(RWriteStream& aStream,TInt aLength);
- __declspec(dllexport) void ReadL(TDes16& aDes);
- __declspec(dllexport) void ReadL(TDes16& aDes,TInt aLength);
- __declspec(dllexport) void ReadL(TDes16& aDes,TChar aDelim);
- __declspec(dllexport) void ReadL(TUint16* aPtr,TInt aLength);
- __declspec(dllexport) TInt8 ReadInt8L();
- __declspec(dllexport) TInt16 ReadInt16L();
- __declspec(dllexport) TInt32 ReadInt32L();
- __declspec(dllexport) TUint8 ReadUint8L();
- __declspec(dllexport) TUint16 ReadUint16L();
- __declspec(dllexport) TUint32 ReadUint32L();
- __declspec(dllexport) TReal32 ReadReal32L() ;
- __declspec(dllexport) TReal64 ReadReal64L() ;
- protected:
- inline void Attach(MStreamBuf* aSource);
- inline void Detach();
- private:
- MStreamBuf* iSrc;
- private:
- friend class RWriteStream;
- };
- template <class T>
- class MExternalizer;
- class TStreamRef;
- #line 82
- class RWriteStream
- {
- public:
- inline RWriteStream();
- inline RWriteStream(const MExternalizer<TStreamRef>& anExter);
- inline RWriteStream(MStreamBuf* aSink);
- inline MStreamBuf* Sink();
- __declspec(dllexport) void Close();
- __declspec(dllexport) void Release();
- __declspec(dllexport) void CommitL();
- __declspec(dllexport) void PushL();
- inline void Pop();
- __declspec(dllexport) void WriteL(const TDesC8& aDes);
- __declspec(dllexport) void WriteL(const TDesC8& aDes,TInt aLength);
- __declspec(dllexport) void WriteL(const TUint8* aPtr,TInt aLength);
- __declspec(dllexport) void WriteL(RReadStream& aStream);
- __declspec(dllexport) void WriteL(RReadStream& aStream,TInt aLength);
- __declspec(dllexport) void WriteL(const TDesC16& aDes);
- __declspec(dllexport) void WriteL(const TDesC16& aDes,TInt aLength);
- __declspec(dllexport) void WriteL(const TUint16* aPtr,TInt aLength);
- __declspec(dllexport) void WriteInt8L(TInt aValue);
- __declspec(dllexport) void WriteInt16L(TInt aValue);
- __declspec(dllexport) void WriteInt32L(TInt32 aValue);
- __declspec(dllexport) void WriteUint8L(TUint aValue);
- __declspec(dllexport) void WriteUint16L(TUint aValue);
- __declspec(dllexport) void WriteUint32L(TUint32 aValue);
- __declspec(dllexport) void WriteReal32L(TReal aValue) ;
- __declspec(dllexport) void WriteReal64L(TReal64 aValue) ;
- protected:
- inline void Attach(MStreamBuf* aSink);
- inline void Detach();
- private:
- __declspec(dllexport) void WriteRefL(TStreamRef aRef);
- private:
- MStreamBuf* iSnk;
- const MExternalizer<TStreamRef> * iExterL;
- private:
- friend class TStreamRef;
- };
- template <class T>
- inline RWriteStream& operator<<(RWriteStream& aStream,const T& anObject);
- template <class T>
- inline RReadStream& operator>>(RReadStream& aStream,T& anObject);
- #line 142
- class TCardinality
- {
- public:
- TCardinality() {}
- inline TCardinality(TInt aCount);
- inline operator TInt() const;
- __declspec(dllexport) void ExternalizeL(RWriteStream& aStream) const;
- __declspec(dllexport) void InternalizeL(RReadStream& aStream);
- private:
- TInt iCount;
- private:
- __declspec(dllexport) static void __DbgChkRange(TInt aCount);
- };
- typedef void (*TExternalizeFunction)(const TAny* aPtr,RWriteStream& aStream);
- typedef void (*TInternalizeFunction)(TAny* aPtr,RReadStream& aStream);
- #line 171
- template <class T>
- class TExternalizer
- {
- public:
- inline void operator()(const T& anObject,RWriteStream& aStream) const;
- inline static TExternalizeFunction Function();
- private:
- static void ExternalizeAsL(const TAny* aPtr,RWriteStream& aStream);
- };
- #line 188
- template<> class TExternalizer<TAny>
- {
- public:
- TExternalizer() {}
- inline TExternalizer(TExternalizeFunction aFunction);
- inline void operator()(const TAny* aPtr,RWriteStream& aStream) const;
- inline TExternalizeFunction Function() const;
- private:
- TExternalizeFunction iFunc;
- };
- template <class T>
- class TInternalizer
- {
- public:
- inline void operator()(T& anObject,RReadStream& aStream) const;
- inline static TInternalizeFunction Function();
- private:
- static void InternalizeAsL(TAny* aPtr,RReadStream& aStream);
- };
- template<> class TInternalizer<TAny>
- {
- public:
- TInternalizer() {}
- inline TInternalizer(TInternalizeFunction aFunction);
- inline void operator()(TAny* aPtr,RReadStream& aStream) const;
- inline TInternalizeFunction Function() const;
- private:
- TInternalizeFunction iFunc;
- };
- #line 258
- template <class T>
- class MExternalizer
- {
- public:
- inline void operator()(const T& anObject,RWriteStream& aStream) const;
- private:
- virtual void ExternalizeL(const T& anObject,RWriteStream& aStream) const=0;
- };
- #line 281
- template <class T>
- class MInternalizer
- {
- public:
- inline void operator()(T& anObject,RReadStream& aStream) const;
- private:
- virtual void InternalizeL(T& anObject,RReadStream& aStream) const=0;
- };
- class TStreamRef
- {
- public:
- inline TStreamRef(const TAny* aPtr,TExternalizeFunction aFunction);
- inline const TAny* Ptr() const;
- inline TExternalizeFunction Function() const;
- inline void ExternalizeL(RWriteStream& aStream) const;
- private:
- const TAny* iPtr;
- TExternalizeFunction iFunc;
- };
- class Externalize
- {
- public:
- class Member {};
- class Function {};
- };
- class Internalize
- {
- public:
- class Member {};
- class Function {};
- };
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\s32strm.inl" /* stack depth 9 */
- inline RReadStream::RReadStream()
- : iSrc(0 )
- {}
- inline RReadStream::RReadStream(MStreamBuf* aSource)
- : iSrc(aSource)
- {}
- inline MStreamBuf* RReadStream::Source()
- #line 32
- {return iSrc;}
- inline void RReadStream::Close()
- {Release();}
- inline void RReadStream::ReadL(RWriteStream& aStream)
- {aStream.WriteL(*this);}
- inline void RReadStream::ReadL(RWriteStream& aStream,TInt aLength)
- {aStream.WriteL(*this,aLength);}
- inline void RReadStream::Pop()
- {CleanupStack::Pop();}
- inline void RReadStream::Attach(MStreamBuf* aSource)
- #line 66
- {iSrc=aSource;}
- inline void RReadStream::Detach()
- {iSrc=0 ;}
- inline RWriteStream::RWriteStream()
- : iSnk(0 ),iExterL(0 )
- {}
- inline RWriteStream::RWriteStream(const MExternalizer<TStreamRef>& anExter)
- : iSnk(0 ),iExterL(&anExter)
- {}
- inline RWriteStream::RWriteStream(MStreamBuf* aSink)
- : iSnk(aSink),iExterL(0 )
- {}
- inline MStreamBuf* RWriteStream::Sink()
- {return iSnk;}
- inline void RWriteStream::Pop()
- {CleanupStack::Pop();}
- inline void RWriteStream::Attach(MStreamBuf* aSink)
- #line 119
- {iSnk=aSink;}
- inline void RWriteStream::Detach()
- {iSnk=0 ;}
- inline TCardinality::TCardinality(TInt aCount)
- :iCount(aCount)
- {
- __DbgChkRange(aCount);
- }
- inline TCardinality::operator TInt() const
- {
- __DbgChkRange(iCount);
- return iCount;
- }
- template <class T>
- inline void TExternalizer<T>::operator()(const T& anObject,RWriteStream& aStream) const
- {aStream<<anObject;}
- template <class T>
- inline TExternalizeFunction TExternalizer<T>::Function()
- {return &ExternalizeAsL;}
- template <class T>
- void TExternalizer<T>::ExternalizeAsL(const TAny* aPtr,RWriteStream& aStream)
- {aStream<<*((const T*)aPtr);}
- inline TExternalizer<TAny>::TExternalizer(TExternalizeFunction aFunction)
- : iFunc(aFunction)
- {}
- inline void TExternalizer<TAny>::operator()(const TAny* aPtr,RWriteStream& aStream) const
- {(*iFunc)(aPtr,aStream);}
- inline TExternalizeFunction TExternalizer<TAny>::Function() const
- {return iFunc;}
- template <class T>
- inline void TInternalizer<T>::operator()(T& anObject,RReadStream& aStream) const
- {aStream>>anObject;}
- template <class T>
- inline TInternalizeFunction TInternalizer<T>::Function()
- {return &InternalizeAsL;}
- template <class T>
- void TInternalizer<T>::InternalizeAsL(TAny* aPtr,RReadStream& aStream)
- {aStream>> *((T*)aPtr);}
- inline TInternalizer<TAny>::TInternalizer(TInternalizeFunction aFunction)
- : iFunc(aFunction)
- {}
- inline void TInternalizer<TAny>::operator()(TAny* aPtr,RReadStream& aStream) const
- {(*iFunc)(aPtr,aStream);}
- inline TInternalizeFunction TInternalizer<TAny>::Function() const
- {return iFunc;}
- template <class T>
- inline void MExternalizer<T>::operator()(const T& anObject,RWriteStream& aStream) const
- {ExternalizeL(anObject,aStream);}
- template <class T>
- inline void MInternalizer<T>::operator()(T& anObject,RReadStream& aStream) const
- {InternalizeL(anObject,aStream);}
- inline TStreamRef::TStreamRef(const TAny* aPtr,TExternalizeFunction aFunction)
- : iPtr(aPtr),iFunc(aFunction)
- {}
- inline const TAny* TStreamRef::Ptr() const
- {return iPtr;}
- inline TExternalizeFunction TStreamRef::Function() const
- {return iFunc;}
- inline void TStreamRef::ExternalizeL(RWriteStream& aStream) const
- {aStream.WriteRefL(*this);}
- __declspec(dllexport) void ExternalizeL(TInt64 anInt64,RWriteStream& aStream);
- __declspec(dllexport) void InternalizeL(TInt64& anInt64,RReadStream& aStream);
- __declspec(dllexport) void ExternalizeL(const TDesC8& aDes8,RWriteStream& aStream);
- __declspec(dllexport) void ExternalizeL(const TDesC16& aDes16,RWriteStream& aStream);
- __declspec(dllexport) void InternalizeL(TDes8& aDes8,RReadStream& aStream);
- __declspec(dllexport) void InternalizeL(TDes16& aDes16,RReadStream& aStream);
- __declspec(dllexport) void ExternalizeL(const TCheckedUid& aUid,RWriteStream& aStream);
- __declspec(dllexport) void InternalizeL(TCheckedUid& aUid,RReadStream& aStream);
- __declspec(dllexport) void ExternalizeL(TPoint aPoint,RWriteStream& aStream);
- __declspec(dllexport) void ExternalizeL(TSize aSize,RWriteStream& aStream);
- __declspec(dllexport) void ExternalizeL(const TRect& aRect,RWriteStream& aStream);
- __declspec(dllexport) void InternalizeL(TPoint& aPoint,RReadStream& aStream);
- __declspec(dllexport) void InternalizeL(TSize& aSize,RReadStream& aStream);
- __declspec(dllexport) void InternalizeL(TRect& aRect,RReadStream& aStream);
- __declspec(dllexport) void ExternalizeL(const CBufBase& aBuf,RWriteStream& aStream);
- __declspec(dllexport) void InternalizeL(CBufBase& aBuf,RReadStream& aStream);
- __declspec(dllexport) void ArrayExternalizeCountL(TInt aCount,RWriteStream& aStream);
- __declspec(dllexport) void DoExternalizeAllL(const CArrayFixBase& anArray,RWriteStream& aStream,TExternalizer<TAny> anExter);
- __declspec(dllexport) TInt ArrayInternalizeCountL(RReadStream& aStream);
- __declspec(dllexport) void DoInternalizeAllL(CArrayFixBase& anArray,RReadStream& aStream,TInternalizer<TAny> anInter);
- template <class T>
- inline void ExternalizeCountL(const CArrayFix<T>& anArray,RWriteStream& aStream)
- {ArrayExternalizeCountL(anArray.Count(),aStream);}
- template <class T>
- inline void ExternalizeAllL(const CArrayFix<T>& anArray,RWriteStream& aStream)
- {DoExternalizeAllL(anArray,aStream,TExternalizer<T>::Function());}
- template <class T>
- void InternalizeCountL(CArrayFix<T>& anArray,RReadStream& aStream)
- {
- TInt n=ArrayInternalizeCountL(aStream);
- anArray.ResizeL(n);
- }
- template <class T>
- inline void InternalizeAllL(CArrayFix<T>& anArray,RReadStream& aStream)
- {DoInternalizeAllL(anArray,aStream,TInternalizer<T>::Function());}
- template <class T>
- void ExternalizeL(const CArrayFix<T>& anArray,RWriteStream& aStream)
- {
- ExternalizeCountL(anArray,aStream);
- ExternalizeAllL(anArray,aStream);
- }
- template <class T>
- void InternalizeL(CArrayFix<T>& anArray,RReadStream& aStream)
- {
- InternalizeCountL(anArray,aStream);
- InternalizeAllL(anArray,aStream);
- }
- template <class T>
- inline void ExternalizeL(const T* aPtr,RWriteStream& aStream)
- {aStream<<TStreamRef(aPtr,TExternalizer<T>::Function());}
- template <class T>
- inline void DoExternalizeL(const T& anObject,RWriteStream& aStream,Externalize::Member)
- {anObject.ExternalizeL(aStream);}
- template <class T>
- inline void DoInternalizeL(T& anObject,RReadStream& aStream,Internalize::Member)
- {anObject.InternalizeL(aStream);}
- template <class T>
- inline void DoExternalizeL(const T& anObject,RWriteStream& aStream,Externalize::Function)
- {ExternalizeL(anObject,aStream);}
- template <class T>
- inline void DoInternalizeL(T& anObject,RReadStream& aStream,Internalize::Function)
- {InternalizeL(anObject,aStream);}
- inline Externalize::Member Externalization(const TAny*)
- {return Externalize::Member();}
- inline Internalize::Member Internalization(TAny*)
- {return Internalize::Member();}
- inline Externalize::Function Externalization(const TDesC8*)
- {return Externalize::Function();}
- inline Externalize::Function Externalization(const TDesC16*)
- {return Externalize::Function();}
- inline Internalize::Function Internalization(TDes8*)
- {return Internalize::Function();}
- inline Internalize::Function Internalization(TDes16*)
- {return Internalize::Function();}
- inline Externalize::Function Externalization(const CBufBase*)
- {return Externalize::Function();}
- inline Externalize::Function Externalization(const CArrayFixBase*)
- {return Externalize::Function();}
- inline Internalize::Function Internalization(CBufBase*)
- {return Internalize::Function();}
- inline Internalize::Function Internalization(CArrayFixBase*)
- {return Internalize::Function();}
- template <class T>
- inline Externalize::Function Externalization(T*const*)
- {return Externalize::Function();}
- template <class T>
- inline RWriteStream& operator<<(RWriteStream& aStream,const T& anObject)
- {DoExternalizeL(anObject,aStream,Externalization(&anObject));return aStream;}
- template <class T>
- inline RReadStream& operator>>(RReadStream& aStream,T& anObject)
- {DoInternalizeL(anObject,aStream,Internalization(&anObject));return aStream;}
- inline RWriteStream& operator<<(RWriteStream& aStream,const TInt8& anInt8)
- {aStream.WriteInt8L(anInt8);return aStream;}
- inline RWriteStream& operator<<(RWriteStream& aStream,const TInt16& anInt16)
- {aStream.WriteInt16L(anInt16);return aStream;}
- inline RWriteStream& operator<<(RWriteStream& aStream,const TInt32& anInt32)
- {aStream.WriteInt32L(anInt32);return aStream;}
- inline RWriteStream& operator<<(RWriteStream& aStream,const TUint8& aUint8)
- {aStream.WriteUint8L(aUint8);return aStream;}
- inline RWriteStream& operator<<(RWriteStream& aStream,const TUint16& aUint16)
- {aStream.WriteUint16L(aUint16);return aStream;}
- inline RWriteStream& operator<<(RWriteStream& aStream,const TUint32& aUint32)
- {aStream.WriteUint32L(aUint32);return aStream;}
- inline RWriteStream& operator<<(RWriteStream& aStream,const TReal32& aReal32)
- {aStream.WriteReal32L(aReal32);return aStream;}
- inline RWriteStream& operator<<(RWriteStream& aStream,const TReal64& aReal64)
- {aStream.WriteReal64L(aReal64);return aStream;}
- inline RReadStream& operator>>(RReadStream& aStream,TInt8& anInt8)
- {anInt8=aStream.ReadInt8L();return aStream;}
- inline RReadStream& operator>>(RReadStream& aStream,TInt16& anInt16)
- {anInt16=aStream.ReadInt16L();return aStream;}
- inline RReadStream& operator>>(RReadStream& aStream,TInt32& anInt32)
- {anInt32=aStream.ReadInt32L();return aStream;}
- inline RReadStream& operator>>(RReadStream& aStream,TUint8& aUint8)
- {aUint8=aStream.ReadUint8L();return aStream;}
- inline RReadStream& operator>>(RReadStream& aStream,TUint16& aUint16)
- {aUint16=aStream.ReadUint16L();return aStream;}
- inline RReadStream& operator>>(RReadStream& aStream,TUint32& aUint32)
- {aUint32=aStream.ReadUint32L();return aStream;}
- inline RReadStream& operator>>(RReadStream& aStream,TReal32& aReal32)
- {aReal32=aStream.ReadReal32L();return aStream;}
- inline RReadStream& operator>>(RReadStream& aStream,TReal64& aReal64)
- {aReal64=aStream.ReadReal64L();return aStream;}
- inline RWriteStream& operator<<(RWriteStream& aStream,const TInt64& anInt64)
- {ExternalizeL(anInt64,aStream);return aStream;}
- inline RReadStream& operator>>(RReadStream& aStream,TInt64& anInt64)
- {InternalizeL(anInt64,aStream);return aStream;}
- inline RWriteStream& operator<<(RWriteStream& aStream,const TUid& aUid)
- {return aStream<<aUid.iUid;}
- inline RWriteStream& operator<<(RWriteStream& aStream,const TCheckedUid& aUid)
- {ExternalizeL(aUid,aStream);return aStream;}
- inline RReadStream& operator>>(RReadStream& aStream,TUid& aUid)
- {return aStream>>aUid.iUid;}
- inline RReadStream& operator>>(RReadStream& aStream,TCheckedUid& aUid)
- {InternalizeL(aUid,aStream);return aStream;}
- inline RWriteStream& operator<<(RWriteStream& aStream,const TPoint& aPoint)
- {ExternalizeL(aPoint,aStream);return aStream;}
- inline RWriteStream& operator<<(RWriteStream& aStream,const TSize& aSize)
- {ExternalizeL(aSize,aStream);return aStream;}
- inline RWriteStream& operator<<(RWriteStream& aStream,const TRect& aRect)
- {ExternalizeL(aRect,aStream);return aStream;}
- inline RReadStream& operator>>(RReadStream& aStream,TPoint& aPoint)
- {InternalizeL(aPoint,aStream);return aStream;}
- inline RReadStream& operator>>(RReadStream& aStream,TSize& aSize)
- {InternalizeL(aSize,aStream);return aStream;}
- inline RReadStream& operator>>(RReadStream& aStream,TRect& aRect)
- {InternalizeL(aRect,aStream);return aStream;}
- inline RWriteStream& operator<<(RWriteStream& aStream,const TStreamRef& aRef)
- {aRef.ExternalizeL(aStream);return aStream;}
- #line 351 "C:\Symbian\9.1\S60_3rd\epoc32\include\s32strm.h" /* stack depth 8 */
- #line 8 "C:\Symbian\9.1\S60_3rd\epoc32\include\s32std.h" /* stack depth 7 */
- const TUint32 KNullStreamIdValue=0;
- const TUint32 KMaxStreamIdValue=0xfffffff;
- const TUint32 KMaskStreamIdValue=0xfffffff;
- const TInt KShiftStreamIdValue=28;
- #line 28
- class TStreamId
- {
- public:
- TStreamId() {}
- inline TStreamId(TUint32 aValue);
- inline TBool operator==(TStreamId anId) const;
- inline TBool operator!=(TStreamId anId) const;
- inline void ExternalizeL(RWriteStream& aStream) const;
- __declspec(dllexport) void InternalizeL(RReadStream& aStream);
- inline TUint32 Value() const;
- private:
- TUint32 iVal;
- private:
- __declspec(dllexport) static void __DbgChkRange(TUint32 aValue);
- };
- class CStreamStore;
- class RStoreReadStream : public RReadStream
- {
- public:
- __declspec(dllexport) void OpenL(const CStreamStore& aStore,TStreamId anId);
- __declspec(dllexport) void OpenLC(const CStreamStore& aStore,TStreamId anId);
- };
- #line 84
- class RStoreWriteStream : public RWriteStream
- {
- public:
- RStoreWriteStream() {}
- inline RStoreWriteStream(const MExternalizer<TStreamRef>& anExter);
- __declspec(dllexport) TStreamId CreateL(CStreamStore& aStore);
- __declspec(dllexport) TStreamId CreateLC(CStreamStore& aStore);
- __declspec(dllexport) void OpenL(CStreamStore& aStore,TStreamId anId);
- __declspec(dllexport) void OpenLC(CStreamStore& aStore,TStreamId anId);
- __declspec(dllexport) void ReplaceL(CStreamStore& aStore,TStreamId anId);
- __declspec(dllexport) void ReplaceLC(CStreamStore& aStore,TStreamId anId);
- __declspec(dllexport) void AppendL(CStreamStore& aStore,TStreamId anId);
- __declspec(dllexport) void AppendLC(CStreamStore& aStore,TStreamId anId);
- };
- #line 115
- class TSwizzleCBase
- {
- public:
- inline TBool operator==(const TSwizzleCBase& aSwizzle) const;
- inline TBool operator==(const TAny* aPtr) const;
- inline TBool operator!=(const TSwizzleCBase& aSwizzle) const;
- inline TBool operator!=(const TAny* aPtr) const;
- inline TBool IsPtr() const;
- inline TBool IsId() const;
- __declspec(dllexport) TStreamId AsId() const;
- __declspec(dllexport) void InternalizeL(RReadStream& aStream);
- protected:
- TSwizzleCBase() {}
- inline TSwizzleCBase(const TAny* aPtr);
- __declspec(dllexport) TSwizzleCBase(TStreamId anId);
- inline TSwizzleCBase(TStreamRef aRef);
- inline const TAny* Ptr() const;
- __declspec(dllexport) void DoExternalizeL(RWriteStream& aStream,TExternalizer<TAny> anExter) const;
- private:
- __declspec(dllexport) static TBool IsPtrRep(const TAny* aPtr);
- __declspec(dllexport) static TBool IsIdRep(const TAny* aPtr);
- private:
- const TAny* iPtr;
- private:
- __declspec(dllexport) static void __DbgChkPtr(const TAny* aPtr);
- __declspec(dllexport) static void __DbgChkRef(TStreamRef aRef);
- };
- inline TBool operator==(const TAny* aPtr,const TSwizzleCBase& aSwizzle);
- inline TBool operator!=(const TAny* aPtr,const TSwizzleCBase& aSwizzle);
- #line 158
- class TSwizzleBase : public TSwizzleCBase
- {
- protected:
- TSwizzleBase() {}
- inline TSwizzleBase(TAny* aPtr);
- inline TSwizzleBase(TStreamId anId);
- inline TAny* Ptr() const;
- };
- #line 184
- template <class T>
- class TSwizzle : public TSwizzleBase
- {
- public:
- TSwizzle() {}
- inline TSwizzle(T* aPtr);
- inline TSwizzle(TStreamId anId);
- inline TSwizzle<T>& operator=(T* aPtr);
- inline T* AsPtr() const;
- inline operator T*() const;
- inline T& operator*() const;
- inline T* operator->() const;
- inline void ExternalizeL(RWriteStream& aStream) const;
- };
- #line 208
- template<> class TSwizzle<TAny> : public TSwizzleBase
- {
- public:
- TSwizzle() {}
- inline TSwizzle(TAny* aPtr);
- inline TSwizzle(TStreamId anId);
- inline TSwizzle(const TSwizzleBase& aSwizzle);
- inline TSwizzle<TAny>& operator=(TAny* aPtr);
- inline TSwizzle<TAny>& operator=(const TSwizzleBase& aSwizzle);
- inline TAny* AsPtr() const;
- inline operator TAny*() const;
- };
- #line 242
- template <class T>
- class TSwizzleC : public TSwizzleCBase
- {
- public:
- TSwizzleC() {}
- inline TSwizzleC(const T* aPtr);
- inline TSwizzleC(TStreamId anId);
- inline TSwizzleC(TSwizzle<T> aSwizzle);
- inline TSwizzleC<T>& operator=(const T* aPtr);
- inline const T* AsPtr() const;
- inline operator const T*() const;
- inline const T& operator*() const;
- inline const T* operator->() const;
- inline void ExternalizeL(RWriteStream& aStream) const;
- };
- template<> class TSwizzleC<TAny> : public TSwizzleCBase
- {
- public:
- TSwizzleC() {}
- inline TSwizzleC(const TAny* aPtr);
- inline TSwizzleC(TStreamId anId);
- inline TSwizzleC(const TSwizzleCBase& aSwizzle);
- inline TSwizzleC(TStreamRef aRef);
- inline TSwizzleC<TAny>& operator=(const TAny* aPtr);
- inline TSwizzleC<TAny>& operator=(const TSwizzleCBase& aSwizzle);
- inline const TAny* AsPtr() const;
- inline operator const TAny*() const;
- };
- #line 296
- class CStoreMap : public CBase,public MExternalizer<TStreamRef>
- {
- public:
- struct TEntry {TSwizzleC<TAny> swizzle;TStreamId id;};
- typedef const TEntry* TIterator;
- public:
- __declspec(dllexport) static CStoreMap* NewL(CStreamStore& aStore);
- __declspec(dllexport) static CStoreMap* NewLC(CStreamStore& aStore);
- __declspec(dllexport) CStoreMap(CStreamStore& aStore);
- __declspec(dllexport) ~CStoreMap();
- __declspec(dllexport) void BindL(TSwizzleC<TAny> aSwizzle,TStreamId anId);
- __declspec(dllexport) void Unbind(TSwizzleC<TAny> aSwizzle);
- __declspec(dllexport) void Forget(TStreamId anId);
- __declspec(dllexport) void Reset();
- __declspec(dllexport) void ResetAndDestroy();
- __declspec(dllexport) TStreamId At(TSwizzleC<TAny> aSwizzle) const;
- __declspec(dllexport) TSwizzleC<TAny> Label(TStreamId anId) const;
- __declspec(dllexport) TIterator Begin() const;
- __declspec(dllexport) TIterator End() const;
- private:
- void ExternalizeL(const TStreamRef& aRef,RWriteStream& aStream) const;
- private:
- CArrayFixFlat<TEntry> iArray;
- TStreamId iFree;
- CStreamStore* iStore;
- };
- #line 343
- class CStreamDictionary : public CBase
- {
- public:
- __declspec(dllexport) static CStreamDictionary* NewL();
- __declspec(dllexport) static CStreamDictionary* NewLC();
- __declspec(dllexport) CStreamDictionary();
- __declspec(dllexport) ~CStreamDictionary();
- __declspec(dllexport) void AssignL(TUid aUid,TStreamId anId);
- __declspec(dllexport) void Remove(TUid aUid);
- __declspec(dllexport) TStreamId At(TUid aUid) const;
- __declspec(dllexport) TBool IsNull() const;
- __declspec(dllexport) void ExternalizeL(RWriteStream& aStream) const;
- __declspec(dllexport) void InternalizeL(RReadStream& aStream);
- private:
- class TEntry
- {
- public:
- TEntry() {}
- inline TEntry(TUid aUid,TStreamId anId);
- void ExternalizeL(RWriteStream& aStream) const;
- void InternalizeL(RReadStream& aStream);
- public:
- TUid iUid;
- TStreamId iId;
- };
- private:
- CArrayFixSeg<TEntry> iArray;
- };
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\s32std.inl" /* stack depth 8 */
- inline TStreamId::TStreamId(TUint32 aValue)
- : iVal(aValue)
- #line 22
- {
- __DbgChkRange(aValue);
- }
- inline TBool TStreamId::operator==(TStreamId anId) const
- {return iVal==anId.iVal;}
- inline TBool TStreamId::operator!=(TStreamId anId) const
- {return iVal!=anId.iVal;}
- inline void TStreamId::ExternalizeL(RWriteStream& aStream) const
- {
- __DbgChkRange(iVal);
- aStream<<iVal;
- }
- inline TUint32 TStreamId::Value() const
- {
- __DbgChkRange(iVal);
- return iVal;
- }
- inline RStoreWriteStream::RStoreWriteStream(const MExternalizer<TStreamRef>& anExter)
- : RWriteStream(anExter)
- {}
- inline TSwizzleCBase::TSwizzleCBase(TStreamRef aRef)
- : iPtr(aRef.Ptr())
- {
- __DbgChkRef(aRef);
- }
- inline TBool TSwizzleCBase::operator==(const TSwizzleCBase& aSwizzle) const
- #line 97
- {return iPtr==aSwizzle.iPtr;}
- inline TBool TSwizzleCBase::operator==(const TAny* aPtr) const
- #line 110
- {return iPtr==aPtr;}
- inline TBool TSwizzleCBase::operator!=(const TSwizzleCBase& aSwizzle) const
- #line 126
- {return iPtr!=aSwizzle.iPtr;}
- inline TBool TSwizzleCBase::operator!=(const TAny* aPtr) const
- #line 139
- {return iPtr!=aPtr;}
- inline TBool TSwizzleCBase::IsPtr() const
- {return IsPtrRep(iPtr);}
- inline TBool TSwizzleCBase::IsId() const
- {return IsIdRep(iPtr);}
- inline TSwizzleCBase::TSwizzleCBase(const TAny* aPtr)
- : iPtr(aPtr)
- {
- __DbgChkPtr(aPtr);
- }
- inline const TAny* TSwizzleCBase::Ptr() const
- {
- __DbgChkPtr(iPtr);
- return iPtr;
- }
- inline TBool operator==(const TAny* aPtr,const TSwizzleCBase& aSwizzle)
- {return aSwizzle==aPtr;}
- inline TBool operator!=(const TAny* aPtr,const TSwizzleCBase& aSwizzle)
- {return aSwizzle!=aPtr;}
- inline TSwizzleBase::TSwizzleBase(TAny* aPtr)
- : TSwizzleCBase(aPtr)
- {}
- inline TSwizzleBase::TSwizzleBase(TStreamId anId)
- : TSwizzleCBase(anId)
- {}
- inline TAny* TSwizzleBase::Ptr() const
- {return (TAny*)TSwizzleCBase::Ptr();}
- template <class T>
- inline TSwizzle<T>::TSwizzle(T* aPtr)
- : TSwizzleBase(aPtr)
- {}
- template <class T>
- inline TSwizzle<T>::TSwizzle(TStreamId anId)
- : TSwizzleBase(anId)
- {}
- template <class T>
- inline TSwizzle<T>& TSwizzle<T>::operator=(T* aPtr)
- {return *this=TSwizzle<T>(aPtr);}
- template <class T>
- inline T* TSwizzle<T>::AsPtr() const
- {return (T*)Ptr();}
- template <class T>
- inline TSwizzle<T>::operator T*() const
- {return AsPtr();}
- template <class T>
- inline T& TSwizzle<T>::operator*() const
- {return *AsPtr();}
- template <class T>
- inline T* TSwizzle<T>::operator->() const
- {return AsPtr();}
- template <class T>
- inline void TSwizzle<T>::ExternalizeL(RWriteStream& aStream) const
- #line 252
- {TSwizzleBase::DoExternalizeL(aStream,TExternalizer<T>::Function());}
- inline TSwizzle<TAny>::TSwizzle(TAny* aPtr)
- : TSwizzleBase(aPtr)
- {}
- inline TSwizzle<TAny>::TSwizzle(TStreamId anId)
- : TSwizzleBase(anId)
- {}
- inline TSwizzle<TAny>::TSwizzle(const TSwizzleBase& aSwizzle)
- : TSwizzleBase(aSwizzle)
- {}
- inline TSwizzle<TAny>& TSwizzle<TAny>::operator=(TAny* aPtr)
- {return *this=TSwizzle<TAny>(aPtr);}
- inline TSwizzle<TAny>& TSwizzle<TAny>::operator=(const TSwizzleBase& aSwizzle)
- {return *this=TSwizzle<TAny>(aSwizzle);}
- inline TAny* TSwizzle<TAny>::AsPtr() const
- {return Ptr();}
- inline TSwizzle<TAny>::operator TAny*() const
- {return AsPtr();}
- template <class T>
- inline TSwizzleC<T>::TSwizzleC(const T* aPtr)
- : TSwizzleCBase(aPtr)
- {}
- template <class T>
- inline TSwizzleC<T>::TSwizzleC(TStreamId anId)
- : TSwizzleCBase(anId)
- {}
- template <class T>
- inline TSwizzleC<T>::TSwizzleC(TSwizzle<T> aSwizzle)
- : TSwizzleCBase(aSwizzle)
- #line 328
- {}
- template <class T>
- inline TSwizzleC<T>& TSwizzleC<T>::operator=(const T* aPtr)
- {return *this=TSwizzleC<T>(aPtr);}
- template <class T>
- inline const T* TSwizzleC<T>::AsPtr() const
- #line 350
- {return (const T*)Ptr();}
- template <class T>
- inline TSwizzleC<T>::operator const T*() const
- {return AsPtr();}
- template <class T>
- inline const T& TSwizzleC<T>::operator*() const
- {return *AsPtr();}
- template <class T>
- inline const T* TSwizzleC<T>::operator->() const
- #line 373
- {return AsPtr();}
- template <class T>
- inline void TSwizzleC<T>::ExternalizeL(RWriteStream& aStream) const
- #line 393
- {TSwizzleCBase::DoExternalizeL(aStream,TExternalizer<T>::Function());}
- inline TSwizzleC<TAny>::TSwizzleC(const TAny* aPtr)
- : TSwizzleCBase(aPtr)
- {}
- inline TSwizzleC<TAny>::TSwizzleC(TStreamId anId)
- : TSwizzleCBase(anId)
- {}
- inline TSwizzleC<TAny>::TSwizzleC(const TSwizzleCBase& aSwizzle)
- : TSwizzleCBase(aSwizzle)
- {}
- inline TSwizzleC<TAny>::TSwizzleC(TStreamRef aRef)
- : TSwizzleCBase(aRef)
- {}
- inline TSwizzleC<TAny>& TSwizzleC<TAny>::operator=(const TAny* aPtr)
- {return *this=TSwizzleC<TAny>(aPtr);}
- inline TSwizzleC<TAny>& TSwizzleC<TAny>::operator=(const TSwizzleCBase& aSwizzle)
- {return *this=TSwizzleC<TAny>(aSwizzle);}
- inline const TAny* TSwizzleC<TAny>::AsPtr() const
- {return Ptr();}
- inline TSwizzleC<TAny>::operator const TAny*() const
- {return AsPtr();}
- #line 375 "C:\Symbian\9.1\S60_3rd\epoc32\include\s32std.h" /* stack depth 7 */
- #line 21 "C:\Symbian\9.1\S60_3rd\epoc32\include\gdi.h" /* stack depth 6 */
- const TInt KDefaultScreenNo = 0;
- class TOpenFontCharMetrics;
- const TInt KTwipsPerInch=1440;
- const TInt KTwipsPerPoint=20;
- const TInt KPointsPerInch=72;
- const TInt KTwipsPerCm=567;
- #line 131
- enum TGdiPanic
- {
- EGdiPanic_Unknown = 0,
- EGdiPanic_InvalidInputParam = 1,
- EGdiPanic_OutOfText = 2,
- EGdiPanic_Invariant = 3
- };
- #line 178
- class TRgb
- {
- public:
- inline TRgb();
- inline TRgb(TUint32 aValue);
- inline TRgb(TUint32 aInternalValue, TInt aAlpha);
- inline TRgb(TInt aRed,TInt aGreen,TInt aBlue);
- inline TRgb(TInt aRed, TInt aGreen, TInt aBlue, TInt aAlpha);
- inline TInt Red() const;
- inline TInt Green() const;
- inline TInt Blue() const;
- inline TInt Alpha() const;
- __declspec(dllexport) void SetRed(TInt aRed);
- __declspec(dllexport) void SetGreen(TInt aGreen);
- __declspec(dllexport) void SetBlue(TInt aBlue);
- __declspec(dllexport) void SetAlpha(TInt aAlpha);
- __declspec(dllexport) static TRgb Gray2(TInt aGray2);
- __declspec(dllexport) static TRgb Gray4(TInt aGray4);
- __declspec(dllexport) static TRgb Gray16(TInt aGray16);
- __declspec(dllexport) static TRgb Gray256(TInt aGray256);
- __declspec(dllexport) static TRgb Color16(TInt aColor16);
- __declspec(dllexport) static TRgb Color256(TInt aColor256);
- __declspec(dllexport) static TRgb Color4K(TInt aColor4K);
- __declspec(dllexport) static TRgb Color64K(TInt aColor64K);
- __declspec(dllexport) static TRgb Color16M(TInt aColor16M);
- __declspec(dllexport) TInt Gray2() const;
- __declspec(dllexport) TInt Gray4() const;
- __declspec(dllexport) TInt Gray16() const;
- __declspec(dllexport) TInt Gray256() const;
- __declspec(dllexport) TInt Color16() const;
- __declspec(dllexport) TInt Color256() const;
- __declspec(dllexport) TInt Color4K() const;
- __declspec(dllexport) TInt Color64K() const;
- __declspec(dllexport) TInt Color16M() const;
- inline TBool operator==(const TRgb& aColor) const;
- inline TBool operator!=(const TRgb& aColor) const;
- inline TRgb operator~() const;
- inline TRgb operator&(const TRgb& aColor);
- inline TRgb operator|(const TRgb& aColor);
- inline TRgb operator^(const TRgb& aColor);
- inline TRgb& operator&=(const TRgb& aColor);
- inline TRgb& operator|=(const TRgb& aColor);
- inline TRgb& operator^=(const TRgb& aColor);
- inline TUint32 Value() const;
- inline TUint32 Internal() const;
- inline void SetInternal(TUint32 aInternal);
- __declspec(dllexport) TInt Difference(const TRgb& aColor) const;
- __declspec(dllexport) void InternalizeL(RReadStream& aStream);
- __declspec(dllexport) void ExternalizeL(RWriteStream& aStream) const;
- __declspec(dllexport) static TRgb Color16MU(TInt a0RGB);
- __declspec(dllexport) TInt Color16MU() const;
- __declspec(dllexport) static TRgb Color16MA(TUint aARGB);
- __declspec(dllexport) TUint Color16MA() const;
- inline TInt _Gray2() const;
- inline TInt _Gray4() const;
- inline TInt _Gray16() const;
- inline TInt _Gray256() const;
- inline TInt _Color4K() const;
- inline TInt _Color64K() const;
- inline TInt _Color16M() const;
- inline TInt _Color16MU() const;
- inline TUint _Color16MA() const;
- inline static TRgb _Gray2(TInt aGray2);
- inline static TRgb _Gray4(TInt aGray4);
- inline static TRgb _Gray16(TInt aGray16);
- inline static TRgb _Gray256(TInt aGray256);
- inline static TRgb _Color4K(TInt aColor4K);
- inline static TRgb _Color64K(TInt aColor64K);
- inline static TRgb _Color16M(TInt aColor16M);
- inline static TRgb _Color16MU(TInt a0RGB);
- inline static TRgb _Color16MA(TUint aARGB);
- private:
- TUint32 iValue;
- };
- #line 279
- enum TDisplayMode
- {
- ENone,
- EGray2,
- EGray4,
- EGray16,
- EGray256,
- EColor16,
- EColor256,
- EColor64K,
- EColor16M,
- ERgb,
- EColor4K,
- EColor16MU,
- EColor16MA,
- EColorLast
- };
- class TDisplayModeUtils
- {
- public:
- __declspec(dllexport) static TBool IsDisplayModeColor(TDisplayMode aDispMode);
- __declspec(dllexport) static TInt NumDisplayModeColors(TDisplayMode aDispMode);
- __declspec(dllexport) static TInt NumDisplayModeBitsPerPixel(TDisplayMode aDispMode);
- };
- #line 351
- class CPalette : public CBase
- {
- public:
- __declspec(dllexport) static CPalette* NewL(TInt aNumberOfEntries);
- __declspec(dllexport) static CPalette* NewDefaultL(TDisplayMode aDispMode);
- __declspec(dllexport) ~CPalette();
- __declspec(dllexport) void Clear();
- inline TInt Entries() const;
- __declspec(dllexport) TRgb GetEntry(TInt aPaletteIndex) const;
- __declspec(dllexport) TRgb NearestEntry(const TRgb& aColor) const;
- __declspec(dllexport) TInt NearestIndex(const TRgb& aColor) const;
- __declspec(dllexport) void SetEntry(TInt aPaletteIndex,const TRgb& aPaletteEntry);
- __declspec(dllexport) void GetDataPtr(TInt aFirstColor,TInt aNumColors,TPtr8& aPtr);
- protected:
- __declspec(dllexport) CPalette();
- void ConstructL(TInt aNumberOfEntries);
- protected:
- TRgb* iArray;
- TInt iNumEntries;
- };
- class TColor256Util
- {
- public:
- __declspec(dllexport) void Construct(const CPalette& aPalette);
- __declspec(dllexport) TInt Color256(TRgb aRgb) const;
- __declspec(dllexport) void Color256(TUint8* aDestination,const TRgb* aSource,TInt aNumPixels) const;
- inline TRgb Color256(TInt aColor256) const;
- __declspec(dllexport) static const TColor256Util* Default();
- public:
- TUint32 iColorTable[256];
- #line 404
- TUint8 iInverseColorTable[0x1000];
- };
- #line 419
- class TLinearDDA
- {
- public:
- enum TLineMode
- {
- ECenter,
- ELeft
- };
- public:
- __declspec(dllexport) TLinearDDA();
- __declspec(dllexport) TLinearDDA(const TLinearDDA& aLine);
- __declspec(dllexport) void Construct(const TPoint& aStart,const TPoint& aFinish,TLineMode aMode=ECenter);
- __declspec(dllexport) TBool SingleStep(TPoint& aPosition);
- __declspec(dllexport) TBool SingleScanline(TPoint& aStartPosition,TPoint& aEndPosition);
- __declspec(dllexport) TBool NextStep(TPoint& aPosition);
- __declspec(dllexport) void JumpToRect(const TRect& aRect);
- __declspec(dllexport) void JumpToXCoord(const TInt aXCoord,TInt& aYCoord);
- __declspec(dllexport) void JumpToYCoord(TInt& aXCoord,const TInt aYCoord);
- private:
- void UpdatePosition();
- private:
- enum TLineStatus
- {
- EInitialised,
- ECurrent,
- EComplete
- };
- private:
- TInt iCount;
- TSize iDifference;
- TPoint iFinish;
- TInt iGradient;
- TPoint iInc;
- TPoint iPos;
- TPoint iStart;
- TRect iBoundingRect;
- TBool iBoundingRectSet;
- TBool iInside;
- TLineStatus iStatus;
- };
- #line 471
- enum TFontPosture
- {
- EPostureUpright,
- EPostureItalic
- };
- enum TFontStrokeWeight
- {
- EStrokeWeightNormal,
- EStrokeWeightBold
- };
- enum TFontPrintPosition
- {
- EPrintPosNormal,
- EPrintPosSuperscript,
- EPrintPosSubscript
- };
- enum TFontUnderline
- {
- EUnderlineOff,
- EUnderlineOn
- };
- enum TFontStrikethrough
- {
- EStrikethroughOff,
- EStrikethroughOn
- };
- const TInt KMaxTypefaceNameLength=0x18;
- #line 556
- class TTypeface
- {
- public:
- enum
- {
- EProportional=1,
- ESerif=2,
- ESymbol=4
- };
- public:
- __declspec(dllexport) TTypeface();
- __declspec(dllexport) TBool operator==(const TTypeface& aTypeface) const;
- __declspec(dllexport) void InternalizeL(RReadStream& aStream);
- __declspec(dllexport) void ExternalizeL(RWriteStream& aStream) const;
- __declspec(dllexport) void SetAttributes(TInt aMask);
- __declspec(dllexport) void SetIsProportional(TBool aIsProportional);
- __declspec(dllexport) void SetIsSerif(TBool aIsSerif);
- __declspec(dllexport) void SetIsSymbol(TBool aIsSymbol);
- __declspec(dllexport) TInt Attributes() const;
- __declspec(dllexport) TBool IsProportional() const;
- __declspec(dllexport) TBool IsSerif() const;
- __declspec(dllexport) TBool IsSymbol() const;
- public:
- TBufC<KMaxTypefaceNameLength> iName;
- private:
- TUint32 iFlags;
- };
- #line 600
- enum TGlyphBitmapType
- {
- EDefaultGlyphBitmap = 0,
- EMonochromeGlyphBitmap,
- EAntiAliasedGlyphBitmap
- };
- #line 618
- class FontEffect
- {
- public:
- enum TEffect
- {
- ENone = 0x0,
- EAlgorithmicBold= 0x10,
- EDropShadow = 0x20,
- EOutline = 0x40,
- EEmbossed = 0x80,
- EEngraved = 0x100,
- ESoftEdge = 0x200,
- EUserDefined1 = 0x400,
- EUserDefined2 = 0x800,
- EUserDefined3 = 0x1000,
- EUserDefined4 = 0x2000,
- EUserDefined5 = 0x4000,
- EUserDefined6 = 0x8000,
- };
- public:
- __declspec(dllexport) static TBool IsEffectOn(TEffect aEffect, TUint32 aFontEffect);
- __declspec(dllexport) static void SetEffect(TEffect aEffect, TBool aOn, TUint32& aFontEffect);
- };
- #line 661
- class TFontStyle
- {
- public:
- __declspec(dllexport) TFontStyle();
- __declspec(dllexport) TFontStyle(TFontPosture aPost,TFontStrokeWeight aStrWgt,TFontPrintPosition aPrintPos);
- __declspec(dllexport) void InternalizeL(RReadStream& aStream);
- __declspec(dllexport) void ExternalizeL(RWriteStream& aStream) const;
- __declspec(dllexport) TFontPosture Posture() const;
- __declspec(dllexport) TFontStrokeWeight StrokeWeight() const;
- __declspec(dllexport) TFontPrintPosition PrintPosition() const;
- __declspec(dllexport) void SetPosture(TFontPosture aPosture);
- __declspec(dllexport) void SetStrokeWeight(TFontStrokeWeight aStrokeWeight);
- __declspec(dllexport) void SetPrintPosition(TFontPrintPosition aPrintPosition);
- inline TGlyphBitmapType BitmapType() const;
- inline void SetBitmapType(TGlyphBitmapType aBitmapType);
- inline TBool operator==(const TFontStyle& aFontStyle) const;
- __declspec(dllexport) TUint32 Effects() const;
- __declspec(dllexport) TBool IsEffectOn(FontEffect::TEffect aEffect) const;
- __declspec(dllexport) void SetEffects(TUint32 aEffects);
- __declspec(dllexport) void SetEffects(FontEffect::TEffect aEffect, TBool aOn);
- private:
- enum
- {
- EItalic=0x1,
- EBold=0x2,
- ESuper=0x4,
- ESub=0x8
- };
- private:
- TUint32 iFlags;
- TAny* iReserved1;
- TAny* iReserved2;
- };
- #line 703
- class TFontSpec
- {
- public:
- __declspec(dllexport) TFontSpec();
- __declspec(dllexport) TFontSpec(const TDesC& aTypefaceName,TInt aHeight);
- __declspec(dllexport) TBool operator==(const TFontSpec& aFontSpec) const;
- __declspec(dllexport) void InternalizeL(RReadStream& aStream);
- __declspec(dllexport) void ExternalizeL(RWriteStream& aStream) const;
- public:
- TTypeface iTypeface;
- TInt iHeight;
- TFontStyle iFontStyle;
- };
- #line 731
- class TTypefaceSupport
- {
- public:
- TTypeface iTypeface;
- TInt iNumHeights;
- TInt iMinHeightInTwips;
- TInt iMaxHeightInTwips;
- TBool iIsScalable;
- };
- const TInt KSuperSubScalingPercentage=67;
- const TInt KSuperscriptOffsetPercentage=-28;
- const TInt KSubscriptOffsetPercentage=14;
- class CFont;
- #line 783
- class CTypefaceStore : public CBase
- {
- public:
- __declspec(dllexport) ~CTypefaceStore();
- #line 801
- virtual TInt GetNearestFontInTwips(CFont*& aFont, const TFontSpec& aFontSpec) = 0;
- #line 815
- virtual TInt GetNearestFontToDesignHeightInTwips(CFont*& aFont, const TFontSpec& aFontSpec) = 0;
- #line 836
- virtual TInt GetNearestFontToMaxHeightInTwips(CFont*& aFont, const TFontSpec& aFontSpec, TInt aMaxHeight) = 0;
- virtual TInt NumTypefaces() const=0;
- #line 854
- virtual void TypefaceSupport(TTypefaceSupport& aTypefaceSupport,TInt aTypefaceIndex) const=0;
- #line 865
- virtual TInt FontHeightInTwips(TInt aTypefaceIndex,TInt aHeightIndex) const=0;
- __declspec(dllexport) void ReleaseFont(CFont* aFont);
- __declspec(dllexport) static TInt BaselineOffset(TInt aHeight,TFontPrintPosition aPos);
- __declspec(dllexport) static TInt SuperSubHeight(TInt aHeight,TFontPrintPosition aPos);
- protected:
- __declspec(dllexport) CTypefaceStore();
- __declspec(dllexport) void ConstructL();
- __declspec(dllexport) void AddFontL(CFont* aFont);
- protected:
- class TFontAccess
- {
- public:
- CFont* iFont;
- TInt iAccessCount;
- };
- protected:
- #line 896
- CArrayFixFlat<TFontAccess> * iFontAccess;
- };
- const TInt KMaxFontCacheEntries=32;
- #line 919
- class CFontCache : public CBase
- {
- public:
- __declspec(dllexport) CFontCache();
- __declspec(dllexport) CFontCache(TInt aMaxEntries);
- __declspec(dllexport) ~CFontCache();
- __declspec(dllexport) CFont* Search(const TFontSpec& aFontSpec);
- __declspec(dllexport) CFont* AddEntryL(CFont* aFont,const TFontSpec& aFontSpec);
- __declspec(dllexport) CFont* RemoveFirstEntry();
- public:
- TInt iNumHits;
- TInt iNumMisses;
- private:
- class CFontCacheEntry : public CBase
- {
- public:
- CFontCacheEntry(CFont* aFont,const TFontSpec& aFontSpec,CFontCacheEntry* aNext);
- public:
- CFont* iFont;
- TFontSpec iSpec;
- CFontCacheEntry* iNext;
- };
- private:
- TInt iNumEntries;
- TInt iMaxEntries;
- CFontCacheEntry* iFirst;
- };
- #line 960
- class MGraphicsDeviceMap
- {
- public:
- __declspec(dllexport) MGraphicsDeviceMap();
- __declspec(dllexport) virtual ~MGraphicsDeviceMap();
- __declspec(dllexport) TPoint TwipsToPixels(const TPoint& aTwipPoint) const;
- __declspec(dllexport) TRect TwipsToPixels(const TRect& aTwipRect) const;
- __declspec(dllexport) TPoint PixelsToTwips(const TPoint& aPixelPoint) const;
- __declspec(dllexport) TRect PixelsToTwips(const TRect& aPixelRect) const;
- virtual TInt HorizontalTwipsToPixels(TInt aTwips) const=0;
- virtual TInt VerticalTwipsToPixels(TInt aTwips) const=0;
- virtual TInt HorizontalPixelsToTwips(TInt aPixels) const=0;
- virtual TInt VerticalPixelsToTwips(TInt aPixels) const=0;
- #line 1016
- virtual TInt GetNearestFontInTwips(CFont*& aFont,const TFontSpec& aFontSpec)=0;
- #line 1034
- virtual TInt GetNearestFontToDesignHeightInTwips(CFont*& , const TFontSpec& ){return 0;}
- #line 1056
- virtual TInt GetNearestFontToMaxHeightInTwips(CFont*& , const TFontSpec& , TInt ){return 0;}
- #line 1068
- virtual void ReleaseFont(CFont* aFont)=0;
- };
- class CGraphicsContext;
- #line 1083
- class CGraphicsDevice : public CBase , public MGraphicsDeviceMap
- {
- public:
- virtual TDisplayMode DisplayMode() const=0;
- virtual TSize SizeInPixels() const=0;
- virtual TSize SizeInTwips() const=0;
- virtual TInt CreateContext(CGraphicsContext*& aGC)=0;
- virtual TInt NumTypefaces() const=0;
- #line 1129
- virtual void TypefaceSupport(TTypefaceSupport& aTypefaceSupport,TInt aTypefaceIndex) const=0;
- #line 1143
- virtual TInt FontHeightInTwips(TInt aTypefaceIndex,TInt aHeightIndex) const=0;
- virtual void PaletteAttributes(TBool& aModifiable,TInt& aNumEntries) const=0;
- virtual void SetPalette(CPalette* aPalette)=0;
- virtual TInt GetPalette(CPalette*& aPalette) const=0;
- };
- #line 1175
- class TCodeSection
- {
- public:
- TInt iStart;
- TInt iEnd;
- };
- const TUid KFontCapitalAscent = {0x1020498E};
- const TUid KFontMaxAscent = {0x10204B10};
- const TUid KFontStandardDescent = {0x10204B11};
- const TUid KFontMaxDescent = {0x10205AFC};
- const TUid KFontLineGap = {0x10204B12};
- #line 1209
- class CFont : public CBase
- {
- friend class CTypefaceStore;
- public:
- #line 1221
- enum TTextDirection
- {
- EHorizontal,
- EVertical
- };
- #line 1240
- class TPositionParam
- {
- public:
- TPositionParam():
- iDirection(EHorizontal),
- iFlags(0),
- iPosInText(0),
- iOutputGlyphs(0)
- {
- }
- enum
- {
- EMaxInputChars = 18,
- EMaxOutputGlyphs = 8
- };
- enum TFlags
- {
- EFLogicalOrder = 1
- };
- TInt16 iDirection;
- TUint16 iFlags;
- TPtrC iText;
- TInt iPosInText;
- TPoint iPen;
- class TOutput
- {
- 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 7 */
- #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 6 */
- #line 21 "C:\Symbian\9.1\S60_3rd\epoc32\include\fntstore.h" /* stack depth 5 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\openfont.h" /* stack depth 6 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\Ecom\Ecom.h" /* stack depth 7 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\Ecom\EComErrorCodes.h" /* stack depth 8 */
- #line 20
- const TInt KEComErrBase = -17000;
- const TInt KEComErrLast = -17030;
- #line 39
- const TInt KEComErrNoInterfaceIdentified = -17004;
- const TInt KEComErrNoResolver = -17014;
- const TInt KEComErrTooManyNotificationsOutstanding = -17026;
- #line 64
- const TInt KEComErrMissingParameter = -17028;
- const TInt KEComErrListInvalidAwaitNotification = -17029;
- const TInt KEComErrListCurrentlyUnavailable = -17030;
- #line 90
- const TInt KEComErrInvalidUnloadPolicy = -17003;
- const TInt KEComErrInvalidIIC = -17008;
- const TInt KEComErrDriveNotFound = -17019;
- #line 117
- const TInt KEComErrUnknownService = -17002;
- const TInt KEComErrReferenceCountInvalid = -17013;
- const TInt KEComErrDestructionFailed = -17017;
- const TInt KEComErrInvalidRegistryData = -17022;
- const TInt KEComErrMismatchedTags = -17023;
- #line 156
- const TInt KEComErrDestroyingWithNullDtorKey = -17027;
- #line 166
- const TInt KEComErrAlreadyReceiving = -17001;
- const TInt KEComErrEnableFailed = -17005;
- const TInt KEComErrDisableFailed = -17006;
- const TInt KEComErrNoRegistrationsFound = -17007;
- const TInt KEComErrUninstallFailed = -17009;
- const TInt KEComErrReinstallFailed = -17010;
- const TInt KEComErrRegistrationFailed = -17011;
- const TInt KEComErrNotConnected = -17012;
- const TInt KEComErrSuspendFailed = -17015;
- const TInt KEComErrResumeFailed = -17016;
- const TInt KEComErrDriveAlreadyInstalled = -17018;
- const TInt KEComErrIndexEntryNotFound = -17020;
- const TInt KEComErrNoRegistrationData = -17021;
- const TInt KEComErrInstantiationPointerNotFound = -17024;
- const TInt KEComErrInstantiationPointerNotAvailable = -17025;
- #line 19 "C:\Symbian\9.1\S60_3rd\epoc32\include\Ecom\Ecom.h" /* stack depth 7 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\Ecom\EComResolverParams.h" /* stack depth 8 */
- #line 25
- class TEComResolverParams
- {
- public:
- inline TEComResolverParams();
- inline const TDesC8& DataType() const;
- inline void SetDataType(const TDesC8& aDataType);
- inline TBool IsGenericMatch() const;
- inline void SetGenericMatch(TBool aGenericMatch);
- inline TBool IsWildcardMatch() const;
- inline void SetWildcardMatch(TBool aWildcardMatch);
- private:
- TPtrC8 iDataType;
- TBool iGenericMatch;
- };
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\Ecom\EComResolverParams.inl" /* stack depth 9 */
- #line 19
- TEComResolverParams::TEComResolverParams()
- : iDataType(0 ,0),
- iGenericMatch(EFalse)
- {
- }
- #line 35
- const TDesC8& TEComResolverParams::DataType() const
- {
- return iDataType;
- }
- #line 50
- void TEComResolverParams::SetDataType(const TDesC8& aDataType)
- {
- iDataType.Set(aDataType);
- }
- #line 62
- TBool TEComResolverParams::IsGenericMatch() const
- {
- return iGenericMatch;
- }
- #line 94
- void TEComResolverParams::SetGenericMatch(TBool aGenericMatch)
- {
- iGenericMatch=aGenericMatch;
- }
- #line 107
- TBool TEComResolverParams::IsWildcardMatch() const
- {
- return iGenericMatch;
- }
- #line 121
- void TEComResolverParams::SetWildcardMatch(TBool aWildcardMatch)
- {
- iGenericMatch=aWildcardMatch;
- }
- #line 56 "C:\Symbian\9.1\S60_3rd\epoc32\include\Ecom\EComResolverParams.h" /* stack depth 8 */
- #line 20 "C:\Symbian\9.1\S60_3rd\epoc32\include\Ecom\Ecom.h" /* stack depth 7 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\Ecom\ImplementationInformation.h" /* stack depth 8 */
- #line 52
- class CImplementationInformation : public CBase
- {
- public:
- static CImplementationInformation* NewLC(RReadStream& aStream);
- static CImplementationInformation* NewL(TUid aUid,
- TInt aVersion,
- HBufC* aName,
- HBufC8* aDataType,
- HBufC8* aOpaqueData,
- TDriveUnit aDrive,
- TBool aRomOnly,
- TBool aRomBased);
- static CImplementationInformation* NewL(const CImplementationInformation& aImplInfo);
- ~CImplementationInformation();
- inline const TDesC& DisplayName() const;
- inline const TDesC8& DataType() const;
- inline const TDesC8& OpaqueData() const;
- inline TUid ImplementationUid() const;
- inline TInt Version() const;
- inline TBool Disabled() const;
- inline void SetDisabled(TBool aDisabled);
- void ExternalizeL(RWriteStream& aStream) const;
- void InternalizeL(RReadStream& aStream);
- inline TDriveUnit Drive() const;
- inline TBool RomOnly() const;
- inline TBool RomBased() const;
- void SetRomBased(TBool aRomBased);
- private:
- CImplementationInformation();
- CImplementationInformation(TUid aUid,
- TInt aVersion,
- HBufC* aName,
- HBufC8* aDataType,
- HBufC8* aOpaqueData,
- TDriveUnit aDrive,
- TBool aRomOnly,
- TBool aRomBased);
- private:
- TUid iImplementationUid;
- TInt iVersion;
- HBufC* iDisplayName;
- HBufC8* iData;
- HBufC8* iOpaqueData;
- TBool iDisabled;
- TDriveUnit iDrive;
- TBool iRomOnly;
- TBool iRomBased;
- };
- typedef RArray<CImplementationInformation*> RImplInfoArray;
- typedef RPointerArray<CImplementationInformation> RImplInfoPtrArray;
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\Ecom\ImplementationInformation.inl" /* stack depth 9 */
- #line 22
- const TDesC& CImplementationInformation::DisplayName() const
- {
- if(iDisplayName == 0 )
- return KNullDesC();
- else
- return *iDisplayName;
- }
- #line 37
- const TDesC8& CImplementationInformation::DataType() const
- {
- if(iData == 0 )
- return KNullDesC8();
- else
- return *iData;
- }
- #line 52
- const TDesC8& CImplementationInformation::OpaqueData() const
- {
- if(iOpaqueData == 0 )
- return KNullDesC8();
- else
- return *iOpaqueData;
- }
- #line 67
- TUid CImplementationInformation::ImplementationUid() const
- {
- return iImplementationUid;
- }
- #line 79
- TInt CImplementationInformation::Version() const
- {
- return iVersion;
- }
- #line 92
- TBool CImplementationInformation::Disabled() const
- {
- return iDisabled;
- }
- #line 105
- void CImplementationInformation::SetDisabled(TBool aDisabled)
- {
- iDisabled = aDisabled;
- }
- #line 117
- TDriveUnit CImplementationInformation::Drive() const
- {
- return iDrive;
- }
- #line 129
- TBool CImplementationInformation::RomOnly() const
- {
- return iRomOnly;
- }
- TBool CImplementationInformation::RomBased() const
- {
- return iRomBased;
- }
- #line 159 "C:\Symbian\9.1\S60_3rd\epoc32\include\Ecom\ImplementationInformation.h" /* stack depth 8 */
- #line 21 "C:\Symbian\9.1\S60_3rd\epoc32\include\Ecom\Ecom.h" /* stack depth 7 */
- class CLoadManager;
- class CGlobalData;
- const TInt KMaxServiceArgs = 4;
- #line 41
- const TUid KRomOnlyResolverUid = {0x10009D92};
- #line 68
- class REComSession : public RSessionBase
- {
- friend class CGlobalData;
- public:
- __declspec(dllexport) REComSession();
- __declspec(dllexport) static REComSession& OpenL();
- __declspec(dllexport) void Close();
- __declspec(dllexport) void NotifyOnChange(TRequestStatus& aStatus);
- __declspec(dllexport) void CancelNotifyOnChange(TRequestStatus& aStatus);
- __declspec(dllexport) static void ListImplementationsL(TUid aInterfaceUid,
- const TEComResolverParams& aResolutionParameters,
- RImplInfoPtrArray& aImplInfoArray);
- __declspec(dllexport) static void ListImplementationsL(TUid aInterfaceUid,
- RImplInfoPtrArray& aImplInfoArray);
- __declspec(dllexport) static void ListImplementationsL(TUid aInterfaceUid,
- const TEComResolverParams& aResolutionParameters,
- TUid aResolverUid,
- RImplInfoPtrArray& aImplInfoArray);
- #line 104
- __declspec(dllexport) static TAny* CreateImplementationL(TUid aImplementationUid,
- TUid& aDtorIDKey);
- __declspec(dllexport) static TAny* CreateImplementationL(TUid aImplementationUid,
- TInt32 aKeyOffset);
- __declspec(dllexport) static TAny* CreateImplementationL(TUid aImplementationUid,
- TUid& aDtorIDKey,
- TAny* aConstructionParameters);
- __declspec(dllexport) static TAny* CreateImplementationL(TUid aImplementationUid,
- TInt32 aKeyOffset,
- TAny* aConstructionParameters);
- __declspec(dllexport) static TAny* CreateImplementationL(TUid aInterfaceUid,
- TUid& aDtorIDKey,
- const TEComResolverParams& aResolutionParameters);
- __declspec(dllexport) static TAny* CreateImplementationL(TUid aInterfaceUid,
- TInt32 aKeyOffset,
- const TEComResolverParams& aResolutionParameters);
- __declspec(dllexport) static TAny* CreateImplementationL(TUid aInterfaceUid,
- TUid& aDtorIDKey,
- TAny* aConstructionParameters,
- const TEComResolverParams& aResolutionParameters);
- __declspec(dllexport) static TAny* CreateImplementationL(TUid aInterfaceUid,
- TInt32 aKeyOffset,
- TAny* aConstructionParameters,
- const TEComResolverParams& aResolutionParameters);
- __declspec(dllexport) static TAny* CreateImplementationL(TUid aInterfaceUid,
- TUid& aDtorIDKey,
- const TEComResolverParams& aResolutionParameters,
- TUid aResolverUid);
- __declspec(dllexport) static TAny* CreateImplementationL(TUid aInterfaceUid,
- TInt32 aKeyOffset,
- const TEComResolverParams& aResolutionParameters,
- TUid aResolverUid);
- __declspec(dllexport) static TAny* CreateImplementationL(TUid aInterfaceUid,
- TUid& aDtorIDKey,
- TAny* aConstructionParameters,
- const TEComResolverParams& aResolutionParameters,
- TUid aResolverUid);
- __declspec(dllexport) static TAny* CreateImplementationL(TUid aInterfaceUid,
- TInt32 aKeyOffset,
- TAny* aConstructionParameters,
- const TEComResolverParams& aResolutionParameters,
- TUid aResolverUid);
- __declspec(dllexport) static void DestroyedImplementation(TUid aDtorIDKey);
- __declspec(dllexport) static void FinalClose();
- private:
- void ConstructL();
- void ReallyClose();
- static void ListImplementationsL(TInt aServiceId,
- TUid aInterfaceUid,
- const TEComResolverParams& aResolutionParameters,
- TUid aResolverUid,
- RImplInfoPtrArray& aImplInfoArray);
- TAny* ResolveAndCreateImplL(TUid aImplementationUid,
- TUid& aDtorIDKey,
- TAny* aCreationParameters, TBool aCreationParamsFlag);
- TAny* ResolveAndCreateImplL(TUid aInterfaceUid,
- const TEComResolverParams& aResolutionParameters,
- TUid& aDtorIDKey,
- TAny* aCreationParameters, TBool aCreationParamsFlag);
- TAny* ResolveAndCreateImplL(TUid aInterfaceUid,
- const TEComResolverParams& aResolutionParameters,
- TUid aResolverUid,
- TUid& aDtorIDKey,
- TAny* aCreationParameters, TBool aCreationParamsFlag);
- TAny* ResolveAndCreateImplL(TInt aServiceId,
- TUid aInterfaceUid,
- const TEComResolverParams& aResolutionParameters,
- TUid aResolverUid,
- TUid& aDtorIDKey,
- TAny* aCreationParameters, TBool aCreationParamsFlag);
- public:
- __declspec(dllexport) static void SetGetParametersL(const TIpcArgs &aArgs);
- private:
- TInt iReserved1;
- TBool iDoNotCloseThis;
- TInt iReserved2;
- };
- #line 27 "C:\Symbian\9.1\S60_3rd\epoc32\include\openfont.h" /* stack depth 6 */
- class CFont;
- class COpenFontFile;
- class COpenFontGlyph;
- class COpenFontGlyphCache;
- class COpenFontGlyphTreeEntry;
- class COpenFontPositioner;
- class COpenFontSessionCache;
- class COpenFontSessionCacheList;
- class RFs;
- class TCharacterMetrics;
- class TFontSpec;
- class TOpenFontFaceAttrib;
- class CFontStore;
- class TOpenFontFileData;