S60UIExampleappui.inc
上传用户:laixiong
上传日期:2007-03-11
资源大小:2994k
文件大小:1144k
- public:
- __declspec(dllexport) ~CCoeStatic();
- protected:
- __declspec(dllexport) CCoeStatic();
- __declspec(dllexport) CCoeStatic(TUid aUid,TScope=EThread);
- __declspec(dllexport) CCoeStatic(TUid aUid,TInt aDestructionPriority,TScope aScope=EThread);
- private:
- __declspec(dllexport) virtual void CCoeStatic_Reserved1();
- __declspec(dllexport) virtual void CCoeStatic_Reserved2();
- private:
- void DoConstruction(TUid aUid,TInt aDestructionPriority,TScope aScope);
- void SetCsAppUi(CCoeAppUi* aAppUi);
- CCoeAppUi* CsAppUi() const;
- TScope CsScope() const;
- inline TInt DestructionPriority() const {return iCsLink.iPriority;}
- private:
- TPriQueLink iCsLink;
- TUid iCsUid;
- TUint iCsAppUiAndScope;
- TInt iCCoeStatic_Reserved1;
- private:
- friend class CCoeEnv;
- friend class CCoeEnvExtra;
- };
- inline const TWsEvent& CCoeEnv::LastEvent() const
- { return(iLastEvent); }
- inline CCoeAppUi* CCoeEnv::AppUi() const
- { return(iAppUi); }
- inline RFs& CCoeEnv::FsSession() const
- { return((RFs&)iFsSession); }
- inline RWsSession& CCoeEnv::WsSession() const
- { return((RWsSession&)iWsSession); }
- inline RWindowGroup& CCoeEnv::RootWin() const
- { return((RWindowGroup&)iRootWin); }
- inline CWindowGc& CCoeEnv::SystemGc() const
- { return((CWindowGc&)*iSystemGc); }
- inline const CFont* CCoeEnv::NormalFont() const
- { return(iNormalFont); }
- inline CWsScreenDevice* CCoeEnv::ScreenDevice() const
- { return(iScreen); }
- inline TDes& CCoeEnv::ErrorText()
- { return *iErrorText; }
- inline TDes& CCoeEnv::ErrorContextText()
- { return *iErrorContextText; }
- inline void CCoeEnv::ReadResource(TDes& aDes,TInt aResourceId) const
- #line 657
- { ReadResourceAsDes16(aDes,aResourceId); }
- inline void CCoeEnv::ReadResourceL(TDes& aDes,TInt aResourceId) const
- #line 668
- { ReadResourceAsDes16L(aDes,aResourceId); }
- inline HBufC* CCoeEnv::AllocReadResourceL(TInt aResourceId) const
- #line 679
- { return AllocReadResourceAsDes16L(aResourceId); }
- inline HBufC* CCoeEnv::AllocReadResourceLC(TInt aResourceId) const
- #line 691
- { return AllocReadResourceAsDes16LC(aResourceId); }
- inline CDesCArrayFlat* CCoeEnv::ReadDesCArrayResourceL(TInt aResourceId)
- { return ReadDesC16ArrayResourceL(aResourceId); }
- #line 727
- inline TBool CCoeEnv::IsSchedulerRunning() const
- {return iEnvFlags&ESchedulerIsRunning;}
- #line 10 "C:\Symbian\9.1\S60_3rd\epoc32\include\coeview.h" /* stack depth 6 */
- class CCoeAppUi;
- class MCoeView
- {
- public:
- virtual TVwsViewId ViewId() const=0;
- private:
- #line 41
- virtual void ViewActivatedL(const TVwsViewId& aPrevViewId,TUid aCustomMessageId,const TDesC8& aCustomMessage)=0;
- virtual void ViewDeactivated()=0;
- protected:
- __declspec(dllexport) MCoeView();
- __declspec(dllexport) virtual TVwsViewIdAndMessage ViewScreenDeviceChangedL();
- private:
- __declspec(dllexport) virtual void ViewConstructL();
- protected:
- __declspec(dllexport) virtual TBool ViewScreenModeCompatible(TInt aScreenMode);
- private:
- friend class CCoeViewManager;
- __declspec(dllexport) virtual void PrepareForViewActivation();
- __declspec(dllexport) virtual void MCoeView_Reserved_2();
- __declspec(dllexport) virtual void MCoeView_Reserved_3();
- private:
- TInt iMCoeView_Reserved1;
- };
- class CCoeScreenDeviceChangeDefaultHandler : public CCoeStatic
- #line 79
- {
- public:
- __declspec(dllexport) ~CCoeScreenDeviceChangeDefaultHandler();
- __declspec(dllexport) static CCoeScreenDeviceChangeDefaultHandler* Self();
- protected:
- __declspec(dllexport) CCoeScreenDeviceChangeDefaultHandler();
- __declspec(dllexport) CCoeScreenDeviceChangeDefaultHandler(TInt aDestructionPriority);
- private:
- __declspec(dllexport) virtual void CCoeStatic_Reserved1();
- __declspec(dllexport) virtual void CCoeStatic_Reserved2();
- __declspec(dllexport) virtual void CCoeScreenDeviceChangeDefaultHandler_Reserved1();
- __declspec(dllexport) virtual void CCoeScreenDeviceChangeDefaultHandler_Reserved2();
- public:
- virtual void HandleScreenDeviceChangedL()=0;
- virtual TVwsViewIdAndMessage DefaultViewOnScreenDeviceChanged()=0;
- private:
- TInt iCCoeScreenDeviceChangeDefaultHandler;
- };
- #line 34 "C:\Symbian\9.1\S60_3rd\epoc32\include\coeaui.h" /* stack depth 5 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\coeinput.h" /* stack depth 6 */
- #line 14
- class MCoeFepAwareTextEditor;
- class MCoeCaptionRetrieverForFep;
- class MObjectProvider;
- class TCoeInputCapabilities
- {
- public:
- enum
- {
- ENone =0,
- EWesternNumericIntegerPositive =0x00000001,
- EWesternNumericIntegerNegative =0x00000002,
- EWesternNumericReal =0x00000004,
- EWesternAlphabetic =0x00000008,
- EJapaneseHiragana =0x00000010,
- EJapaneseKatakanaHalfWidth =0x00000020,
- EJapaneseKatakanaFullWidth =0x00000040,
- EDialableCharacters =0x00000080,
- ESecretText =0x00000100,
- EAutoSentenceCase =0x00000200,
- ENonPredictive =0x00000400,
- EAllText =0x01000000,
- ENavigation =0x02000000
- };
- class MCoeFepSpecificExtensions;
- public:
- __declspec(dllexport) TCoeInputCapabilities();
- __declspec(dllexport) TCoeInputCapabilities(TUint aCapabilities);
- __declspec(dllexport) TCoeInputCapabilities(TUint aCapabilities, MCoeFepAwareTextEditor* aFepAwareTextEditor, MCoeCaptionRetrieverForFep* aCaptionRetrieverForFep);
- __declspec(dllexport) TCoeInputCapabilities(TUint aCapabilities, MCoeFepAwareTextEditor* aFepAwareTextEditor, MCoeCaptionRetrieverForFep* aCaptionRetrieverForFep, TUid aFepUid, MCoeFepSpecificExtensions* aFepSpecificExtensions);
- __declspec(dllexport) TCoeInputCapabilities(const TCoeInputCapabilities& aAnother);
- __declspec(dllexport) TCoeInputCapabilities& operator=(const TCoeInputCapabilities& aAnother);
- __declspec(dllexport) TBool operator==(const TCoeInputCapabilities& aAnother) const;
- __declspec(dllexport) TBool operator!=(const TCoeInputCapabilities& aAnother) const;
- __declspec(dllexport) void MergeWith(const TCoeInputCapabilities& aAnother);
- __declspec(dllexport) void SetCapabilities(TUint aCapabilities);
- __declspec(dllexport) TUint Capabilities() const;
- __declspec(dllexport) TBool IsNone() const;
- __declspec(dllexport) TBool SupportsWesternNumericIntegerPositive() const;
- __declspec(dllexport) TBool SupportsWesternNumericIntegerNegative() const;
- __declspec(dllexport) TBool SupportsWesternNumericReal() const;
- __declspec(dllexport) TBool SupportsWesternAlphabetic() const;
- __declspec(dllexport) TBool SupportsJapaneseHiragana() const;
- __declspec(dllexport) TBool SupportsJapaneseKatakanaHalfWidth() const;
- __declspec(dllexport) TBool SupportsJapaneseKatakanaFullWidth() const;
- __declspec(dllexport) TBool SupportsDialableCharacters() const;
- __declspec(dllexport) TBool SupportsSecretText() const;
- __declspec(dllexport) TBool SupportsAutoSentenceCase() const;
- __declspec(dllexport) TBool SupportsNonPredictive() const;
- __declspec(dllexport) TBool SupportsAllText() const;
- __declspec(dllexport) TBool SupportsNavigation() const;
- __declspec(dllexport) MCoeFepAwareTextEditor* FepAwareTextEditor() const;
- __declspec(dllexport) MCoeCaptionRetrieverForFep* CaptionRetrieverForFep() const;
- __declspec(dllexport) MCoeFepSpecificExtensions* FepSpecificExtensions(TUid aFepUid) const;
- __declspec(dllexport) MObjectProvider* ObjectProvider() const;
- __declspec(dllexport) void SetObjectProvider(MObjectProvider* aObjectProvider);
- private:
- TUint iCapabilities;
- MCoeFepAwareTextEditor* iFepAwareTextEditor;
- MCoeCaptionRetrieverForFep* iCaptionRetrieverForFep;
- TUint iFepUid;
- MCoeFepSpecificExtensions* iFepSpecificExtensions;
- MObjectProvider* iObjectProvider;
- TAny* iSpareForFutureUse[5];
- };
- #line 38 "C:\Symbian\9.1\S60_3rd\epoc32\include\coeaui.h" /* stack depth 5 */
- class CCoeEnv;
- class CCoeControl;
- typedef CCoeFep* (*TCoeFepFactoryFunctionL)(CCoeEnv& aConeEnvironment, const TDesC& aFullFileNameOfDll, const CCoeFepParameters& aFepParameters);
- typedef void (*TCoeSynchronouslyExecuteFepSettingsDialogFunctionL)(CCoeEnv& aConeEnvironment, const TDesC& aFullFileNameOfDll);
- #line 67
- enum
- {
- ECoeStackPriorityDefault=0,
- ECoeStackPriorityMenu=10,
- ECoeStackPriorityDialog=50,
- ECoeStackPriorityCba=60,
- ECoeStackPriorityAlert=200,
- ECoeStackPriorityFep=250,
- ECoeStackPriorityEnvironmentFilter=300
- };
- #line 93
- enum
- {
- ECoeStackFlagStandard = 0,
- ECoeStackFlagRefusesAllKeys = 0x01,
- ECoeStackFlagRefusesFocus = 0x02,
- ECoeStackFlagOwnershipTransfered= 0x04,
- ECoeStackFlagSharable = 0x08
- };
- class CCoeControlStack;
- class CCoeViewManager;
- class MCoeViewDeactivationObserver;
- class MCoeViewActivationObserver;
- class MCoeViewObserver;
- #line 128
- class CCoeAppUi : public CBase
- {
- public:
- __declspec(dllexport) CCoeAppUi();
- __declspec(dllexport) ~CCoeAppUi();
- __declspec(dllexport) void ConstructL(CCoeAppUi* aPrevious=0 );
- public:
- __declspec(dllexport) void AddToStackL(CCoeControl* aControl,TInt aPriority=ECoeStackPriorityDefault,TInt aStackingFlags=ECoeStackFlagStandard);
- __declspec(dllexport) void RemoveFromStack(CCoeControl* aControl);
- __declspec(dllexport) void UpdateStackedControlFlags(CCoeControl* aControl,TInt aFlags,TInt aMask);
- __declspec(dllexport) void HandleStackChanged();
- __declspec(dllexport) TBool IsDisplayingMenuOrDialog() const;
- __declspec(dllexport) TBool IsDisplayingDialog() const;
- __declspec(dllexport) TBool IsDisplayingControlBetweenPriorities(TInt aLowerPriority, TInt aHigherPriority) const;
- __declspec(dllexport) CArrayFix<TCoeHelpContext> * AppHelpContextL() const;
- __declspec(dllexport) virtual TCoeInputCapabilities InputCapabilities() const;
- __declspec(dllexport) void HandleStackedControlsResourceChange(TInt aType);
- __declspec(dllexport) void ActivateViewL(const TVwsViewId& aViewId);
- __declspec(dllexport) void ActivateViewL(const TVwsViewId& aViewId,TUid aCustomMessageId,const TDesC8& aCustomMessage);
- __declspec(dllexport) TBool CheckSourceOfViewSwitchL(const TSecurityPolicy& aSecurityPolicy,const char* aDiagnostic=0 ) const;
- __declspec(dllexport) void RegisterViewL(MCoeView& aView);
- __declspec(dllexport) void DeregisterView(const MCoeView& aView);
- __declspec(dllexport) void SetDefaultViewL(const MCoeView& aView);
- __declspec(dllexport) TInt GetDefaultViewId(TVwsViewId& aViewId) const;
- __declspec(dllexport) TInt GetActiveViewId(TVwsViewId& aViewId) const;
- __declspec(dllexport) void AddToStackL(const MCoeView& aView,CCoeControl* aControl,TInt aPriority=ECoeStackPriorityDefault,TInt aStackingFlags=ECoeStackFlagStandard);
- __declspec(dllexport) CCoeControl* TopFocusedControl() const;
- public:
- TBool IsControlOnStack(CCoeControl* aControl) const;
- void SetCurrentControlStackGroupId(TInt aGroupId);
- void NotifyFontChange(const CCoeFontProvider& aFontProvider);
- void RefetchPixelMapping();
- public:
- __declspec(dllexport) void CreateActivateViewEventL(const TVwsViewId& aViewId,TUid aCustomMessageId,const TDesC8& aCustomMessage);
- __declspec(dllexport) void ActivateTopViewL();
- __declspec(dllexport) void DeactivateActiveViewL();
- __declspec(dllexport) void RegisterApplicationViewL(TUid aAppUid);
- __declspec(dllexport) void DeregisterApplicationView();
- __declspec(dllexport) void CheckInitializeViewsL(TUid aAppUid);
- __declspec(dllexport) void SetApplicationViewAsDefaultL();
- __declspec(dllexport) void AddViewDeactivationObserverL(MCoeViewDeactivationObserver* aViewDeactivationObserver);
- __declspec(dllexport) void RemoveViewDeactivationObserver(MCoeViewDeactivationObserver* aViewDeactivationObserver);
- __declspec(dllexport) void NotifyNextDeactivation(const TVwsViewId& aViewId, MCoeViewDeactivationObserver& aViewDeactivationObserver);
- __declspec(dllexport) void NotifyNextDeactivation(MCoeViewDeactivationObserver& aViewDeactivationObserver);
- __declspec(dllexport) void AddViewActivationObserverL(MCoeViewActivationObserver* aViewActivationObserver);
- __declspec(dllexport) void RemoveViewActivationObserver(MCoeViewActivationObserver* aViewActivationObserver);
- __declspec(dllexport) void NotifyNextActivation(const TVwsViewId& aViewId, MCoeViewActivationObserver& aViewActivationObserver);
- __declspec(dllexport) void NotifyNextActivation(MCoeViewActivationObserver& aViewActivationObserver);
- __declspec(dllexport) void AddViewObserverL(MCoeViewObserver* aViewObserver);
- __declspec(dllexport) void RemoveViewObserver(MCoeViewObserver* aViewObserver);
- __declspec(dllexport) void WriteInternalStateOfStackedControlsL(RWriteStream& aWriteStream) const;
- __declspec(dllexport) void SetSystemDefaultViewL(const TVwsViewId& aViewId,TInt aMode);
- __declspec(dllexport) void SetSystemDefaultViewL(const TVwsViewId& aViewId);
- __declspec(dllexport) void GetSystemDefaultViewL(TVwsViewId& aViewId);
- public:
- __declspec(dllexport) void RegisterViewAndAddStackL(MCoeView& aView);
- __declspec(dllexport) void DeregisterViewAndRemoveStack(const MCoeView& aView);
- __declspec(dllexport) void RemoveFromViewStack(const MCoeView& aView,CCoeControl* aControl);
- __declspec(dllexport) void UpdateViewStackedControlFlags(const MCoeView& aView,CCoeControl* aControl,TInt aFlags,TInt aMask);
- __declspec(dllexport) void AddToViewStackL(const MCoeView& aView,CCoeControl* aControl,TInt aPriority=ECoeStackPriorityDefault,TInt aStackingFlags=ECoeStackFlagStandard);
- public:
- __declspec(dllexport) virtual void HandleWsEventL(const TWsEvent& aEvent,CCoeControl* aDestination);
- __declspec(dllexport) virtual void PrepareToExit();
- protected:
- __declspec(dllexport) virtual void HandleScreenDeviceChangedL();
- private:
- __declspec(dllexport) virtual TKeyResponse HandleKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType);
- __declspec(dllexport) virtual void HandleForegroundEventL(TBool aForeground);
- __declspec(dllexport) virtual void HandleSwitchOnEventL(CCoeControl* aDestination);
- __declspec(dllexport) virtual void HandleSystemEventL(const TWsEvent& aEvent);
- __declspec(dllexport) virtual void HandleApplicationSpecificEventL(TInt aType,const TWsEvent& aEvent);
- __declspec(dllexport) virtual void SetAndDrawFocus(TBool aFocus);
- __declspec(dllexport) virtual CArrayFix<TCoeHelpContext> * HelpContextL() const;
- public:
- __declspec(dllexport) TBool IsViewConstructed(const TVwsViewId& aViewId) const;
- __declspec(dllexport) virtual void CCoeAppUi_Reserved1();
- __declspec(dllexport) virtual void CCoeAppUi_Reserved2();
- private:
- enum TRemoveCondition
- {
- ERemoveUnconditionally,
- ERemoveOnlyIfSharable
- };
- private:
- CCoeControl* TopFocusableControl() const;
- TInt FindPos(CCoeControlStack* aStack,CCoeControl* aControl) const;
- void SetFocusToControl(CCoeControl* aControl,TBool aFocus);
- void DoAddToStackL(CCoeControlStack* aStack,CCoeControl* aControl,TInt aPriority,TInt aStackingFlags);
- void DoAddToStackL(CCoeControlStack* aStack,CCoeControl* aControl,TInt aPriority,TInt aStackingFlags, TInt aGroupId);
- void DoRemoveFromStack(CCoeControlStack* aStack,CCoeControl* aControl,TRemoveCondition aRemoveCondition=ERemoveUnconditionally);
- void DoUpdateStackedControlFlags(CCoeControlStack* aStack,CCoeControl* aControl,TInt aFlags,TInt aMask);
- public:
- void MonitorWsEvent(const TWsEvent& aEvent);
- private:
- class CExtra;
- friend class CExtra;
- friend class CTestDriver;
- protected:
- CCoeEnv* iCoeEnv;
- private:
- CCoeViewManager* iViewManager;
- CCoeControlStack* iStack;
- CExtra* iExtra;
- TInt iCCoeAppUi_Reserved1;
- };
- class MCoeViewDeactivationObserver
- #line 248
- {
- public:
- virtual void HandleViewDeactivation(const TVwsViewId& aViewIdToBeDeactivated,const TVwsViewId& aNewlyActivatedViewId)=0;
- protected:
- __declspec(dllexport) MCoeViewDeactivationObserver();
- private:
- __declspec(dllexport) virtual void MCoeViewDeactivationObserver_Reserved_1();
- __declspec(dllexport) virtual void MCoeViewDeactivationObserver_Reserved_2();
- private:
- TInt iMCoeViewDeactivationObserver_Reserved1;
- };
- class MCoeViewActivationObserver
- {
- public:
- virtual void HandleViewActivation(const TVwsViewId& aNewlyActivatedViewId,const TVwsViewId& aViewIdToBeDeactivated)=0;
- protected:
- __declspec(dllexport) MCoeViewActivationObserver();
- private:
- __declspec(dllexport) virtual void MCoeViewActivationObserver_Reserved_1();
- __declspec(dllexport) virtual void MCoeViewActivationObserver_Reserved_2();
- private:
- TInt iMCoeViewActivationObserver_Reserved1;
- };
- class MCoeViewObserver
- {
- public:
- virtual void HandleViewEventL(const TVwsViewEvent& aEvent)=0;
- protected:
- __declspec(dllexport) MCoeViewObserver();
- private:
- __declspec(dllexport) virtual void MCoeViewObserver_Reserved1();
- __declspec(dllexport) virtual void MCoeViewObserver_Reserved2();
- private:
- TInt iMCoeViewObserver_Reserved1;
- };
- #line 9 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikappui.h" /* stack depth 4 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikmobs.h" /* stack depth 5 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikcmobs.h" /* stack depth 6 */
- #line 11
- class CCoeControl;
- class MEikCommandObserver
- #line 24
- {
- public:
- virtual void ProcessCommandL(TInt aCommandId)=0;
- #line 44
- __declspec(dllexport) virtual CCoeControl* CreateCustomCommandControlL(TInt aControlType);
- protected:
- __declspec(dllexport) MEikCommandObserver();
- private:
- __declspec(dllexport) virtual void MEikCommandObserver_Reserved1();
- __declspec(dllexport) virtual void MEikCommandObserver_Reserved2();
- private:
- TInt iMEikCommandObserver_Reserved1;
- };
- #line 9 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikmobs.h" /* stack depth 5 */
- class CCoeControl;
- class CEikMenuPane;
- class CEikMenuBar;
- class CEikHotKeyTable;
- class TPoint;
- class MEikMenuObserver : public MEikCommandObserver
- #line 29
- {
- public:
- enum TMenuType
- {
- EMenuPane,
- EMenuBar
- };
- public:
- __declspec(dllexport) virtual void HandleAttemptDimmedSelectionL(TInt aCommandId);
- __declspec(dllexport) virtual TBool CheckHotKeyNotDimmedL(TInt aCommandId);
- __declspec(dllexport) virtual void RestoreMenuL(CCoeControl* aMenuControl,TInt aResourceId,TMenuType aType);
- __declspec(dllexport) virtual void DynInitMenuPaneL(TInt aResourceId,CEikMenuPane* aMenuPane);
- __declspec(dllexport) virtual void DynInitMenuBarL(TInt aResourceId,CEikMenuBar* aMenuBar);
- __declspec(dllexport) virtual void HandleSideBarMenuL(TInt aResourceId,const TPoint& aPos,TInt aModifiers,const CEikHotKeyTable* aTable);
- __declspec(dllexport) virtual void OfferKeyToAppL(const TKeyEvent& aKeyEvent,TEventCode aType);
- #line 56
- virtual void SetEmphasis(CCoeControl* aMenuControl,TBool aEmphasis)=0;
- public:
- __declspec(dllexport) virtual CCoeControl* CreateCustomCommandControlL(TInt aControlType);
- protected:
- __declspec(dllexport) MEikMenuObserver();
- private:
- __declspec(dllexport) virtual void Reserved_1_MenuObserver();
- __declspec(dllexport) virtual void Reserved_2_MenuObserver();
- __declspec(dllexport) virtual void MEikCommandObserver_Reserved1();
- __declspec(dllexport) virtual void MEikCommandObserver_Reserved2();
- private:
- TInt iMEikMenuObserver_Reserved1;
- };
- class MEikAutoMenuObserver : public MEikMenuObserver
- #line 80
- {
- public:
- virtual TKeyResponse OfferHotKeyL(const TKeyEvent& aKeyEvent,TEventCode aType)=0;
- public:
- __declspec(dllexport) void SetEmphasis(CCoeControl* aMenuControl,TBool aEmphasis);
- public:
- __declspec(dllexport) virtual void HandleAttemptDimmedSelectionL(TInt aCommandId);
- __declspec(dllexport) virtual TBool CheckHotKeyNotDimmedL(TInt aCommandId);
- __declspec(dllexport) virtual void RestoreMenuL(CCoeControl* aMenuControl,TInt aResourceId,TMenuType aType);
- __declspec(dllexport) virtual void DynInitMenuPaneL(TInt aResourceId,CEikMenuPane* aMenuPane);
- __declspec(dllexport) virtual void DynInitMenuBarL(TInt aResourceId,CEikMenuBar* aMenuBar);
- __declspec(dllexport) virtual void HandleSideBarMenuL(TInt aResourceId,const TPoint& aPos,TInt aModifiers,const CEikHotKeyTable* aTable);
- __declspec(dllexport) virtual void OfferKeyToAppL(const TKeyEvent& aKeyEvent,TEventCode aType);
- __declspec(dllexport) virtual CCoeControl* CreateCustomCommandControlL(TInt aControlType);
- protected:
- __declspec(dllexport) MEikAutoMenuObserver();
- private:
- __declspec(dllexport) virtual void Reserved_1_MenuObserver();
- __declspec(dllexport) virtual void Reserved_2_MenuObserver();
- __declspec(dllexport) virtual void MEikCommandObserver_Reserved1();
- __declspec(dllexport) virtual void MEikCommandObserver_Reserved2();
- private:
- TInt iMEikAutoMenuObserver_Reserved1;
- };
- #line 11 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikappui.h" /* stack depth 4 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\apadef.h" /* stack depth 5 */
- #line 18
- const TUint KApaCommandLetterOpen='O';
- const TUint KApaCommandLetterCreate='C';
- const TUint KApaCommandLetterRun='R';
- const TUint KApaCommandLetterBackground='B';
- const TUint KApaCommandLetterViewActivate='V';
- const TUint KApaCommandLetterRunWithoutViews='W';
- enum TApaCommand
- {
- EApaCommandOpen,
- EApaCommandCreate,
- EApaCommandRun,
- EApaCommandBackground,
- EApaCommandViewActivate,
- EApaCommandRunWithoutViews
- };
- const TInt KApaMaxAppCaption=0x100;
- #line 82
- typedef TBuf<KApaMaxAppCaption> TApaAppCaption;
- const TInt KApaMaxCommandLine=0x100;
- typedef TBuf<KApaMaxCommandLine> TApaCommandLine;
- const TInt KApaMaxAppFileName=0x10;
- typedef TBuf<KApaMaxAppFileName> TApaAppFileName;
- const TInt KApaMaxAppGroupName=0x10;
- #line 118
- typedef TBuf<KApaMaxAppGroupName> TApaAppGroupName;
- const TInt KAppUidValue8 = 0x1000006c;
- const TUid KUidApp8={KAppUidValue8};
- #line 141
- const TInt KAppUidValue16 = 0x100039CE;
- const TUid KUidApp16={KAppUidValue16};
- const TUid KUidAppDllDoc8={268435565};
- const TUid KUidAppDllDoc16={0x10003A12};
- const TUid KUidPictureTypeDoor8={268435537};
- const TUid KUidPictureTypeDoor16={0x10003A33};
- const TUid KUidSecurityStream8={268435661};
- const TUid KUidSecurityStream16={0x10003A40};
- const TUid KUidAppIdentifierStream8={268435593};
- const TUid KUidAppIdentifierStream16={0x10003A34};
- #line 272
- const TUid KUidFileEmbeddedApplicationInterfaceUid={0x101f8c96};
- #line 12 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikappui.h" /* stack depth 4 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikdef.h" /* stack depth 5 */
- #line 20
- enum TPopupTargetPosType
- {
- EPopupTargetTopLeft,
- EPopupTargetTopRight,
- EPopupTargetBottomLeft,
- EPopupTargetBottomRight
- };
- #line 110
- const static TLitC<sizeof(L"*")/2> KEikDefaultAppBitmapStore={sizeof(L"*")/2-1,L"*"} ;
- const TInt KUidValueEikColorSchemeChangeEvent =0x10006956;
- const TInt KEikCustomColorsArrayValue =0x100057C2;
- const TInt KEikMessageFadeAllWindows =0x100056C2;
- const TInt KEikMessageUnfadeWindows =0x100056C3;
- const TInt KEikMessageColorSchemeChange =KUidValueCoeColorSchemeChangeEvent;
- #line 157
- const TInt KEikMessageZoomChange =KUidValueCoeZoomChangeEvent;
- const TInt KEikMessageFontChange = KUidValueCoeFontChangeEvent;
- const TInt KEikMessageVirtualCursorStateChange =0x10005D0A;
- const TInt KEikMessageCapsLock =0x100048F9;
- const TInt KEikMessagePrepareForSave =0x100069FD;
- const TInt KEikMessageEmbedLevelChange =0x1000A4AA;
- #line 202
- const TInt KEikHasBecomeCurrentAppUiWhileEmbeddedAppUiDeletes = 0x10207F75;
- const TInt KEikNotifyPreCreateEmbeddedL = 0x10207F67;
- const TInt KEikNotifyPostCreateEmbeddedL = 0x10207F65;
- const TInt KEikPostCoeAppUiConstructL = 0x10207F66;
- const TInt KEikResIdQueryDialog =0;
- const TInt KEikResIdInfoDialog =1;
- #line 14 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikappui.h" /* stack depth 4 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\baerrhan.h" /* stack depth 5 */
- #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 15 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikappui.h" /* stack depth 4 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikaufty.h" /* stack depth 5 */
- #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 16 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikappui.h" /* stack depth 4 */
- class CEikDocument;
- class CEikApplication;
- class CEikAppUiExtra;
- class MApaEmbeddedDocObserver;
- struct SExtendedError;
- class CApaCommandLine;
- class CEikAppUi : public CCoeAppUi, public MEikMenuObserver, public MCoeMessageObserver
- , public MObjectProvider
- #line 56
- {
- public:
- __declspec(dllexport) ~CEikAppUi();
- __declspec(dllexport) CEikAppUi();
- public:
- __declspec(dllexport) virtual void ConstructL();
- __declspec(dllexport) virtual void HandleModelChangeL();
- __declspec(dllexport) void LaunchPopupMenuL(TInt aResourceId,const TPoint& aTargetPos,TPopupTargetPosType aTargetType,const CEikHotKeyTable* aHotKeyTable=0 );
- inline CEikAppUi* ContainerAppUi() const;
- __declspec(dllexport) void SetDocument(CEikDocument* aDocument);
- __declspec(dllexport) void SetEmbeddedDocInfo(MApaEmbeddedDocObserver* aObserver,TBool aReadOnly);
- __declspec(dllexport) virtual TBool ProcessCommandParametersL(TApaCommand aCommand,TFileName& aDocumentName,const TDesC8& aTail);
- __declspec(dllexport) virtual TBool ProcessCommandParametersL(CApaCommandLine& aCommandLine);
- __declspec(dllexport) CEikDocument* Document() const;
- __declspec(dllexport) CEikApplication* Application() const;
- __declspec(dllexport) TRect ClientRect() const;
- __declspec(dllexport) virtual TRect ApplicationRect() const;
- __declspec(dllexport) virtual void StopDisplayingMenuBar();
- __declspec(dllexport) TBool FadeWhenInBackground();
- __declspec(dllexport) virtual void SetFadedL(TBool aFaded);
- inline void SetFaded(TBool aFaded);
- public:
- virtual __declspec(dllexport) void ReportResourceChangedToAppL(TInt aType);
- __declspec(dllexport) virtual void HandleCommandL(TInt aCommand);
- __declspec(dllexport) virtual void ProcessMessageL(TUid aUid,const TDesC8& aParams);
- __declspec(dllexport) virtual void OpenFileL(const TDesC& aFileName);
- __declspec(dllexport) virtual void CreateFileL(const TDesC& aFileName);
- __declspec(dllexport) virtual TErrorHandlerResponse HandleError(TInt aError,const SExtendedError& aExtErr,TDes& aErrorText,TDes& aContextText);
- __declspec(dllexport) virtual void HandleResourceChangeL(TInt aType);
- public:
- __declspec(dllexport) void PrepareToExit();
- protected:
- __declspec(dllexport) void BaseConstructL(TInt aAppUiFlags=0);
- __declspec(dllexport) void ReadAppInfoResourceL(TInt aResourceFileOffset=0);
- __declspec(dllexport) void CreateHotKeyControlL(TInt aResourceId);
- __declspec(dllexport) void SetDocChanged();
- __declspec(dllexport) void SaveAnyChangesL();
- __declspec(dllexport) virtual void Exit();
- __declspec(dllexport) void SaveL();
- __declspec(dllexport) void ClosePopup();
- __declspec(dllexport) TBool ProcessCommandParametersL(TApaCommand aCommand,TFileName& aDocumentName);
- protected:
- __declspec(dllexport) void HandleSideBarMenuL(TInt aResourceId,const TPoint& aPos,TInt aModifiers,const CEikHotKeyTable* aTable);
- protected:
- __declspec(dllexport) void HandleApplicationSpecificEventL(TInt aType,const TWsEvent& aEvent);
- __declspec(dllexport) void HandleForegroundEventL(TBool aForeground);
- __declspec(dllexport) void HandleWsEventL(const TWsEvent& aEvent, CCoeControl* aDestination);
- __declspec(dllexport) void HandleSystemEventL(const TWsEvent& aEvent);
- __declspec(dllexport) void HandleScreenDeviceChangedL();
- protected:
- __declspec(dllexport) void ProcessCommandL(TInt aCommand);
- private:
- __declspec(dllexport) void SetEmphasis(CCoeControl* aMenuWindow,TBool aEmphasis);
- protected:
- __declspec(dllexport) MCoeMessageObserver::TMessageResponse HandleMessageL(TUint32 aClientHandleOfTargetWindowGroup, TUid aMessageUid, const TDesC8& aMessageParameters);
- protected:
- __declspec(dllexport) virtual TTypeUid::Ptr MopSupplyObject(TTypeUid aId);
- __declspec(dllexport) virtual MObjectProvider* MopNext();
- private:
- private:
- __declspec(dllexport) virtual TBool ValidFileType(TUid aFileUid) const;
- __declspec(dllexport) virtual void Reserved_3();
- __declspec(dllexport) virtual void Reserved_4();
- public:
- __declspec(dllexport) TLanguage ApplicationLanguageL() const;
- public:
- enum
- {
- EStandardApp = 0x00,
- ENoAppResourceFile = 0x01,
- ENonStandardResourceFile= 0x02,
- ENoScreenFurniture = 0x04,
- ELastReservedEikAppUiFlag = 0x8000
- };
- public:
- __declspec(dllexport) void ReportResourceChangedToAppStackL(CEikAppUi* aTopApp, TInt aEventId);
- private:
- void CreateResourceIndependentFurnitureL();
- TBool ValidFileExistsL(const TDesC& aFileName);
- protected:
- CEikDocument* iDocument;
- CEikAppUi* iContainerAppUi;
- MApaEmbeddedDocObserver* iDoorObserver;
- TBool iEmbeddedAndReadOnly;
- TInt iFlags;
- private:
- enum
- {
- EEmbedded = 0x01
- };
- private:
- CEikAppUiExtra* iAppUiExtra;
- };
- inline CEikAppUi* CEikAppUi::ContainerAppUi() const
- { return iContainerAppUi; }
- #line 24 "C:\Symbian\9.1\S60_3rd\epoc32\include\aknappui.h" /* stack depth 3 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\Eikspane.h" /* stack depth 4 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikspmod.h" /* stack depth 5 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\uikon.hrh" /* stack depth 6 */
- #line 20
- enum TEikAppResourceFileStandardOffset
- {
- ESignatureResourceOffset=1,
- EDefaultNameResourceOffset,
- EAppInfoResourceOffset
- };
- #line 14 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikspmod.h" /* stack depth 5 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\eiksrvc.h" /* stack depth 6 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\eiksrvs.h" /* stack depth 7 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikenv.h" /* stack depth 8 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\apaflrec.h" /* stack depth 9 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\apaid.h" /* stack depth 10 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\apmstd.h" /* stack depth 11 */
- #line 17
- const TInt KMaxDataTypeLength=256;
- class RReadStream;
- class RWriteStream;
- #line 31
- typedef TInt32 TDataTypePriority;
- const TInt32 KDataTypePriorityUserSpecified=KMaxTInt16;
- #line 46
- const TInt32 KDataTypePrioritySystem = 0xFFF9;
- #line 55
- const TInt32 KDataTypeUnTrustedPriorityThreshold=KMaxTInt16;
- #line 64
- const TInt32 KDataTypePriorityHigh=10000;
- #line 73
- const TInt32 KDataTypePriorityNormal=0;
- #line 82
- const TInt32 KDataTypePriorityLow=-10000;
- #line 91
- const TInt32 KDataTypePriorityLastResort=-20000;
- const TInt32 KDataTypePriorityNotSupported=KMinTInt16;
- class TDataType
- #line 110
- {
- public:
- __declspec(dllexport) TDataType();
- __declspec(dllexport) TDataType(const TDataType& aDataType);
- __declspec(dllexport) TDataType(const TDesC8& aDataType);
- __declspec(dllexport) TDataType(TUid aUid);
- __declspec(dllexport) TInt operator==(const TDataType& aDataType) const;
- __declspec(dllexport) TInt operator!=(const TDataType& aDataType) const;
- __declspec(dllexport) TBool IsNative() const;
- __declspec(dllexport) TBuf<KMaxDataTypeLength> Des() const;
- __declspec(dllexport) TPtrC8 Des8() const;
- __declspec(dllexport) TUid Uid() const;
- __declspec(dllexport) void InternalizeL(RReadStream& aReadStream);
- __declspec(dllexport) void ExternalizeL(RWriteStream& aWriteStream) const;
- private:
- void ParseDes();
- private:
- TBuf8<KMaxDataTypeLength> iDataType;
- TUid iUid;
- };
- #line 142
- const static TLitC8<sizeof( "X-Epoc-Url/")> KEpocUrlDataTypeHeader={sizeof( "X-Epoc-Url/")-1, "X-Epoc-Url/"} ;
- class TDataTypeWithPriority
- #line 159
- {
- public:
- __declspec(dllexport) TDataTypeWithPriority();
- __declspec(dllexport) TDataTypeWithPriority(const TDataType& aDataType, TDataTypePriority aPriority);
- __declspec(dllexport) void InternalizeL(RReadStream& aReadStream);
- __declspec(dllexport) void ExternalizeL(RWriteStream& aWriteStream) const;
- public:
- TDataType iDataType;
- TDataTypePriority iPriority;
- };
- #line 16 "C:\Symbian\9.1\S60_3rd\epoc32\include\apaid.h" /* stack depth 10 */
- class TApaAppIdentifier;
- class TApaAppEntry;
- class CApaAppFinder;
- class RReadStream;
- class RWriteStream;
- class RFs;
- class TApaAppIdentifier
- #line 49
- {
- public:
- __declspec(dllexport) TApaAppIdentifier();
- __declspec(dllexport) TApaAppIdentifier(TUid aAppUidType,const TFileName& aDllName);
- __declspec(dllexport) void ExternalizeL(RWriteStream& aStream)const;
- __declspec(dllexport) void InternalizeL(RReadStream& aStream);
- public:
- TUid iAppUid;
- TFileName iFullName;
- private:
- TInt iTApaAppIdentifier_Reserved1;
- };
- class TApaAppEntry
- #line 78
- {
- public:
- __declspec(dllexport) TApaAppEntry();
- __declspec(dllexport) TApaAppEntry(const TUidType& aAppUidType,const TFileName& aDllName);
- __declspec(dllexport) void ExternalizeL(RWriteStream& aStream)const;
- __declspec(dllexport) void InternalizeL(RReadStream& aStream);
- public:
- TUidType iUidType;
- TFileName iFullName;
- private:
- TInt iTApaAppEntry_Reserved1;
- };
- class TApaAppInfo
- #line 109
- {
- public:
- __declspec(dllexport) TApaAppInfo();
- __declspec(dllexport) TApaAppInfo(TUid aAppUid,const TFileName& aDllName,const TApaAppCaption& aCaption);
- __declspec(dllexport) TApaAppInfo(TUid aAppUid,const TFileName& aDllName,const TApaAppCaption& aCaption,const TApaAppCaption& aShortCaption);
- __declspec(dllexport) void ExternalizeL(RWriteStream& aStream)const;
- __declspec(dllexport) void InternalizeL(RReadStream& aStream);
- public:
- TUid iUid;
- TFileName iFullName;
- TApaAppCaption iCaption;
- TApaAppCaption iShortCaption;
- private:
- TInt iTApaAppInfo_Reserved1;
- };
- class TApaAppViewInfo
- #line 146
- {
- public:
- __declspec(dllexport) TApaAppViewInfo();
- __declspec(dllexport) TApaAppViewInfo(TUid aViewUid,const TApaAppCaption& aViewCaption,TInt aScreenMode);
- __declspec(dllexport) void ExternalizeL(RWriteStream& aStream)const;
- __declspec(dllexport) void InternalizeL(RReadStream& aStream);
- public:
- TUid iUid;
- TApaAppCaption iViewCaption;
- TInt iScreenMode;
- private:
- TInt iTApaAppViewInfo_Reserved1;
- };
- #line 171
- typedef CArrayFixFlat<TApaAppViewInfo> CApaAppViewArray;
- class TApaAppCapability
- {
- public:
- __declspec(dllexport) static void CopyCapability(TDes8& aDest,const TDesC8& aSource);
- __declspec(dllexport) void InternalizeL(RReadStream& aStream);
- __declspec(dllexport) void Internalize7_0L(RReadStream& aStream);
- __declspec(dllexport) void ExternalizeL(RWriteStream& aStream) const;
- private:
- __declspec(dllexport) void Externalize7_0L(RWriteStream& aStream) const;
- void DoInternalizeL(RReadStream& aStream, TBool& aLaunchInBackground, TApaAppGroupName& aGroupName);
- public:
- enum TEmbeddability {
- ENotEmbeddable=0,
- EEmbeddable=1,
- EEmbeddableOnly=2,
- EEmbeddableUiOrStandAlone=5,
- EEmbeddableUiNotStandAlone=6 };
- enum TCapabilityAttribute
- {
- EBuiltAsDll = 0x00000001,
- EControlPanelItem = 0x00000002,
- ENonNative = 0x00000004
- };
- public:
- TEmbeddability iEmbeddability;
- TBool iSupportsNewFile;
- TBool iAppIsHidden;
- TBool iLaunchInBackground;
- TApaAppGroupName iGroupName;
- TUint iAttributes;
- private:
- enum { EVersion=4 };
- private:
- TInt iTApaAppCapability_Reserved1;
- };
- typedef TPckgBuf<TApaAppCapability> TApaAppCapabilityBuf;
- class TApaEmbeddabilityFilter
- {
- public:
- __declspec(dllexport) TApaEmbeddabilityFilter();
- __declspec(dllexport) void AddEmbeddability(TApaAppCapability::TEmbeddability aEmbeddability);
- __declspec(dllexport) TBool MatchesEmbeddability(TApaAppCapability::TEmbeddability aEmbeddability) const;
- private:
- TUint iEmbeddabilityFlags;
- private:
- TInt iTApaEmbeddabilityFilter_Reserved1;
- };
- class CApaAppFinder : public CBase
- {
- public:
- virtual void FindAllAppsL()=0;
- virtual TBool NextL(TApaAppEntry& aEntry)=0;
- virtual TFileName FindAppL(const TDesC& aFileName,TUid aFileUid)=0;
- #line 282
- virtual TFileName DefaultAppInfoFileName()const=0;
- protected:
- __declspec(dllexport) CApaAppFinder();
- private:
- __declspec(dllexport) virtual void CApaAppFinder_Reserved1();
- __declspec(dllexport) virtual void CApaAppFinder_Reserved2();
- };
- const TUid KOpenServiceUid = { 0x10208DCA };
- #line 310
- class TApaAppServiceInfo
- {
- public:
- TApaAppServiceInfo();
- TApaAppServiceInfo(TUid aUid, CArrayFixFlat<TDataTypeWithPriority> * aDataTypes,
- HBufC8* aOpaqueData);
- void ExternalizeL(RWriteStream& aStream) const;
- void InternalizeL(RReadStream& aStream);
- void Release();
- CArrayFixFlat<TDataTypeWithPriority>& DataTypes();
- __declspec(dllexport) TUid Uid() const;
- __declspec(dllexport) const CArrayFixFlat<TDataTypeWithPriority>& DataTypes() const;
- __declspec(dllexport) const TDesC8& OpaqueData() const;
- private:
- TUid iUid;
- CArrayFixFlat<TDataTypeWithPriority> * iDataTypes;
- HBufC8* iOpaqueData;
- TInt iTApaAppServiceInfo;
- };
- #line 338
- class CApaAppServiceInfoArray : public CBase
- {
- protected:
- CApaAppServiceInfoArray();
- public:
- virtual TArray<TApaAppServiceInfo> Array()=0;
- private:
- __declspec(dllexport) virtual void CApaAppServiceInfoArray_Reserved1();
- __declspec(dllexport) virtual void CApaAppServiceInfoArray_Reserved2();
- private:
- TInt iCApaAppServiceInfoArray_Reserved1;
- };
- #line 13 "C:\Symbian\9.1\S60_3rd\epoc32\include\apaflrec.h" /* stack depth 9 */
- 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 8 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\apacmdln.h" /* stack depth 9 */
- #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 8 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\gulcolor.h" /* stack depth 9 */
- #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 8 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikdgfty.h" /* stack depth 9 */
- #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 8 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\eiklibry.h" /* stack depth 9 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikfctry.h" /* stack depth 10 */
- #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 9 */
- 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 8 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikamnt.h" /* stack depth 9 */
- #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 8 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\lafmain.h" /* stack depth 9 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\frmtlay.h" /* stack depth 10 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\txtfrmat.h" /* stack depth 11 */
- #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 12 */
- 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 11 */
- #line 12 "C:\Symbian\9.1\S60_3rd\epoc32\include\frmtlay.h" /* stack depth 10 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\txtetext.h" /* stack depth 11 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\fldset.h" /* stack depth 12 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\fldinfo.h" /* stack depth 13 */
- #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 12 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\fldbase.h" /* stack depth 13 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\s32stor.h" /* stack depth 14 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\s32share.h" /* stack depth 15 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\s32buf.h" /* stack depth 16 */
- #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 17 */
- 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 16 */
- #line 8 "C:\Symbian\9.1\S60_3rd\epoc32\include\s32share.h" /* stack depth 15 */
- 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 16 */
- 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 15 */
- #line 11 "C:\Symbian\9.1\S60_3rd\epoc32\include\s32stor.h" /* stack depth 14 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\s32page.h" /* stack depth 15 */
- #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 16 */
- 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 15 */
- #line 14 "C:\Symbian\9.1\S60_3rd\epoc32\include\s32stor.h" /* stack depth 14 */
- 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 15 */
- 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 14 */
- #line 11 "C:\Symbian\9.1\S60_3rd\epoc32\include\fldbase.h" /* stack depth 13 */
- 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 12 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\fldbltin.h" /* stack depth 13 */
- #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 12 */
- 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 11 */
- 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():