CPcsDefs.h File Reference

const TLitC< sizeof(L"PcsServer")/2 > KPcsServerName

const TLitC< sizeof(L"PcsServer")/2 >KPcsServerName[static]

PCS Server Exe Name

const TLitC< sizeof(L"PcsServer.exe")/2 > KPcsServerExeName

const TLitC< sizeof(L"PcsServer.exe")/2 >KPcsServerExeName[static]

const TLitC< sizeof(L"PCS-ALG-1")/2 > KPcsAlgorithm_NonChinese

const TLitC< sizeof(L"PCS-ALG-1")/2 >KPcsAlgorithm_NonChinese[static]

const TLitC< sizeof(L"PCS-ALG-2")/2 > KPcsAlgorithm_Chinese

const TLitC< sizeof(L"PCS-ALG-2")/2 >KPcsAlgorithm_Chinese[static]

const TInt KPcsServerMajorVersionNumber

const TIntKPcsServerMajorVersionNumber

PCS Server Version details

const TInt KPcsServerMinorVersionNumber

const TIntKPcsServerMinorVersionNumber

const TInt KPcsServerBuildVersionNumber

const TIntKPcsServerBuildVersionNumber

const TUid KPcsPluginInterfaceUid

const TUidKPcsPluginInterfaceUid

PCS Plugin Interface UID

const TUid KPcsAlgorithm1

const TUidKPcsAlgorithm1

const TUid KPsDataStoreInterfaceUid

const TUidKPsDataStoreInterfaceUid

const TInt KLinksToFetchInOneGo

const TIntKLinksToFetchInOneGo

const TInt KMaxNbrOfLangKeymapping

const TIntKMaxNbrOfLangKeymapping

Max number of supported languages for Key Map

const TInt KCRMaxLen

const TIntKCRMaxLen

Central Repository constants

const TInt KPsQueryMaxLen

const TIntKPsQueryMaxLen

const TInt KBufferMaxLen

const TIntKBufferMaxLen

const TInt KSearchResultsBufferLen

const TIntKSearchResultsBufferLen

const TInt KPsAdaptiveGridSupportedMaxLen

const TIntKPsAdaptiveGridSupportedMaxLen

const TInt KPsAdaptiveGridStringMaxLen

const TIntKPsAdaptiveGridStringMaxLen

