S60UIExamplePlayView.inc
上传用户:laixiong
上传日期:2007-03-11
资源大小:2994k
文件大小:1975k
源码类别:
Symbian
开发平台:
C/C++
- TBool iIsReusable;
- TGulAlignment iAlignment;
- TMargins8 iMargins;
- TInt iLineGap;
- CCoeTextDrawerBaseExt* iExtension;
- };
- #line 169
- class TCoeTextTypeAdaptor
- {
- public:
- __declspec(dllexport) TCoeTextTypeAdaptor(const TDesC& aText);
- __declspec(dllexport) TCoeTextTypeAdaptor(const TBidiText& aText);
- __declspec(dllexport) TInt NumberOfLines() const;
- __declspec(dllexport) TPtrC LineOfText(TInt aLineNumber, TInt& aWidthInPixels, const CFont& aFont) const;
- __declspec(dllexport) TBool HasRightToLeftDirectionality() const;
- private:
- enum TTextType
- {
- ENewlineSeparated,
- EBidiText
- };
- const TAny* iText;
- TTextType iTextType;
- };
- #line 196
- class CCoePlainTextDrawer : public CCoeTextDrawerBase
- {
- public:
- enum { ETypeId = 0x1020831A };
- public:
- __declspec(dllexport) static CCoePlainTextDrawer* New(TRgb aTextColor);
- __declspec(dllexport) TRgb TextColor() const;
- __declspec(dllexport) void SetTextColor(TRgb aTextColor);
- protected:
- __declspec(dllexport) virtual TTypeUid::Ptr MopSupplyObject(TTypeUid aId);
- private:
- void DrawText(CGraphicsContext& aGc, const TCoeTextTypeAdaptor& aText, const CFont& aFont,
- const TRect& aTextRect, const TRect& aClipRect) const;
- void Reset();
- CCoePlainTextDrawer(TRgb aTextColor);
- __declspec(dllexport) TInt Construct();
- private:
- TRgb iTextColor;
- };
- #line 34 "C:\Symbian\9.1\S60_3rd\epoc32\include\coemain.h" /* stack depth 4 */
- #line 42
- class CVwsSessionWrapper;
- class MVwsSessionWrapperObserver;
- class CCoeAppUi;
- class CCoeEnv;
- class TResourceReader;
- class RGenericPointerArray;
- enum TActivePriority
- {
- EActivePriorityClockTimer=300,
- EActivePriorityIpcEventsHigh=200,
- EActivePriorityFepLoader=150,
- EActivePriorityWsEvents=100,
- EActivePriorityRedrawEvents=50,
- EActivePriorityDefault=0,
- EActivePriorityLogonA=-10
- };
- class CCoeEnvExtra;
- class CCoeStatic;
- class MCoeObserverOfLoadedFep
- #line 90
- {
- public:
- virtual void HandleChangeInLoadedFep()=0;
- protected:
- __declspec(dllexport) MCoeObserverOfLoadedFep();
- private:
- __declspec(dllexport) virtual void MCoeObserverOfLoadedFep_Reserved_1();
- __declspec(dllexport) virtual void MCoeObserverOfLoadedFep_Reserved_2();
- private:
- TInt iMCoeObserverOfLoadedFep_Reserved1;
- };
- class TCoeInputCapabilities;
- class MCoeFocusObserver
- #line 125
- {
- public:
- virtual void HandleChangeInFocus()=0;
- virtual void HandleDestructionOfFocusedItem()=0;
- protected:
- __declspec(dllexport) MCoeFocusObserver();
- private:
- __declspec(dllexport) virtual void MCoeFocusObserver_Reserved_1();
- __declspec(dllexport) virtual void MCoeFocusObserver_Reserved_2();
- private:
- TInt iMCoeFocusObserver_Reserved1;
- };
- class MCoeResourceChangeObserver
- {
- public:
- virtual void HandleResourceChange()=0;
- protected:
- __declspec(dllexport) MCoeResourceChangeObserver();
- private:
- __declspec(dllexport) virtual void MCoeResourceChangeObserver_Reserved_1();
- __declspec(dllexport) virtual void MCoeResourceChangeObserver_Reserved_2();
- private:
- TInt iMCoeResourceChangeObserver_Reserved1;
- };
- class MCoeForegroundObserver
- #line 182
- {
- public:
- virtual void HandleGainingForeground()=0;
- virtual void HandleLosingForeground()=0;
- protected:
- __declspec(dllexport) MCoeForegroundObserver();
- private:
- __declspec(dllexport) virtual void MCoeForegroundObserver_Reserved_1();
- __declspec(dllexport) virtual void MCoeForegroundObserver_Reserved_2();
- private:
- TInt iMCoeForegroundObserver_Reserved1;
- };
- class MCoeMessageObserver
- #line 214
- {
- public:
- enum TMessageResponse
- {
- EMessageNotHandled,
- EMessageHandled
- };
- public:
- #line 236
- virtual TMessageResponse HandleMessageL(TUint32 aClientHandleOfTargetWindowGroup, TUid aMessageUid, const TDesC8& aMessageParameters)=0;
- protected:
- __declspec(dllexport) MCoeMessageObserver();
- private:
- __declspec(dllexport) virtual void MCoeMessageObserver_Reserved_1();
- __declspec(dllexport) virtual void MCoeMessageObserver_Reserved_2();
- private:
- TInt iMCoeMessageObserver_Reserved1();
- };
- class MCoeMessageMonitorObserver
- {
- public:
- virtual void MonitorWsMessage(const TWsEvent& aEvent)=0;
- private:
- __declspec(dllexport) virtual void MCoeMessageMonitorObserver_Reserved_1();
- __declspec(dllexport) virtual void MCoeMessageMonitorObserver_Reserved_2();
- };
- class MCoeFepObserver;
- typedef void (*TCoeFepObserverFunction)(MCoeFepObserver& aFepObserver);
- class CCoeFepParameters : public CBase
- {
- public:
- static CCoeFepParameters* NewLC();
- private:
- inline CCoeFepParameters() {}
- };
- class CCoeFep;
- class CCoeScheduler : public CBaActiveScheduler
- {
- public:
- __declspec(dllexport) CCoeScheduler(CCoeEnv* aCoeEnv);
- __declspec(dllexport) virtual void WaitForAnyRequest();
- __declspec(dllexport) virtual void DisplayError(TInt aError) const;
- inline CCoeEnv* CoeEnv() {return iCoeEnv;}
- TBool Flush() const;
- void SetFlush(TBool aFlush);
- private:
- __declspec(dllexport) virtual void Reserved_1();
- __declspec(dllexport) virtual void Reserved_2();
- private:
- CCoeEnv* iCoeEnv;
- TBool iFlush;
- };
- class CCoeFontProvider;
- class CCoeEnv : public CActive
- , public MObjectProvider
- #line 331
- {
- public:
- __declspec(dllexport) ~CCoeEnv();
- __declspec(dllexport) CCoeEnv();
- __declspec(dllexport) virtual void DestroyEnvironment();
- __declspec(dllexport) CCoeAppUi* SetAppUi(CCoeAppUi* aAppUi);
- __declspec(dllexport) void ExecuteD();
- __declspec(dllexport) void RunL();
- __declspec(dllexport) void DoCancel();
- __declspec(dllexport) virtual void HandleError(TInt aError);
- __declspec(dllexport) void ConstructL();
- __declspec(dllexport) void ConstructL(TBool aInitialFocusState);
- __declspec(dllexport) void ConstructL( TBool aInitialFocusState, TInt aDefaultScreenNumber ) ;
- __declspec(dllexport) void ConstructL(TBool aInitialFocusState, TInt aDefaultScreenNumber, TInt aWindowGroupID );
- inline const TWsEvent& LastEvent() const;
- inline CCoeAppUi* AppUi() const;
- inline RFs& FsSession() const;
- inline RWsSession& WsSession() const;
- inline RWindowGroup& RootWin() const;
- inline CWindowGc& SystemGc() const;
- inline const CFont* NormalFont() const;
- inline CWsScreenDevice* ScreenDevice() const;
- inline TBool IsSchedulerRunning() const;
- __declspec(dllexport) CWindowGc* CreateGcL();
- __declspec(dllexport) void Flush(TTimeIntervalMicroSeconds32 aDelay=0);
- __declspec(dllexport) CFbsFont* CreateDeviceFontL(CGraphicsDevice* aDevice,const TFontSpec& aFontSpec);
- __declspec(dllexport) CFbsFont* CreateScreenFontL(const TFontSpec& aFontSpec);
- __declspec(dllexport) void ReleaseScreenFont(CFont* aFont) const;
- __declspec(dllexport) void CreateResourceReaderLC(TResourceReader& aReader,TInt aResourceId) const;
- inline void ReadResource(TDes& aDes,TInt aResourceId) const;
- inline void ReadResourceL(TDes& aDes,TInt aResourceId) const;
- inline HBufC* AllocReadResourceL(TInt aResourceId) const;
- inline HBufC* AllocReadResourceLC(TInt aResourceId) const;
- __declspec(dllexport) TInt AddResourceFileL(const TDesC& aFileName);
- __declspec(dllexport) void DeleteResourceFile(TInt aOffset);
- inline CDesCArrayFlat* ReadDesCArrayResourceL(TInt aResourceId);
- __declspec(dllexport) void LeaveWithErrorText(const TDesC& aMsg,const TDesC* aContextText=0 );
- __declspec(dllexport) void Format128(TDes& aDes,TInt aResourceId,...);
- __declspec(dllexport) void Format256(TDes& aDes,TInt aResourceId,...);
- __declspec(dllexport) static TVersion Version();
- __declspec(dllexport) static CCoeEnv* Static();
- __declspec(dllexport) void SimulateKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType);
- __declspec(dllexport) TBool IsWservEventPending() const;
- __declspec(dllexport) TBool IsRedrawEventPending() const;
- __declspec(dllexport) void PrepareToExit();
- __declspec(dllexport) void BringOwnerToFront();
- __declspec(dllexport) void ReadResourceAsDes8(TDes8& aDes,TInt aResourceId) const;
- __declspec(dllexport) void ReadResourceAsDes8L(TDes8& aDes,TInt aResourceId) const;
- __declspec(dllexport) HBufC8* AllocReadResourceAsDes8L(TInt aResourceId) const;
- __declspec(dllexport) HBufC8* AllocReadResourceAsDes8LC(TInt aResourceId) const;
- __declspec(dllexport) CDesC8ArrayFlat* ReadDesC8ArrayResourceL(TInt aResourceId);
- __declspec(dllexport) void SuppressNextFlush();
- __declspec(dllexport) void ReadResourceAsDes16(TDes16& aDes,TInt aResourceId) const;
- __declspec(dllexport) void ReadResourceAsDes16L(TDes16& aDes,TInt aResourceId) const;
- __declspec(dllexport) HBufC16* AllocReadResourceAsDes16L(TInt aResourceId) const;
- __declspec(dllexport) HBufC16* AllocReadResourceAsDes16LC(TInt aResourceId) const;
- __declspec(dllexport) CDesC16ArrayFlat* ReadDesC16ArrayResourceL(TInt aResourceId);
- __declspec(dllexport) void AddObserverOfLoadedFepL(MCoeObserverOfLoadedFep& aObserverOfLoadedFep);
- __declspec(dllexport) void RemoveObserverOfLoadedFep(MCoeObserverOfLoadedFep& aObserverOfLoadedFep);
- __declspec(dllexport) void AddFocusObserverL(MCoeFocusObserver& aFocusObserver);
- __declspec(dllexport) void RemoveFocusObserver(MCoeFocusObserver& aFocusObserver);
- __declspec(dllexport) void SyncNotifyFocusObserversOfChangeInFocus();
- void NotifyFocusObserversOfDestructionOfFocusedItem();
- __declspec(dllexport) void AddForegroundObserverL(MCoeForegroundObserver& aForegroundObserver);
- __declspec(dllexport) void RemoveForegroundObserver(MCoeForegroundObserver& aForegroundObserver);
- void NotifyForegroundObserversOfGainingForeground();
- void NotifyForegroundObserversOfLosingForeground();
- __declspec(dllexport) void AddResourceChangeObserverL(MCoeResourceChangeObserver& aResourceChangeObserver);
- __declspec(dllexport) void RemoveResourceChangeObserver(MCoeResourceChangeObserver& aResourceChangeObserver);
- void NotifyResourceObserversOfChangeInResource();
- __declspec(dllexport) void AddMessageObserverL(MCoeMessageObserver& aMessageObserver);
- __declspec(dllexport) void RemoveMessageObserver(MCoeMessageObserver& aMessageObserver);
- __declspec(dllexport) void AddMessageMonitorObserverL(MCoeMessageMonitorObserver& aMessageMonitorObserver);
- __declspec(dllexport) void RemoveMessageMonitorObserver(MCoeMessageMonitorObserver& aMessageMonitorObserver);
- void NotifyMessageMonitorObserversOfEvent(const TWsEvent& aEvent);
- __declspec(dllexport) void AddFepObserverL(MCoeFepObserver& aFepObserver);
- __declspec(dllexport) void RemoveFepObserver(MCoeFepObserver& aFepObserver);
- __declspec(dllexport) void ForEachFepObserverCall(TCoeFepObserverFunction aFepObserverFunction);
- void EnsureCorrectFepIsLoadedL();
- #line 419
- void EnsureSpecifiedFepIsLoadedL(TUid aFepUid);
- __declspec(dllexport) void InstallFepL(TUid aFepUid);
- __declspec(dllexport) void InstallFepL(TUid aFepUid, const TBool aLeave);
- __declspec(dllexport) void AvailableFepsL(RArray<TUid>& aUids, CDesCArray* aDisplayNames);
- __declspec(dllexport) void ExecuteFepSettingsDialogL(TUid aFepUid);
- __declspec(dllexport) CCoeFep* Fep() const;
- __declspec(dllexport) TUid FepUid() const;
- __declspec(dllexport) CWindowGc* SwapSystemGc(CWindowGc* aGc);
- __declspec(dllexport) static CCoeStatic* Static(TUid aUid);
- __declspec(dllexport) CCoeStatic* FindStatic(TUid aUid);
- __declspec(dllexport) void DisableExitChecks(TBool aDisable);
- __declspec(dllexport) void InputCapabilitiesChanged();
- __declspec(dllexport) TBool IsResourceAvailableL(TInt aResourceId) const;
- __declspec(dllexport) CCoeTextDrawerBase& DefaultTextDrawer() const;
- __declspec(dllexport) const CCoeFontProvider& DefaultFontProvider() const;
- public:
- TInt AppStartupInstrumentationEventIdBase();
- public:
- __declspec(dllexport) void GetMessageNotifyingObserversLC(TUint32 aClientHandleOfTargetWindowGroup, TUid& aMessageUid, TPtr8& aMessageParameters, const TWsEvent& aMessageEvent);
- protected:
- __declspec(dllexport) void SetAppStartupInstrumentationEventIdBaseL(TInt aAppStartupInstrumentationEventIdBase);
- __declspec(dllexport) void DestroyEnvironmentStatic();
- __declspec(dllexport) void DestroyEnvironmentEnd();
- private:
- __declspec(dllexport) virtual void Reserved_1();
- __declspec(dllexport) virtual void Reserved_2();
- private:
- __declspec(dllexport) TInt RunError(TInt aError);
- public:
- void ReadEvent();
- CVwsSessionWrapper* InitViewServerSessionL(MVwsSessionWrapperObserver& aObserver);
- void AddStatic(CCoeStatic* aStatic);
- void QueueNotificationToFocusObserversOfChangeInFocus();
- TInt FocusObserverNotificationIdentifier() const;
- TBool FocusObserverNotificationIsStillPending(TInt aFocusObserverNotificationIdentifier) const;
- void RefetchPixelMapping();
- protected:
- __declspec(dllexport) virtual TTypeUid::Ptr MopSupplyObject(TTypeUid aId);
- public:
- __declspec(dllexport) void SetZoomFactor(const TZoomFactor& aZoomFactor);
- __declspec(dllexport) TZoomFactor ZoomFactor() const;
- protected:
- __declspec(dllexport) virtual void DestroyScreen();
- inline TDes& ErrorText();
- inline TDes& ErrorContextText();
- private:
- __declspec(dllexport) virtual void InitSystemFontsL();
- __declspec(dllexport) virtual TInt ResourceFileVersionNumber() const;
- void CreateActiveSchedulerL();
- void ConnectToFileServerL();
- void ConnectToWindowServerL();
- void InitScreenL( TInt aDefaultScreenNumber );
- void InitRootWindowL(TBool aInitialFocusState, TInt aWindowGroupID=0);
- void InitSystemGcL();
- RResourceFile& ResourceFileForId(TInt aResourceId) const;
- void DestroyAllResourceFiles();
- void AddObserverL(TAny* aObserver, RGenericPointerArray& aArray);
- void RemoveObserver(TAny* aObserver, RGenericPointerArray& aArray);
- inline TBool DisableShutdownChecks() const;
- void UpdateStatic(CCoeAppUi* aNewAppUi);
- void SetInitialHandleCount();
- inline TUint InitialHandleCount() const;
- protected:
- CCoeAppUi* iAppUi;
- RFs iFsSession;
- RWsSession iWsSession;
- RWindowGroup iRootWin;
- CWindowGc* iSystemGc;
- const CFont* iNormalFont;
- CWsScreenDevice* iScreen;
- TWsEvent iLastEvent;
- CArrayFix<RResourceFile> * iResourceFileArray;
- private:
- enum TFlags
- {
- ENoShutdownChecks =0x0001,
- EExtraPointerIsErrorCode =0x0002,
- ESchedulerIsRunning =0x0004
- };
- private:
- TDes* iErrorText;
- TDes* iErrorContextText;
- CCoeEnvExtra* iExtra;
- CTrapCleanup* iCleanup;
- TUint iEnvFlags;
- };
- class CCoeStatic : public CBase
- #line 524
- {
- public:
- enum TScope
- {
- EThread,
- EApp,
- };
- enum {EDefaultDestructionPriority=100};
- 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 46 "C:\Symbian\9.1\S60_3rd\epoc32\include\coecntrl.h" /* stack depth 3 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\coecontrolarray.h" /* stack depth 4 */
- #line 12
- class CCoeControl;
- const TInt KCoeNoControlId = KErrNotFound;
- class TCoeControlWithId
- {
- public:
- TCoeControlWithId(TInt aControlId, CCoeControl* aControl = 0 );
- public:
- CCoeControl* iControl;
- TInt iId;
- };
- #line 46
- class CCoeControlArray : public CBase
- {
- public:
- class TCursor
- {
- public:
- template<typename T> T* Control();
- template<typename T> const T* Control() const;
- __declspec(dllexport) TBool Prev();
- __declspec(dllexport) TBool Next();
- __declspec(dllexport) TBool IsValid() const;
- __declspec(dllexport) TBool operator==(const TCursor& aCursor) const;
- __declspec(dllexport) TBool operator!=(const TCursor& aCursor) const;
- public:
- TCursor(const CCoeControlArray& aArray, TInt aIndex);
- TInt Index() const;
- private:
- __declspec(dllexport) CCoeControl* Ctrl() const;
- void UpdateMemento() const;
- void UpdateIndex() const;
- private:
- const CCoeControlArray* iArray;
- mutable TInt iIndex;
- mutable TCoeControlWithId iMemento;
- };
- public:
- __declspec(dllexport) static CCoeControlArray* NewL(CCoeControl& aOwner);
- __declspec(dllexport) ~CCoeControlArray();
- __declspec(dllexport) TInt Count() const;
- __declspec(dllexport) void Reset();
- __declspec(dllexport) void ResetAndDestroy();
- __declspec(dllexport) void SortById();
- __declspec(dllexport) TBool ControlsOwnedExternally() const;
- __declspec(dllexport) void SetControlsOwnedExternally(TBool aOwnedExternally);
- __declspec(dllexport) TBool IsArrayLocked() const;
- __declspec(dllexport) void SetArrayLocked();
- template<typename T> T* ControlById(TInt aControlId);
- template<typename T> const T* ControlById(TInt aControlId) const;
- __declspec(dllexport) TCursor Begin() const;
- __declspec(dllexport) TCursor End() const;
- __declspec(dllexport) TCursor Find(const CCoeControl* aControl) const;
- __declspec(dllexport) TCursor Find(TInt aControlId) const;
- __declspec(dllexport) TCursor AppendLC(CCoeControl* aControl, TInt aControlId = KCoeNoControlId);
- __declspec(dllexport) TCursor InsertAfterLC(TInt aInsertAfterId, CCoeControl* aControl, TInt aControlId = KCoeNoControlId);
- __declspec(dllexport) TCursor InsertLC(TCursor& aInsertAt, CCoeControl* aControl, TInt aControlId = KCoeNoControlId);
- __declspec(dllexport) TInt Remove(const CCoeControl* aControl);
- __declspec(dllexport) CCoeControl* Remove(TCursor aRemoveAt);
- __declspec(dllexport) CCoeControl* RemoveById(TInt aControlId);
- public:
- __declspec(dllexport) TInt Replace(CCoeControl* aOriginalControl, CCoeControl* aNewControl);
- public:
- __declspec(dllexport) TCoeControlWithId At(TInt aIndex);
- __declspec(dllexport) const TCoeControlWithId At(TInt aIndex) const;
- __declspec(dllexport) TInt Id(const CCoeControl& aControl) const;
- __declspec(dllexport) void Sort(TLinearOrder< TCoeControlWithId > aOrder);
- public:
- enum TEvent
- {
- EControlAdded,
- EControlRemoved
- };
- private:
- __declspec(dllexport) CCoeControlArray(CCoeControl& aOwner);
- TInt IndexById(TInt aControlId) const;
- __declspec(dllexport) CCoeControl* CtrlById(TInt aControlId) const;
- private:
- CCoeControl& iOwner;
- TInt iFlags;
- RArray<TCoeControlWithId> iControls;
- };
- template<typename T>
- T* CCoeControlArray::TCursor::Control()
- {
- return static_cast<T*>(Ctrl());
- }
- template<typename T>
- const T* CCoeControlArray::TCursor::Control() const
- {
- return static_cast<T*>(Ctrl());
- }
- template<typename T>
- T* CCoeControlArray::ControlById(TInt aControlId)
- {
- return static_cast<T*>(CtrlById(aControlId));
- }
- template<typename T>
- const T* CCoeControlArray::ControlById(TInt aControlId) const
- {
- return static_cast<T*>(CtrlById(aControlId));
- }
- #line 55 "C:\Symbian\9.1\S60_3rd\epoc32\include\coecntrl.h" /* stack depth 3 */
- class TResourceReader;
- class CCoeEnv;
- class MCoeControlContext;
- class CCoeControlExtension;
- class MCoeLayoutManager;
- class TCoeZoomWithType;
- class CCoeFontProvider;
- class TCoeFont;
- #line 79
- class TCoeColorUse
- {
- public:
- enum TGround
- {
- EFore=0x01,
- EBack=0x02
- };
- enum TAreas
- {
- EContents=0x10,
- EHighlights=0x20,
- ESurrounds=0x40,
- EBorders=0x80
- };
- enum TFocus
- {
- EActive=0x100,
- EDimmed=0x200,
- EShadowed=0x400,
- EPressed=0x800
- };
- enum TState
- {
- ENormal=0x1000,
- ESet=0x2000,
- EChecked=0x4000
- };
- enum TTones
- {
- ENeutral=0x10000,
- ELight=0x20000,
- EMidLight=0x40000,
- EMid=0x80000,
- EDark=0x100000
- };
- public:
- __declspec(dllexport) TCoeColorUse();
- __declspec(dllexport) void SetUse(TInt aUse);
- __declspec(dllexport) void SetLogicalColor(TInt aLogicalColor);
- __declspec(dllexport) TInt LogicalColor() const;
- __declspec(dllexport) TInt Use() const;
- __declspec(dllexport) TBool IsForeground() const;
- __declspec(dllexport) TBool IsBackground() const;
- __declspec(dllexport) TBool IsContents() const;
- __declspec(dllexport) TBool IsHighlights() const;
- __declspec(dllexport) TBool IsSurrounds() const;
- __declspec(dllexport) TBool IsBorders() const;
- __declspec(dllexport) TBool IsActive() const;
- __declspec(dllexport) TBool IsDimmed() const;
- __declspec(dllexport) TBool IsPressed() const;
- __declspec(dllexport) TBool IsNormal() const;
- __declspec(dllexport) TBool IsSet() const;
- private:
- TInt iLogicalColor;
- TInt iUse;
- TInt iTCoeColorUse_Reserved1;
- };
- class CCoeControl;
- class CCoeTextDrawerBase;
- #line 184
- class MCoeControlBackground
- {
- public:
- #line 198
- virtual void Draw(CWindowGc& aGc, const CCoeControl& aControl, const TRect& aRect) const = 0;
- __declspec(dllexport) virtual void GetTextDrawer(CCoeTextDrawerBase*& aTextDrawer, const CCoeControl* aDrawingControl) const;
- protected:
- __declspec(dllexport) MCoeControlBackground();
- private:
- __declspec(dllexport) virtual void MCoeControlBackground_Reserved1();
- __declspec(dllexport) virtual void MCoeControlBackground_Reserved2();
- __declspec(dllexport) virtual void MCoeControlBackground_Reserved3();
- __declspec(dllexport) virtual void MCoeControlBackground_Reserved4();
- __declspec(dllexport) virtual void MCoeControlBackground_Reserved5();
- private:
- TInt iMCoeControlBackground_Reserved1();
- };
- #line 232
- class MCoeControlHitTest
- {
- public:
- #line 244
- virtual TBool HitRegionContains(const TPoint& aPoint, const CCoeControl& aControl) const = 0;
- protected:
- __declspec(dllexport) MCoeControlHitTest();
- private:
- __declspec(dllexport) virtual void MCoeControlHitTest_Reserved1();
- __declspec(dllexport) virtual void MCoeControlHitTest_Reserved2();
- private:
- TInt iMCoeControlHitTest_Reserved1;
- };
- class RCoeExtensionStorage
- {
- public:
- RCoeExtensionStorage();
- void Close();
- TInt& Flags();
- TInt Flags() const;
- const MCoeControlBackground* Background() const;
- void SetBackground(const MCoeControlBackground* aBackground);
- CCoeControl* Parent();
- TInt SetParent(CCoeControl* aParent);
- const MCoeControlHitTest* HitTestControl() const;
- TInt SetHitTestControl(const MCoeControlHitTest* aHitTest);
- TCoeZoomWithType* ZoomWithType() const;
- TInt SetZoomWithType(TCoeZoomWithType* aZoomWithType);
- const CCoeFontProvider* FontProvider() const;
- TInt SetFontProvider(const CCoeFontProvider* aFontProvider);
- void SetExtension(CCoeControlExtension* aExtension);
- CCoeControlExtension* Extension() const;
- private:
- inline TBool IsFlags() const;
- private:
- union
- {
- TInt iFlags;
- CCoeControlExtension* iExtension;
- };
- };
- class CCoeControl : public CBase
- , public MObjectProvider
- {
- public:
- enum TZoomType
- {
- EAbsoluteZoom,
- ERelativeZoom
- };
- __declspec(dllexport) CCoeControl();
- __declspec(dllexport) CCoeControl(CCoeEnv* aCoeEnv);
- __declspec(dllexport) ~CCoeControl();
- __declspec(dllexport) virtual TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType);
- __declspec(dllexport) virtual void MakeVisible(TBool aVisible);
- __declspec(dllexport) virtual void SetDimmed(TBool aDimmed);
- __declspec(dllexport) virtual void SetContainerWindowL(const CCoeControl& aContainer);
- __declspec(dllexport) void SetContainerWindowL(RWindow& aWindow);
- __declspec(dllexport) void SetContainerWindowL(RBackedUpWindow& aWindow);
- __declspec(dllexport) virtual void ConstructFromResourceL(TResourceReader& aReader);
- __declspec(dllexport) virtual void ActivateL();
- __declspec(dllexport) virtual void PrepareForFocusLossL();
- __declspec(dllexport) virtual void PrepareForFocusGainL();
- __declspec(dllexport) virtual void SetAdjacent(TInt aAdjacent);
- __declspec(dllexport) virtual void SetNeighbor(CCoeControl* aNeighbor);
- __declspec(dllexport) virtual TBool HasBorder() const;
- __declspec(dllexport) virtual TSize MinimumSize();
- __declspec(dllexport) virtual void HandleResourceChange(TInt aType);
- __declspec(dllexport) virtual void GetColorUseListL(CArrayFix<TCoeColorUse>& aColorUseList) const;
- __declspec(dllexport) virtual void GetHelpContext(TCoeHelpContext& aContext) const;
- __declspec(dllexport) virtual TCoeInputCapabilities InputCapabilities() const;
- __declspec(dllexport) TCoeInputCapabilities RecursivelyMergedInputCapabilities() const;
- __declspec(dllexport) void DrawNow() const;
- __declspec(dllexport) void DrawNow(const TRect &aRect) const;
- __declspec(dllexport) void DrawDeferred() const;
- __declspec(dllexport) void SetFocus(TBool aFocus,TDrawNow aDrawNow=ENoDrawNow);
- __declspec(dllexport) void SetExtent(const TPoint& aPosition,const TSize& aSize);
- __declspec(dllexport) void SetSize(const TSize& aSize);
- __declspec(dllexport) TInt SetMaximumWidth(TInt aMaxWidth);
- __declspec(dllexport) void SetPosition(const TPoint& aPosition);
- __declspec(dllexport) void SetRect(const TRect& aRect);
- __declspec(dllexport) void SetExtentToWholeScreen();
- __declspec(dllexport) TBool IsFocused() const;
- __declspec(dllexport) TBool IsVisible() const;
- __declspec(dllexport) TBool IsDimmed() const;
- __declspec(dllexport) RDrawableWindow* DrawableWindow() const;
- __declspec(dllexport) TSize Size() const;
- __declspec(dllexport) TInt MaximumWidth() const;
- __declspec(dllexport) TPoint Position() const;
- __declspec(dllexport) TRect Rect() const;
- __declspec(dllexport) TPoint PositionRelativeToScreen() const;
- __declspec(dllexport) void SetObserver(MCoeControlObserver* aObserver);
- __declspec(dllexport) MCoeControlObserver* Observer() const;
- inline CCoeEnv* ControlEnv() const;
- __declspec(dllexport) TInt Index(const CCoeControl* aControl) const;
- __declspec(dllexport) void SetNonFocusing();
- __declspec(dllexport) void SetFocusing(TBool aFocusing);
- __declspec(dllexport) TBool IsNonFocusing() const;
- __declspec(dllexport) void SetControlContext(MCoeControlContext* aContext);
- __declspec(dllexport) void CopyControlContextFrom(const CCoeControl* aControl);
- __declspec(dllexport) MCoeControlContext* ControlContext() const;
- __declspec(dllexport) TBool OwnsWindow() const;
- __declspec(dllexport) TBool IsBackedUp() const;
- __declspec(dllexport) void SetPointerCapture(TBool aCapture=ETrue);
- __declspec(dllexport) void ClaimPointerGrab(TBool aSendUpEvent=ETrue);
- __declspec(dllexport) void IgnoreEventsUntilNextPointerUp();
- __declspec(dllexport) void SetComponentsToInheritVisibility(TBool aInherit=ETrue);
- __declspec(dllexport) void SetGloballyCapturing(TBool aGlobal);
- __declspec(dllexport) void OverrideColorL(TInt aLogicalColor,TRgb aColor);
- __declspec(dllexport) TBool GetColor(TInt aLogicalColor,TRgb& aColor) const;
- __declspec(dllexport) void SetMopParent(MObjectProvider* aParent);
- __declspec(dllexport) const MCoeControlBackground* Background() const;
- __declspec(dllexport) const MCoeControlBackground* FindBackground() const;
- __declspec(dllexport) virtual TInt SetParent(CCoeControl* aParent);
- __declspec(dllexport) virtual void SetLayoutManagerL(MCoeLayoutManager* aLayout);
- __declspec(dllexport) MCoeLayoutManager* LayoutManager() const;
- __declspec(dllexport) virtual TBool RequestRelayout(const CCoeControl* aChildControl);
- __declspec(dllexport) void SetZoomFactorL(TInt aZoomFactor, TZoomType aZoomType = ERelativeZoom);
- __declspec(dllexport) void SetFontProviderL(const CCoeFontProvider& aFontProvider);
- __declspec(dllexport) TZoomFactor AccumulatedZoom() const;
- __declspec(dllexport) const TCoeZoomWithType* ZoomWithType() const;
- __declspec(dllexport) const CCoeFontProvider& FindFontProvider() const;
- __declspec(dllexport) virtual TInt TextBaselineOffset(const TSize& aSize) const;
- __declspec(dllexport) virtual void SetTextBaselineSpacing(TInt aSpacing);
- public:
- void ProcessPointerEventL(const TPointerEvent& aPointerEvent);
- void ProcessPointerBufferReadyL();
- void RecursivelyMergeInputCapabilities(TCoeInputCapabilities& aInputCapabilities) const;
- void WriteInternalStateNowL(RWriteStream& aWriteStream) const;
- void NotifyFontChange(const CCoeFontProvider* aFontProvider);
- void RemoveFromParent();
- void RefetchPixelMapping();
- public:
- __declspec(dllexport) virtual void HandlePointerEventL(const TPointerEvent& aPointerEvent);
- protected:
- __declspec(dllexport) virtual void HandlePointerBufferReadyL();
- __declspec(dllexport) virtual void FocusChanged(TDrawNow aDrawNow);
- __declspec(dllexport) virtual void SizeChanged();
- __declspec(dllexport) virtual void PositionChanged();
- public:
- __declspec(dllexport) virtual TInt CountComponentControls() const;
- __declspec(dllexport) virtual CCoeControl* ComponentControl(TInt aIndex) const;
- __declspec(dllexport) CWindowGc& SystemGc() const;
- protected:
- __declspec(dllexport) void EnableDragEvents();
- __declspec(dllexport) void HandleRedrawEvent(const TRect& aRect) const;
- __declspec(dllexport) RWindow& Window() const;
- __declspec(dllexport) RBackedUpWindow& BackedUpWindow() const;
- __declspec(dllexport) void CloseWindow();
- __declspec(dllexport) void CreateWindowL();
- __declspec(dllexport) void CreateWindowL(const CCoeControl* aParent);
- __declspec(dllexport) void CreateWindowL(RWindowTreeNode& aParent);
- __declspec(dllexport) void CreateWindowL(RWindowGroup* aParent);
- __declspec(dllexport) void CreateBackedUpWindowL(RWindowTreeNode& aParent);
- __declspec(dllexport) void CreateBackedUpWindowL(RWindowTreeNode& aParent,TDisplayMode aDisplayMode);
- __declspec(dllexport) void SetAllowStrayPointers();
- __declspec(dllexport) void SetCanDrawOutsideRect();
- __declspec(dllexport) void SetBlank();
- __declspec(dllexport) void ReportEventL(MCoeControlObserver::TCoeEvent aEvent);
- __declspec(dllexport) void SetCornerAndSize(TGulAlignment aCorner,const TSize& aSize);
- __declspec(dllexport) void SetSizeWithoutNotification(const TSize& aSize);
- __declspec(dllexport) void ActivateGc() const;
- __declspec(dllexport) void ResetGc() const;
- __declspec(dllexport) void DeactivateGc() const;
- __declspec(dllexport) TBool IsReadyToDraw() const;
- __declspec(dllexport) TBool IsActivated() const;
- __declspec(dllexport) TBool IsBlank() const;
- __declspec(dllexport) TBool IsBeingDestroyed() const;
- __declspec(dllexport) CCoeControl* GrabbingComponent() const;
- __declspec(dllexport) TBool CapturesPointer() const;
- __declspec(dllexport) void HandleComponentControlsResourceChange(TInt aType);
- friend class CCoeControlArray;
- __declspec(dllexport) virtual void HandleControlArrayEventL(CCoeControlArray::TEvent aEvent, const CCoeControlArray* aArray, CCoeControl* aControl, TInt aControlId);
- __declspec(dllexport) virtual void Reserved_CCoeControl_10();
- __declspec(dllexport) virtual void Reserved_CCoeControl_11();
- __declspec(dllexport) virtual void Reserved_CCoeControl_12();
- __declspec(dllexport) virtual void Reserved_CCoeControl_13();
- __declspec(dllexport) const CFont& ScreenFont(const TCoeFont& aFont) const;
- __declspec(dllexport) CCoeTextDrawerBase& TextDrawer(TInt aKey = KErrNotFound) const;
- __declspec(dllexport) void InitComponentArrayL();
- __declspec(dllexport) CCoeControlArray& Components();
- __declspec(dllexport) const CCoeControlArray& Components() const;
- private:
- __declspec(dllexport) virtual void GetTextDrawer(CCoeTextDrawerBase*& aTextDrawer, const CCoeControl* aDrawingControl, TInt aKey) const;
- __declspec(dllexport) virtual void Reserved_CCoeControl_8();
- __declspec(dllexport) virtual void Reserved_CCoeControl_9();
- protected:
- __declspec(dllexport) virtual TTypeUid::Ptr MopSupplyObject(TTypeUid aId);
- private:
- __declspec(dllexport) virtual MObjectProvider* MopNext();
- private:
- friend class CCoeRedrawer;
- __declspec(dllexport) virtual void Draw(const TRect& aRect) const;
- void DrawComponents(const TRect& aRect) const;
- void DrawWindowOwningComponentsNow() const;
- void DrawWindowOwningComponentsNow(const TRect &aRect) const;
- void SetGrabbed(TBool aGrabbed);
- TBool IsGrabbed() const;
- void DoMakeVisible(TBool aVisible);
- void CheckPointerEventPurge() const;
- inline TInt Flags() const;
- inline TInt& Flags();
- void RecursivelyMergeTextDrawers(CCoeTextDrawerBase*& aTextDrawer,
- const CCoeControl* aDrawingControl, TInt aKey) const;
- const CCoeControl* WindowOwningParent() const;
- const CCoeControl* SearchParent(const CCoeControl* aParentToFind) const;
- void DoSetLayoutL(MCoeLayoutManager* aLayoutManager);
- TInt SetZoomWithType(TCoeZoomWithType* aZoomWithType);
- TCoeZoomWithType* GetZoomWithType() const;
- TInt SetFontProvider(const CCoeFontProvider* aFontProvider);
- const CCoeFontProvider* GetFontProvider() const;
- protected:
- __declspec(dllexport) virtual void WriteInternalStateL(RWriteStream& aWriteStream) const;
- public:
- __declspec(dllexport) void SetBackground(const MCoeControlBackground* aBackground);
- __declspec(dllexport) CCoeControl* Parent();
- __declspec(dllexport) const CCoeControl* Parent() const;
- __declspec(dllexport) TInt SetGc(CWindowGc* aGraphicsContext) const;
- __declspec(dllexport) CWindowGc* CCoeControl::GetGc() const;
- __declspec(dllexport) void DrawBackground(const TRect& aRect) const;
- __declspec(dllexport) void DrawForeground(const TRect& aRect) const;
- __declspec(dllexport) TInt SetHitTest(const MCoeControlHitTest* aHitTestControl);
- __declspec(dllexport) const MCoeControlHitTest* HitTest() const;
- private:
- __declspec(dllexport) virtual void Reserved_2();
- public:
- __declspec(dllexport) TInt UniqueHandle() const ;
- __declspec(dllexport) TInt SetUniqueHandle( TInt aUniqueHandle ) ;
- protected:
- CCoeEnv* iCoeEnv;
- MCoeControlContext* iContext;
- TPoint iPosition;
- TSize iSize;
- private:
- RDrawableWindow* iWin;
- MCoeControlObserver* iObserver;
- RCoeExtensionStorage iExt;
- MObjectProvider* iMopParent;
- };
- inline CCoeEnv* CCoeControl::ControlEnv() const
- {return(iCoeEnv);}
- #line 30 "C:\Symbian\9.1\S60_3rd\epoc32\include\aknview.h" /* stack depth 2 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikmobs.h" /* stack depth 3 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikcmobs.h" /* stack depth 4 */
- #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 3 */
- 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 31 "C:\Symbian\9.1\S60_3rd\epoc32\include\aknview.h" /* stack depth 2 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\coeaui.h" /* stack depth 3 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\vwsdef.h" /* stack depth 4 */
- #line 12
- class TVwsViewId
- #line 21
- {
- public:
- inline TVwsViewId();
- inline TVwsViewId(const TVwsViewId& aUid);
- inline TVwsViewId(TUid aAppUid,TUid aViewUid);
- inline TBool operator==(const TVwsViewId& aUid) const;
- inline TBool operator!=(const TVwsViewId& aUid) const;
- public:
- TUid iAppUid;
- TUid iViewUid;
- };
- const TInt KErrViewWrongMode=1;
- class TVwsViewIdAndMessage
- {
- public:
- inline TVwsViewIdAndMessage();
- inline TVwsViewIdAndMessage(const TVwsViewId& aId);
- inline TVwsViewIdAndMessage(const TVwsViewId& aId,TUid aCustomMessageId,const TDesC8& aCustomMessage);
- inline TVwsViewIdAndMessage& operator=(const TVwsViewIdAndMessage& aVwsViewIdAndMessage);
- public:
- TVwsViewId iViewId;
- TUid iCustomMessageId;
- TInt iCustomMessageLength;
- TPtrC8 iCustomMessage;
- };
- class TVwsViewEvent
- #line 79
- {
- public:
- enum TVwsViewEventType
- {
- EVwsActivateView,
- EVwsDeactivateView,
- EVwsScreenDeviceChanged,
- EVwsDeactivationNotification,
- EVwsActivationNotification
- };
- public:
- inline TVwsViewEvent();
- inline TVwsViewEvent(TVwsViewEventType aEventType);
- inline TVwsViewEvent(TVwsViewEventType aEventType,const TVwsViewId& aViewOneId);
- inline TVwsViewEvent(TVwsViewEventType aEventType,const TVwsViewId& aViewOneId,const TVwsViewId& aViewTwoId);
- inline TVwsViewEvent(TVwsViewEventType aEventType,const TVwsViewId& aViewOneId,const TVwsViewId& aViewTwoId,TUid aCustomMessageId,TInt aCustomMessageLength);
- public:
- TVwsViewEventType iEventType;
- TVwsViewId iViewOneId;
- TVwsViewId iViewTwoId;
- TUid iCustomMessageId;
- TInt iCustomMessageLength;
- };
- typedef TPckgBuf<TVwsViewIdAndMessage> TVwsViewIdAndMessageBuf;
- typedef TPckgBuf<TVwsViewEvent> TVwsViewEventBuf;
- inline TVwsViewId::TVwsViewId()
- : iAppUid(TUid::Null() ), iViewUid(TUid::Null() ) {}
- inline TVwsViewId::TVwsViewId(const TVwsViewId& aUid)
- : iAppUid(aUid.iAppUid), iViewUid(aUid.iViewUid) {}
- inline TVwsViewId::TVwsViewId(TUid aAppUid,TUid aViewUid)
- : iAppUid(aAppUid), iViewUid(aViewUid) {}
- inline TBool TVwsViewId::operator==(const TVwsViewId& aUid) const
- #line 147
- {
- return (aUid.iAppUid==iAppUid && aUid.iViewUid==iViewUid);
- }
- inline TBool TVwsViewId::operator!=(const TVwsViewId& aUid) const
- #line 160
- {
- return (aUid.iAppUid!=iAppUid || aUid.iViewUid!=iViewUid);
- }
- inline TVwsViewIdAndMessage::TVwsViewIdAndMessage()
- : iViewId(TVwsViewId()), iCustomMessageLength(0)
- {
- iCustomMessageId.iUid=0;
- iCustomMessage.Set(KNullDesC8);
- }
- inline TVwsViewIdAndMessage::TVwsViewIdAndMessage(const TVwsViewId& aId)
- : iViewId(aId), iCustomMessageLength(0)
- {
- iCustomMessageId.iUid=0;
- iCustomMessage.Set(KNullDesC8);
- }
- inline TVwsViewIdAndMessage::TVwsViewIdAndMessage(const TVwsViewId& aId,TUid aCustomMessageId,const TDesC8& aCustomMessage)
- : iViewId(aId), iCustomMessageId(aCustomMessageId)
- {
- iCustomMessageLength=aCustomMessage.Length();
- iCustomMessage.Set(aCustomMessage);
- }
- inline TVwsViewIdAndMessage& TVwsViewIdAndMessage::operator=(const TVwsViewIdAndMessage& aVwsViewIdAndMessage)
- {
- iViewId=aVwsViewIdAndMessage.iViewId;
- iCustomMessageId=aVwsViewIdAndMessage.iCustomMessageId;
- iCustomMessageLength=aVwsViewIdAndMessage.iCustomMessage.Length();
- iCustomMessage.Set(aVwsViewIdAndMessage.iCustomMessage);
- return(*this);
- }
- inline TVwsViewEvent::TVwsViewEvent() {}
- inline TVwsViewEvent::TVwsViewEvent(TVwsViewEventType aEventType)
- : iEventType(aEventType),iViewOneId(),iViewTwoId(),iCustomMessageId(TUid::Null() ),iCustomMessageLength(0) {}
- inline TVwsViewEvent::TVwsViewEvent(TVwsViewEventType aEventType,const TVwsViewId& aViewOneId)
- : iEventType(aEventType),iViewOneId(aViewOneId),iViewTwoId(),iCustomMessageId(TUid::Null() ),iCustomMessageLength(0) {}
- inline TVwsViewEvent::TVwsViewEvent(TVwsViewEventType aEventType,const TVwsViewId& aViewOneId,const TVwsViewId& aViewTwoId)
- : iEventType(aEventType),iViewOneId(aViewOneId),iViewTwoId(aViewTwoId),iCustomMessageId(TUid::Null() ),iCustomMessageLength(0) {}
- inline TVwsViewEvent::TVwsViewEvent(TVwsViewEventType aEventType,const TVwsViewId& aViewOneId,const TVwsViewId& aViewTwoId,TUid aCustomMessageId,TInt aCustomMessageLength)
- : iEventType(aEventType),iViewOneId(aViewOneId),iViewTwoId(aViewTwoId),iCustomMessageId(aCustomMessageId),iCustomMessageLength(aCustomMessageLength) {}
- #line 22 "C:\Symbian\9.1\S60_3rd\epoc32\include\coeaui.h" /* stack depth 3 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\coeview.h" /* stack depth 4 */
- #line 12
- 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 3 */
- 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 32 "C:\Symbian\9.1\S60_3rd\epoc32\include\aknview.h" /* stack depth 2 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikdef.h" /* stack depth 3 */
- #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 34 "C:\Symbian\9.1\S60_3rd\epoc32\include\aknview.h" /* stack depth 2 */
- class CAknViewAppUi;
- class CEikStatusPane;
- class CEikButtonGroupContainer;
- class CAknControlStack;
- class CAknViewExtension;
- class CAknToolbar;
- #line 52
- class CAknView : public CBase, public MCoeView, public MEikMenuObserver,
- public MObjectProvider
- {
- public:
- __declspec(dllexport) CAknView();
- __declspec(dllexport) ~CAknView();
- #line 74
- __declspec(dllexport) void BaseConstructL(TInt aResId=0);
- __declspec(dllexport) void ConstructMenuAndCbaEarlyL();
- __declspec(dllexport) void ActivateViewL(const TVwsViewId& aViewId);
- #line 99
- __declspec(dllexport) void ActivateViewL(const TVwsViewId& aViewId,
- TUid aCustomMessageId,
- const TDesC8& aCustomMessage);
- __declspec(dllexport) virtual TUid Id() const =0;
- __declspec(dllexport) virtual void HandleStatusPaneSizeChange();
- __declspec(dllexport) TVwsViewId ViewId() const;
- #line 129
- __declspec(dllexport) virtual void ProcessCommandL(TInt aCommand);
- __declspec(dllexport) virtual void HandleCommandL(TInt aCommand);
- __declspec(dllexport) virtual CEikMenuBar* MenuBar() const;
- #line 152
- __declspec(dllexport) TRect ClientRect() const;
- __declspec(dllexport) void StopDisplayingMenuBar();
- __declspec(dllexport) TBool IsForeground() const;
- __declspec(dllexport) virtual void HandleViewRectChange();
- __declspec(dllexport) virtual void Redraw() const;
- __declspec(dllexport) virtual void AknViewActivatedL(const TVwsViewId& aPrevViewId,
- TUid aCustomMessageId,
- const TDesC8& aCustomMessage);
- void AknViewDeactivated();
- void ProcessForegroundEventL(TBool aForeground);
- private:
- __declspec(dllexport) virtual void Reserved_MtsmPosition();
- __declspec(dllexport) virtual void Reserved_MtsmObject();
- protected:
- __declspec(dllexport) CAknViewAppUi* AppUi() const;
- __declspec(dllexport) CEikStatusPane* StatusPane() const;
- __declspec(dllexport) CEikButtonGroupContainer* Cba() const;
- #line 237
- __declspec(dllexport) virtual void DoActivateL(const TVwsViewId& aPrevViewId,
- TUid aCustomMessageId,
- const TDesC8& aCustomMessage) = 0;
- virtual void DoDeactivate() = 0;
- protected:
- #line 257
- __declspec(dllexport) void ViewActivatedL(const TVwsViewId& aPrevViewId,
- TUid aCustomMessageId,
- const TDesC8& aCustomMessage);
- __declspec(dllexport) void ViewDeactivated();
- __declspec(dllexport) TVwsViewIdAndMessage ViewScreenDeviceChangedL();
- protected:
- #line 286
- __declspec(dllexport) TTypeUid::Ptr MopSupplyObject(TTypeUid aId);
- __declspec(dllexport) MObjectProvider* MopNext();
- protected:
- #line 305
- __declspec(dllexport) virtual void SetEmphasis(CCoeControl* aMenuControl,
- TBool aEmphasis);
- __declspec(dllexport) virtual void HandleForegroundEventL(TBool aForeground);
- private:
- void ConstructMenuAndCbaL(TBool aVisible);
- CAknViewExtension* Extension() const;
- public:
- __declspec(dllexport) CAknToolbar* Toolbar() const;
- __declspec(dllexport) void StopDisplayingToolbar();
- protected:
- CCoeEnv* iCoeEnv;
- private:
- CAknViewAppUi* iAppUi;
- struct SAknViewInfo
- {
- public:
- TUint8 iVersion;
- TInt iHotKeys;
- TInt iMenu;
- TInt iCba;
- TInt iToolbar;
- TInt iExtension;
- };
- SAknViewInfo iViewInfo;
- CEikMenuBar* iMenu;
- CEikButtonGroupContainer* iCba;
- TBitFlags iFlags;
- CAknViewExtension* iExtension;
- };
- #line 9 "C:\gbtukmanpf01\NOK124\Courses\S60\05300-S60_C++_Introduction\Working\LabCode\Lab_05304-s2.cb1\starter\inc\S60UIExamplePlayView.h" /* stack depth 1 */
- class CS60UIExamplePlayContainer;
- class CS60UIExampleModel;
- class CAknIconArray;
- class CS60UIExamplePlayView: public CAknView
- {
- public:
- #line 35
- static CS60UIExamplePlayView* NewL(CS60UIExampleModel& aModel);
- #line 44
- static CS60UIExamplePlayView* NewLC(CS60UIExampleModel& aModel);
- virtual ~CS60UIExamplePlayView();
- public:
- TUid Id() const;
- void HandleCommandL(TInt aCommand);
- #line 78
- void DoActivateL(const TVwsViewId& aPrevViewId,
- TUid aCustomMessageId,
- const TDesC8& aCustomMessage);
- #line 89
- void DoDeactivate();
- void DynInitMenuPaneL(TInt aResourceId, CEikMenuPane* aMenuPane);
- private:
- CS60UIExamplePlayView(CS60UIExampleModel& aModel);
- void ConstructL();
- private:
- CS60UIExamplePlayContainer* iContainer;
- TUid iIdentifier;
- CS60UIExampleModel& iModel;
- };
- #line 3 "C:\gbtukmanpf01\NOK124\Courses\S60\05300-S60_C++_Introduction\Working\LabCode\Lab_05304-s2.cb1\starter\src\S60UIExamplePlayView.cpp" /* stack depth 0 */
- #line 1 "C:\gbtukmanpf01\NOK124\Courses\S60\05300-S60_C++_Introduction\Working\LabCode\Lab_05304-s2.cb1\starter\inc\S60UIExamplePlayContainer.h" /* stack depth 1 */
- #line 13
- class CS60UIExampleModel;
- class CAknNavigationDecorator;
- class CAknNavigationControlContainer;
- #line 24
- class CS60UIExamplePlayContainer : public CCoeControl
- {
- public:
- #line 35
- static CS60UIExamplePlayContainer* NewL(const TRect& aRect,
- CS60UIExampleModel& aModel );
- #line 45
- static CS60UIExamplePlayContainer* NewLC(const TRect& aRect,
- CS60UIExampleModel& aModel );
- void ConstructL(const TRect& aRect);
- virtual ~CS60UIExamplePlayContainer();
- public:
- void SizeChanged();
- void HandleResourceChange(TInt aType);
- void Draw(const TRect& aRect) const;
- TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,
- TEventCode aType);
- private:
- CS60UIExamplePlayContainer(CS60UIExampleModel& aModel);
- public:
- void UpdateNaviPaneL();
- private:
- CS60UIExampleModel& iModel;
- CAknNavigationControlContainer* iNaviPane;
- CAknNavigationDecorator* iNaviDecorator;
- CFbsBitmap* iBkgBitmap;
- };
- #line 4 "C:\gbtukmanpf01\NOK124\Courses\S60\05300-S60_C++_Introduction\Working\LabCode\Lab_05304-s2.cb1\starter\src\S60UIExamplePlayView.cpp" /* stack depth 0 */
- #line 1 "C:\gbtukmanpf01\NOK124\Courses\S60\05300-S60_C++_Introduction\Working\LabCode\Lab_05304-s2.cb1\starter\inc\S60UIExampleModel.h" /* stack depth 1 */
- #line 18
- class THighScore
- {
- public:
- TInt iScore;
- TBufC<20> iName;
- };
- #line 32
- class CS60UIExampleModel : public CBase
- {
- public:
- static CS60UIExampleModel* CS60UIExampleModel::NewL();
- static CS60UIExampleModel* CS60UIExampleModel::NewLC();
- void ConstructL();
- virtual ~CS60UIExampleModel();
- public:
- TBool IsGameStarted() const { return iGameStarted; }
- TBool IsGamePaused() const { return iGamePaused; }
- void GameStart() { iGameStarted = ETrue; iLevel = 1; iScore = 0; }
- void GameStop() { iGameStarted = EFalse; }
- void GamePause() { iGamePaused = ETrue; }
- void GameContinue() { iGameStarted = ETrue; iGamePaused = EFalse; }
- TInt LevelNumber() { return iLevel; }
- void SetLevelNumber(TInt aLevel) { iLevel = aLevel; }
- TInt Score() { return iScore; }
- void SetScore(TInt aScore) { iScore = aScore; }
- RArray<THighScore> * HighScoreArray() { return &iHighScores; }
- void InsertInHighScoresL(TDesC& aName, TInt aScore);
- private:
- TBool iGameStarted;
- TBool iGamePaused;
- TInt iLevel;
- TInt iScore;
- RArray<THighScore> iHighScores;
- };
- #line 5 "C:\gbtukmanpf01\NOK124\Courses\S60\05300-S60_C++_Introduction\Working\LabCode\Lab_05304-s2.cb1\starter\src\S60UIExamplePlayView.cpp" /* stack depth 0 */
- #line 1 "C:\gbtukmanpf01\NOK124\Courses\S60\05300-S60_C++_Introduction\Working\LabCode\Lab_05304-s2.cb1\starter\inc\S60UIExample.hrh" /* stack depth 1 */
- enum TS60UIExampleCommandIds
- {
- ES60UIExampleStartGame = 1,
- ES60UIExampleContinueGame,
- ES60UIExamplePauseGame,
- ES60UIExampleStopGame,
- ES60UIExampleWeapon,
- ES60UIExampleHighscores
- };
- enum TS60UIExampleViewNumber
- {
- ES60UIExampleInitialViewId = 1,
- ES60UIExamplePlayViewId,
- ES60UIExampleHighScoreViewId,
- ES60UIExampleSettingsViewId
- };
- #line 6 "C:\gbtukmanpf01\NOK124\Courses\S60\05300-S60_C++_Introduction\Working\LabCode\Lab_05304-s2.cb1\starter\src\S60UIExamplePlayView.cpp" /* stack depth 0 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\aknviewappui.h" /* stack depth 1 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\aknappui.h" /* stack depth 2 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikappui.h" /* stack depth 3 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\apadef.h" /* stack depth 4 */
- #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 3 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\baerrhan.h" /* stack depth 4 */
- #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 3 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikaufty.h" /* stack depth 4 */
- #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 3 */
- 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 2 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\Eikspane.h" /* stack depth 3 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikspmod.h" /* stack depth 4 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\uikon.hrh" /* stack depth 5 */
- #line 20
- enum TEikAppResourceFileStandardOffset
- {
- ESignatureResourceOffset=1,
- EDefaultNameResourceOffset,
- EAppInfoResourceOffset
- };
- #line 14 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikspmod.h" /* stack depth 4 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\eiksrvc.h" /* stack depth 5 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\eiksrvs.h" /* stack depth 6 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikenv.h" /* stack depth 7 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\apaflrec.h" /* stack depth 8 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\apaid.h" /* stack depth 9 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\apmstd.h" /* stack depth 10 */
- #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 9 */
- 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 8 */
- 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 7 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\apacmdln.h" /* stack depth 8 */
- #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 7 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\gulcolor.h" /* stack depth 8 */
- #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 7 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikdgfty.h" /* stack depth 8 */
- #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 7 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\eiklibry.h" /* stack depth 8 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikfctry.h" /* stack depth 9 */
- #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 8 */
- 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 7 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikamnt.h" /* stack depth 8 */
- #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 7 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\lafmain.h" /* stack depth 8 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\frmtlay.h" /* stack depth 9 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\txtfrmat.h" /* stack depth 10 */
- #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: