S60UIExamplePlayContainer.inc
上传用户:laixiong
上传日期:2007-03-11
资源大小:2994k
文件大小:1695k
源码类别:
Symbian
开发平台:
C/C++
- typedef TPckgBuf<TApaAppCapability> TApaAppCapabilityBuf;
- class TApaEmbeddabilityFilter
- {
- public:
- __declspec(dllexport) TApaEmbeddabilityFilter();
- __declspec(dllexport) void AddEmbeddability(TApaAppCapability::TEmbeddability aEmbeddability);
- __declspec(dllexport) TBool MatchesEmbeddability(TApaAppCapability::TEmbeddability aEmbeddability) const;
- private:
- TUint iEmbeddabilityFlags;
- private:
- TInt iTApaEmbeddabilityFilter_Reserved1;
- };
- class CApaAppFinder : public CBase
- {
- public:
- virtual void FindAllAppsL()=0;
- virtual TBool NextL(TApaAppEntry& aEntry)=0;
- virtual TFileName FindAppL(const TDesC& aFileName,TUid aFileUid)=0;
- #line 282
- virtual TFileName DefaultAppInfoFileName()const=0;
- protected:
- __declspec(dllexport) CApaAppFinder();
- private:
- __declspec(dllexport) virtual void CApaAppFinder_Reserved1();
- __declspec(dllexport) virtual void CApaAppFinder_Reserved2();
- };
- const TUid KOpenServiceUid = { 0x10208DCA };
- #line 310
- class TApaAppServiceInfo
- {
- public:
- TApaAppServiceInfo();
- TApaAppServiceInfo(TUid aUid, CArrayFixFlat<TDataTypeWithPriority> * aDataTypes,
- HBufC8* aOpaqueData);
- void ExternalizeL(RWriteStream& aStream) const;
- void InternalizeL(RReadStream& aStream);
- void Release();
- CArrayFixFlat<TDataTypeWithPriority>& DataTypes();
- __declspec(dllexport) TUid Uid() const;
- __declspec(dllexport) const CArrayFixFlat<TDataTypeWithPriority>& DataTypes() const;
- __declspec(dllexport) const TDesC8& OpaqueData() const;
- private:
- TUid iUid;
- CArrayFixFlat<TDataTypeWithPriority> * iDataTypes;
- HBufC8* iOpaqueData;
- TInt iTApaAppServiceInfo;
- };
- #line 338
- class CApaAppServiceInfoArray : public CBase
- {
- protected:
- CApaAppServiceInfoArray();
- public:
- virtual TArray<TApaAppServiceInfo> Array()=0;
- private:
- __declspec(dllexport) virtual void CApaAppServiceInfoArray_Reserved1();
- __declspec(dllexport) virtual void CApaAppServiceInfoArray_Reserved2();
- private:
- TInt iCApaAppServiceInfoArray_Reserved1;
- };
- #line 13 "C:\Symbian\9.1\S60_3rd\epoc32\include\apaflrec.h" /* stack depth 3 */
- class MApaAppStarter;
- class CApaAppLocator;
- class CApaFileRecognizer;
- class CApaFileRecognizerType;
- class CFileRecognizerExtension;
- class TApaAppEntry;
- class CApaCommandLine;
- class RFs;
- #line 44
- const TInt KFileRecognizerUidValue8=0x1000013E;
- const TUid KUidFileRecognizer8={KFileRecognizerUidValue8};
- const TUid KUidFileRecognizer16={0x10003A37};
- class CApaAppLocator : public CBase
- {
- public:
- virtual TInt GetAppEntryByUid(TApaAppEntry& aAppEntry,TUid aAppUid)=0;
- virtual TInt GetAppCapabilityByUid(TDes8& aCapabilityBuf,TUid aAppUid)=0;
- };
- class CApaFileRecognizer : public CBase
- {
- public:
- __declspec(dllexport) CApaFileRecognizerType* RecognizeFileL(const TDesC& aFullFileName,const TUidType* aUidType=0 );
- __declspec(dllexport) CApaAppLocator* AppLocator() const;
- __declspec(dllexport) ~CApaFileRecognizer();
- protected:
- __declspec(dllexport) CApaFileRecognizer(RFs& aFs);
- __declspec(dllexport) void AddFileRecognizerType(CApaFileRecognizerType* aFileRecognizerType);
- __declspec(dllexport) TInt RemoveFileRecognizerType(const CApaFileRecognizerType* aFileRecognizerType);
- __declspec(dllexport) void SetAppLocator(CApaAppLocator* aAppLocator);
- static inline void SetAppStarter(CApaFileRecognizerType* aRecognizer,MApaAppStarter* aAppStarter);
- __declspec(dllexport) void DestroyRecognizerList();
- protected:
- RFs& iFs;
- CApaAppLocator* iAppLocator;
- private:
- CApaFileRecognizerType *iFileRecognizerList;
- };
- class MApaAppStarter
- {
- public:
- virtual TThreadId StartAppL(const CApaCommandLine& aCommandLine)=0;
- protected:
- __declspec(dllexport) MApaAppStarter();
- private:
- __declspec(dllexport) virtual void MApaAppStarter_Reserved1();
- __declspec(dllexport) virtual void MApaAppStarter_Reserved2();
- private:
- TInt iMApaAppStarter_Reserved1;
- };
- class CApaFileRecognizerType : public CBase
- {
- public:
- enum TRecognizedType {EProgram,EDoc,EOtherFile,ENotRecognized};
- public:
- virtual TThreadId RunL(TApaCommand aCommand,const TDesC* aDocFileName=0 ,const TDesC8* aTailEnd=0 ) const=0;
- inline TUid AppUid()const;
- inline TUid TypeUid()const;
- inline TRecognizedType Type()const;
- __declspec(dllexport) void Capability(TDes8& aCapabilityBuf)const;
- __declspec(dllexport) void Lock();
- __declspec(dllexport) void Unlock();
- protected:
- __declspec(dllexport) CApaFileRecognizerType();
- __declspec(dllexport) ~CApaFileRecognizerType();
- __declspec(dllexport) TThreadId AppRunL(const CApaCommandLine& aCommandLine) const;
- private:
- inline void SetAppStarter(MApaAppStarter* aAppStarter);
- virtual TRecognizedType DoRecognizeFileL(RFs& aFs,TUidType aUidType)=0;
- TRecognizedType RecognizeFileL(RFs& aFs,const TDesC& aFullFileName,TUidType aUidType);
- TBool Locked()const;
- __declspec(dllexport) virtual void Reserved_1();
- public:
- __declspec(dllexport) static CApaFileRecognizerType* CreateFileRecognizerL(TUid aImplUid);
- protected:
- CApaFileRecognizer* iFileRecognizer;
- MApaAppStarter* iAppStarter;
- HBufC* iFullFileName;
- TUid iFileType;
- TUid iAppUid;
- TRecognizedType iRecognizedType;
- TApaAppCapabilityBuf* iCapabilityBuf;
- private:
- CApaFileRecognizerType* iNext;
- TInt iLock;
- CFileRecognizerExtension* iFileRecognizerExtn;
- private:
- friend class CApaFileRecognizer;
- };
- inline void CApaFileRecognizer::SetAppStarter(CApaFileRecognizerType* aRecognizer,MApaAppStarter* aAppStarter)
- { aRecognizer->SetAppStarter(aAppStarter); }
- inline void CApaFileRecognizerType::SetAppStarter(MApaAppStarter* aAppStarter)
- { iAppStarter = aAppStarter; }
- inline TUid CApaFileRecognizerType::AppUid() const
- { return iAppUid; }
- inline TUid CApaFileRecognizerType::TypeUid() const
- { return iFileType; }
- inline CApaFileRecognizerType::TRecognizedType CApaFileRecognizerType::Type()const
- { return iRecognizedType; }
- #line 14 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikenv.h" /* stack depth 2 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\apacmdln.h" /* stack depth 3 */
- #line 26
- class CApaCommandLine : public CBase
- #line 43
- {
- public:
- __declspec(dllexport) static CApaCommandLine* NewL();
- __declspec(dllexport) static CApaCommandLine* NewLC();
- __declspec(dllexport) ~CApaCommandLine();
- #line 66
- __declspec(dllexport) void SetProcessEnvironmentL(RProcess& aProcess) const;
- __declspec(dllexport) static TInt GetCommandLineFromProcessEnvironment(CApaCommandLine*& aCommandLine);
- __declspec(dllexport) void GetIpcArgsLC(TIpcArgs& aIpcArgs) const;
- __declspec(dllexport) void ConstructCmdLineFromMessageL(const RMessage2& aMessage);
- __declspec(dllexport) void SetDocumentNameL(const TDesC& aDocName);
- __declspec(dllexport) TPtrC DocumentName() const;
- __declspec(dllexport) void SetExecutableNameL(const TDesC& aAppName);
- __declspec(dllexport) TPtrC ExecutableName() const;
- __declspec(dllexport) void SetOpaqueDataL(const TDesC8& aOpaqueData);
- __declspec(dllexport) TPtrC8 OpaqueData() const;
- __declspec(dllexport) void SetTailEndL(const TDesC8& aTailEnd);
- __declspec(dllexport) TPtrC8 TailEnd() const;
- __declspec(dllexport) void SetCommandL(TApaCommand aCommand);
- __declspec(dllexport) TApaCommand Command() const;
- __declspec(dllexport) void SetParentProcessId(TProcessId aProcessId);
- __declspec(dllexport) TProcessId ParentProcessId() const;
- __declspec(dllexport) void SetFileByHandleL(const RFile& aFile);
- __declspec(dllexport) void GetFileByHandleL(RFile& aFile) const;
- public:
- __declspec(dllexport) void SetServerNotRequiredL();
- __declspec(dllexport) void SetServerRequiredL(TUint aServerDifferentiator);
- __declspec(dllexport) TUint ServerRequired() const;
- __declspec(dllexport) void SetDefaultScreenL(TInt aDefaultScreenNumber);
- __declspec(dllexport) TInt DefaultScreen() const;
- __declspec(dllexport) TBool IsDefaultScreenSet() const;
- __declspec(dllexport) void SetParentWindowGroupID(TInt aParentWindowGroupID);
- __declspec(dllexport) TInt ParentWindowGroupID() const;
- __declspec(dllexport) void SetDebugMemFailL(TInt aDebugMemFail);
- __declspec(dllexport) TInt DebugMemFail() const;
- __declspec(dllexport) void SetAppStartupInstrumentationEventIdBaseL(TInt aEventIdBase);
- __declspec(dllexport) TInt AppStartupInstrumentationEventIdBase() const;
- __declspec(dllexport) static TInt EnvironmentSlotForPublicUse(TInt aIndex);
- private:
- struct SOption
- {
- const TDesC* iToken;
- TInt* iResult;
- TRadix iRadix;
- HBufC8* iHBufC8Result;
- };
- private:
- CApaCommandLine();
- void SetServerDifferentiatorL(TUint aServerDifferentiator);
- void ExternalizeL(RWriteStream& aStream) const;
- void InternalizeL(RReadStream& aStream);
- HBufC8* StreamableAttributesLC() const;
- void GetCommandLineFromProcessEnvironmentL();
- TInt Parse(const TDesC& aCmdLine);
- TPtrC StripQuotes(const TDesC& aDes) const;
- #line 153
- private:
- enum
- {
- EEnvironmentSlotUnused=0,
- EEnvironmentSlotMain=1,
- EEnvironmentSlotFsSession=2,
- EEnvironmentSlotFile=3,
- EFirstEnvironmentSlotForPublicUse=8,
- ENumberOfEnvironmentSlotsForPublicUse=4
- };
- enum
- {
- EIpcSlotMain=0,
- EIpcSlotFsSession=1,
- EIpcSlotFile=2
- };
- public:
- enum
- {
- EIpcFirstFreeSlot=3
- };
- private:
- HBufC* iDocumentName;
- HBufC* iExecutableName;
- HBufC8* iOpaqueData;
- HBufC8* iTailEnd;
- TApaCommand iCommand;
- TUint iServerDifferentiator;
- TInt iDefaultScreenNumber;
- TInt iParentWindowGroupID;
- TInt iDebugMemFail;
- TInt iAppStartupInstrumentationEventIdBase;
- RFile iFile;
- TProcessId iParentProcessId;
- };
- #line 15 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikenv.h" /* stack depth 2 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\baerrhan.h" /* stack depth 3 */
- #line 31
- const TInt KUidBaflErrorHandlerValue8=0x10000257;
- const TUid KUidBaflErrorHandler8={KUidBaflErrorHandlerValue8};
- const TInt KUidBaflErrorHandlerValue16=0x10003A13;
- const TUid KUidBaflErrorHandler16={KUidBaflErrorHandlerValue16};
- enum TErrorHandlerResponse
- {
- EErrorNotHandled,
- ENoDisplay,
- EAlertDisplay,
- EInfoDisplay
- };
- class CBaErrorHandler : public CBase
- {
- public:
- virtual TErrorHandlerResponse HandleError(TDes& aErrorText,TDes& aContextText)=0;
- inline static TErrorHandlerResponse CallBack(TInt aErrorNumber,TDes& aErrorText,TDes& aContextText);
- };
- inline TErrorHandlerResponse CBaErrorHandler::CallBack(TInt aErrorNumber,TDes& aErrorText,TDes& aContextText)
- {
- return((CBaErrorHandler*)(aErrorNumber))->HandleError(aErrorText,aContextText);
- }
- #line 17 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikenv.h" /* stack depth 2 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\gulcolor.h" /* stack depth 3 */
- #line 33
- enum TLogicalColor
- {
- EColorWindowBackground,
- EColorWindowText,
- EColorControlBackground,
- EColorControlText,
- EColorControlSurroundBackground,
- EColorControlSurroundText,
- EColorControlHighlightBackground,
- EColorControlHighlightText,
- EColorControlDimmedBackground,
- EColorControlDimmedText,
- EColorControlDimmedHighlightBackground,
- EColorControlDimmedHighlightText,
- EColorDialogBackground,
- EColorDialogText,
- EColorDialogTitle,
- EColorDialogTitlePressed,
- EColorDialogTitleText,
- EColorDialogTitleTextPressed,
- EColorMenubarBackground,
- EColorMenubarText,
- EColorMenubarTitleBackground,
- EColorMenubarTitleText,
- EColorMenuPaneBackground,
- EColorMenuPaneText,
- EColorMenuPaneHighlight,
- EColorMenuPaneTextHighlight,
- EColorMenuPaneDimmedHighlight,
- EColorMenuPaneDimmedText,
- EColorMenuPaneDimmedTextHighlight,
- EColorButtonFaceClear,
- EColorButtonFaceSet,
- EColorButtonFaceSetPressed,
- EColorButtonFaceClearPressed,
- EColorButtonText,
- EColorButtonTextPressed,
- EColorButtonTextDimmed,
- EColorMsgWinForeground,
- EColorMsgWinBackground,
- EColorScrollBarBorder,
- EColorScrollBarShaft,
- EColorScrollBarShaftDimmed,
- EColorScrollBarShaftPressed,
- EColorScrollBarNoShaftOrThumb,
- EColorScrollButtonIcon,
- EColorScrollButtonIconPressed,
- EColorScrollButtonIconDimmed,
- EColorScrollButtonThumbBackground,
- EColorScrollButtonThumbBackgroundPressed,
- EColorScrollThumbDimmed,
- EColorScrollThumbEdge,
- EColorToolbarBackground,
- EColorToolbarText,
- EColorStatusPaneBackground,
- EColorStatusPaneText,
- EColorLabelText,
- EColorLabelTextEmphasis,
- EColorLabelDimmedText,
- EColorLabelHighlightPartialEmphasis,
- EColorLabelHighlightFullEmphasis,
- EColorNumberOfLogicalColors
- };
- class RReadStream;
- class RWriteStream;
- class CColorArray;
- class CColorList : public CBase
- #line 184
- {
- public:
- __declspec(dllexport) static CColorList* NewL(CArrayFix<TRgb> * aColors);
- __declspec(dllexport) ~CColorList();
- __declspec(dllexport) TRgb Color(TLogicalColor aColor) const;
- __declspec(dllexport) TInt Count() const;
- __declspec(dllexport) TRgb Color(TUid aApp,TInt aColor) const;
- __declspec(dllexport) CColorArray* ColorArray(TUid aApp) const;
- __declspec(dllexport) TBool ContainsColorArray(TUid aApp) const;
- __declspec(dllexport) void SetColor(TLogicalColor aLogicalColor,TRgb aColor);
- __declspec(dllexport) void AddColorArrayL(TUid aApp,CColorArray* aArray);
- __declspec(dllexport) void DeleteColorArray(TUid aApp);
- public:
- __declspec(dllexport) static CColorList* NewLC();
- __declspec(dllexport) void InternalizeL(RReadStream& aStream);
- __declspec(dllexport) void ExternalizeL(RWriteStream& aStream) const;
- __declspec(dllexport) void MergeL(const CColorList& aList);
- private:
- CColorList(CArrayFix<TRgb> * aColors);
- TInt Find(TUid aApp) const;
- private:
- class TAppColorList
- {
- public:
- inline TAppColorList(TUid aApp,CColorArray* aColorArray);
- public:
- TUid iApp;
- CColorArray* iColorArray;
- };
- private:
- CArrayFix<TRgb> * iEikColors;
- CArrayFix<TAppColorList> * iAppColors;
- };
- class CColorArray : public CBase
- {
- public:
- __declspec(dllexport) static CColorArray* NewL();
- __declspec(dllexport) static CColorArray* NewLC();
- __declspec(dllexport) ~CColorArray();
- __declspec(dllexport) TRgb Color(TInt aLogicalColor) const;
- __declspec(dllexport) void SetColor(TInt aLogicalColor,TRgb aColor);
- __declspec(dllexport) TBool Contains(TInt aLogicalColor) const;
- __declspec(dllexport) TInt Count() const;
- __declspec(dllexport) void Reset();
- __declspec(dllexport) void AddL(TInt aLogicalColor,TRgb aColor);
- __declspec(dllexport) void Remove(TInt aLogicalColor);
- public:
- static CColorArray* NewLC(const CColorArray& aArray);
- public:
- void InternalizeL(RReadStream& aStream);
- void ExternalizeL(RWriteStream& aStream) const;
- private:
- CColorArray();
- void ConstructL();
- TInt Find(TInt aLogicalColor) const;
- private:
- class TColor
- {
- public:
- inline TColor();
- inline TColor(TRgb aColor,TInt aLogicalColor);
- public:
- void InternalizeL(RReadStream& aStream);
- void ExternalizeL(RWriteStream& aStream) const;
- public:
- TRgb iColor;
- TInt iLogicalColor;
- };
- CArrayFixFlat<TColor> iColors;
- };
- #line 18 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikenv.h" /* stack depth 2 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikdgfty.h" /* stack depth 3 */
- #line 13
- class MEikFindAndReplaceDlgObserver;
- class CCoeControl;
- class CEikEmbeddableAppList;
- class CGraphicsDevice;
- class CApaDoor;
- class CApaDocument;
- class TCharFormat;
- class TCharFormatMask;
- class TRgb;
- class CEikGlobalTextEditor;
- struct SEdwinFindModel;
- class CParaFormat;
- class TParaFormatMask;
- class CPrintSetup;
- class MEikCDlgDialogFactory
- {
- public:
- virtual TBool RunCharMapDlgLD(CCoeControl* aControl) = 0;
- virtual TBool RunFontDlgLD( TCharFormat& aFormat,
- TCharFormatMask& aAttribChangedMask,
- TCharFormatMask& aUndeterminedMask,
- TDesC& aTextSelection,
- TInt aFonts,
- CGraphicsDevice* aGraphicsDevice,
- TInt aFontControlFlags,
- const TRgb aBackGroundColor) = 0;
- virtual TBool RunInsertObjectDlgLD( CEikEmbeddableAppList* aList,
- TInt& aChoice) = 0;
- virtual TBool RunObjectInfoDlgLD(const TDesC& aCaption) = 0;
- virtual TBool RunFormatObjectDlgLD( CApaDoor& aDoor,
- CApaDocument& aDoc,
- const TSize& aDefaultIconSize) = 0;
- virtual TBool RunEdwinFindDlgLD(SEdwinFindModel* aModel,
- CDesCArray* aFindList) = 0;
- virtual TBool RunEdwinReplaceDlgLD( SEdwinFindModel* aModel,
- CDesCArray* aFindList,
- CDesCArray* aReplaceList) = 0;
- virtual void RunEdwinFindAndReplaceDlgLD(MEikFindAndReplaceDlgObserver& aObserver,
- SEdwinFindModel& aModel, TBool aFindOnly, TRect aEdwinRect)=0;
- virtual TBool RunEdwinReplaceOptionDlgLD( CEikGlobalTextEditor* aEdwin,
- SEdwinFindModel* aModel) = 0;
- virtual TBool RunAlignDlgLD( CParaFormat* aFormat,
- TParaFormatMask& aAttribChangedMask,
- TParaFormatMask& aUndeterminedMask) = 0;
- virtual TBool RunBorderDlgLD( CParaFormat* aFormat,
- TParaFormatMask& aAttribChangedMask,
- TParaFormatMask& aUndeterminedMask) = 0;
- virtual TBool RunSpaceDlgLD( CParaFormat* aFormat,
- TParaFormatMask& aAttribChangedMask,
- TParaFormatMask& aUndeterminedMask) = 0;
- virtual TBool RunTabsDlgLD( CParaFormat* aFormat,
- TParaFormatMask& aAttribChangedMask,
- TParaFormatMask& aUndeterminedMask,
- const TInt aPageWidth) = 0;
- virtual TBool RunIndentDlgLD( CParaFormat* aFormat,
- TParaFormatMask& aAttribChangedMask,
- TParaFormatMask& aUndeterminedMask,
- const TInt aPageWidth) = 0;
- protected:
- __declspec(dllexport) MEikCDlgDialogFactory();
- private:
- __declspec(dllexport) virtual void MEikCDlgDialogFactory_Reserved1();
- __declspec(dllexport) virtual void MEikCDlgDialogFactory_Reserved2();
- private:
- TInt iMEikCDlgDialogFactory;
- };
- class MEikPrintDialogFactory
- {
- public:
- virtual TBool RunPaginateDlgLD( CEikGlobalTextEditor* aEditor,
- CPrintSetup* aPrintSetup,
- CArrayFix<TInt> * aCharsPerPage) = 0;
- virtual CPrintSetup* NewDefaultPrintSetupL() = 0;
- protected:
- __declspec(dllexport) MEikPrintDialogFactory();
- private:
- __declspec(dllexport) virtual void MEikPrintDialogFactory_Reserved1();
- __declspec(dllexport) virtual void MEikPrintDialogFactory_Reserved2();
- private:
- TInt iMEikPrintDialogFactory;
- };
- class MEikFileDialogFactory
- {
- public:
- virtual TBool RunFileSaveAsDlgLD( TDes* aFileName,
- TBool* aUseNewFile,
- TInt aTitleId,
- TBool aAppendExtension) = 0;
- virtual TBool RunScreenCaptureDlgLD(TDes* aFileName,
- TBool& aSaveAsMonochromeImage,
- TInt aTitleId) = 0;
- protected:
- __declspec(dllexport) MEikFileDialogFactory();
- private:
- __declspec(dllexport) virtual void MEikFileDialogFactory_Reserved1();
- __declspec(dllexport) virtual void MEikFileDialogFactory_Reserved2();
- private:
- TInt iMEikFileDialogFactory;
- };
- #line 19 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikenv.h" /* stack depth 2 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikaufty.h" /* stack depth 3 */
- #line 17
- class CEikHotKeyTable;
- class CEikMenuBar;
- class CEikMenuPane;
- class CEikCommandButton;
- class CEikToolBar;
- class CEikButtonGroupContainer;
- class CEikAppUi;
- class CEikonEnv;
- class CEikStatusPane;
- class MEikAppUiFactory
- : public MObjectProvider
- {
- public:
- virtual void CreateResourceIndependentFurnitureL(CEikAppUi* aAppUi) =0;
- virtual TRect ClientRect() = 0;
- virtual void ReadAppInfoResourceL(TInt aResourceFileOffset,CEikAppUi* aAppUi) = 0;
- virtual void LaunchPopupMenuL(
- TInt aResourceId,
- const TPoint& aTargetPos,
- TPopupTargetPosType aTargetType,
- const CEikHotKeyTable* aHotKeyTable,
- CEikAppUi* aAppUi) = 0;
- virtual void DoLaunchPopupL(TInt aResourceId,const TPoint& aTargetPos, const CEikHotKeyTable* aHotKeyTable,
- TPopupTargetPosType aTargetType,CEikAppUi* aAppUi) = 0;
- virtual void ClosePopup(CEikAppUi* aAppUi) = 0;
- virtual void StopDisplayingMenuBar() = 0;
- virtual void HandleSideBarMenuL(TInt aResourceId,const TPoint& aPos,
- const CEikHotKeyTable* aHotKeyTable,CEikAppUi* aAppUi) = 0;
- virtual void CreateHotKeyControlL(TInt aResourceId, CEikAppUi* aAppUi) = 0;
- virtual CEikMenuBar* MenuBar() const = 0;
- virtual CEikMenuBar* SwapMenuBar(CEikMenuBar* aMenu) = 0;
- virtual CEikMenuPane* Popup() const = 0;
- virtual CEikButtonGroupContainer* ToolBar() const = 0;
- virtual CEikButtonGroupContainer* SwapButtonGroup(CEikButtonGroupContainer* aNewGroup) = 0;
- virtual CEikToolBar* ToolBand() const = 0;
- virtual CEikToolBar* TitleBand() const = 0;
- virtual CEikStatusPane* StatusPane() const = 0;
- virtual CEikButtonGroupContainer* Cba() const = 0;
- inline CEikToolBar* SwapToolBand(CEikToolBar* aToolBand);
- inline CEikToolBar* SwapTitleBand(CEikToolBar* aTitleBand);
- virtual CEikCommandButton* CreateStandardTabButtonL() const = 0;
- virtual void CreateEmbeddedL(CEikonEnv& aEikonEnv) = 0;
- virtual void DestroyEmbedded(CEikonEnv& aEikonEnv) = 0;
- virtual void HandleResourceChangeL(TInt aType) = 0;
- protected:
- enum TToolBarType
- {
- EBand,
- ETitle
- };
- private:
- virtual CEikToolBar* SwapToolBar(CEikToolBar* aToolBar,TToolBarType aType) = 0;
- };
- inline CEikToolBar* MEikAppUiFactory::SwapToolBand(CEikToolBar* aToolBand)
- {return SwapToolBar(aToolBand,EBand);}
- inline CEikToolBar* MEikAppUiFactory::SwapTitleBand(CEikToolBar* aTitleBand)
- {return SwapToolBar(aTitleBand,ETitle);}
- #line 20 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikenv.h" /* stack depth 2 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\eiklibry.h" /* stack depth 3 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikfctry.h" /* stack depth 4 */
- #line 13
- class CCoeControl;
- enum
- {
- EEikControlHasEars=0x01,
- EEikControlIsNonFocusing=0x02,
- EEikControlHasExtraAscent=0x04,
- EEikControlIsNonEditInPlace=0x08
- };
- struct SEikControlInfo
- {
- CCoeControl* iControl;
- TInt iTrailerTextId;
- TInt iFlags;
- };
- class EikControlFactory
- {
- public:
- __declspec(dllexport) static SEikControlInfo CreateByTypeL(TInt aControlType);
- };
- #line 18 "C:\Symbian\9.1\S60_3rd\epoc32\include\eiklibry.h" /* stack depth 3 */
- typedef SEikControlInfo (*TCreateByTypeFunction)(TInt);
- class CEikLibrary : public CBase
- {
- public:
- virtual void InitializeL() = 0;
- virtual CArrayFix<TFileName> * ResourceFileArrayL() const = 0;
- virtual CArrayFix<TCreateByTypeFunction> * ControlFactoryArrayL() const = 0;
- __declspec(dllexport) virtual void PostAppUiInitializeL();
- };
- class CEikLibrary2 : public CEikLibrary
- {
- public:
- __declspec(dllexport) virtual ~CEikLibrary2();
- __declspec(dllexport) static CEikLibrary2* LoadLibraryL(TUid aImplementationUid);
- private:
- TUid iDtrkey;
- };
- #line 21 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikenv.h" /* stack depth 2 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikamnt.h" /* stack depth 3 */
- #line 11
- class CGulIcon;
- class MEikAutoMenuObserver;
- class CEikAutoMenuTitle : public CBase
- #line 25
- {
- public:
- enum TTitlePos
- {
- EStart,
- EEnd
- };
- enum { ENominalTextLength=40 };
- public:
- __declspec(dllexport) static CEikAutoMenuTitle* NewLC(TTitlePos aPos,const TDesC& aText,MEikAutoMenuObserver& aMenuObserver,
- TInt aMenuPaneResourceId=0,CGulIcon* aIcon=0 );
- __declspec(dllexport) ~CEikAutoMenuTitle();
- private:
- CEikAutoMenuTitle(TTitlePos aPos,const TDesC& aText,MEikAutoMenuObserver& aMenuObserver,
- TInt aMenuPaneResourceId,CGulIcon* aIcon);
- public:
- TTitlePos iPos;
- TBuf<ENominalTextLength> iText;
- MEikAutoMenuObserver& iMenuObserver;
- TInt iMenuPaneResourceId;
- CGulIcon* iIcon;
- };
- class CEikAutoMenuTitleArray : public CArrayPtrFlat<CEikAutoMenuTitle>
- #line 67
- {
- public:
- CEikAutoMenuTitleArray();
- ~CEikAutoMenuTitleArray();
- };
- #line 22 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikenv.h" /* stack depth 2 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\lafmain.h" /* stack depth 3 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\frmtlay.h" /* stack depth 4 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\txtfrmat.h" /* stack depth 5 */
- #line 15
- class TTabStop;
- class TParaBorder;
- class TBullet;
- class TParaBorderArray;
- class CParaFormat;
- class TParaFormatMask;
- class TFontPresentation;
- class TCharFormat;
- class TCharFormatMask;
- #line 53
- class TLogicalRgb : public TRgb
- {
- public:
- enum
- {
- ESystemSelectionForegroundIndex = 252,
- ESystemSelectionBackgroundIndex = 253,
- ESystemForegroundIndex = 254,
- ESystemBackgroundIndex = 255
- };
- enum TSystemColor
- {
- ESystemSelectionForegroundColor = ESystemSelectionForegroundIndex << 24,
- ESystemSelectionBackgroundColor = ESystemSelectionBackgroundIndex << 24,
- ESystemForegroundColor = ESystemForegroundIndex << 24,
- ESystemBackgroundColor = (ESystemBackgroundIndex << 24) | 0xFFFFFF
- };
- TLogicalRgb() :
- iValue2(0)
- {
- }
- TLogicalRgb(TUint32 aValue):
- iValue2(aValue & 0xFF000000)
- {
- SetInternal((TUint32)aValue | 0xFF000000);
- }
- TLogicalRgb(TSystemColor aValue) :
- iValue2((TUint32)aValue & 0xFF000000)
- {
- SetInternal((TUint32)aValue | 0xFF000000);
- }
- TLogicalRgb(const TRgb& aRgb) :
- TRgb(aRgb),
- iValue2(0)
- {
- }
- TUint SystemColorIndex() const
- {
- return iValue2 >> 24;
- }
- void SetSystemColorIndex(TUint aIndex)
- {
- iValue2 = aIndex << 24;
- }
- private:
- TUint32 iValue2;
- };
- enum TTextFormatAttribute
- {
- EAttParaLanguage,
- EAttFillColor,
- EAttLeftMargin,
- EAttRightMargin,
- EAttIndent,
- EAttAlignment,
- EAttVerticalAlignment,
- EAttLineSpacing,
- EAttLineSpacingControl,
- EAttSpaceBefore,
- EAttSpaceAfter,
- EAttKeepTogether,
- EAttKeepWithNext,
- EAttStartNewPage,
- EAttWidowOrphan,
- EAttWrap,
- EAttBorderMargin,
- EAttTopBorder,
- EAttBottomBorder,
- EAttLeftBorder,
- EAttRightBorder,
- EAttBullet,
- EAttDefaultTabWidth,
- EAttTabStop,
- EAttCharLanguage,
- EAttColor,
- EAttFontHighlightColor,
- EAttFontHighlightStyle,
- EAttFontHeight,
- EAttFontPosture,
- EAttFontStrokeWeight,
- EAttFontPrintPos,
- EAttFontUnderline,
- EAttFontStrikethrough,
- EAttFontTypeface,
- EAttFontPictureAlignment,
- EAttFontHiddenText,
- ETextFormatAttributeCount
- };
- enum {EVariableLengthValue = 0};
- const TInt KMaxStyleName = 0x20;
- const TInt KMaxParaAttributes = EAttTabStop;
- const TInt KMaxCharAttributes = EAttFontHiddenText - KMaxParaAttributes;
- const TInt KTabNotFound = -1;
- #line 258
- class TTabStop
- {
- public:
- enum TTabType
- {
- ENullTab,
- ELeftTab,
- ECenteredTab,
- ERightTab
- };
- public:
- __declspec(dllexport) TTabStop();
- __declspec(dllexport) TTabStop(const TTabStop& aTabStop);
- __declspec(dllexport) TTabStop& operator=(const TTabStop& aTabStop);
- __declspec(dllexport) TBool operator==(const TTabStop& aTabStop) const;
- inline TBool operator!=(const TTabStop& aTabStop) const;
- public:
- TUint32 iTwipsPosition;
- TTabType iType;
- };
- #line 300
- class TParaBorder
- {
- public:
- enum TLineStyle
- {
- ENullLineStyle,
- ESolid,
- EDouble,
- EDotted,
- EDashed,
- EDotDash,
- EDotDotDash
- };
- __declspec(dllexport) TParaBorder();
- __declspec(dllexport) TBool operator==(const TParaBorder& aParaBorder) const;
- inline TBool operator!=(const TParaBorder& aParaBorder) const;
- public:
- TLineStyle iLineStyle;
- TInt iThickness;
- TLogicalRgb iColor;
- TBool iAutoColor;
- };
- #line 347
- class TParaBorderArray
- {
- public:
- TParaBorder iBorder[4];
- };
- #line 366
- class TBullet
- {
- public:
- __declspec(dllexport) TBullet();
- __declspec(dllexport) TBool operator ==(const TBullet& aBullet) const;
- inline TBool operator !=(const TBullet& aBullet) const;
- enum TStyle
- {
- ENullStyle,
- EBulletStyle,
- EArabicNumberStyle,
- ESmallRomanNumberStyle,
- ECapitalRomanNumberStyle,
- ESmallLetterStyle,
- ECapitalLetterStyle
- };
- enum TAlignment
- {
- ELeftAlign,
- ECenterAlign,
- ERightAlign
- };
- TChar iCharacterCode;
- TUint iHeightInTwips;
- TTypeface iTypeface;
- TBool iHangingIndent;
- TLogicalRgb iColor;
- TStyle iStyle;
- TInt iStartNumber;
- TAlignment iAlignment;
- };
- #line 429
- class CParaFormat: public CBase
- {
- public:
- enum
- {
- EMaxParaBorder = 4
- };
- enum TParaBorderSide
- {
- EParaBorderTop,
- EParaBorderBottom,
- EParaBorderLeft,
- EParaBorderRight
- };
- enum TLineSpacingControl
- {
- ELineSpacingAtLeastInTwips,
- ELineSpacingExactlyInTwips,
- ELineSpacingAtLeastInPixels,
- ELineSpacingExactlyInPixels
- };
- enum TAlignment
- {
- ELeftAlign,
- ETopAlign = ELeftAlign,
- ECenterAlign,
- ERightAlign,
- EBottomAlign = ERightAlign,
- EJustifiedAlign,
- EUnspecifiedAlign,
- ECustomAlign,
- EAbsoluteLeftAlign,
- EAbsoluteRightAlign
- };
- enum TParaFormatGetMode
- {
- EAllAttributes,
- EFixedAttributes
- };
- __declspec(dllexport) static CParaFormat* NewL();
- __declspec(dllexport) static CParaFormat* NewLC();
- __declspec(dllexport) static CParaFormat* NewL(const CParaFormat& aFormat);
- __declspec(dllexport) CParaFormat();
- __declspec(dllexport) ~CParaFormat();
- __declspec(dllexport) void ResetNonDestructive();
- __declspec(dllexport) void Reset();
- __declspec(dllexport) void CopyL(const CParaFormat& aFormat, const TParaFormatMask& aMask);
- __declspec(dllexport) void CopyL(const CParaFormat& aFormat);
- __declspec(dllexport) void Strip();
- __declspec(dllexport) TBool IsEqual(const CParaFormat& aFormat, const TParaFormatMask& aMask) const;
- __declspec(dllexport) TBool IsEqual(const CParaFormat& aFormat) const;
- __declspec(dllexport) void StoreTabL(const TTabStop& aTabStop);
- __declspec(dllexport) void RemoveTab(TInt aTabTwipsPosition);
- inline void RemoveAllTabs();
- __declspec(dllexport) const TTabStop TabStop(TInt aTabIndex) const;
- inline TInt TabCount() const;
- __declspec(dllexport) TInt LocateTab(TInt aTabTwipsPosition) const;
- __declspec(dllexport) void SetParaBorderL(TParaBorderSide aSide, const TParaBorder& aBorder);
- __declspec(dllexport) void RemoveAllBorders();
- __declspec(dllexport) const TParaBorder ParaBorder(TParaBorderSide aSide) const;
- inline TBool BordersPresent() const { return iParaBorderArray != 0 ;}
- inline TParaBorder* ParaBorderPtr(TParaBorderSide aSide)
- { return iParaBorderArray ? &iParaBorderArray->iBorder[aSide] : 0 ; }
- __declspec(dllexport) TBool AllBordersEqual(const CParaFormat& aFormat) const;
- __declspec(dllexport) TBool IsBorderEqual(TParaBorderSide aSide, const CParaFormat& aFormat) const;
- private:
- CParaFormat(const CParaFormat& aFormat);
- void CreateTabListL();
- enum
- {
- ETabStoreGranularity = 2
- };
- CParaFormat& operator=(const CParaFormat& aParaFormat);
- private:
- CArrayFixFlat<TTabStop> * iTabList;
- TParaBorderArray* iParaBorderArray;
- public:
- TLogicalRgb iFillColor;
- TInt32 iLanguage;
- TInt32 iLeftMarginInTwips;
- TInt32 iRightMarginInTwips;
- TInt32 iIndentInTwips;
- TAlignment iHorizontalAlignment;
- TAlignment iVerticalAlignment;
- TInt32 iLineSpacingInTwips;
- TLineSpacingControl iLineSpacingControl;
- TInt32 iSpaceBeforeInTwips;
- TInt32 iSpaceAfterInTwips;
- TBool iKeepTogether;
- TBool iKeepWithNext;
- TBool iStartNewPage;
- TBool iWidowOrphan;
- TBool iWrap;
- TInt32 iBorderMarginInTwips;
- TBullet* iBullet;
- TUint32 iDefaultTabWidthInTwips;
- };
- #line 632
- class TParaFormatMask
- {
- public:
- inline TParaFormatMask();
- inline void SetAttrib(TTextFormatAttribute aAttribute);
- inline void ClearAttrib(TTextFormatAttribute aAttribute);
- __declspec(dllexport) void SetAll();
- __declspec(dllexport) void ClearAll();
- inline TBool AttribIsSet(TTextFormatAttribute aAttribute) const;
- inline TBool IsNull() const;
- __declspec(dllexport) TBool operator==(const TParaFormatMask& aMask) const;
- inline TBool operator!=(const TParaFormatMask& aMask) const;
- private:
- TUint32 iGuard;
- };
- #line 658
- class TFontPresentation
- {
- public:
- enum TFontHighlightStyle
- {
- EFontHighlightNone,
- EFontHighlightNormal,
- EFontHighlightRounded,
- EFontHighlightShadow,
- EFontHighlightNoMatchesIndicator,
- EFontHighlightFirstCustomStyle = 128,
- EFontHighlightLastCustomStyle = 255
- };
- enum TAlignment
- {
- EAlignTop,
- EAlignBottom,
- EAlignCentered,
- EAlignBaseLine
- };
- __declspec(dllexport) TFontPresentation();
- __declspec(dllexport) TBool IsEqual(const TFontPresentation& aFontPresentation, const TCharFormatMask& aMask) const;
- public:
- TLogicalRgb iTextColor;
- TLogicalRgb iHighlightColor;
- TFontHighlightStyle iHighlightStyle;
- TFontStrikethrough iStrikethrough;
- TFontUnderline iUnderline;
- TBool iHiddenText;
- TAlignment iPictureAlignment;
- };
- #line 743
- class TCharFormat
- {
- public:
- __declspec(dllexport) TCharFormat();
- __declspec(dllexport) TCharFormat(const TDesC &aTypefaceName, TInt aHeight);
- __declspec(dllexport) TBool IsEqual(const TCharFormat& aFormat, const TCharFormatMask& aMask) const;
- __declspec(dllexport) TBool IsEqual(const TCharFormat& aFormat) const;
- public:
- TInt32 iLanguage;
- TFontPresentation iFontPresentation;
- TFontSpec iFontSpec;
- };
- #line 779
- class TCharFormatMask
- {
- public:
- inline TCharFormatMask();
- inline void SetAttrib(TTextFormatAttribute aAttribute);
- inline void ClearAttrib(TTextFormatAttribute aAttribute);
- inline TBool AttribIsSet(TTextFormatAttribute aAttribute) const;
- __declspec(dllexport) void SetAll();
- __declspec(dllexport) void ClearAll();
- inline TBool IsNull()const;
- __declspec(dllexport) TBool operator==(const TCharFormatMask& aMask) const;
- inline TBool operator!=(const TCharFormatMask& aMask) const;
- private:
- TUint32 iGuard;
- };
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\txtfrmat.inl" /* stack depth 6 */
- TBool TTabStop::operator!=(const TTabStop& aTabStop)const
- {return !(*this==aTabStop);}
- TBool TParaBorder::operator!=(const TParaBorder& aParaBorder)const
- {return !(*this==aParaBorder);}
- TBool TBullet::operator!=(const TBullet& aBullet)const
- {return !(*this==aBullet);}
- void CParaFormat::RemoveAllTabs()
- {
- if (iTabList)
- {
- delete iTabList;
- iTabList = 0 ;
- }
- }
- TInt CParaFormat::TabCount()const
- {return (iTabList)?iTabList->Count():0;}
- TParaFormatMask::TParaFormatMask()
- :iGuard(0)
- {}
- void TParaFormatMask::SetAttrib(TTextFormatAttribute aAttribute)
- {iGuard|=(1<<aAttribute);}
- void TParaFormatMask::ClearAttrib(TTextFormatAttribute aAttribute)
- {iGuard&=~(1<<aAttribute);}
- TBool TParaFormatMask::AttribIsSet(TTextFormatAttribute aAttribute)const
- {return (iGuard&(1<<aAttribute));}
- TBool TParaFormatMask::IsNull()const
- {return !iGuard;}
- TBool TParaFormatMask::operator!=(const TParaFormatMask& aMask)const
- {return !(*this==aMask);}
- TCharFormatMask::TCharFormatMask()
- :iGuard(0)
- {}
- void TCharFormatMask::SetAttrib(TTextFormatAttribute aAttribute)
- {iGuard|=(1<<((aAttribute-KMaxParaAttributes)-1));}
- void TCharFormatMask::ClearAttrib(TTextFormatAttribute aAttribute)
- {iGuard&=~(1<<((aAttribute-KMaxParaAttributes)-1));}
- TBool TCharFormatMask::AttribIsSet(TTextFormatAttribute aAttribute)const
- {return iGuard&(1<<((aAttribute-KMaxParaAttributes)-1));}
- TBool TCharFormatMask::IsNull()const
- {return !iGuard;}
- TBool TCharFormatMask::operator!=(const TCharFormatMask& aMask)const
- {return !(*this==aMask);}
- #line 796 "C:\Symbian\9.1\S60_3rd\epoc32\include\txtfrmat.h" /* stack depth 5 */
- #line 12 "C:\Symbian\9.1\S60_3rd\epoc32\include\frmtlay.h" /* stack depth 4 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\txtetext.h" /* stack depth 5 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\fldset.h" /* stack depth 6 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\fldinfo.h" /* stack depth 7 */
- #line 13
- class TFindFieldInfo
- #line 23
- {
- public:
- __declspec(dllexport) TBool operator==(const TFindFieldInfo& aInfo)const;
- __declspec(dllexport) TBool operator!=(const TFindFieldInfo& aInfo)const;
- public:
- TInt iFieldCountInRange;
- TInt iFirstFieldPos;
- TInt iFirstFieldLen;
- };
- #line 11 "C:\Symbian\9.1\S60_3rd\epoc32\include\fldset.h" /* stack depth 6 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\fldbase.h" /* stack depth 7 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\s32stor.h" /* stack depth 8 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\s32share.h" /* stack depth 9 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\s32buf.h" /* stack depth 10 */
- #line 17
- enum TStreamLocation
- {EStreamBeginning,
- EStreamMark,
- EStreamEnd};
- #line 46
- 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);
- #line 98
- class TStreamTransfer
- {
- public:
- enum TUnlimited {EUnlimited};
- public:
- #line 115
- 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:
- __declspec(dllexport) static void __DbgChkNonNegative(TInt aLength);
- };
- inline TBool operator==(TInt aLength,TStreamTransfer aTransfer);
- inline TBool operator<(TInt aLength,TStreamTransfer aTransfer);
- #line 146
- class MStreamInput;
- class MStreamOutput;
- #line 184
- class MStreamBuf
- {
- public:
- enum TRead {ERead=0x01};
- enum TWrite {EWrite=0x02};
- #line 208
- typedef TInt TMark;
- public:
- __declspec(dllexport) void Close();
- inline void Release();
- __declspec(dllexport) TInt Synch();
- inline void SynchL();
- __declspec(dllexport) void PushL();
- inline TInt ReadL(TAny* aPtr,TInt aMaxLength);
- __declspec(dllexport) TInt Read(TDes8& aDes,TRequestStatus& aStatus);
- __declspec(dllexport) TInt Read(TDes8& aDes,TInt aMaxLength,TRequestStatus& aStatus);
- __declspec(dllexport) TInt ReadL(TDes8& aDes,TRequestStatus& aStatus);
- inline TInt ReadL(TDes8& aDes,TInt aMaxLength,TRequestStatus& aStatus);
- inline TStreamTransfer ReadL(MStreamInput& anInput,TStreamTransfer aTransfer);
- __declspec(dllexport) TInt ReadL(MStreamInput& anInput,TInt aMaxLength);
- inline void ReadL(MStreamInput& anInput);
- inline void WriteL(const TAny* aPtr,TInt aLength);
- __declspec(dllexport) TInt Write(const TDesC8& aDes,TRequestStatus& aStatus);
- __declspec(dllexport) TInt Write(const TDesC8& aDes,TInt aMaxLength,TRequestStatus& aStatus);
- __declspec(dllexport) TInt WriteL(const TDesC8& aDes,TRequestStatus& aStatus);
- inline TInt WriteL(const TDesC8& aDes,TInt aMaxLength,TRequestStatus& aStatus);
- inline TStreamTransfer WriteL(MStreamOutput& anOutput,TStreamTransfer aTransfer);
- __declspec(dllexport) 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 __declspec(dllexport) void DoRelease();
- virtual __declspec(dllexport) void DoSynchL();
- virtual __declspec(dllexport) TInt DoReadL(TAny* aPtr,TInt aMaxLength);
- virtual __declspec(dllexport) TInt DoReadL(TDes8& aDes,TInt aMaxLength,TRequestStatus& aStatus);
- virtual __declspec(dllexport) TStreamTransfer DoReadL(MStreamInput& anInput,TStreamTransfer aTransfer);
- virtual __declspec(dllexport) void DoWriteL(const TAny* aPtr,TInt aLength);
- virtual __declspec(dllexport) TInt DoWriteL(const TDesC8& aDes,TInt aMaxLength,TRequestStatus& aStatus);
- virtual __declspec(dllexport) TStreamTransfer DoWriteL(MStreamOutput& anOutput,TStreamTransfer aTransfer);
- virtual __declspec(dllexport) TStreamPos DoSeekL(TMark aMark,TStreamLocation aLocation,TInt anOffset);
- };
- #line 276
- class MStreamInput
- {
- public:
- #line 291
- virtual TInt PushL(const TAny* aPtr,TInt aMaxLength)=0;
- #line 306
- virtual TStreamTransfer ReadFromL(MStreamBuf& aSource,TStreamTransfer aTransfer)=0;
- };
- #line 323
- class MStreamOutput
- {
- public:
- #line 338
- virtual TInt PullL(TAny* aPtr,TInt aMaxLength)=0;
- #line 353
- virtual TStreamTransfer WriteToL(MStreamBuf& aSink,TStreamTransfer aTransfer)=0;
- };
- #line 375
- class TStreamBuf : public MStreamBuf
- {
- protected:
- #line 391
- typedef TInt TArea;
- protected:
- __declspec(dllexport) TStreamBuf();
- __declspec(dllexport) void SetBuf(TArea anArea,TUint8* aPtr,TUint8* anEnd);
- __declspec(dllexport) void SetPtr(TArea anArea,TUint8* aPtr);
- __declspec(dllexport) void SetEnd(TArea anArea,TUint8* anEnd);
- __declspec(dllexport) TUint8* Ptr(TArea anArea) const;
- __declspec(dllexport) TUint8* End(TArea anArea) const;
- __declspec(dllexport) TInt Avail(TArea anArea) const;
- __declspec(dllexport) TInt DoReadL(TAny* aPtr,TInt aMaxLength);
- __declspec(dllexport) TStreamTransfer DoReadL(MStreamInput& anInput,TStreamTransfer aTransfer);
- __declspec(dllexport) void DoWriteL(const TAny* aPtr,TInt aLength);
- __declspec(dllexport) 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:
- #line 429
- virtual TInt UnderflowL(TInt aMaxLength)=0;
- virtual void OverflowL()=0;
- private:
- TUint8* iRPtr;
- TUint8* iREnd;
- TUint8* iWPtr;
- TUint8* iWEnd;
- };
- #line 454
- class TStreamFilter : public MStreamBuf
- {
- public:
- enum {EAttached=0x10};
- protected:
- __declspec(dllexport) TStreamFilter();
- inline void Set(MStreamBuf* aHost,TInt aMode);
- inline void Committed();
- inline TBool IsCommitted() const;
- __declspec(dllexport) void EmitL(const TAny* aPtr,TInt aLength);
- __declspec(dllexport) void DoRelease();
- __declspec(dllexport) void DoSynchL();
- __declspec(dllexport) TInt DoReadL(TAny* aPtr,TInt aMaxLength);
- __declspec(dllexport) void DoWriteL(const TAny* aPtr,TInt aLength);
- private:
- virtual TInt Capacity(TInt aMaxLength)=0;
- #line 488
- 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:
- __declspec(dllexport) static void __DbgChkMode(TInt aMode);
- };
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\s32buf.inl" /* stack depth 11 */
- inline 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)
- {
- __DbgChkNonNegative(aMaxLength);
- }
- inline TStreamTransfer::TStreamTransfer(TUnlimited)
- : iVal(-1)
- #line 124
- {}
- inline TBool TStreamTransfer::operator==(TInt aLength) const
- {
- __DbgChkNonNegative(aLength);
- return iVal==aLength;
- }
- inline TBool TStreamTransfer::operator>(TInt aLength) const
- {
- __DbgChkNonNegative(aLength);
- return TUint(iVal)>TUint(aLength);
- }
- inline TStreamTransfer TStreamTransfer::operator-(TInt aLength) const
- #line 161
- {
- __DbgChkNonNegative(aLength);
- 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)
- #line 184
- {
- __DbgChkNonNegative(aLength);
- if (iVal>=0)
- {
- iVal-=aLength;
- __DbgChkNonNegative(iVal);
- }
- return *this;
- }
- inline TInt TStreamTransfer::Left() const
- {
- __DbgChkNonNegative(iVal);
- 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()
- #line 223
- {DoRelease();}
- inline void MStreamBuf::SynchL()
- {DoSynchL();}
- inline TInt MStreamBuf::ReadL(TAny* aPtr,TInt aMaxLength)
- #line 244
- {return DoReadL(aPtr,aMaxLength);}
- inline TInt MStreamBuf::ReadL(TDes8& aDes,TInt aMaxLength,TRequestStatus& aStatus)
- #line 261
- {return DoReadL(aDes,aMaxLength,aStatus);}
- inline TStreamTransfer MStreamBuf::ReadL(MStreamInput& anInput,TStreamTransfer aTransfer)
- #line 271
- {return DoReadL(anInput,aTransfer);}
- inline void MStreamBuf::ReadL(MStreamInput& anInput)
- #line 281
- {DoReadL(anInput,TStreamTransfer(TStreamTransfer::EUnlimited) );}
- inline void MStreamBuf::WriteL(const TAny* aPtr,TInt aLength)
- #line 292
- {DoWriteL(aPtr,aLength);}
- inline TInt MStreamBuf::WriteL(const TDesC8& aDes,TInt aMaxLength,TRequestStatus& aStatus)
- #line 310
- {return DoWriteL(aDes,aMaxLength,aStatus);}
- inline TStreamTransfer MStreamBuf::WriteL(MStreamOutput& anOutput,TStreamTransfer aTransfer)
- #line 321
- {return DoWriteL(anOutput,aTransfer);}
- inline void MStreamBuf::WriteL(MStreamOutput& anOutput)
- #line 332
- {DoWriteL(anOutput,TStreamTransfer(TStreamTransfer::EUnlimited) );}
- inline void MStreamBuf::SeekL(TMark aMark,TStreamPos aPos)
- #line 346
- {DoSeekL(aMark,EStreamBeginning,aPos.Offset());}
- inline TStreamPos MStreamBuf::SeekL(TMark aMark,TStreamLocation aLocation,TInt anOffset)
- #line 372
- {return DoSeekL(aMark,aLocation,anOffset);}
- inline TStreamPos MStreamBuf::SeekL(TRead,TStreamLocation aLocation,TInt anOffset)
- #line 394
- {return DoSeekL(ERead,aLocation,anOffset);}
- inline TStreamPos MStreamBuf::SeekL(TWrite,TStreamLocation aLocation,TInt anOffset)
- #line 416
- {return DoSeekL(EWrite,aLocation,anOffset);}
- inline TStreamPos MStreamBuf::SeekL(TRead,TInt anOffset)
- #line 429
- {return DoSeekL(ERead,EStreamMark,anOffset);}
- inline TStreamPos MStreamBuf::SeekL(TWrite,TInt anOffset)
- #line 442
- {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(EWrite,EStreamMark,0);}
- inline TInt MStreamBuf::SizeL() const
- {return (const_cast<MStreamBuf*>(this)) ->DoSeekL(0,EStreamEnd,0).Offset();}
- inline void TStreamBuf::SetBuf(TRead,TUint8* aPtr,TUint8* anEnd)
- #line 478
- {iRPtr=aPtr;iREnd=anEnd;}
- inline void TStreamBuf::SetBuf(TWrite,TUint8* aPtr,TUint8* anEnd)
- #line 489
- {iWPtr=aPtr;iWEnd=anEnd;}
- inline void TStreamBuf::SetPtr(TRead,TUint8* aPtr)
- {iRPtr=aPtr;}
- inline void TStreamBuf::SetPtr(TWrite,TUint8* aPtr)
- {iWPtr=aPtr;}
- inline void TStreamBuf::SetEnd(TRead,TUint8* anEnd)
- {iREnd=anEnd;}
- inline void TStreamBuf::SetEnd(TWrite,TUint8* anEnd)
- {iWEnd=anEnd;}
- inline TUint8* TStreamBuf::Ptr(TRead) const
- {return iRPtr;}
- inline TUint8* TStreamBuf::Ptr(TWrite) const
- {return iWPtr;}
- inline TUint8* TStreamBuf::End(TRead) const
- {return iREnd;}
- inline TUint8* TStreamBuf::End(TWrite) const
- {return iWEnd;}
- inline TInt TStreamBuf::Avail(TRead) const
- {return iREnd-iRPtr;}
- inline TInt TStreamBuf::Avail(TWrite) const
- {return iWEnd-iWPtr;}
- inline void TStreamFilter::Set(MStreamBuf* aHost,TInt aMode)
- #line 577
- {
- __DbgChkMode(aMode);
- iHost=aHost;iMode=aMode;
- }
- inline void TStreamFilter::Committed()
- {iMode&=~EWrite;}
- inline TBool TStreamFilter::IsCommitted() const
- {return iHost==0 ||!(iMode&EWrite);}
- #line 499 "C:\Symbian\9.1\S60_3rd\epoc32\include\s32buf.h" /* stack depth 10 */
- #line 8 "C:\Symbian\9.1\S60_3rd\epoc32\include\s32share.h" /* stack depth 9 */
- class TStreamExchange;
- #line 29
- class TStreamMark
- {
- public:
- inline TStreamMark();
- inline TStreamMark(TStreamPos aPos);
- inline TStreamMark& operator=(TStreamPos aPos);
- inline operator TStreamMark*();
- inline operator const TStreamMark*() const;
- inline TBool operator==(const TStreamMark& aMark) const;
- inline TBool operator==(const TStreamMark* aPtr) const;
- inline TBool operator!=(const TStreamMark& aMark) const;
- inline TBool operator!=(const TStreamMark* aPtr) const;
- inline TBool IsEmpty() const;
- inline void Clear();
- inline TStreamPos Position() const;
- inline TBool IsWith(TStreamExchange& aHost) const;
- inline TBool RelatesTo(TStreamExchange& aHost) const;
- inline void Withdraw(TStreamExchange& aHost);
- inline void ExtractL(TStreamExchange& aHost);
- inline TInt ReadL(TStreamExchange& aHost,TAny* aPtr,TInt aMaxLength);
- __declspec(dllexport) TInt ReadL(TStreamExchange& aHost,TDes8& aDes,TRequestStatus& aStatus);
- inline TInt ReadL(TStreamExchange& aHost,TDes8& aDes,TInt aMaxLength,TRequestStatus& aStatus);
- inline TStreamTransfer ReadL(TStreamExchange& aHost,MStreamInput& anInput,TStreamTransfer aTransfer);
- inline TInt ReadL(TStreamExchange& aHost,MStreamInput& anInput,TInt aMaxLength);
- inline void ReadL(TStreamExchange& aHost,MStreamInput& anInput);
- inline void WriteL(TStreamExchange& aHost,const TAny* aPtr,TInt aLength);
- __declspec(dllexport) TInt WriteL(TStreamExchange& aHost,const TDesC8& aDes,TRequestStatus& aStatus);
- inline TInt WriteL(TStreamExchange& aHost,const TDesC8& aDes,TInt aMaxLength,TRequestStatus& aStatus);
- inline TStreamTransfer WriteL(TStreamExchange& aHost,MStreamOutput& anOutput,TStreamTransfer aTransfer);
- inline TInt WriteL(TStreamExchange& aHost,MStreamOutput& anOutput,TInt aMaxLength);
- inline void WriteL(TStreamExchange& aHost,MStreamOutput& anOutput);
- inline void SeekL(TStreamExchange& aHost,TStreamPos aPos);
- inline TStreamPos SeekL(TStreamExchange& aHost,TStreamLocation aLocation,TInt anOffset=0);
- inline TStreamPos SeekL(TStreamExchange& aHost,TInt anOffset);
- inline TStreamPos TellL(TStreamExchange& aHost) const;
- private:
- TStreamMark(const TStreamMark&);
- TStreamMark& operator=(const TStreamMark&);
- private:
- TStreamPos iPos;
- private:
- inline TBool IsTracking(TStreamMark*const& aRef) const;
- inline void Track(TStreamMark*const& aRef);
- private:
- friend class TStreamExchange;
- private:
- __declspec(dllexport) static void __DbgChkPos(TStreamPos aPos);
- };
- #line 106
- class TStreamExchange
- {
- public:
- inline TStreamExchange();
- inline TStreamExchange(MStreamBuf* aHost);
- inline void Share(MStreamBuf* aHost);
- inline TBool IsActive() const;
- __declspec(dllexport) MStreamBuf* Host();
- __declspec(dllexport) MStreamBuf* HostL();
- __declspec(dllexport) void Release();
- __declspec(dllexport) TInt SizeL() const;
- private:
- #line 132
- typedef MStreamBuf::TMark TMark;
- private:
- TStreamExchange(const TStreamExchange&);
- TStreamExchange& operator=(const TStreamExchange&);
- __declspec(dllexport) TBool RefersTo(const TStreamMark& aMark);
- __declspec(dllexport) void Drop(const TStreamMark& aMark);
- __declspec(dllexport) void GetL(TStreamMark& aMark);
- __declspec(dllexport) TInt DoReadL(TAny* aPtr,TInt aMaxLength,TStreamMark& aMark);
- __declspec(dllexport) TInt DoReadL(TDes8& aDes,TInt aMaxLength,TRequestStatus& aStatus,TStreamMark& aMark);
- __declspec(dllexport) TStreamTransfer DoReadL(MStreamInput& anInput,TStreamTransfer aTransfer,TStreamMark& aMark);
- __declspec(dllexport) void DoWriteL(const TAny* aPtr,TInt aLength,TStreamMark& aMark);
- __declspec(dllexport) TInt DoWriteL(const TDesC8& aDes,TInt aMaxLength,TRequestStatus& aStatus,TStreamMark& aMark);
- __declspec(dllexport) TStreamTransfer DoWriteL(MStreamOutput& anOutput,TStreamTransfer aTransfer,TStreamMark& aMark);
- __declspec(dllexport) TStreamPos DoSeekL(TStreamMark& aMark,TStreamLocation aLocation,TInt anOffset);
- void PrepareForReadingL(TStreamMark& aMark);
- void PrepareForWritingL(TStreamMark& aMark);
- TInt PrepareAndReadL(TAny* aPtr,TInt aMaxLength,TStreamMark& aMark);
- TInt PrepareAndReadL(TDes8& aDes,TInt aMaxLength,TRequestStatus& aStatus,TStreamMark& aMark);
- TStreamTransfer PrepareAndReadL(MStreamInput& anInput,TStreamTransfer aTransfer,TStreamMark& aMark);
- void PrepareAndWriteL(const TAny* aPtr,TInt aLength,TStreamMark& aMark);
- TInt PrepareAndWriteL(const TDesC8& aDes,TInt aMaxLength,TRequestStatus& aStatus,TStreamMark& aMark);
- TStreamTransfer PrepareAndWriteL(MStreamOutput& anOutput,TStreamTransfer aTransfer,TStreamMark& aMark);
- TStreamPos MarkSeekL(TStreamMark& aMark,TStreamLocation aLocation,TInt anOffset);
- inline MStreamBuf& BufL() const;
- inline MStreamBuf& Buf() const;
- private:
- MStreamBuf* iHost;
- TStreamMark* iRMrk;
- TStreamMark* iWMrk;
- private:
- friend class TStreamMark;
- };
- #line 197
- class RShareBuf : public MStreamBuf
- {
- public:
- __declspec(dllexport) RShareBuf();
- __declspec(dllexport) void Open(TStreamExchange& aHost,TStreamPos aPos,TInt aMode=ERead|EWrite);
- inline void Open(TStreamExchange& aHost,TInt aMode=ERead|EWrite);
- protected:
- __declspec(dllexport) void DoRelease();
- __declspec(dllexport) TInt DoReadL(TAny* aPtr,TInt aMaxLength);
- __declspec(dllexport) TInt DoReadL(TDes8& aDes,TInt aMaxLength,TRequestStatus& aStatus);
- __declspec(dllexport) TStreamTransfer DoReadL(MStreamInput& anInput,TStreamTransfer aTransfer);
- __declspec(dllexport) void DoWriteL(const TAny* aPtr,TInt aLength);
- __declspec(dllexport) TInt DoWriteL(const TDesC8& aDes,TInt aMaxLength,TRequestStatus& aStatus);
- __declspec(dllexport) TStreamTransfer DoWriteL(MStreamOutput& anOutput,TStreamTransfer aTransfer);
- __declspec(dllexport) TStreamPos DoSeekL(TMark aMark,TStreamLocation aLocation,TInt anOffset);
- private:
- inline TStreamExchange& Host() const;
- private:
- TStreamExchange* iHost;
- TStreamMark iRMark;
- TStreamMark iWMark;
- };
- #line 233
- class RShareReadStream : public RReadStream
- {
- public:
- RShareReadStream() {}
- __declspec(dllexport) RShareReadStream(TStreamExchange& aHost,TStreamPos aPos=TStreamPos(0) );
- __declspec(dllexport) void Open(TStreamExchange& aHost,TStreamPos aPos=TStreamPos(0) );
- private:
- RShareBuf iSource;
- };
- #line 261
- class RShareWriteStream : public RWriteStream
- {
- public:
- RShareWriteStream() {}
- inline RShareWriteStream(const MExternalizer<TStreamRef>& anExter);
- __declspec(dllexport) RShareWriteStream(TStreamExchange& aHost,TStreamPos aPos=TStreamPos(0) );
- __declspec(dllexport) void Open(TStreamExchange& aHost,TStreamPos aPos=TStreamPos(0) );
- private:
- RShareBuf iSink;
- };
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\s32share.inl" /* stack depth 10 */
- inline TStreamMark::TStreamMark()
- : iPos(TStreamPos(0) -1)
- {}
- inline TStreamMark::TStreamMark(TStreamPos aPos)
- : iPos(aPos)
- {
- __DbgChkPos(aPos);
- }
- inline TStreamMark& TStreamMark::operator=(TStreamPos aPos)
- {
- __DbgChkPos(aPos);
- iPos=aPos;
- return *this;
- }
- inline TStreamMark::operator TStreamMark*()
- {return this;}
- inline TStreamMark::operator const TStreamMark*() const
- {return this;}
- inline TBool TStreamMark::operator==(const TStreamMark& aMark) const
- {return this==&aMark;}
- inline TBool TStreamMark::operator==(const TStreamMark* aPtr) const
- {return this==aPtr;}
- inline TBool TStreamMark::operator!=(const TStreamMark& aMark) const
- {return this!=&aMark;}
- inline TBool TStreamMark::operator!=(const TStreamMark* aPtr) const
- {return this!=aPtr;}
- inline TBool TStreamMark::IsEmpty() const
- {return iPos<TStreamPos(0) ;}
- inline void TStreamMark::Clear()
- {iPos=TStreamPos(0) -1;}
- inline TStreamPos TStreamMark::Position() const
- {
- __DbgChkPos(iPos);
- return iPos;
- }
- inline TBool TStreamMark::IsWith(TStreamExchange& aHost) const
- {return aHost.RefersTo(*this);}
- inline TBool TStreamMark::RelatesTo(TStreamExchange& aHost) const
- #line 104
- {return iPos>=TStreamPos(0) ||aHost.RefersTo(*this);}
- inline void TStreamMark::Withdraw(TStreamExchange& aHost)
- {aHost.Drop(*this);}
- inline void TStreamMark::ExtractL(TStreamExchange& aHost)
- {aHost.GetL(*this);}
- inline TInt TStreamMark::ReadL(TStreamExchange& aHost,TAny* aPtr,TInt aMaxLength)
- {return aHost.DoReadL(aPtr,aMaxLength,*this);}
- inline TInt TStreamMark::ReadL(TStreamExchange& aHost,TDes8& aDes,TInt aMaxLength,TRequestStatus& aStatus)
- #line 139
- {return aHost.DoReadL(aDes,aMaxLength,aStatus,*this);}
- inline TStreamTransfer TStreamMark::ReadL(TStreamExchange& aHost,MStreamInput& anInput,TStreamTransfer aTransfer)
- {return aHost.DoReadL(anInput,aTransfer,*this);}
- inline TInt TStreamMark::ReadL(TStreamExchange& aHost,MStreamInput& anInput,TInt aMaxLength)
- {return aMaxLength-aHost.DoReadL(anInput,TStreamTransfer(aMaxLength),*this).Left();}
- inline void TStreamMark::ReadL(TStreamExchange& aHost,MStreamInput& anInput)
- {aHost.DoReadL(anInput,TStreamTransfer(TStreamTransfer::EUnlimited) ,*this);}
- inline void TStreamMark::WriteL(TStreamExchange& aHost,const TAny* aPtr,TInt aLength)
- {aHost.DoWriteL(aPtr,aLength,*this);}
- inline TInt TStreamMark::WriteL(TStreamExchange& aHost,const TDesC8& aDes,TInt aMaxLength,TRequestStatus& aStatus)
- #line 189
- {return aHost.DoWriteL(aDes,aMaxLength,aStatus,*this);}
- inline TStreamTransfer TStreamMark::WriteL(TStreamExchange& aHost,MStreamOutput& anOutput,TStreamTransfer aTransfer)
- {return aHost.DoWriteL(anOutput,aTransfer,*this);}
- inline TInt TStreamMark::WriteL(TStreamExchange& aHost,MStreamOutput& anOutput,TInt aMaxLength)
- {return aMaxLength-aHost.DoWriteL(anOutput,TStreamTransfer(aMaxLength),*this).Left();}
- inline void TStreamMark::WriteL(TStreamExchange& aHost,MStreamOutput& anOutput)
- {aHost.DoWriteL(anOutput,TStreamTransfer(TStreamTransfer::EUnlimited) ,*this);}
- inline void TStreamMark::SeekL(TStreamExchange& aHost,TStreamPos aPos)
- {aHost.DoSeekL(*this,EStreamBeginning,aPos.Offset());}
- inline TStreamPos TStreamMark::SeekL(TStreamExchange& aHost,TStreamLocation aLocation,TInt anOffset)
- #line 233
- {return aHost.DoSeekL(*this,aLocation,anOffset);}
- inline TStreamPos TStreamMark::SeekL(TStreamExchange& aHost,TInt anOffset)
- {return aHost.DoSeekL(*this,EStreamMark,anOffset);}
- inline TStreamPos TStreamMark::TellL(TStreamExchange& aHost) const
- {return aHost.DoSeekL((const_cast<TStreamMark&>(*this)) ,EStreamMark,0);}
- inline TStreamExchange::TStreamExchange()
- : iHost(0 ),iRMrk(0 ),iWMrk(0 )
- {}
- inline TStreamExchange::TStreamExchange(MStreamBuf* aHost)
- : iHost(aHost),iRMrk(0 ),iWMrk(0 )
- {}
- inline void TStreamExchange::Share(MStreamBuf* aHost)
- {iHost=aHost;}
- inline TBool TStreamExchange::IsActive() const
- {return iHost!=0 ;}
- inline void RShareBuf::Open(TStreamExchange& aHost,TInt aMode)
- #line 289
- {Open(aHost,TStreamPos(0) ,aMode);}
- inline RShareWriteStream::RShareWriteStream(const MExternalizer<TStreamRef>& anExter)
- : RWriteStream(anExter)
- {}
- #line 277 "C:\Symbian\9.1\S60_3rd\epoc32\include\s32share.h" /* stack depth 9 */
- #line 11 "C:\Symbian\9.1\S60_3rd\epoc32\include\s32stor.h" /* stack depth 8 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\s32page.h" /* stack depth 9 */
- #line 12
- const TInt KPoolPageSize=512;
- const TUint32 KNullPageRefValue=0;
- #line 23
- class TPageRef
- {
- public:
- inline TPageRef() {}
- inline TPageRef(TUint32 aValue);
- inline TBool operator==(TPageRef aRef) const;
- inline TBool operator!=(TPageRef aRef) const;
- inline void ExternalizeL(RWriteStream& aStream) const;
- inline void InternalizeL(RReadStream& aStream);
- inline TUint32 Value() const;
- private:
- TUint32 iVal;
- };
- class MPagePool;
- typedef void (*TPageAbandonFunction)(MPagePool& aPool);
- enum TPageReclamation
- {EPageDeleteOnly,
- EPageReclaimable};
- enum TPageChange
- {EPageNoChange,
- EPageDirty,
- EPageUpdate,
- EPageAbandon=-1};
- #line 92
- class MPagePool
- {
- public:
- __declspec(dllexport) void PushL();
- inline void Pop();
- virtual TPageAbandonFunction AcquireL()=0;
- virtual TAny* AllocL()=0;
- virtual TAny* LockL(TPageRef aRef)=0;
- virtual TPageRef AssignL(const TAny* aPage,TPageReclamation aReclamation=EPageDeleteOnly)=0;
- virtual void UpdateL(const TAny* aPage)=0;
- virtual void Unlock(const TAny* aPage,TPageChange aChange=EPageNoChange)=0;
- __declspec(dllexport) void Delete(TPageRef aRef);
- __declspec(dllexport) void DeleteL(TPageRef aRef);
- protected:
- virtual void DoDeleteL(TPageRef aRef)=0;
- };
- #line 140
- class CMemPagePool : public CBase,public MPagePool
- {
- public:
- __declspec(dllexport) static CMemPagePool* NewL();
- __declspec(dllexport) static CMemPagePool* NewLC();
- __declspec(dllexport) CMemPagePool();
- __declspec(dllexport) ~CMemPagePool();
- __declspec(dllexport) TPageAbandonFunction AcquireL();
- __declspec(dllexport) TAny* AllocL();
- __declspec(dllexport) TAny* LockL(TPageRef aRef);
- __declspec(dllexport) TPageRef AssignL(const TAny* aPage,TPageReclamation aReclamation=EPageDeleteOnly);
- __declspec(dllexport) void UpdateL(const TAny* aPage);
- __declspec(dllexport) void Unlock(const TAny* aPage,TPageChange aChange=EPageNoChange);
- protected:
- __declspec(dllexport) void DoDeleteL(TPageRef aRef);
- private:
- TAny*& PageL(TPageRef aRef);
- static void DoAbandon(MPagePool& aPool);
- private:
- CArrayFixSeg<TAny*> iPages;
- };
- class TCachePage;
- struct SCachePage;
- class TCachePagePool;
- #line 179
- class CPageCache : public CBase
- {
- public:
- enum {EDefaultPages=20};
- #line 206
- public:
- __declspec(dllexport) static CPageCache* NewL(TInt aPages=EDefaultPages);
- __declspec(dllexport) static CPageCache* NewLC(TInt aPages=EDefaultPages);
- __declspec(dllexport) CPageCache();
- __declspec(dllexport) void ConstructL(TInt aPages=EDefaultPages);
- __declspec(dllexport) ~CPageCache();
- private:
- TCachePage* Find(TCachePagePool* aPool,TPageRef aRef);
- private:
- SCachePage* iPages;
- SCachePage* iEnd;
- TDblQue<TCachePage> iFree;
- private:
- friend class TCachePagePool;
- };
- #line 241
- class TCachePagePool : public MPagePool
- {
- public:
- inline void Set(CPageCache& aCache);
- __declspec(dllexport) TPageAbandonFunction AcquireL();
- __declspec(dllexport) TAny* AllocL();
- __declspec(dllexport) TAny* LockL(TPageRef aRef);
- __declspec(dllexport) TPageRef AssignL(const TAny* aPage,TPageReclamation aReclamation=EPageDeleteOnly);
- __declspec(dllexport) void UpdateL(const TAny* aPage);
- __declspec(dllexport) void Unlock(const TAny* aPage,TPageChange aChange=EPageNoChange);
- __declspec(dllexport) TInt Flush();
- __declspec(dllexport) void FlushL();
- __declspec(dllexport) void Purge();
- protected:
- inline TCachePagePool();
- inline TCachePagePool(CPageCache& aCache);
- __declspec(dllexport) void DoDeleteL(TPageRef aRef);
- private:
- virtual TPageRef ExtendL(const TAny* aPage,TPageReclamation aReclamation)=0;
- virtual void WriteL(TPageRef aRef,const TAny* aPage,TPageChange aChange)=0;
- virtual void ReadL(TPageRef aRef,TAny* aPage)=0;
- static void DoAbandon(MPagePool& aPool);
- static TCachePage* DoAllocL(CPageCache& aCache);
- private:
- CPageCache* iCache;
- };
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\s32page.inl" /* stack depth 10 */
- inline TPageRef::TPageRef(TUint32 aValue)
- : iVal(aValue)
- {}
- inline TBool TPageRef::operator==(TPageRef aRef) const
- {return iVal==aRef.iVal;}
- inline TBool TPageRef::operator!=(TPageRef aRef) const
- {return iVal!=aRef.iVal;}
- inline void TPageRef::ExternalizeL(RWriteStream& aStream) const
- {aStream<<iVal;}
- inline void TPageRef::InternalizeL(RReadStream& aStream)
- {aStream>>iVal;}
- inline TUint32 TPageRef::Value() const
- {return iVal;}
- inline void MPagePool::Pop()
- {CleanupStack::Pop();}
- #line 68
- inline void TCachePagePool::Set(CPageCache& aCache)
- {iCache=&aCache;}
- inline TCachePagePool::TCachePagePool()
- : iCache(0 )
- {}
- inline TCachePagePool::TCachePagePool(CPageCache& aCache)
- : iCache(&aCache)
- {}
- #line 271 "C:\Symbian\9.1\S60_3rd\epoc32\include\s32page.h" /* stack depth 9 */
- #line 14 "C:\Symbian\9.1\S60_3rd\epoc32\include\s32stor.h" /* stack depth 8 */
- class MIncrementalCollector;
- class CStreamStore : public CBase
- {
- public:
- inline TStreamId ExtendL();
- __declspec(dllexport) void Delete(TStreamId anId);
- __declspec(dllexport) void DeleteL(TStreamId anId);
- __declspec(dllexport) TInt Commit();
- inline void CommitL();
- __declspec(dllexport) void Revert();
- inline void RevertL();
- __declspec(dllexport) TInt ReclaimL();
- __declspec(dllexport) TInt CompactL();
- private:
- virtual __declspec(dllexport) TStreamId DoExtendL();
- virtual __declspec(dllexport) void DoDeleteL(TStreamId anId);
- #line 52
- virtual MStreamBuf* DoReadL(TStreamId anId) const=0;
- #line 61
- virtual MStreamBuf* DoCreateL(TStreamId& anId)=0;
- virtual __declspec(dllexport) MStreamBuf* DoWriteL(TStreamId anId);
- virtual __declspec(dllexport) MStreamBuf* DoReplaceL(TStreamId anId);
- virtual __declspec(dllexport) void DoCommitL();
- virtual __declspec(dllexport) void DoRevertL();
- virtual __declspec(dllexport) MIncrementalCollector* DoReclaimL();
- virtual __declspec(dllexport) MIncrementalCollector* DoCompactL();
- private:
- friend class RStoreReadStream;
- friend class RStoreWriteStream;
- friend class RStoreReclaim;
- };
- #line 86
- class CPersistentStore : public CStreamStore
- {
- public:
- inline TStreamId Root() const;
- inline void SetRootL(TStreamId anId);
- protected:
- inline CPersistentStore();
- private:
- virtual __declspec(dllexport) void DoSetRootL(TStreamId anId);
- protected:
- TStreamId iRoot;
- };
- #line 123
- class RStoreReclaim
- {
- public:
- inline RStoreReclaim();
- __declspec(dllexport) void OpenL(CStreamStore& aStore,TInt& aCount);
- __declspec(dllexport) void OpenLC(CStreamStore& aStore,TInt& aCount);
- __declspec(dllexport) void CompactL(CStreamStore& aStore,TInt& aCount);
- __declspec(dllexport) void CompactLC(CStreamStore& aStore,TInt& aCount);
- inline void Close();
- __declspec(dllexport) void Release();
- __declspec(dllexport) void ResetL(TInt& aCount);
- __declspec(dllexport) void NextL(TInt& aStep);
- __declspec(dllexport) void Next(TPckgBuf<TInt>& aStep,TRequestStatus& aStatus);
- __declspec(dllexport) void NextL(TPckgBuf<TInt>& aStep,TRequestStatus& aStatus);
- __declspec(dllexport) TInt Next(TInt& aStep);
- inline TInt Available() const;
- private:
- MIncrementalCollector* iCol;
- TPckgBuf<TInt> iAvail;
- };
- #line 162
- class CEmbeddedStore : public CPersistentStore
- {
- public:
- __declspec(dllexport) static CEmbeddedStore* FromL(RReadStream& aHost);
- __declspec(dllexport) static CEmbeddedStore* FromLC(RReadStream& aHost);
- __declspec(dllexport) static CEmbeddedStore* NewL(RWriteStream& aHost);
- __declspec(dllexport) static CEmbeddedStore* NewLC(RWriteStream& aHost);
- inline static TStreamPos Position(TStreamId anId);
- __declspec(dllexport) void Detach();
- inline void Reattach(MStreamBuf* aHost);
- inline MStreamBuf* Host() const;
- inline TStreamPos Start() const;
- __declspec(dllexport) CEmbeddedStore(MStreamBuf* aHost);
- __declspec(dllexport) void MarshalL(RReadStream& aStream);
- __declspec(dllexport) void ConstructL(RWriteStream& aStream);
- __declspec(dllexport) ~CEmbeddedStore();
- protected:
- __declspec(dllexport) MStreamBuf* DoReadL(TStreamId anId) const;
- __declspec(dllexport) MStreamBuf* DoCreateL(TStreamId& anId);
- private:
- __declspec(dllexport) void DoSetRootL(TStreamId anId);
- __declspec(dllexport) void DoCommitL();
- static CEmbeddedStore* DoNewLC(MStreamBuf* aHost);
- private:
- TStreamExchange iHost;
- TStreamPos iStart;
- };
- #line 218
- class CDictionaryStore : public CBase
- {
- public:
- __declspec(dllexport) TBool IsNullL() const;
- __declspec(dllexport) TBool IsPresentL(TUid aUid) const;
- __declspec(dllexport) void Remove(TUid aUid);
- __declspec(dllexport) void RemoveL(TUid aUid);
- __declspec(dllexport) TInt Commit();
- __declspec(dllexport) void CommitL();
- __declspec(dllexport) void Revert();
- __declspec(dllexport) void RevertL();
- __declspec(dllexport) ~CDictionaryStore();
- protected:
- __declspec(dllexport) void ConstructL();
- private:
- CStreamDictionary* DictionaryL() const;
- MStreamBuf* GetSourceL(TUid aUid) const;
- MStreamBuf* GetSinkL(TUid aUid);
- protected:
- CPersistentStore* iStore;
- private:
- CStreamDictionary* iDictionary;
- TBool iDictionaryHasChanged;
- private:
- friend class RDictionaryReadStream;
- friend class RDictionaryWriteStream;
- friend class HDictionaryStoreBuf;
- };
- const TInt KDictionaryCommitThreshold = 1024;
- #line 261
- class RDictionaryReadStream : public RReadStream
- {
- public:
- __declspec(dllexport) void OpenL(const CDictionaryStore& aDictStore,TUid aUid);
- __declspec(dllexport) void OpenLC(const CDictionaryStore& aDictStore,TUid aUid);
- };
- #line 275
- class RDictionaryWriteStream : public RWriteStream
- {
- public:
- RDictionaryWriteStream() {}
- inline RDictionaryWriteStream(const MExternalizer<TStreamRef>& anExter);
- __declspec(dllexport) void AssignL(CDictionaryStore& aDictStore,TUid aUid);
- __declspec(dllexport) void AssignLC(CDictionaryStore& aDictStore,TUid aUid);
- };
- #line 293
- class TStorePagePoolToken
- {
- public:
- enum TEmpty
- {EEmpty};
- public:
- TStorePagePoolToken() {}
- inline TStorePagePoolToken(TEmpty);
- inline void Touch();
- inline TBool HasAvailable() const;
- inline TBool IsEmpty() const;
- __declspec(dllexport) void ExternalizeL(RWriteStream& aStream) const;
- __declspec(dllexport) void InternalizeL(RReadStream& aStream);
- private:
- inline TStorePagePoolToken(TStreamId aHead,TPageRef anAvail);
- private:
- TStreamId iHead;
- TPageRef iAvail;
- private:
- friend class RStorePagePool;
- };
- #line 354
- class RStorePagePool : public TCachePagePool
- {
- friend class StorePagePool;
- public:
- __declspec(dllexport) RStorePagePool();
- __declspec(dllexport) RStorePagePool(CPageCache& aCache);
- __declspec(dllexport) RStorePagePool(CStreamStore& aStore);
- __declspec(dllexport) RStorePagePool(CStreamStore& aStore,const TStorePagePoolToken& aToken);
- __declspec(dllexport) void Create(CStreamStore& aStore);
- __declspec(dllexport) void Open(CStreamStore& aStore,const TStorePagePoolToken& aToken);
- __declspec(dllexport) TStorePagePoolToken Token() const;
- __declspec(dllexport) void Close();
- inline void Release();
- inline TBool IsDirty() const;
- inline void MarkCurrent();
- inline void MarkDirty();
- inline TBool HasAvailable() const;
- inline void Discard();
- inline TBool IsEmpty() const;
- __declspec(dllexport) TBool ReclaimL();
- __declspec(dllexport) void ReclaimAllL();
- protected:
- __declspec(dllexport) TPageRef ExtendL(const TAny* aPage,TPageReclamation aReclamation);
- __declspec(dllexport) void WriteL(TPageRef aRef,const TAny* aPage,TPageChange aChange);
- __declspec(dllexport) void ReadL(TPageRef aRef,TAny* aPage);
- __declspec(dllexport) void DoDeleteL(TPageRef aRef);
- private:
- inline void CacheDeleteL(TPageRef aRef);
- private:
- CStreamStore* iStore;
- TStreamId iHead;
- TPageRef iAvail;
- TBool iDirty;
- };
- #line 413
- class MIncrementalCollector
- {
- public:
- inline void Close();
- inline void Release();
- inline void ResetL(TInt& aCount);
- inline void NextL(TInt& aStep,TInt& aTotal);
- inline void NextL(TPckgBuf<TInt>& aStep,TRequestStatus& aStatus,TPckgBuf<TInt>& aTotal);
- protected:
- #line 431
- MIncrementalCollector() {}
- private:
- #line 441
- MIncrementalCollector(const MIncrementalCollector&);
- MIncrementalCollector& operator=(const MIncrementalCollector&);
- virtual __declspec(dllexport) void DoRelease();
- virtual void DoResetL(TInt& aCount)=0;
- #line 466
- virtual void DoNextL(TInt& aStep,TInt& aTotal)=0;
- virtual __declspec(dllexport) void DoNextL(TPckgBuf<TInt>& aStep,TRequestStatus& aStatus,TPckgBuf<TInt>& aTotal);
- };
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\s32stor.inl" /* stack depth 9 */
- inline TStreamId CStreamStore::ExtendL()
- {return DoExtendL();}
- inline void CStreamStore::CommitL()
- {DoCommitL();}
- inline void CStreamStore::RevertL()
- {DoRevertL();}
- inline CPersistentStore::CPersistentStore()
- {}
- inline TStreamId CPersistentStore::Root() const
- {return iRoot;}
- inline void CPersistentStore::SetRootL(TStreamId anId)
- {DoSetRootL(anId);}
- inline RStoreReclaim::RStoreReclaim()
- : iCol(0 )
- {}
- inline void RStoreReclaim::Close()
- #line 62
- {Release();}
- inline TInt RStoreReclaim::Available() const
- {return (const_cast<TPckgBuf<TInt>&>(iAvail)) ();}
- inline TStreamPos CEmbeddedStore::Position(TStreamId anId)
- {return TStreamPos(anId.Value());}
- inline void CEmbeddedStore::Reattach(MStreamBuf* aHost)
- {iHost.Share(aHost);}
- inline MStreamBuf* CEmbeddedStore::Host() const
- {return (const_cast<TStreamExchange&>(iHost)) .Host();}
- inline TStreamPos CEmbeddedStore::Start() const
- {return iStart;}
- inline RDictionaryWriteStream::RDictionaryWriteStream(const MExternalizer<TStreamRef>& anExter)
- : RWriteStream(anExter)
- {}
- inline TStorePagePoolToken::TStorePagePoolToken(TEmpty)
- : iHead(TStreamId(KNullStreamIdValue) ),iAvail(TPageRef(KNullPageRefValue) )
- {}
- inline void TStorePagePoolToken::Touch()
- {iAvail=TPageRef(KNullPageRefValue) ;}
- inline TBool TStorePagePoolToken::HasAvailable() const
- {return iAvail!=TPageRef(KNullPageRefValue) ;}
- inline TBool TStorePagePoolToken::IsEmpty() const
- {return iHead==TStreamId(KNullStreamIdValue) ;}
- inline void RStorePagePool::Release()
- {Purge();iStore=0 ;}
- inline TBool RStorePagePool::IsDirty() const
- {return iDirty;}
- inline void RStorePagePool::MarkCurrent()
- {iDirty=EFalse;}
- inline void RStorePagePool::MarkDirty()
- {iDirty=ETrue;}
- inline TBool RStorePagePool::HasAvailable() const
- {return iAvail!=TPageRef(KNullPageRefValue) ;}
- inline void RStorePagePool::Discard()
- {iAvail=TPageRef(KNullPageRefValue) ;}
- inline TBool RStorePagePool::IsEmpty() const
- {return iHead==TStreamId(KNullStreamIdValue) ;}
- inline void MIncrementalCollector::Close()
- {DoRelease();}
- inline void MIncrementalCollector::Release()
- {DoRelease();}
- inline void MIncrementalCollector::ResetL(TInt& aCount)
- {DoResetL(aCount);}
- inline void MIncrementalCollector::NextL(TInt& aStep,TInt& aTotal)
- #line 198
- {DoNextL(aStep,aTotal);}
- inline void MIncrementalCollector::NextL(TPckgBuf<TInt>& aStep,TRequestStatus& aStatus,TPckgBuf<TInt>& aTotal)
- #line 217
- {DoNextL(aStep,aStatus,aTotal);}
- #line 470 "C:\Symbian\9.1\S60_3rd\epoc32\include\s32stor.h" /* stack depth 8 */
- #line 11 "C:\Symbian\9.1\S60_3rd\epoc32\include\fldbase.h" /* stack depth 7 */
- class CTextField;
- class MTextFieldFactory;
- class CTextField : public CBase
- #line 34
- {
- public:
- __declspec(dllexport) virtual TStreamId StoreL(CStreamStore& aStore)const;
- __declspec(dllexport) virtual void RestoreL(const CStreamStore& aStore,TStreamId aId);
- __declspec(dllexport) virtual void ExternalizeL(RWriteStream& aStream)const;
- virtual void InternalizeL(RReadStream& aStream)=0;
- #line 54
- virtual TInt Value(TPtr& aValueText)=0;
- virtual TUid Type()const=0;
- };
- class MTextFieldFactory
- #line 90
- {
- public:
- virtual CTextField* NewFieldL(TUid aFieldType)=0;
- };
- #line 12 "C:\Symbian\9.1\S60_3rd\epoc32\include\fldset.h" /* stack depth 6 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\fldbltin.h" /* stack depth 7 */
- #line 14
- class MFieldPageNumInfo;
- class MFieldNumPagesInfo;
- class MFieldFileNameInfo;
- class CDateTimeField;
- class CPageNumField;
- class CNumPagesField;
- class CFileNameField;
- class TRomanNumeral;
- class RReadStream;
- class RWriteStream;
- #line 39
- class MFieldPageNumInfo
- {
- public:
- virtual TInt UpdateFieldPageNum()const=0;
- };
- #line 60
- class MFieldNumPagesInfo
- {
- public:
- virtual TInt UpdateFieldNumPages()const=0;
- };
- #line 83
- class MFieldFileNameInfo
- {
- public:
- #line 96
- virtual TInt UpdateFieldFileName(TPtr& aValueText)const=0;
- };
- #line 111
- class CDateTimeField : public CTextField
- {
- public:
- __declspec(dllexport) CDateTimeField();
- __declspec(dllexport) void SetFormat(const TDesC& aFormat);
- __declspec(dllexport) virtual TInt Value(TPtr& aValueText);
- __declspec(dllexport) virtual void InternalizeL(RReadStream& aStream);
- __declspec(dllexport) virtual void ExternalizeL(RWriteStream& aStream)const;
- __declspec(dllexport) const TDesC& FormatString()const;
- __declspec(dllexport) TUid Type()const;
- protected:
- TBuf<64> iFormatString;
- };
- #line 140
- class CPageFieldBase : public CTextField
- {
- public:
- enum TNumberStyle {
- EArabic,
- ERomanUpper,
- ERomanLower,
- EAlphabeticUpper,
- EAlphabeticLower
- };
- public:
- inline void SetNumberStyle(TNumberStyle aStyle) { iStyle = aStyle; }
- __declspec(dllexport) void InternalizeL(RReadStream& aStream);
- __declspec(dllexport) void ExternalizeL(RWriteStream& aStream)const;
- __declspec(dllexport) TNumberStyle NumberStyle()const;
- protected:
- TInt InsertValue(TPtr& aValueText,TInt aValue);
- protected:
- TNumberStyle iStyle;
- };
- #line 184
- class CPageNumField : public CPageFieldBase
- {
- public:
- inline void SetPageNumInfo(MFieldPageNumInfo* aInfo) { iPageNumInfo=aInfo; }
- __declspec(dllexport) TInt Value(TPtr& aValueText);
- __declspec(dllexport) TUid Type()const;
- protected:
- MFieldPageNumInfo* iPageNumInfo;
- };
- #line 210
- class CNumPagesField : public CPageFieldBase
- {
- public:
- inline void SetNumPagesInfo(MFieldNumPagesInfo* aInfo) { iNumPagesInfo=aInfo; }
- __declspec(dllexport) TInt Value(TPtr& aValueText);
- __declspec(dllexport) TUid Type()const;
- protected:
- MFieldNumPagesInfo* iNumPagesInfo;
- };
- #line 238
- class CFileNameField : public CTextField
- {
- public:
- inline void SetFileNameInfo(MFieldFileNameInfo* aInfo) { iFileNameInfo=aInfo; }
- __declspec(dllexport) virtual TStreamId StoreL(CStreamStore& aStore)const;
- __declspec(dllexport) virtual void RestoreL(const CStreamStore& aStore,TStreamId aId);
- __declspec(dllexport) virtual TInt Value(TPtr& aValueText);
- inline virtual void InternalizeL(RReadStream& ) {};
- __declspec(dllexport) TUid Type()const;
- protected:
- MFieldFileNameInfo* iFileNameInfo;
- };
- #line 13 "C:\Symbian\9.1\S60_3rd\epoc32\include\fldset.h" /* stack depth 6 */
- class CTextFieldSet;
- class RReadStream;
- class RWriteStream;
- class TTextFieldEntry;
- class CStreamStore;
- class CStoreMap;
- class TRollbackInfo;
- const TInt KFieldArrayGranularity=1;
- class CTextFieldSet : public CBase
- {
- public:
- enum {ENoPasteLimit=-1};
- public:
- __declspec(dllexport) static CTextFieldSet* NewL(TInt aDocumentLength=0);
- __declspec(dllexport) static CTextFieldSet* NewL(const MTextFieldFactory* aFactory,const CStreamStore& aStore,TStreamId aStreamId);
- __declspec(dllexport) ~CTextFieldSet();
- __declspec(dllexport) void SetFieldFactory(MTextFieldFactory* aFactory);
- __declspec(dllexport) MTextFieldFactory* FieldFactory()const;
- __declspec(dllexport) void Reset();
- __declspec(dllexport) TStreamId StoreL(CStreamStore& aStore)const;
- __declspec(dllexport) void RestoreL(const CStreamStore& aFieldStore,TStreamId aStreamId);
- __declspec(dllexport) void StoreFieldsL(CStreamStore& aStore,CStoreMap& aMap)const;
- __declspec(dllexport) void RestoreFieldsL(const CStreamStore& aFieldStore);
- __declspec(dllexport) void InternalizeL(RReadStream& aStream);
- __declspec(dllexport) void ExternalizeL(RWriteStream& aStream)const;
- __declspec(dllexport) TStreamId CopyToStoreL(CStreamStore& aStore,TInt aPos,TInt aLength)const;
- __declspec(dllexport) void CopyComponentsL(CStreamStore& aStore,CStoreMap& aMap,TInt aPos,TInt aLength)const;
- __declspec(dllexport) void CopyToStreamL(RWriteStream& aStream,TInt aPos,TInt aLength)const;
- __declspec(dllexport) void PasteFromStoreL(const CStreamStore& aFieldStore,TStreamId aStreamId,TInt aPos,TInt aMaxLen=ENoPasteLimit);
- __declspec(dllexport) void PasteComponentsL(const CStreamStore& aFieldStore,TInt aPos);
- __declspec(dllexport) void PasteFromStreamL(RReadStream& aStream,TInt aPos,TInt aMaxLen=ENoPasteLimit);
- __declspec(dllexport) CTextField* NewFieldL(TUid aFieldType);
- __declspec(dllexport) TInt InsertFieldL(TInt aPos,CTextField* aField,TUid aFieldType);
- __declspec(dllexport) TInt RemoveField(TInt aPos);
- __declspec(dllexport) TInt NewFieldValueL(HBufC*& aBuf, TInt aPos);
- __declspec(dllexport) void NotifyInsertion(TInt aPos, TInt aNumberAdded);
- __declspec(dllexport) void NotifyDeletion(TInt aPos, TInt aNumberRemoved);
- __declspec(dllexport) void NotifyFieldUpdate(TInt aPos, TInt aNewFieldValueLength);
- __declspec(dllexport) TInt FieldCount() const;
- __declspec(dllexport) TInt CharCount() const;
- __declspec(dllexport) TBool FindFields(TInt aPos) const;
- __declspec(dllexport) TBool FindFields(TFindFieldInfo& aInfo,TInt aPos,TInt aRange=0) const;
- __declspec(dllexport) const CTextField* TextField(TInt aPos)const;
- __declspec(dllexport) void RollbackPaste();
- protected:
- CTextFieldSet();
- void ConstructL(TInt aDocumentLength);
- void ConstructL(const CStreamStore& aFieldStore,TStreamId aStreamId);
- private:
- void StoreFieldsL(CStreamStore& aStore,CStoreMap& aMap,CArrayFixSeg<TTextFieldEntry> * aArray)const;
- void DoRestoreL(const CStreamStore& aFieldStore,TStreamId aStreamId);
- void DoRestoreFieldsL(CArrayFixSeg<TTextFieldEntry> * aArray,const CStreamStore& aFieldStore,TInt aStartIndex=0);
- void InternalizeL(CArrayFixSeg<TTextFieldEntry> * aArray,RReadStream& aStream);
- void ExternalizeL(RWriteStream& aStream,CArrayFixSeg<TTextFieldEntry> * aArray)const;
- void DoPasteL(CArrayFixSeg<TTextFieldEntry> * aSourceArray,TInt aPos);
- void AddInitialFieldEntryL(CArrayFixSeg<TTextFieldEntry> * aArray,TInt aDocumentLength);
- void InsertEntryL(TInt aIndex,TTextFieldEntry& aEntry);
- void InsertEntryL(TInt aIndex,TTextFieldEntry& aEntry,CArrayFixSeg<TTextFieldEntry> * aArray);
- void AppendEntryL(TTextFieldEntry& aEntry);
- void AppendEntryL(TTextFieldEntry& aEntry,CArrayFixSeg<TTextFieldEntry> * aArray);
- void CopyToArrayL(CArrayFixSeg<TTextFieldEntry> * aArray,TInt aPos,TInt aLength)const;
- TBool InField(const TInt aPos, TInt& anIndex, TInt& anOffset) const;
- void DeleteFieldEntry(TInt anIndex);
- void DeleteFieldEntry(CArrayFixSeg<TTextFieldEntry> * aArray,TInt anIndex);
- TTextFieldEntry SplitEntry(TInt aIndex,TInt aOffset,TInt aRange)const;
- TInt EntryLen(const TTextFieldEntry& aEntry)const;
- TInt EntryLen(TInt aIndex)const;
- void RecordRollbackInfoL(TInt aPastePos);
- private:
- MTextFieldFactory* iFieldFactory;
- CArrayFixSeg<TTextFieldEntry> * iFieldArray;
- TRollbackInfo* iRollbackInfo;
- public: void __DbgTestInvariant() const; void __DbgTest(TAny *aPtr) const ;
- };
- class TFieldMapExternalizer : public MExternalizer<TStreamRef>
- {
- private:
- friend class CPlainText;
- friend class CTextFieldSet;
- private:
- __declspec(dllexport) TFieldMapExternalizer(const CStoreMap& aMap);
- __declspec(dllexport) void ExternalizeL(const TStreamRef& anObject,RWriteStream& aStream) const;
- private:
- const CStoreMap* iMap;
- };
- #line 11 "C:\Symbian\9.1\S60_3rd\epoc32\include\txtetext.h" /* stack depth 5 */
- class CParaFormatLayer;
- class CCharFormatLayer;
- class MTextFieldFactory;
- class CTextFieldSet;
- class CTextField;
- class TFindFieldInfo;
- class CInlineEditData;
- class MFepInlineTextFormatRetriever;
- class TCharFormat;
- class CEditableTextOptionalData;
- class RFs;
- const TUid KPlainTextFieldDataUid = {268435555};
- const TUid KEditableTextUid = {268450334};
- const TUid KPlainTextCharacterDataUid = {268450341};
- const TUid KClipboardUidTypePlainText = {268450333};
- const TUid KUidRichText = {271013233};
- const TInt KMaxFieldBufferSize=0x14;
- #line 64
- class CEditableText : public CBase
- {
- public:
- __declspec(dllexport) ~CEditableText();
- __declspec(dllexport) TStreamId StoreL(CStreamStore& aStore) const;
- __declspec(dllexport) void RestoreL(const CStreamStore& aStore,TStreamId aStreamId);
- virtual void ExternalizeL(RWriteStream& aStream) const;
- virtual void InternalizeL(RReadStream& aStream);
- #line 82
- virtual void StoreComponentsL(CStreamStore& aStore,CStoreMap& aMap) const = 0;
- virtual void RestoreComponentsL(const CStreamStore& aStore) = 0;
- virtual void Reset() = 0;
- virtual void InsertL(TInt aInsertPos,const TChar& aChar) = 0;
- virtual void InsertL(TInt aInsertPos,const TDesC& aBuf) = 0;
- #line 121
- virtual TBool DeleteL(TInt aPos,TInt aLength) = 0;
- #line 132
- virtual TPtrC Read(TInt aStartPos) const = 0;
- #line 142
- virtual TPtrC Read(TInt aStartPos,TInt aLength) const = 0;
- #line 153
- virtual void Extract(TDes& aBuf,TInt aPos=0) const = 0;
- #line 163
- virtual void Extract(TDes& aBuf,TInt aPos,TInt aLength) const = 0;
- #line 172
- virtual void CopyToStoreL(CStreamStore& aStore,CStreamDictionary& aDictionary,TInt aPos,TInt aLength) const = 0;
- #line 181
- virtual TInt PasteFromStoreL(const CStreamStore& aStore,const CStreamDictionary& aDictionary,TInt aPos) = 0;
- virtual TInt WordCount() const = 0;
- virtual TInt ParagraphCount() const = 0;
- virtual TInt DocumentLength() const = 0;
- virtual TInt ToParagraphStart(TInt& aPos) const = 0;
- inline TBool HasChanged() const;
- #line 226
- virtual void GetWordInfo(TInt aCurrentPos,TInt& aStartPos,TInt& aLength,
- TBool aPictureIsDelimiter,TBool aPunctuationIsDelimiter) const = 0;
- __declspec(dllexport) virtual TInt ScanWords(TInt& aPos,TUint& aScanMask) const;
- __declspec(dllexport) virtual TInt ScanParas(TInt& aPos,TUint& aScanMask) const;
- __declspec(dllexport) virtual void SetHasChanged(TBool aHasChanged);
- __declspec(dllexport) void StartFepInlineEditL(TBool& aParagraphContainingStartPositionOfInlineTextHasChangedFormat,TInt& aNumberOfCharactersSuccessfullyDeleted,TInt& aNumberOfCharactersSuccessfullyInserted,TInt& aPositionOfInsertionPointInDocument,TInt aNewPositionOfInsertionPointInDocument,const TDesC& aInitialInlineText,TInt aPositionOfInlineTextInDocument,TInt aNumberOfCharactersToHide,MFepInlineTextFormatRetriever& aInlineTextFormatRetriever);
- __declspec(dllexport) void UpdateFepInlineTextL(TBool& aParagraphContainingStartPositionOfInlineTextHasChangedFormat,TInt& aNumberOfCharactersSuccessfullyDeleted,TInt& aNumberOfCharactersSuccessfullyInserted,TInt& aPositionOfInsertionPointInDocument,TInt aNewPositionOfInsertionPointInDocument,const TDesC& aNewInlineText);
- __declspec(dllexport) void CommitFepInlineEditL(TBool& aParagraphContainingStartPositionOfInlineTextHasChangedFormat,TInt& aNumberOfCharactersSuccessfullyDeleted,TInt& aNumberOfCharactersSuccessfullyInserted,TInt& aPositionOfInsertionPointInDocument,TInt aNewPositionOfInsertionPointInDocument);
- __declspec(dllexport) void CancelFepInlineEdit(TBool& aParagraphContainingStartPositionOfInlineTextHasChangedFormat,TInt& aNumberOfCharactersSuccessfullyDeleted,TInt& aNumberOfCharactersSuccessfullyInserted,TInt& aPositionOfInsertionPointInDocument,TInt aNewPositionOfInsertionPointInDocument);
- __declspec(dllexport) virtual void ExtendedInterface(TAny*& aInterface, TUid aInterfaceId);
- enum TDocumentStorage
- {
- EFlatStorage,
- ESegmentedStorage
- };
- enum
- {
- EDefaultTextGranularity = 256
- };
- enum
- {
- ETabCharacter = 0x0009,
- EPageBreak = 0x000C,
- ESpace = 0x0020,
- EApostrophe = 0x0027,
- EHyphenMinus = 0x002D,
- ENonBreakingSpace = 0x00A0,
- EPotentialHyphen = 0x00AD,
- EHyphen = 0x2010,
- ENonBreakingHyphen = 0x2011,
- ELeftSingleQuote = 0x2018,
- ERightSingleQuote = 0x2019,
- ELeftDoubleQuote = 0x201C,
- ERightDoubleQuote = 0x201D,
- EBullet = 0x2022,
- EEllipsis = 0x2026,
- ELineBreak = 0x2028,
- EParagraphDelimiter = 0x2029,
- EPictureCharacter = 0xFFFC,
- EZeroWidthNoBreakSpace = 0xFEFF,
- EByteOrderMark = 0xFEFF,
- EReversedByteOrderMark = 0xFFFE
- };
- protected:
- __declspec(dllexport) void OverrideFormatOfInlineTextIfApplicable(TPtrC& aView,TCharFormat& aFormat,TInt aStartPos) const;
- TBool iHasChanged;
- private:
- void SetAndTransferOwnershipOfInlineEditDataL(CInlineEditData* aInlineEditData);
- CInlineEditData* InlineEditData() const;
- void DeleteInlineEditDataAndSetToNull();
- TBool DeleteWithoutDestroyingFormatL(TInt aPos, TInt aLength);
- CEditableTextOptionalData* iOptionalData;
- };
- #line 328
- class TEtextComponentInfo
- {
- public:
- __declspec(dllexport) TEtextComponentInfo();
- __declspec(dllexport) TEtextComponentInfo(TInt aFieldCount,TInt aPictureCount,TInt aStyleCount);
- public:
- TInt iFieldCount;
- TInt iPictureCount;
- TInt iStyleCount;
- };
- #line 350
- typedef CArrayFix<TInt> TPageTable;
- #line 372
- class CPlainText: public CEditableText
- {
- public:
- enum TTextOrganisation
- {
- EOrganiseByParagraph,
- EOrganiseByLine
- };
- enum
- {
- EScanBackwards = 0x01,
- EScanStayIfBoundary = 0x02,
- EScanToUnitStart = 0x04,
- EScanToUnitEnd = 0x08,
- EScanJoinDelimiters = 0x10,
- EScanPictureIsDelimiter = 0x20,
- EScanPunctuationIsDelimiter = 0x40
- };
- enum TScanDataEnd
- {
- EScanEndOfData = -1
- };
- class TImportExportParam
- {
- public:
- TImportExportParam():
- iOrganisation(EOrganiseByParagraph),
- iMaxOutputChars(KMaxTInt),
- iMaxInputChars(KMaxTInt),
- iMaxLineLength(KMaxTInt),
- iOutputInternal(0 ),
- iInputInternal(0 ),
- iForeignEncoding(0),
- iGuessForeignEncoding(0 ),
- iFileSession(0 ),
- iReserved(0)
- {
- }
- TTextOrganisation iOrganisation;
- TInt iMaxOutputChars;
- TInt iMaxInputChars;
- TInt iMaxLineLength;
- TBool iOutputInternal;
- TBool iInputInternal;
- TUint iForeignEncoding;
- TBool iGuessForeignEncoding;
- RFs* iFileSession;
- TUint iReserved;
- };
- class TImportExportResult
- {
- public:
- TImportExportResult():
- iOutputChars(0),
- iInputChars(0),
- iForeignEncoding(0),
- iReserved(0)
- {
- }
- TInt iOutputChars;
- TInt iInputChars;
- TUint iForeignEncoding;
- TUint iReserved;
- };
- __declspec(dllexport) static CPlainText* NewL(TDocumentStorage aStorage = ESegmentedStorage,
- TInt aDefaultTextGranularity = EDefaultTextGranularity);
- __declspec(dllexport) static CPlainText* NewL(const CStreamStore& aStore,TStreamId aStreamId,
- MTextFieldFactory* aFieldFactory = 0 ,
- TDocumentStorage aStorage = ESegmentedStorage);
- __declspec(dllexport) virtual ~CPlainText();
- __declspec(dllexport) virtual void StoreComponentsL(CStreamStore& aStore,CStoreMap& aMap) const;
- __declspec(dllexport) virtual void RestoreComponentsL(const CStreamStore& aStore);
- __declspec(dllexport) virtual void ExternalizeL(RWriteStream& aStream) const;
- __declspec(dllexport) virtual void InternalizeL(RReadStream& aStream);
- __declspec(dllexport) void ExternalizePlainTextL(RWriteStream& aStream) const;
- __declspec(dllexport) void InternalizePlainTextL(RReadStream& aStream);
- __declspec(dllexport) void ExternalizePlainTextNoLengthCountL(RWriteStream& aStream) const;
- __declspec(dllexport) void InternalizePlainTextL(RReadStream& aStream,TInt aLength);
- __declspec(dllexport) void ImportTextL(TInt aPos,RReadStream& aInput,TTextOrganisation aTextOrganisation,
- TInt aMaxOutputChars = KMaxTInt,TInt aMaxInputChars = KMaxTInt,
- TInt* aOutputChars = 0 ,TInt* aInputChars = 0 );
- __declspec(dllexport) void ExportTextL(TInt aPos,RWriteStream& aOutput,TTextOrganisation aTextOrganisation,
- TInt aMaxOutputChars = KMaxTInt,TInt aMaxInputChars = KMaxTInt,
- TInt aMaxLineLength = KMaxTInt,
- TInt* aOutputChars = 0 ,TInt* aInputChars = 0 ) const;
- __declspec(dllexport) virtual TInt ImportTextFileL(TInt aPos,const TDes& aFileName,TTextOrganisation aTextOrganisation);
- __declspec(dllexport) virtual void ExportAsTextL(const TDes& aFileName,TTextOrganisation aTextOrganisation,
- TInt aMaxLineLength) const;
- __declspec(dllexport) void ImportTextL(TInt aPos,RReadStream& aInput,
- const TImportExportParam& aParam,TImportExportResult& aResult);
- __declspec(dllexport) void ExportTextL(TInt aPos,RWriteStream& aOutput,
- const TImportExportParam& aParam,TImportExportResult& aResult) const;
- __declspec(dllexport) void StoreFieldComponentsL(CStreamStore& aStore,CStoreMap& aMap) const;
- __declspec(dllexport) void RestoreFieldComponentsL(const CStreamStore& aStore);
- __declspec(dllexport) void ExternalizeFieldDataL(RWriteStream& aStream) const;
- __declspec(dllexport) void InternalizeFieldDataL(RReadStream& aStream);
- __declspec(dllexport) virtual void Reset();
- __declspec(dllexport) virtual void InsertL(TInt aPos,const TChar& aChar);
- __declspec(dllexport) virtual void InsertL(TInt aPos,const TDesC& aBuf);
- __declspec(dllexport) virtual TBool DeleteL(TInt aPos,TInt aLength);
- __declspec(dllexport) virtual TPtrC Read(TInt aStartPos) const;
- __declspec(dllexport) virtual TPtrC Read(TInt aStartPos,TInt aLength) const;
- __declspec(dllexport) virtual void Extract(TDes& aBuf,TInt aPos=0) const;
- __declspec(dllexport) virtual void Extract(TDes& aBuf,TInt aPos,TInt aLength) const;
- enum
- {
- EExtractAll = 0,
- EExtractVisible = 1
- };
- __declspec(dllexport) void ExtractSelectively(TDes& aBuf,TInt aPos,TInt aLength,TUint aFlags);
- __declspec(dllexport) virtual void CopyToStoreL(CStreamStore& aStore,CStreamDictionary& aDictionary,TInt aPos,TInt aLength) const;
- __declspec(dllexport) virtual TInt PasteFromStoreL(const CStreamStore& aStore,const CStreamDictionary& aDictionary,TInt aPos);
- __declspec(dllexport) void SetPageTable(TPageTable* aPageTable);
- __declspec(dllexport) TInt PageContainingPos(TInt aPos) const;
- __declspec(dllexport) virtual TInt DocumentLength() const;
- __declspec(dllexport) virtual TInt WordCount() const;
- __declspec(dllexport) virtual TInt ParagraphCount() const;
- __declspec(dllexport) virtual TInt ToParagraphStart(TInt& aPos) const;
- __declspec(dllexport) virtual TInt CharPosOfParagraph(TInt& aLength,TInt aParaOffset) const;
- __declspec(dllexport) virtual TInt ParagraphNumberForPos(TInt& aPos) const;
- __declspec(dllexport) virtual void GetWordInfo(TInt aCurrentPos,TInt& aStartPos,TInt& aLength,
- TBool aPictureIsDelimiter,TBool aPunctuationIsDelimiter) const;
- __declspec(dllexport) virtual TInt ScanWords(TInt& aPos,TUint& aScanMask) const;
- __declspec(dllexport) virtual TInt ScanParas(TInt& aPos,TUint& aScanMask) const;
- __declspec(dllexport) virtual TEtextComponentInfo ComponentInfo() const;
- __declspec(dllexport) void SetFieldFactory(MTextFieldFactory* aFactory);
- inline const MTextFieldFactory* FieldFactory() const;
- __declspec(dllexport) CTextField* NewTextFieldL(TUid aFieldType) const;
- __declspec(dllexport) void InsertFieldL(TInt aPos,CTextField* aField,TUid aFieldType);
- __declspec(dllexport) virtual void UpdateFieldL(TInt aPos);
- __declspec(dllexport) void UpdateAllFieldsL();
- __declspec(dllexport) TInt FieldCount() const;
- __declspec(dllexport) const CTextField* TextField(TInt aPos) const;
- __declspec(dllexport) TBool FindFields(TInt aPos) const;
- __declspec(dllexport) TBool FindFields(TFindFieldInfo& aInfo,TInt aPos,TInt aRange=0) const;
- __declspec(dllexport) TBool RemoveField(TInt aPos);
- __declspec(dllexport) TBool ConvertFieldToText(TInt aPos);
- __declspec(dllexport) void ConvertAllFieldsToText();
- __declspec(dllexport) void ExtendedInterface(TAny*& aInterface, TUid aInterfaceId);
- protected:
- __declspec(dllexport) CPlainText();
- __declspec(dllexport) void ConstructL(TDocumentStorage aStorage = ESegmentedStorage,
- TInt aDefaultTextGranularity = EDefaultTextGranularity);
- __declspec(dllexport) void ConstructL(const CStreamStore& aStore,TStreamId aStreamId,MTextFieldFactory* aFieldFactory,
- TDocumentStorage aStorage = ESegmentedStorage);
- __declspec(dllexport) void DoConstructL(TDocumentStorage aStorage,TInt aDefaultTextGranularity,
- MTextFieldFactory* aFieldFactory = 0 );
- void DoExtract(TDes& aBuf,TInt aPos,TInt aLength,TUint aFlags = 0) const;
- __declspec(dllexport) void PtInsertL(TInt aInsertPos,const TDesC& aBuf);
- __declspec(dllexport) void DoPtInsertL(TInt aPos,const TDesC& aBuf);
- __declspec(dllexport) TBool DoPtDelete(TInt aPos,TInt aLength);
- void InsertL(TInt aPos,const CPlainText* aText);
- TBool Delete(TInt aPos,TInt aLength);
- __declspec(dllexport) void DoExternalizeFieldDataL(RWriteStream& aStream) const;
- __declspec(dllexport) void DoInternalizeFieldDataL(RReadStream& aStream);
- __declspec(dllexport) void DoExternalizePlainTextL(RWriteStream& aStream) const;
- __declspec(dllexport) void DoInternalizePlainTextL(RReadStream& aStream);
- TStreamId DoCopyToStoreL(CStreamStore& aStore,CStreamDictionary& aDictionary,TInt aPos,TInt aLength) const;
- TInt DoPasteFromStoreL(const CStreamStore& aStore,TStreamId aStreamId,TInt aPos);
- void CopyComponentsL(CStreamStore& aStore,CStoreMap& aMap,TInt aPos,TInt aLength) const;
- void PasteComponentsL(const CStreamStore& aStore,TInt aPos);
- void CopyToStreamL(RWriteStream& aStream,TInt aPos,TInt aLength) const;
- inline static void ConsumeAdornmentL(RReadStream& aStream);
- inline static TUid UidFromStreamL(RReadStream& aStream);
- protected:
- enum
- {
- EImportBufSize = 512,
- EBiggestCharacterPaste=0x100000
- };
- enum TUnitOfText
- {
- EUnitIsWord,
- EUnitIsParagraph
- };
- struct SScanData
- {
- TInt pos;
- TInt oldPos;
- TText* buf;
- TInt currentSegLen;
- TInt totalBufLen;
- TInt delta;
- TUint32 scanMask;
- enum
- {
- EInsideUnit = 0x10000000,
- EStopEnd = 0x20000000,
- EStopBegin = 0x40000000,
- EIsDelimiter = 0x80000000
- };
- };
- private:
- CPlainText(const CPlainText& aPlainTextDoc);
- CPlainText& operator=(const CPlainText& aPlainTextDoc);
- TInt PasteFromStreamL(RReadStream& aStream,TInt aPos);
- TInt DoPasteFromStreamL(RReadStream& aStream, TInt aPos);
- void InsertEodL();
- void InitScanControl(TInt& aPos,TUint& aScanMask,TUnitOfText aContext,SScanData& aScanData) const;
- void InitScanData(TInt aPos,SScanData& aScanData) const;
- void KillFieldSet();
- TInt CountUnits(TUnitOfText aContext) const;
- TInt ScanUnit(TInt& aPos,TUnitOfText aContext,SScanData& aScanData) const;
- TBool TestForDelimiter(TUnitOfText aContext,SScanData& aScanData) const;
- TBool GetChar(SScanData& aScanData,TChar& aChar) const;
- void UpdatePageTable(TInt aPos,TInt aLength);
- inline TBool FieldSetPresent() const;
- void CreateFieldSetL(TInt aDocumentLength);
- __declspec(dllexport) virtual void Reserved_2();
- void* iReserved_1;
- protected:
- CBufBase* iByteStore;
- TSwizzle<CTextFieldSet> iFieldSet;
- TPageTable* iPageTable;
- MTextFieldFactory* iFieldFactory;
- public: void __DbgTestInvariant() const; void __DbgTest(TAny *aPtr) const ;
- };
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\txtetext.inl" /* stack depth 6 */
- TBool CEditableText::HasChanged()const
- {return iHasChanged;}
- TBool CPlainText::FieldSetPresent()const
- {return (iFieldSet.IsPtr() && iFieldSet.AsPtr()!=0 );}
- const MTextFieldFactory* CPlainText::FieldFactory()const
- {return (FieldSetPresent()) ? iFieldSet->FieldFactory() : 0 ;}
- void CPlainText::ConsumeAdornmentL(RReadStream& aStream)
- {
- TStreamId id;
- aStream>> id;
- }
- TUid CPlainText::UidFromStreamL(RReadStream& aStream)
- {
- TUid uid;
- aStream>> uid;
- return uid;
- }
- #line 714 "C:\Symbian\9.1\S60_3rd\epoc32\include\txtetext.h" /* stack depth 5 */
- #line 13 "C:\Symbian\9.1\S60_3rd\epoc32\include\frmtlay.h" /* stack depth 4 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\frmlaydt.h" /* stack depth 5 */
- #line 23
- class CLayoutData
- {
- public:
- enum
- {
- EFLargeNumber = KMaxTInt / 3,
- EFFontHeightIncreaseFactor = 7,
- EFMinimumLineDescent = 3,
- EFBaseLinePosition = 82
- };
- enum
- {
- EFHeightForFormattingAllText = EFLargeNumber,
- EFBodyWidthForNoWrapping = EFLargeNumber
- };
- enum
- {
- EFIndividualChars = 0,
- EFWholeLinesOnly = 1,
- EFWholeTBoxesOnly=EFWholeLinesOnly,
- EFDisambiguateEndOfLine = 2,
- };
- enum TFormatMode
- {
- EFScreenMode,
- EFPrintMode,
- EFPrintPreviewMode,
- EFWysiwygMode
- };
- private:
- CLayoutData(CLayoutData&);
- };
- #line 14 "C:\Symbian\9.1\S60_3rd\epoc32\include\frmtlay.h" /* stack depth 4 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\frmparam.h" /* stack depth 5 */
- #line 36
- class MFormParam
- {
- public:
- #line 66
- virtual TRgb SystemColor(TUint aColorIndex,TRgb aDefaultColor) const = 0;
- __declspec(dllexport) virtual void Reserved();
- __declspec(dllexport) static void Set(const MFormParam* aParam);
- __declspec(dllexport) static const MFormParam* Get();
- };
- #line 15 "C:\Symbian\9.1\S60_3rd\epoc32\include\frmtlay.h" /* stack depth 4 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\frmvis.h" /* stack depth 5 */
- #line 12
- class RReadStream;
- class RWriteStream;
- #line 25
- class TNonPrintingCharVisibility
- {
- private:
- enum TShowFormatChars
- {
- EFNothingVisible=0x000,
- EFTabsVisible=0x001,
- EFSpacesVisible=0x002,
- EFParagraphDelimitersVisible=0x004,
- EFLineBreaksVisible=0x008,
- EFPotentialHyphensVisible=0x010,
- EFNonBreakingHyphensVisible=0x020,
- EFNonBreakingSpacesVisible=0x040,
- EFPageBreaksVisible=0x080,
- EFEverythingVisible=0xffffffff
- };
- public:
- __declspec(dllexport) TNonPrintingCharVisibility();
- __declspec(dllexport) TNonPrintingCharVisibility(const TNonPrintingCharVisibility& aVisibility);
- __declspec(dllexport) TNonPrintingCharVisibility& operator=(const TNonPrintingCharVisibility& aVisibility);
- __declspec(dllexport) void ExternalizeL(RWriteStream& aStream)const;