const TLitC< sizeof(L"cntdb:const static TLitC<sizeof(L"sim:const static TLitC< sizeof(L"sim:const static TLitC<sizeof(L"sim:const static TLitC< sizeof(L"cntdb:struct TPsMatchLocation{ public: TInt index; TInt length; TBidiText::TDirectionality direction; };const TInt KUnitSeparator = 31;const TInt KSpaceCharacter = 32;const TUid KPcsInternalUidCacheStatus = {0x2000B5B6};enum TPcsInternalKeyCacheStatus { EPsKeyCacheStatus = 0, EPsKeyCacheError = 1, EPsKeyContactRemovedCounter = 2, EPsKeyContactModifiedCounter = 3, EPsKeyContactAddedCounter = 4 };# 23 "X:/epoc32/include/platform/app/MPsResultsObserver.h" 2# 1 "X:/epoc32/include/platform/app/CPsPattern.h" 1#define __CPS_PATTERN_H__class CPsPattern : public CBase{ public: IMPORT_C static CPsPattern* NewL(); IMPORT_C ~CPsPattern(); IMPORT_C void SetPatternL(TDesC& aPattern); IMPORT_C void SetFirstIndex(TInt aIndex); IMPORT_C TDesC& Pattern(); IMPORT_C TInt FirstIndex(); IMPORT_C virtual void ExternalizeL(RWriteStream& aStream); IMPORT_C virtual void InternalizeL(RReadStream& aStream); private: CPsPattern(); void ConstructL(); private: HBufC* iPattern; TInt iFirstIndex;};# 24 "X:/epoc32/include/platform/app/MPsResultsObserver.h" 2class CPsClientData;class MPsResultsObserver{ public: virtual void HandlePsResultsUpdate(RPointerArray<CPsClientData>& aSearchResults, RPointerArray<CPsPattern>& aSearchSeqs) = 0; virtual void HandlePsError(TInt aErrorCode) = 0; virtual void CachingStatus(TCachingStatus& aStatus, TInt& aError) = 0;};# 20 "X:/sf/app/contacts/predictivesearch/PcsServerClientAPI/src/CPsRequestHandler.cpp" 2# 1 "X:/epoc32/include/platform/app/CPsRequestHandler.h" 1#define __CPSREQUESTHANDLER_H__# 1 "X:/epoc32/include/s32mem.h" 1#define __S32MEM_H__# 1 "X:/epoc32/include/s32buf.h" 1#define __S32BUF_H__enum TStreamLocation {EStreamBeginning, EStreamMark, EStreamEnd};class TStreamPos {public: TStreamPos() {} inline TStreamPos(TInt anOffset); inline TBool operator==(TStreamPos aPos) const; inline TBool operator!=(TStreamPos aPos) const; inline TBool operator<(TStreamPos aPos) const; inline TBool operator<=(TStreamPos aPos) const; inline TBool operator>TStreamPos aPos) const; inline TBool operator>=(TStreamPos aPos) const; inline TInt operator-(TStreamPos aPos) const; inline TStreamPos operator+(TInt anOffset) const; inline TStreamPos operator-(TInt anOffset) const; inline TStreamPos& operator+=(TInt anOffset); inline TStreamPos& operator-=(TInt anOffset); inline TInt Offset() const;private: TInt iOff; };inline TStreamPos operator+(TInt anOffset,TStreamPos aPos);#define KStreamBeginningclass TStreamTransfer {public: enum TUnlimited {EUnlimited};public: TStreamTransfer() {} inline TStreamTransfer(TInt aMaxLength); inline TStreamTransfer(TUnlimited); inline TBool operator==(TInt aLength) const; inline TBool operator>TInt aLength) const; inline TStreamTransfer operator-(TInt aLength) const; inline TInt operator[](TInt aMaxLength) const; inline TStreamTransfer& operator-=(TInt aLength); inline TInt Left() const;private: TInt iVal;private: IMPORT_C static void __DbgChkNonNegative(TInt aLength); };inline TBool operator==(TInt aLength,TStreamTransfer aTransfer);inline TBool operator<(TInt aLength,TStreamTransfer aTransfer);#define KStreamUnlimitedclass MStreamInput;class MStreamOutput;class MStreamBuf {public: enum TRead {ERead=0x01}; enum TWrite {EWrite=0x02}; typedef TInt TMark;public: IMPORT_C void Close(); inline void Release(); IMPORT_C TInt Synch(); inline void SynchL(); IMPORT_C void PushL(); inline TInt ReadL(TAny* aPtr,TInt aMaxLength); IMPORT_C TInt Read(TDes8& aDes,TRequestStatus& aStatus); IMPORT_C TInt Read(TDes8& aDes,TInt aMaxLength,TRequestStatus& aStatus); IMPORT_C TInt ReadL(TDes8& aDes,TRequestStatus& aStatus); inline TInt ReadL(TDes8& aDes,TInt aMaxLength,TRequestStatus& aStatus); inline TStreamTransfer ReadL(MStreamInput& anInput,TStreamTransfer aTransfer); IMPORT_C TInt ReadL(MStreamInput& anInput,TInt aMaxLength); inline void ReadL(MStreamInput& anInput); inline void WriteL(const TAny* aPtr,TInt aLength); IMPORT_C TInt Write(const TDesC8& aDes,TRequestStatus& aStatus); IMPORT_C TInt Write(const TDesC8& aDes,TInt aMaxLength,TRequestStatus& aStatus); IMPORT_C TInt WriteL(const TDesC8& aDes,TRequestStatus& aStatus); inline TInt WriteL(const TDesC8& aDes,TInt aMaxLength,TRequestStatus& aStatus); inline TStreamTransfer WriteL(MStreamOutput& anOutput,TStreamTransfer aTransfer); IMPORT_C TInt WriteL(MStreamOutput& anOutput,TInt aMaxLength); inline void WriteL(MStreamOutput& anOutput); inline void SeekL(TMark aMark,TStreamPos aPos); inline TStreamPos SeekL(TMark aMark,TStreamLocation aLocation,TInt anOffset=0); inline TStreamPos SeekL(TRead,TStreamLocation aLocation,TInt anOffset=0); inline TStreamPos SeekL(TWrite,TStreamLocation aLocation,TInt anOffset=0); inline TStreamPos SeekL(TRead,TInt anOffset); inline TStreamPos SeekL(TWrite,TInt anOffset); inline TStreamPos TellL(TRead) const; inline TStreamPos TellL(TWrite) const; inline TInt SizeL() const;protected: MStreamBuf() {}private: MStreamBuf(const MStreamBuf&); MStreamBuf& operator=(const MStreamBuf&); virtual IMPORT_C void DoRelease(); virtual IMPORT_C void DoSynchL(); virtual IMPORT_C TInt DoReadL(TAny* aPtr,TInt aMaxLength); virtual IMPORT_C TInt DoReadL(TDes8& aDes,TInt aMaxLength,TRequestStatus& aStatus); virtual IMPORT_C TStreamTransfer DoReadL(MStreamInput& anInput,TStreamTransfer aTransfer); virtual IMPORT_C void DoWriteL(const TAny* aPtr,TInt aLength); virtual IMPORT_C TInt DoWriteL(const TDesC8& aDes,TInt aMaxLength,TRequestStatus& aStatus); virtual IMPORT_C TStreamTransfer DoWriteL(MStreamOutput& anOutput,TStreamTransfer aTransfer); virtual IMPORT_C TStreamPos DoSeekL(TMark aMark,TStreamLocation aLocation,TInt anOffset); };class MStreamInput {public: virtual TInt PushL(const TAny* aPtr,TInt aMaxLength)=0; virtual TStreamTransfer ReadFromL(MStreamBuf& aSource,TStreamTransfer aTransfer)=0; };class MStreamOutput {public: virtual TInt PullL(TAny* aPtr,TInt aMaxLength)=0; virtual TStreamTransfer WriteToL(MStreamBuf& aSink,TStreamTransfer aTransfer)=0; };class TStreamBuf : public MStreamBuf {protected: typedef TInt TArea;protected: IMPORT_C TStreamBuf(); IMPORT_C void SetBuf(TArea anArea,TUint8* aPtr,TUint8* anEnd); IMPORT_C void SetPtr(TArea anArea,TUint8* aPtr); IMPORT_C void SetEnd(TArea anArea,TUint8* anEnd); IMPORT_C TUint8* Ptr(TArea anArea) const; IMPORT_C TUint8* End(TArea anArea) const; IMPORT_C TInt Avail(TArea anArea) const; IMPORT_C TInt DoReadL(TAny* aPtr,TInt aMaxLength); IMPORT_C TStreamTransfer DoReadL(MStreamInput& anInput,TStreamTransfer aTransfer); IMPORT_C void DoWriteL(const TAny* aPtr,TInt aLength); IMPORT_C TStreamTransfer DoWriteL(MStreamOutput& anOutput,TStreamTransfer aTransfer); inline void SetBuf(TRead,TUint8* aPtr,TUint8* anEnd); inline void SetBuf(TWrite,TUint8* aPtr,TUint8* anEnd); inline void SetPtr(TRead,TUint8* aPtr); inline void SetPtr(TWrite,TUint8* aPtr); inline void SetEnd(TRead,TUint8* anEnd); inline void SetEnd(TWrite,TUint8* anEnd); inline TUint8* Ptr(TRead) const; inline TUint8* Ptr(TWrite) const; inline TUint8* End(TRead) const; inline TUint8* End(TWrite) const; inline TInt Avail(TRead) const; inline TInt Avail(TWrite) const;private: virtual TInt UnderflowL(TInt aMaxLength)=0; virtual void OverflowL()=0;private: TUint8* iRPtr; TUint8* iREnd; TUint8* iWPtr; TUint8* iWEnd; };class TStreamFilter : public MStreamBuf {public: enum {EAttached=0x10};protected: IMPORT_C TStreamFilter(); inline void Set(MStreamBuf* aHost,TInt aMode); inline void Committed(); inline TBool IsCommitted() const; IMPORT_C void EmitL(const TAny* aPtr,TInt aLength); IMPORT_C void DoRelease(); IMPORT_C void DoSynchL(); IMPORT_C TInt DoReadL(TAny* aPtr,TInt aMaxLength); IMPORT_C void DoWriteL(const TAny* aPtr,TInt aLength);private: virtual TInt Capacity(TInt aMaxLength)=0; virtual TInt FilterL(TAny* aPtr,TInt aMaxLength,const TUint8*& aFrom,const TUint8* anEnd)=0;private: MStreamBuf* iHost; TInt iMode;private: friend class TFilterInput; friend class TFilterOutput;private: IMPORT_C static void __DbgChkMode(TInt aMode); };# 1 "X:/epoc32/include/s32buf.inl" 1inline TStreamPos::TStreamPos(TInt anOffset) : iOff(anOffset) {}inline TBool TStreamPos::operator==(TStreamPos aPos) const {return iOff==aPos.iOff;}inline TBool TStreamPos::operator!=(TStreamPos aPos) const {return iOff!=aPos.iOff;}inline TBool TStreamPos::operator<(TStreamPos aPos) const {return iOff<aPos.iOff;}inline TBool TStreamPos::operator<=(TStreamPos aPos) const {return iOff<=aPos.iOff;}inline TBool TStreamPos::operator>TStreamPos aPos) const {return iOff>aPos.iOff;}inline TBool TStreamPos::operator>=(TStreamPos aPos) const {return iOff>=aPos.iOff;}inline TInt TStreamPos::operator-(TStreamPos aPos) const {return iOff-aPos.iOff;}inline TStreamPos TStreamPos::operator+(TInt anOffset) const {return TStreamPos(iOff+anOffset);}inline TStreamPos TStreamPos::operator-(TInt anOffset) const {return TStreamPos(iOff-anOffset);}inline TStreamPos& TStreamPos::operator+=(TInt anOffset) {iOff+=anOffset;return *this;}inline TStreamPos& TStreamPos::operator-=(TInt anOffset) {iOff-=anOffset;return *this;}inline TInt TStreamPos::Offset() const {return iOff;}inline TStreamPos operator+(TInt anOffset,TStreamPos aPos) {return aPos+anOffset;}inline TStreamTransfer::TStreamTransfer(TInt aMaxLength) : iVal(aMaxLength) { }inline TStreamTransfer::TStreamTransfer(TUnlimited) : iVal(-1) {}inline TBool TStreamTransfer::operator==(TInt aLength) const { return iVal==aLength; }inline TBool TStreamTransfer::operator>TInt aLength) const { return TUint(iVal)>TUint(aLength); }inline TStreamTransfer TStreamTransfer::operator-(TInt aLength) const { return iVal<0?*this:TStreamTransfer(iVal-aLength); }inline TInt TStreamTransfer::operator[](TInt aMaxLength) const {return *this>aMaxLength?aMaxLength:iVal;}inline TStreamTransfer& TStreamTransfer::operator-=(TInt aLength) { if (iVal>=0) { iVal-=aLength; } return *this; }inline TInt TStreamTransfer::Left() const { return iVal; }inline TBool operator==(TInt aLength,TStreamTransfer aTransfer) {return aTransfer==aLength;}inline TBool operator<(TInt aLength,TStreamTransfer aTransfer) {return aTransfer>aLength;}inline void MStreamBuf::Release() {DoRelease();}inline void MStreamBuf::SynchL() {DoSynchL();}inline TInt MStreamBuf::ReadL(TAny* aPtr,TInt aMaxLength) {return DoReadL(aPtr,aMaxLength);}inline TInt MStreamBuf::ReadL(TDes8& aDes,TInt aMaxLength,TRequestStatus& aStatus) {return DoReadL(aDes,aMaxLength,aStatus);}inline TStreamTransfer MStreamBuf::ReadL(MStreamInput& anInput,TStreamTransfer aTransfer) {return DoReadL(anInput,aTransfer);}inline void MStreamBuf::ReadL(MStreamInput& anInput) {DoReadL(anInput,KStreamUnlimited);}inline void MStreamBuf::WriteL(const TAny* aPtr,TInt aLength) {DoWriteL(aPtr,aLength);}inline TInt MStreamBuf::WriteL(const TDesC8& aDes,TInt aMaxLength,TRequestStatus& aStatus) {return DoWriteL(aDes,aMaxLength,aStatus);}inline TStreamTransfer MStreamBuf::WriteL(MStreamOutput& anOutput,TStreamTransfer aTransfer) {return DoWriteL(anOutput,aTransfer);}inline void MStreamBuf::WriteL(MStreamOutput& anOutput) {DoWriteL(anOutput,KStreamUnlimited);}inline void MStreamBuf::SeekL(TMark aMark,TStreamPos aPos) {DoSeekL(aMark,EStreamBeginning,aPos.Offset());}inline TStreamPos MStreamBuf::SeekL(TMark aMark,TStreamLocation aLocation,TInt anOffset) {return DoSeekL(aMark,aLocation,anOffset);}inline TStreamPos MStreamBuf::SeekL(TRead,TStreamLocation aLocation,TInt anOffset) {return DoSeekL(ERead,aLocation,anOffset);}inline TStreamPos MStreamBuf::SeekL(TWrite,TStreamLocation aLocation,TInt anOffset) {return DoSeekL(EWrite,aLocation,anOffset);}inline TStreamPos MStreamBuf::SeekL(TRead,TInt anOffset) {return DoSeekL(ERead,EStreamMark,anOffset);}inline TStreamPos MStreamBuf::SeekL(TWrite,TInt anOffset) {return DoSeekL(EWrite,EStreamMark,anOffset);}inline TStreamPos MStreamBuf::TellL(TRead) const {return (const_cast< MStreamBuf* > this ))->DoSeekL(ERead,EStreamMark,0);}inline TStreamPos MStreamBuf::TellL(TWrite) const {return (const_cast< MStreamBuf* > this ))-> DoSeekL

const TLitC< sizeof(L"cntdb:const static TLitC<sizeof(L"sim:const static TLitC< sizeof(L"sim:const static TLitC<sizeof(L"sim:const static TLitC< sizeof(L"cntdb:struct TPsMatchLocation{ public: TInt index; TInt length; TBidiText::TDirectionality direction; };const TInt KUnitSeparator = 31;const TInt KSpaceCharacter = 32;const TUid KPcsInternalUidCacheStatus = {0x2000B5B6};enum TPcsInternalKeyCacheStatus { EPsKeyCacheStatus = 0, EPsKeyCacheError = 1, EPsKeyContactRemovedCounter = 2, EPsKeyContactModifiedCounter = 3, EPsKeyContactAddedCounter = 4 };# 23 "X:/epoc32/include/platform/app/MPsResultsObserver.h" 2# 1 "X:/epoc32/include/platform/app/CPsPattern.h" 1#define __CPS_PATTERN_H__class CPsPattern : public CBase{ public: IMPORT_C static CPsPattern* NewL(); IMPORT_C ~CPsPattern(); IMPORT_C void SetPatternL(TDesC& aPattern); IMPORT_C void SetFirstIndex(TInt aIndex); IMPORT_C TDesC& Pattern(); IMPORT_C TInt FirstIndex(); IMPORT_C virtual void ExternalizeL(RWriteStream& aStream); IMPORT_C virtual void InternalizeL(RReadStream& aStream); private: CPsPattern(); void ConstructL(); private: HBufC* iPattern; TInt iFirstIndex;};# 24 "X:/epoc32/include/platform/app/MPsResultsObserver.h" 2class CPsClientData;class MPsResultsObserver{ public: virtual void HandlePsResultsUpdate(RPointerArray<CPsClientData>& aSearchResults, RPointerArray<CPsPattern>& aSearchSeqs) = 0; virtual void HandlePsError(TInt aErrorCode) = 0; virtual void CachingStatus(TCachingStatus& aStatus, TInt& aError) = 0;};# 20 "X:/sf/app/contacts/predictivesearch/PcsServerClientAPI/src/CPsRequestHandler.cpp" 2# 1 "X:/epoc32/include/platform/app/CPsRequestHandler.h" 1#define __CPSREQUESTHANDLER_H__# 1 "X:/epoc32/include/s32mem.h" 1#define __S32MEM_H__# 1 "X:/epoc32/include/s32buf.h" 1#define __S32BUF_H__enum TStreamLocation {EStreamBeginning, EStreamMark, EStreamEnd};class TStreamPos {public: TStreamPos() {} inline TStreamPos(TInt anOffset); inline TBool operator==(TStreamPos aPos) const; inline TBool operator!=(TStreamPos aPos) const; inline TBool operator<(TStreamPos aPos) const; inline TBool operator<=(TStreamPos aPos) const; inline TBool operator>TStreamPos aPos) const; inline TBool operator>=(TStreamPos aPos) const; inline TInt operator-(TStreamPos aPos) const; inline TStreamPos operator+(TInt anOffset) const; inline TStreamPos operator-(TInt anOffset) const; inline TStreamPos& operator+=(TInt anOffset); inline TStreamPos& operator-=(TInt anOffset); inline TInt Offset() const;private: TInt iOff; };inline TStreamPos operator+(TInt anOffset,TStreamPos aPos);#define KStreamBeginningclass TStreamTransfer {public: enum TUnlimited {EUnlimited};public: TStreamTransfer() {} inline TStreamTransfer(TInt aMaxLength); inline TStreamTransfer(TUnlimited); inline TBool operator==(TInt aLength) const; inline TBool operator>TInt aLength) const; inline TStreamTransfer operator-(TInt aLength) const; inline TInt operator[](TInt aMaxLength) const; inline TStreamTransfer& operator-=(TInt aLength); inline TInt Left() const;private: TInt iVal;private: IMPORT_C static void __DbgChkNonNegative(TInt aLength); };inline TBool operator==(TInt aLength,TStreamTransfer aTransfer);inline TBool operator<(TInt aLength,TStreamTransfer aTransfer);#define KStreamUnlimitedclass MStreamInput;class MStreamOutput;class MStreamBuf {public: enum TRead {ERead=0x01}; enum TWrite {EWrite=0x02}; typedef TInt TMark;public: IMPORT_C void Close(); inline void Release(); IMPORT_C TInt Synch(); inline void SynchL(); IMPORT_C void PushL(); inline TInt ReadL(TAny* aPtr,TInt aMaxLength); IMPORT_C TInt Read(TDes8& aDes,TRequestStatus& aStatus); IMPORT_C TInt Read(TDes8& aDes,TInt aMaxLength,TRequestStatus& aStatus); IMPORT_C TInt ReadL(TDes8& aDes,TRequestStatus& aStatus); inline TInt ReadL(TDes8& aDes,TInt aMaxLength,TRequestStatus& aStatus); inline TStreamTransfer ReadL(MStreamInput& anInput,TStreamTransfer aTransfer); IMPORT_C TInt ReadL(MStreamInput& anInput,TInt aMaxLength); inline void ReadL(MStreamInput& anInput); inline void WriteL(const TAny* aPtr,TInt aLength); IMPORT_C TInt Write(const TDesC8& aDes,TRequestStatus& aStatus); IMPORT_C TInt Write(const TDesC8& aDes,TInt aMaxLength,TRequestStatus& aStatus); IMPORT_C TInt WriteL(const TDesC8& aDes,TRequestStatus& aStatus); inline TInt WriteL(const TDesC8& aDes,TInt aMaxLength,TRequestStatus& aStatus); inline TStreamTransfer WriteL(MStreamOutput& anOutput,TStreamTransfer aTransfer); IMPORT_C TInt WriteL(MStreamOutput& anOutput,TInt aMaxLength); inline void WriteL(MStreamOutput& anOutput); inline void SeekL(TMark aMark,TStreamPos aPos); inline TStreamPos SeekL(TMark aMark,TStreamLocation aLocation,TInt anOffset=0); inline TStreamPos SeekL(TRead,TStreamLocation aLocation,TInt anOffset=0); inline TStreamPos SeekL(TWrite,TStreamLocation aLocation,TInt anOffset=0); inline TStreamPos SeekL(TRead,TInt anOffset); inline TStreamPos SeekL(TWrite,TInt anOffset); inline TStreamPos TellL(TRead) const; inline TStreamPos TellL(TWrite) const; inline TInt SizeL() const;protected: MStreamBuf() {}private: MStreamBuf(const MStreamBuf&); MStreamBuf& operator=(const MStreamBuf&); virtual IMPORT_C void DoRelease(); virtual IMPORT_C void DoSynchL(); virtual IMPORT_C TInt DoReadL(TAny* aPtr,TInt aMaxLength); virtual IMPORT_C TInt DoReadL(TDes8& aDes,TInt aMaxLength,TRequestStatus& aStatus); virtual IMPORT_C TStreamTransfer DoReadL(MStreamInput& anInput,TStreamTransfer aTransfer); virtual IMPORT_C void DoWriteL(const TAny* aPtr,TInt aLength); virtual IMPORT_C TInt DoWriteL(const TDesC8& aDes,TInt aMaxLength,TRequestStatus& aStatus); virtual IMPORT_C TStreamTransfer DoWriteL(MStreamOutput& anOutput,TStreamTransfer aTransfer); virtual IMPORT_C TStreamPos DoSeekL(TMark aMark,TStreamLocation aLocation,TInt anOffset); };class MStreamInput {public: virtual TInt PushL(const TAny* aPtr,TInt aMaxLength)=0; virtual TStreamTransfer ReadFromL(MStreamBuf& aSource,TStreamTransfer aTransfer)=0; };class MStreamOutput {public: virtual TInt PullL(TAny* aPtr,TInt aMaxLength)=0; virtual TStreamTransfer WriteToL(MStreamBuf& aSink,TStreamTransfer aTransfer)=0; };class TStreamBuf : public MStreamBuf {protected: typedef TInt TArea;protected: IMPORT_C TStreamBuf(); IMPORT_C void SetBuf(TArea anArea,TUint8* aPtr,TUint8* anEnd); IMPORT_C void SetPtr(TArea anArea,TUint8* aPtr); IMPORT_C void SetEnd(TArea anArea,TUint8* anEnd); IMPORT_C TUint8* Ptr(TArea anArea) const; IMPORT_C TUint8* End(TArea anArea) const; IMPORT_C TInt Avail(TArea anArea) const; IMPORT_C TInt DoReadL(TAny* aPtr,TInt aMaxLength); IMPORT_C TStreamTransfer DoReadL(MStreamInput& anInput,TStreamTransfer aTransfer); IMPORT_C void DoWriteL(const TAny* aPtr,TInt aLength); IMPORT_C TStreamTransfer DoWriteL(MStreamOutput& anOutput,TStreamTransfer aTransfer); inline void SetBuf(TRead,TUint8* aPtr,TUint8* anEnd); inline void SetBuf(TWrite,TUint8* aPtr,TUint8* anEnd); inline void SetPtr(TRead,TUint8* aPtr); inline void SetPtr(TWrite,TUint8* aPtr); inline void SetEnd(TRead,TUint8* anEnd); inline void SetEnd(TWrite,TUint8* anEnd); inline TUint8* Ptr(TRead) const; inline TUint8* Ptr(TWrite) const; inline TUint8* End(TRead) const; inline TUint8* End(TWrite) const; inline TInt Avail(TRead) const; inline TInt Avail(TWrite) const;private: virtual TInt UnderflowL(TInt aMaxLength)=0; virtual void OverflowL()=0;private: TUint8* iRPtr; TUint8* iREnd; TUint8* iWPtr; TUint8* iWEnd; };class TStreamFilter : public MStreamBuf {public: enum {EAttached=0x10};protected: IMPORT_C TStreamFilter(); inline void Set(MStreamBuf* aHost,TInt aMode); inline void Committed(); inline TBool IsCommitted() const; IMPORT_C void EmitL(const TAny* aPtr,TInt aLength); IMPORT_C void DoRelease(); IMPORT_C void DoSynchL(); IMPORT_C TInt DoReadL(TAny* aPtr,TInt aMaxLength); IMPORT_C void DoWriteL(const TAny* aPtr,TInt aLength);private: virtual TInt Capacity(TInt aMaxLength)=0; virtual TInt FilterL(TAny* aPtr,TInt aMaxLength,const TUint8*& aFrom,const TUint8* anEnd)=0;private: MStreamBuf* iHost; TInt iMode;private: friend class TFilterInput; friend class TFilterOutput;private: IMPORT_C static void __DbgChkMode(TInt aMode); };# 1 "X:/epoc32/include/s32buf.inl" 1inline TStreamPos::TStreamPos(TInt anOffset) : iOff(anOffset) {}inline TBool TStreamPos::operator==(TStreamPos aPos) const {return iOff==aPos.iOff;}inline TBool TStreamPos::operator!=(TStreamPos aPos) const {return iOff!=aPos.iOff;}inline TBool TStreamPos::operator<(TStreamPos aPos) const {return iOff<aPos.iOff;}inline TBool TStreamPos::operator<=(TStreamPos aPos) const {return iOff<=aPos.iOff;}inline TBool TStreamPos::operator>TStreamPos aPos) const {return iOff>aPos.iOff;}inline TBool TStreamPos::operator>=(TStreamPos aPos) const {return iOff>=aPos.iOff;}inline TInt TStreamPos::operator-(TStreamPos aPos) const {return iOff-aPos.iOff;}inline TStreamPos TStreamPos::operator+(TInt anOffset) const {return TStreamPos(iOff+anOffset);}inline TStreamPos TStreamPos::operator-(TInt anOffset) const {return TStreamPos(iOff-anOffset);}inline TStreamPos& TStreamPos::operator+=(TInt anOffset) {iOff+=anOffset;return *this;}inline TStreamPos& TStreamPos::operator-=(TInt anOffset) {iOff-=anOffset;return *this;}inline TInt TStreamPos::Offset() const {return iOff;}inline TStreamPos operator+(TInt anOffset,TStreamPos aPos) {return aPos+anOffset;}inline TStreamTransfer::TStreamTransfer(TInt aMaxLength) : iVal(aMaxLength) { }inline TStreamTransfer::TStreamTransfer(TUnlimited) : iVal(-1) {}inline TBool TStreamTransfer::operator==(TInt aLength) const { return iVal==aLength; }inline TBool TStreamTransfer::operator>TInt aLength) const { return TUint(iVal)>TUint(aLength); }inline TStreamTransfer TStreamTransfer::operator-(TInt aLength) const { return iVal<0?*this:TStreamTransfer(iVal-aLength); }inline TInt TStreamTransfer::operator[](TInt aMaxLength) const {return *this>aMaxLength?aMaxLength:iVal;}inline TStreamTransfer& TStreamTransfer::operator-=(TInt aLength) { if (iVal>=0) { iVal-=aLength; } return *this; }inline TInt TStreamTransfer::Left() const { return iVal; }inline TBool operator==(TInt aLength,TStreamTransfer aTransfer) {return aTransfer==aLength;}inline TBool operator<(TInt aLength,TStreamTransfer aTransfer) {return aTransfer>aLength;}inline void MStreamBuf::Release() {DoRelease();}inline void MStreamBuf::SynchL() {DoSynchL();}inline TInt MStreamBuf::ReadL(TAny* aPtr,TInt aMaxLength) {return DoReadL(aPtr,aMaxLength);}inline TInt MStreamBuf::ReadL(TDes8& aDes,TInt aMaxLength,TRequestStatus& aStatus) {return DoReadL(aDes,aMaxLength,aStatus);}inline TStreamTransfer MStreamBuf::ReadL(MStreamInput& anInput,TStreamTransfer aTransfer) {return DoReadL(anInput,aTransfer);}inline void MStreamBuf::ReadL(MStreamInput& anInput) {DoReadL(anInput,KStreamUnlimited);}inline void MStreamBuf::WriteL(const TAny* aPtr,TInt aLength) {DoWriteL(aPtr,aLength);}inline TInt MStreamBuf::WriteL(const TDesC8& aDes,TInt aMaxLength,TRequestStatus& aStatus) {return DoWriteL(aDes,aMaxLength,aStatus);}inline TStreamTransfer MStreamBuf::WriteL(MStreamOutput& anOutput,TStreamTransfer aTransfer) {return DoWriteL(anOutput,aTransfer);}inline void MStreamBuf::WriteL(MStreamOutput& anOutput) {DoWriteL(anOutput,KStreamUnlimited);}inline void MStreamBuf::SeekL(TMark aMark,TStreamPos aPos) {DoSeekL(aMark,EStreamBeginning,aPos.Offset());}inline TStreamPos MStreamBuf::SeekL(TMark aMark,TStreamLocation aLocation,TInt anOffset) {return DoSeekL(aMark,aLocation,anOffset);}inline TStreamPos MStreamBuf::SeekL(TRead,TStreamLocation aLocation,TInt anOffset) {return DoSeekL(ERead,aLocation,anOffset);}inline TStreamPos MStreamBuf::SeekL(TWrite,TStreamLocation aLocation,TInt anOffset) {return DoSeekL(EWrite,aLocation,anOffset);}inline TStreamPos MStreamBuf::SeekL(TRead,TInt anOffset) {return DoSeekL(ERead,EStreamMark,anOffset);}inline TStreamPos MStreamBuf::SeekL(TWrite,TInt anOffset) {return DoSeekL(EWrite,EStreamMark,anOffset);}inline TStreamPos MStreamBuf::TellL(TRead) const {return (const_cast< MStreamBuf* > this ))->DoSeekL(ERead,EStreamMark,0);}inline TStreamPos MStreamBuf::TellL(TWrite) const {return (const_cast< MStreamBuf* > this ))->DoSeekL[static]

Data Stores Constants