S60UIExamplePlayContainer.inc
上传用户:laixiong
上传日期:2007-03-11
资源大小:2994k
文件大小:1695k
源码类别:
Symbian
开发平台:
C/C++
- enum TEikMenuFlags {ETitleArrayOwnedExternally=0x01,EMenuHasItems=0x02,EMenuHasPane=0x04,EBackgroundFaded=0x08, ESoundsInstalled=0x10};
- CEikButtonGroupContainer* iMenuCba;
- MEikMenuObserver* iMenuObserver;
- MEikMenuObserver* iEditMenuObserver;
- MEikMenuObserver* iActiveEditMenuObserver;
- CEikMenuPane* iMenuPane;
- CEikHotKeyTable* iHotKeyTable;
- SCursor iCursor;
- TInt iMenuTitleResourceId;
- TInt iMenuPaneResourceId;
- TInt iMenuHotKeyResourceId;
- TInt iSelectedTitle;
- TInt iBaseLine;
- TInt iMenuTitleLeftSpace;
- TInt iMenuFlags;
- CTitleArray* iTitleArray;
- CArrayFixFlat<SPosition> * iPastMenuPosArray;
- TBool iPreventFepMenu;
- friend class CEikMenuBarExtension;
- CEikMenuBarExtension* iExt;
- };
- class CEikMenuPaneTitle : public CEikBorderedControl
- {
- public:
- __declspec(dllexport) CEikMenuPaneTitle(CEikMenuBar* aMenuBar);
- __declspec(dllexport) void ConstructL();
- __declspec(dllexport) void SetSelectedTitle(TInt aSelectedTitle);
- __declspec(dllexport) void Draw(const TRect& aRect) const;
- __declspec(dllexport) TMargins Margins() const;
- __declspec(dllexport) void Close();
- public:
- __declspec(dllexport) void HandlePointerEventL(const TPointerEvent& aPointerEvent);
- __declspec(dllexport) virtual void GetColorUseListL(CArrayFix<TCoeColorUse>& aColorUseList) const;
- __declspec(dllexport) virtual void HandleResourceChange(TInt aType);
- private:
- __declspec(dllexport) void* ExtensionInterface( TUid aInterface );
- private:
- CEikMenuBar* const iMenuBar;
- TInt iSelectedTitle;
- };
- #line 28 "C:\Symbian\9.1\S60_3rd\epoc32\include\aknenv.h" /* stack depth 2 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikappui.h" /* stack depth 3 */
- #line 20
- 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 29 "C:\Symbian\9.1\S60_3rd\epoc32\include\aknenv.h" /* stack depth 2 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\aknlayout2id.h" /* stack depth 3 */
- #line 26
- enum TAknLayoutId
- {
- EAknLayoutIdELAF = 0,
- EAknLayoutIdABRW = 1,
- EAknLayoutIdAPAC = 2
- };
- #line 30 "C:\Symbian\9.1\S60_3rd\epoc32\include\aknenv.h" /* stack depth 2 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\akndef.h" /* stack depth 3 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\akndef.hrh" /* stack depth 4 */
- #line 30
- enum TAknUiZoom
- {
- EAknUiZoomAutomatic=-1,
- EAknUiZoomNormal,
- EAknUiZoomSmall,
- EAknUiZoomLarge,
- EAknUiZoomVerySmall,
- EAknUiZoomVeryLarge
- };
- #line 24 "C:\Symbian\9.1\S60_3rd\epoc32\include\akndef.h" /* stack depth 3 */
- class TVwsViewId;
- const TInt KEikMessageWindowsFadeChange =0x10006890;
- const TInt KEikMessageCaptionedControlEditableStateChange =0x10008E99;
- const TInt KEikMessageCaptionedControlNotEditableStateChange =0x10008E9A;
- const TInt KEikMessageCaptionedControlEditableStateChangeWideWithGraphic =0x101F5FBA;
- const TInt KEikMessageCaptionedControlEditableStateChangeWideWithoutGraphic =0x101F5FBB;
- const TInt KEikMessageCaptionedControlNotEditableStateChangeWideWithGraphic =0x101F5FBC;
- const TInt KEikMessageCaptionedControlNotEditableStateChangeWideWithoutGraphic =0x101F5FBD;
- const TInt KEikClearPartialForegroundState =0x101f54f4;
- const TInt KEikPartialForeground =0x101f6aab;
- const TInt KEikDynamicLayoutVariantSwitch = 0x101F8121;
- const TInt KEikDynamicLayoutVariantSwitch_APAC = 0x101F8124;
- const TInt KEikInputLanguageChange = 0x101F8519;
- const TInt KAknHardwareLayoutSwitch = 0x10202672;
- const TInt KAknDelayedLayoutSwitch = 0x102797FD;
- namespace AknDef
- {
- __declspec(dllexport) TInt GetPhoneIdleViewId(TVwsViewId& aViewId);
- }
- #line 31 "C:\Symbian\9.1\S60_3rd\epoc32\include\aknenv.h" /* stack depth 2 */
- namespace AknLayout { class CInstance; }
- class CCdlEngineRef;
- class MAknEditingStateIndicator;
- class MAknIntermediateState;
- class CAknAppUi;
- class CAknWaitDialog;
- class CEikListBox;
- class CAknSettingCache;
- class CAknFontRegistry;
- class CLafSystemFont;
- typedef CLafSystemFont CAknSystemFont;
- #line 75
- class CAknEnv : public CBase
- {
- public:
- #line 87
- __declspec(dllexport) static CAknEnv* Static();
- __declspec(dllexport) ~CAknEnv();
- public:
- #line 103
- __declspec(dllexport) void ExecuteEmptyPopupListL(const TDesC *aEmptyText=0);
- #line 116
- __declspec(dllexport) void ExecuteEmptyPopupListL(const TDesC *aEmptyText,
- const TDesC *aTitle,
- TInt aSoftkeyId=0);
- public:
- __declspec(dllexport) void SetFepMenuObserver(MEikMenuObserver* aObserver);
- __declspec(dllexport) MEikMenuObserver* FepMenuObserver();
- __declspec(dllexport) MAknEditingStateIndicator* EditingStateIndicator();
- #line 149
- __declspec(dllexport) MAknEditingStateIndicator* SwapEditingStateIndicator(
- MAknEditingStateIndicator* aIndicator);
- __declspec(dllexport) static void ExitForegroundAppL();
- public:
- __declspec(dllexport) void RegisterIntermediateStateL(MAknIntermediateState *aState);
- #line 174
- __declspec(dllexport) void UnRegisterIntermediateState(MAknIntermediateState *aState);
- __declspec(dllexport) void CloseAllIntermediateStates();
- public:
- __declspec(dllexport) static void RunAppShutter();
- #line 194
- __declspec(dllexport) static CAknAppUi* AppWithShutterRunning();
- __declspec(dllexport) static void StopSchedulerWaitWithBusyMessage(
- CActiveSchedulerWait& aWait);
- public:
- __declspec(dllexport) void CreateCbaObserverL(CEikButtonGroupContainer *aCba,
- CEikListBox *aListBox);
- __declspec(dllexport) void RemoveCbaObserver();
- __declspec(dllexport) void InformCbaDeletion(CEikButtonGroupContainer *aCba);
- public:
- __declspec(dllexport) void GetCurrentLayoutId(TAknLayoutId& aCurrentLayoutId) const;
- __declspec(dllexport) void GetCurrentGlobalUiZoom(TAknUiZoom& aCurrentGlobalUiZoom) const;
- public:
- __declspec(dllexport) TInt StatusPaneResIdForCurrentLayout(TInt aResId) const;
- public:
- #line 269
- __declspec(dllexport) TInt RequestWsBuffer( TInt aRequestedBufferSize );
- #line 282
- __declspec(dllexport) void CancelWsBufferRequest( TInt aRequestID );
- public:
- __declspec(dllexport) CAknSettingCache& SettingCache() const;
- #line 299
- CAknFontRegistry& FontRegistry() const;
- #line 310
- CArrayPtr<CAknSystemFont> * SystemFontArray() const;
- void UpdateSystemFontsL();
- public:
- __declspec(dllexport) TBool LoadAknLayoutL();
- __declspec(dllexport) const AknLayout::CInstance& AknLayout() const;
- public:
- #line 341
- __declspec(dllexport) static TRgb AvkonColor( TInt );
- public:
- __declspec(dllexport) TBool SplitViewActive() const;
- void SplitViewActive( const TBool aSplitViewActive );
- private:
- void SetWsBufferSize();
- void SetWsBufferSize( TInt aRequestedBufferSize );
- friend class AknBidiTextUtils;
- friend class TAknTextWrapper;
- #line 375
- TBidirectionalState::TRunInfo* RunInfoArray( TInt& aLength ) const;
- #line 385
- TInt PrepareRunInfoArray( const TDesC& aLogicalText );
- #line 395
- TInt SetRequiredRunInfoArraySize( TInt aLength );
- void SetLayoutRequirementsL();
- void AssertLayoutLoaded();
- TBool LoadAknLayoutL(TAknLayoutId aId, const TPixelsTwipsAndRotation& aSizeRot, TAknUiZoom aUiZoom);
- TAknUiZoom ResolveCurrentUiZoom();
- void SetConeFontSizeArrayL() const;
- private:
- static TInt RealCloseIntermediateStates(TAny *aEnv);
- static TInt SchedulerStoppedCallBack(TAny* aWaitNote);
- void DoSchedulerStoppedCallBack();
- private:
- friend class LafEnv;
- __declspec(dllexport) static void InstallAknEnvAsExtensionL(CEikonEnv* aEnv);
- __declspec(dllexport) CAknEnv();
- __declspec(dllexport) void ConstructL();
- private:
- MEikMenuObserver* iFepMenuObserver;
- MAknEditingStateIndicator* iEditStateIndicator;
- private:
- CArrayPtr<MAknIntermediateState> *iStateArray;
- CArrayPtr<CBase> *iDeleteArray;
- CIdle *iIdle;
- CAknWaitDialog* iBusyMsgDialog;
- TInt iBusyMsgCount;
- MEikCommandObserver *iCbaCommandObserver;
- CAknSettingCache* iSettingCache;
- TBidirectionalState::TRunInfo* iRunInfoArray;
- TInt iRunInfoArrayLength;
- struct TWsBufferRequest
- {
- TInt iRequestID;
- TInt iRequestedSize;
- };
- RArray<TWsBufferRequest> iWsBufferRequestArray;
- TInt iRequestIdCounter;
- TInt iCurrentWsBufferRequest;
- TAknLayoutId iLastLayoutId;
- TPixelsTwipsAndRotation iLastLayoutSizeRot;
- TAknUiZoom iLastZoom;
- CEikonEnv* iCoeEnv;
- CAknFontRegistry* iFontRegistry;
- CCdlEngineRef* iCdlEngRef;
- const AknLayout::CInstance* iLayout;
- CArrayPtr<CAknSystemFont> * iSystemFontArray;
- TBool iSplitViewActive;
- };
- #line 40 "C:\Symbian\9.1\S60_3rd\epoc32\include\aknutils.h" /* stack depth 1 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\aknlayout.lag" /* stack depth 2 */
- #line 12
- class TAknTextLineLayout;
- class TAknWindowLineLayout;
- class TAknMultiLineTextLayout;
- #line 42 "C:\Symbian\9.1\S60_3rd\epoc32\include\aknutils.h" /* stack depth 1 */
- const TInt KMaxColumnDataLength = 80;
- const TInt KMaxTotalDataLength = 8*KMaxColumnDataLength;
- #line 63
- class CCoeControl;
- class CEikTextListBox;
- class CEikColumnListBox;
- class CEikFormattedCellListBox;
- class CGulIcon;
- class CEikSettingsListBox;
- class CAknLAF;
- class CEikImage;
- class CEikMfne;
- class CEikListBox;
- class CEikLabel;
- class CEikEdwin;
- class CEikMenuPane;
- class CAknPopupField;
- class CListBoxView;
- class CAknColumnListBox;
- class CEikSecretEditor;
- class CFindExtension;
- class CAknLayoutFont;
- class TAknFontSpecification;
- class CAknAppUiBase;
- const TInt KDefaultClipWidth = -1;
- const TUint KDefaultClipChar = TUint(0x2026);
- #line 99
- class AknTextUtils
- {
- public:
- enum TClipDirection
- {
- EDoNotClip,
- EClipFromEnd,
- EClipFromBeginning
- };
- #line 120
- __declspec(dllexport) static TBool ClipToFit(TDes& aBuffer, const CFont& aFont, TInt aMaxWidthInPixels, TClipDirection aDir=EClipFromEnd, TInt aClipWidth = KDefaultClipWidth, const TDesC &aClipString=(TPtrC((const TText *)L"...")) );
- __declspec(dllexport) static TBool ClipToFit(TDes& aBuffer, TClipDirection aDir, CEikFormattedCellListBox *aListBox, TInt aItemIndex, TInt aSubCellNumber);
- __declspec(dllexport) static TBool ClipToFit(TDes& aBuffer, TClipDirection aDir, CEikColumnListBox *aListBox, TInt aItemIndex, TInt aColumnNumber);
- static TBool DoClipToFit(
- TDes& aBuffer,
- const CFont& aFont,
- TInt aMaxWidthInPixels,
- TClipDirection aDir,
- TInt aClipWidth,
- const TDesC& aClipString );
- #line 158
- __declspec(dllexport) static void WrapToArrayL(
- const TDesC& aStringToWrap,
- const CArrayFix<TInt>& aLineWidthArray,
- const CFont& aFont,
- CArrayFix<TPtrC>& aWrappedArray);
- #line 174
- __declspec(dllexport) static void WrapToArrayL(
- const TDesC& aStringToWrap,
- TInt aLineWidth,
- const CFont& aFont,
- CArrayFix<TPtrC>& aWrappedArray );
- #line 196
- __declspec(dllexport) static void WrapToArrayAndClipL(
- TDes& aStringToWrap,
- const CArrayFix<TInt>& aLineWidthArray,
- const CFont& aFont,
- CArrayFix<TPtrC>& aWrappedArray );
- #line 219
- __declspec(dllexport) static void ChopToArrayAndClipL(
- TDes& aStringToChop,
- const CArrayFix<TInt>& aLineWidthArray,
- const CFont& aFont,
- CArrayFix<TPtrC>& aChoppedArray);
- #line 242
- __declspec(dllexport) static void ChopToArrayAndClipL(
- TDes& aStringToChop,
- TInt aLineWidth,
- const CFont& aFont,
- CArrayFix<TPtrC>& aChoppedArray );
- #line 260
- __declspec(dllexport) static void WrapToStringL(
- const TDesC& aStringToWrap,
- const CArrayFix<TInt>& aLineWidthArray,
- const CFont& aFont,
- TDes& aWrappedString );
- #line 280
- __declspec(dllexport) static void WrapToStringAndClipL(
- const TDesC& aStringToWrap,
- const CArrayFix<TInt>& aLineWidthArray,
- const CFont& aFont,
- TDes& aWrappedString );
- #line 301
- __declspec(dllexport) static void StripCharacters(TDes &aDes, const TDesC &aCharacters);
- #line 314
- __declspec(dllexport) static void ReplaceCharacters(TDes &aDes, const TDesC &aChars, TChar aReplacement);
- #line 323
- __declspec(dllexport) static void PackWhiteSpaces(TDes &aDes, const TDesC &aWhiteSpaceChars);
- static void WrapToStringL(
- const TDesC& aStringToWrap,
- const CArrayFix<TInt>& aLineWidthArray,
- const CFont& aFont,
- TDes& aWrappedString,
- TInt aFlags,
- TInt aDirectionality );
- static void WrapToArrayL(
- TDes& aStringToWrap,
- const CArrayFix<TInt> * aLineWidthArray,
- const CFont& aFont,
- CArrayFix<TPtrC>& aWrappedArray,
- TInt aLineWidth,
- TInt aFlags,
- TInt aDirectionality );
- static void ChopToArrayAndClipL(
- TDes& aStringToChop,
- const CArrayFix<TInt> * aLineWidthArray,
- const CFont& aFont,
- CArrayFix<TPtrC>& aChoppedArray,
- TInt aLineWidth );
- #line 358
- static TBool IsEmptyText( const TDesC& aTextToTest );
- #line 374
- __declspec(dllexport) static void LanguageSpecificNumberConversion(TDes &aDes);
- #line 384
- __declspec(dllexport) static void ConvertDigitsTo( TDes& aDes, TDigitType aDigitType );
- #line 398
- __declspec(dllexport) static TBidiText::TDirectionality CurrentScriptDirectionality();
- static TDigitType InputLanguageFilteredDigitType();
- static TDigitType DisplayTextLanguageFilteredDigitType();
- __declspec(dllexport) static TDigitType NumericEditorDigitType();
- #line 440
- __declspec(dllexport) static void DisplayTextLanguageSpecificNumberConversion(TDes &aDes);
- #line 453
- __declspec(dllexport) static TDigitType TextEditorDigitType();
- enum TDigitModeQueryType {
- EDigitModeEditorDefault,
- EDigitModeUserModifiableEditor,
- EDigitModeShownToUser
- };
- #line 474
- __declspec(dllexport) static TBool DigitModeQuery(TDigitModeQueryType aQueryType = EDigitModeShownToUser);
- __declspec(dllexport) static HBufC *ConvertFileNameL(const TDesC &aDes);
- __declspec(dllexport) static HBufC* LoadScalableTextL(CCoeEnv& aCoe, TInt aResourceId);
- __declspec(dllexport) static HBufC* LoadScalableTextLC(CCoeEnv& aCoe, TInt aResourceId);
- __declspec(dllexport) static TInt LoadScalableText(CCoeEnv& aCoe, TInt aResourceId, TDes& aBuffer );
- __declspec(dllexport) static HBufC* ClipAccordingScreenOrientationLC(CCoeEnv& aCoe, HBufC* aBuf);
- #line 529
- __declspec(dllexport) static TPtrC ChooseScalableText(
- const TDesC& aText,
- const CFont& aFont,
- TInt aMaxWidthInPixels );
- };
- const static TLitC<sizeof(L"t")/2> KAknStripTabs={sizeof(L"t")/2-1,L"t"} ;
- const static TLitC<sizeof(L"tn")/2> KAknStripListControlChars={sizeof(L"tn")/2-1,L"tn"} ;
- const static TLitC<sizeof(L"t")/2> KAknReplaceTabs={sizeof(L"t")/2-1,L"t"} ;
- const static TLitC<sizeof(L"tn")/2> KAknReplaceListControlChars={sizeof(L"tn")/2-1,L"tn"} ;
- const static TLitC<sizeof(L" ntr")/2> KAknCommonWhiteSpaceCharacters={sizeof(L" ntr")/2-1,L" ntr"} ;
- #line 551
- class AknSelectionService
- {
- public:
- __declspec(dllexport) static void HandleSelectionListProcessCommandL(TInt aCommand, CEikListBox* aListBox);
- __declspec(dllexport) static void HandleMultiselectionListProcessCommandL(TInt aCommand, CEikListBox* aListBox);
- __declspec(dllexport) static void HandleMarkableListProcessCommandL(TInt aCommand, CEikListBox* aListBox);
- __declspec(dllexport) static TKeyResponse HandleMenuListOfferKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType, CEikListBox* aListBox);
- __declspec(dllexport) static void HandleMarkableListDynInitMenuPane(TInt aResourceId, CEikMenuPane *aMenu, CEikListBox *aListBox);
- __declspec(dllexport) static void HandleMarkableListDynInitMenuItem(CEikMenuPane *aMenu, CEikListBox *aListBox, TInt aCommandId, TBool aCanBeAppliedToMultipleItems);
- __declspec(dllexport) static void HandleMarkableListUpdateAfterCommandExecution(CEikListBox *aListBox);
- __declspec(dllexport) static void HandleItemRemovalAndPositionHighlightL(CEikListBox *aListBox, TInt aValueOfCurrentItemIndexBeforeRemoval, TBool aCurrentItemWasRemoved);
- __declspec(dllexport) static void HandleItemRemovalAndPositionHighlightL(CEikListBox *aListBox, TInt aValueOfCurrentItemIndexBeforeRemoval, CArrayFix<TInt> &aIndexesOfRemovedItemsBeforeRemoval);
- };
- class CAknSearchField;
- #line 605
- class AknFind
- {
- public:
- __declspec(dllexport) static void HandleFindPopupProcessCommandL(TInt aCommand, CEikListBox *aListBox, CAknSearchField *aSearchField, CCoeControl *aParentControl);
- __declspec(dllexport) static TKeyResponse HandleFindOfferKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType, CCoeControl *aListBoxParent, CEikListBox *aListBox, CAknSearchField *aSearchField, TBool isFindPopup, TBool &aNeedRefresh);
- __declspec(dllexport) static void HandleFindSizeChanged(CCoeControl *aParentControl,
- CEikListBox *aListBox,
- CAknSearchField *aSearchField,
- TBool ispopup = ETrue,
- TInt aFindWindowResourceId = 0x8cc007e ,
- TInt aListAreaId = 0x8cc0075 ,
- TInt aListResourceIdWithFindPopup = 0x8cc0074 ,
- TInt aFindWindowParentResourceId = 0x8cc007d );
- __declspec(dllexport) static void HandleFixedFindSizeChanged(CCoeControl *aParentControl,
- CAknColumnListBox *aListBox,
- CAknSearchField *aSearchField);
- __declspec(dllexport) static void HandlePopupFindSizeChanged(CCoeControl *aParentControl,
- CEikListBox *aListBox,
- CAknSearchField *aSearchField);
- __declspec(dllexport) static void HandleFindSizeChangedLayouts(CCoeControl *aParentControl,
- CEikListBox* aListBox,
- CAknSearchField* aSearchField,
- const TAknWindowLineLayout& aFindWindow,
- const TAknWindowLineLayout& aListArea,
- TBool aIsPopup,
- const TAknWindowLineLayout& aFindWindowParent );
- public:
- __declspec(dllexport) static TBool IsFindMatch(const TDesC& aItemText, const TDesC& aSearchText);
- __declspec(dllexport) static TBool IsFindWordSeparator(TChar aCh);
- static void HandleFindPaneVisibility(CAknSearchField *aSearchField, TBool ispopup, TBool textchanged, TBool &aNeedRefresh);
- };
- class AknEditUtils
- {
- public:
- struct SAknEditorParameters
- {
- TInt iEditingSpace;
- TInt iEditingWindow;
- TInt iCharacterCase;
- TInt iJustification;
- TBool iAllowedToMoveInsertionPoint;
- TBool iCursorYesNo;
- TBool iOverflowYesNo;
- };
- __declspec(dllexport) static void ConstructEditingL(CEikEdwin* aEdwin, TInt aResourceId);
- __declspec(dllexport) static void ConstructEditingL(CEikEdwin* aEdwin, TResourceReader& aReader);
- __declspec(dllexport) static void ConstructEditingL(CEikEdwin* aEdwin, const SAknEditorParameters &aParams);
- #line 710
- __declspec(dllexport) static void ConstructEditingL(CEikEdwin* aEdwin,
- TInt aEditingSpace,
- TInt aEditingWindow,
- TInt aCharacterCase,
- TInt aJustification,
- TBool aAllowedToMoveInsertionPoint,
- TBool aCursorYesNo,
- TBool aOverflowYesNo);
- #line 738
- __declspec(dllexport) static void ConstructEditingL(CEikEdwin* aEdwin,
- TInt aEditingSpace,
- TInt aEditingWindow,
- TInt aCharacterCase,
- TInt aJustification,
- TBool aAllowedToMoveInsertionPoint,
- TBool aCursorYesNo,
- TBool aOverflowYesNo,
- TBool aIsResizable);
- };
- #line 757
- class CListBoxNumbers : public CBase
- {
- public:
- __declspec(dllexport) CListBoxNumbers(CEikTextListBox* aListBox);
- __declspec(dllexport) void ConstructL();
- __declspec(dllexport) void UpdateL();
- private:
- CEikTextListBox* iListBox;
- };
- class CAknListBoxFilterItems;
- #line 778
- class CAknFilteredTextListBoxModel : public CTextListBoxModel, public MDesC16Array
- {
- public:
- __declspec(dllexport) void CreateFilterL(CEikListBox* aListBox, CAknSearchField* aSearchField);
- __declspec(dllexport) void RemoveFilter();
- __declspec(dllexport) CAknListBoxFilterItems* Filter() const;
- __declspec(dllexport) ~CAknFilteredTextListBoxModel();
- public:
- __declspec(dllexport) virtual TInt NumberOfItems() const;
- __declspec(dllexport) virtual TPtrC ItemText(TInt aItemIndex) const;
- public:
- __declspec(dllexport) const MDesC16Array * MatchableTextArray() const;
- private:
- CAknListBoxFilterItems* iFilter;
- private:
- __declspec(dllexport) TInt MdcaCount() const;
- __declspec(dllexport) TPtrC MdcaPoint(TInt aIndex) const;
- private:
- __declspec(dllexport) virtual TAny* MListBoxModel_Reserved();
- };
- #line 846
- class CAknListBoxFilterItems : public CBase, public MCoeControlObserver
- {
- public:
- #line 857
- __declspec(dllexport) CAknListBoxFilterItems(CEikListBox *aListBox, CAknSearchField *aSearchField, MListBoxModel *aModel, CListBoxView *aView);
- __declspec(dllexport) void ConstructL();
- __declspec(dllexport) void ResetFilteringL();
- __declspec(dllexport) void UpdateCachedDataL();
- __declspec(dllexport) ~CAknListBoxFilterItems();
- public:
- __declspec(dllexport) CArrayFix<TInt> *SelectionIndexes();
- __declspec(dllexport) void UpdateSelectionIndexesL();
- __declspec(dllexport) void UpdateSelectionIndexL(TInt aVisibleIndex);
- public:
- __declspec(dllexport) TInt FilteredNumberOfItems() const;
- __declspec(dllexport) TInt FilteredItemIndex(TInt aVisibleItemIndex) const;
- public:
- __declspec(dllexport) TInt NonFilteredNumberOfItems() const;
- __declspec(dllexport) TInt VisibleItemIndex(TInt aOriginalIndex) const;
- public:
- __declspec(dllexport) TPtrC DefaultMatchableItemFromItem(TPtrC aText);
- public:
- __declspec(dllexport) void HandleOfferkeyEventL();
- __declspec(dllexport) void HandleItemArrayChangeL();
- public:
- __declspec(dllexport) void SetObserver(MCoeControlObserver *aObserver);
- __declspec(dllexport) void HandleControlEventL(CCoeControl *aControl, TCoeEvent aEventType);
- public:
- __declspec(dllexport) void DeferredSendKeyEventToFepL(TUint aValue);
- static TInt IdleCallBack(TAny *aFilterItems);
- public:
- __declspec(dllexport) void SetParentControl(CCoeControl *aControl);
- __declspec(dllexport) void SetPopup();
- public:
- __declspec(dllexport) void SetListBox(CEikListBox *aListBox);
- __declspec(dllexport) void SetSearchField(CAknSearchField *aSearchField);
- __declspec(dllexport) void SetModel(MListBoxModel *aModel);
- __declspec(dllexport) void SetView(CListBoxView *aView);
- public:
- __declspec(dllexport) CCoeControl *FindBox() const;
- private:
- void NoCriteriaL();
- void TightenCriteriaL(const TDesC& aCriteria);
- void ReleaseCriteriaL(const TDesC& aCriteria);
- void InstallEmptyTextL();
- void UninstallEmptyTextL();
- void FetchSelectionIndexesFromListBoxL();
- void PushSelectionIndexesToListBoxL();
- void HandleItemAdditionL();
- void HandleItemRemovalL();
- private:
- TBool IsItemVisible(const TDesC& aMatchableItemString, const TDesC& aSearchText);
- static TBool IsSeparatorCharacter(TChar c);
- TBool IsItemSelected(TInt aRealIndex) const;
- private:
- CArrayFix<TInt> *iShownIndexes;
- CArrayFix<TInt> *iSelectionIndexes;
- HBufC *iOldSearchCriteria;
- MListBoxModel *iModel;
- CListBoxView *iView;
- TInt iOldItemCount;
- HBufC* iEmptyListText;
- CEikListBox* iListBox;
- CAknSearchField* iSearchField;
- TBuf<256> iMatchableText;
- MCoeControlObserver *iObserver;
- CFindExtension *iExtension;
- TUint iKeyValue;
- CCoeControl *iParentControl;
- TBool iIsPopup;
- TBool iDisableChangesToShownIndexes;
- };
- #line 1070
- template<class T>
- class NoOptimizationView : public T
- {
- public:
- virtual void VScrollTo(TInt aNewTopItemIndex, TRect& aMinRedrawRect)
- {
- if (this->RedrawDisabled())
- return;
- if (this->iTopItemIndex == aNewTopItemIndex)
- return;
- aMinRedrawRect.SetRect(this->iViewRect.iTl,this->iViewRect.Size());
- this->SetTopItemIndex(aNewTopItemIndex);
- this->Draw(&aMinRedrawRect);
- }
- };
- #line 1095
- class AknLAFUtils
- {
- public:
- static void DrawLines(CGraphicsContext* aGc,
- const TRect& mainpane,
- TInt x);
- __declspec(dllexport) static void ReplaceColumn(TPtr aTarget, TDesC* aSource, TDesC* aReplacement, TChar aColumnSeparator, TInt aColumn);
- };
- #line 1114
- struct SAknLayoutGfx;
- struct SAknLayoutText;
- struct SAknLayoutCmd;
- struct SAknLayoutGfx;
- struct SAknLayoutPos
- {
- TInt l, t, r, b, W, H;
- typedef SAknLayoutPos ItemType;
- static void ReadResource(TResourceReader& aReader, ItemType& aTarget);
- };
- template<class T> class CArrayReader;
- class CAknGenericReader : public CBase
- {
- public:
- __declspec(dllexport) void ConstructL(TInt aResourceId);
- __declspec(dllexport) virtual void ConstructFromResourceL(TResourceReader& aReader);
- __declspec(dllexport) ~CAknGenericReader();
- __declspec(dllexport) const SAknLayoutGfx* GfxItem(TInt aIndex) const;
- __declspec(dllexport) const SAknLayoutText* TextItem(TInt aIndex) const;
- __declspec(dllexport) const SAknLayoutCmd* CmdItem(TInt aIndex) const;
- __declspec(dllexport) const SAknLayoutGfx* AreaItem(TInt aIndex) const;
- CArrayReader<SAknLayoutGfx> * iGfx;
- CArrayReader<SAknLayoutText> * iText;
- CArrayReader<SAknLayoutCmd> * iCmd;
- CArrayReader<SAknLayoutGfx> * iArea;
- };
- const TInt AknLayoutUtilsNoValue = (-16380) ;
- #line 1183
- class AknLayoutUtils
- {
- public:
- struct SAknLayoutText
- {
- TInt iFont, iC, iL, iR, iB, iW, iJ;
- };
- struct SAknLayoutTextMultiline
- {
- TInt iFont, iC, iL, iR, iB, iW, iJ, iNumberOfLinesShown, iNextLineB;
- };
- typedef SAknLayoutTextMultiline SAknLayoutLabel;
- typedef SAknLayoutTextMultiline SAknLayoutEdwin;
- typedef SAknLayoutText SAknLayoutMfne;
- typedef SAknLayoutText SAknLayoutSecEd;
- struct SAknLayoutRect
- {
- TInt iC, iL, iT, iR, iB, iW, iH;
- };
- typedef SAknLayoutRect SAknLayoutControl;
- typedef SAknLayoutRect SAknLayoutImage;
- __declspec(dllexport) static void LayoutLabel(CEikLabel* aLabel, const TRect& aLabelParent, TInt aResourceId, const CFont* aCustomFont=0);
- __declspec(dllexport) static void LayoutLabel(CEikLabel* aLabel, const TRect& aLabelParent, TResourceReader& aReader, const CFont* aCustomFont=0);
- __declspec(dllexport) static void LayoutLabel(CEikLabel* aLabel, const TRect& aLabelParent, const SAknLayoutLabel& aLayout, const CFont *aCustomFont=0);
- __declspec(dllexport) static void LayoutLabel(CEikLabel* aLabel, const TRect& aLabelParent, const TAknMultiLineTextLayout& aLayout, const CFont *aCustomFont=0);
- __declspec(dllexport) static void LayoutLabel(CEikLabel* aLabel, const TRect& aLabelParent, const TAknTextLineLayout& aLayout, const CFont *aCustomFont=0);
- #line 1238
- __declspec(dllexport) static void LayoutLabel(CEikLabel* aLabel, const TRect& aLabelParent, TInt font, TInt C, TInt l, TInt r, TInt B, TInt W, TInt J, TInt NextLineB=0, const CFont* aCustomFont=0);
- __declspec(dllexport) static void LayoutEdwin(CEikEdwin* aEdwin, const TRect& aEdwinParent, TInt aResourceId, TInt aNumberOfLines = 0, const CFont* aCustomFont=0, TBool aMinimizeEdwinView=EFalse);
- __declspec(dllexport) static void LayoutEdwin(CEikEdwin* aEdwin, const TRect& aEdwinParent, TResourceReader& aReader, TInt aNumberOfLines = 0, const CFont* aCustomFont=0, TBool aMinimizeEdwinView=EFalse);
- __declspec(dllexport) static void LayoutEdwin(CEikEdwin* aEdwin, const TRect& aEdwinParent, const SAknLayoutEdwin& aLayout, const CFont* aCustomFont=0, TBool aMinimizeEdwinView=EFalse);
- __declspec(dllexport) static void LayoutEdwin( CEikEdwin* aEdwin,
- const TRect& aEdwinParent,
- const TAknMultiLineTextLayout& aLayout,
- const CFont* aCustomFont=0,
- TBool aMinimizeEdwinView=EFalse);
- __declspec(dllexport) static void LayoutEdwin( CEikEdwin* aEdwin,
- const TRect& aEdwinParent,
- const TAknMultiLineTextLayout& aLayout,
- TAknsQsnTextColorsIndex aOverrideColor,
- const CFont* aCustomFont=0,
- TBool aMinimizeEdwinView=EFalse );
- __declspec(dllexport) static void LayoutEdwin( CEikEdwin* aEdwin,
- const TRect& aEdwinParent,
- const TAknTextLineLayout& aLayout,
- const CFont* aCustomFont=0,
- TBool aMinimizeEdwinView=EFalse );
- __declspec(dllexport) static void LayoutEdwin( CEikEdwin* aEdwin,
- const TRect& aEdwinParent,
- const TAknTextLineLayout& aLayout,
- TAknsQsnTextColorsIndex aOverrideColor,
- const CFont* aCustomFont=0,
- TBool aMinimizeEdwinView=EFalse );
- #line 1298
- __declspec(dllexport) static void LayoutEdwin( CEikEdwin* aEdwin,
- const TRect& aEdwinParent,
- TInt font,
- TInt C,
- TInt l,
- TInt r,
- TInt B,
- TInt W,
- TInt J,
- TInt aNumberOfLinesShown,
- TInt aNextLineBaseline,
- const CFont* aCustomFont=0 ,
- TBool aMinimizeEdwinView=EFalse );
- __declspec(dllexport) static void LayoutEdwin( CEikEdwin* aEdwin,
- const TRect& aEdwinParent,
- TInt font,
- TInt C,
- TInt l,
- TInt r,
- TInt B,
- TInt W,
- TInt J,
- TInt aNumberOfLinesShown,
- TInt aNextLineBaseline,
- TAknsQsnTextColorsIndex aOverrideColor,
- const CFont* aCustomFont=0 ,
- TBool aMinimizeEdwinView=EFalse );
- __declspec(dllexport) static TRect MinimizedEdwinRect(const CEikEdwin *aEdwin);
- __declspec(dllexport) static void LayoutMfne(CEikMfne* aMfne, const TRect& aMfneParent, TInt aResourceId);
- __declspec(dllexport) static void LayoutMfne(CEikMfne* aMfne, const TRect& aMfneParent, TResourceReader& aReader);
- __declspec(dllexport) static void LayoutMfne(CEikMfne* aMfne, const TRect& aMfneParent, const SAknLayoutMfne& aLayout);
- __declspec(dllexport) static void LayoutMfne(CEikMfne* aMfne, const TRect& aMfneParent, const TAknTextLineLayout& aLayout);
- __declspec(dllexport) static void LayoutMfne(CEikMfne* aMfne, const TRect& aMfneParent, TInt font, TInt C, TInt l, TInt r, TInt B, TInt W, TInt J);
- __declspec(dllexport) static void LayoutControl(CCoeControl* aControl, const TRect& aControlParent, TInt aResourceId);
- __declspec(dllexport) static void LayoutControl(CCoeControl* aControl, const TRect& aControlParent, TResourceReader& aReader);
- __declspec(dllexport) static void LayoutControl(CCoeControl* aControl, const TRect& aControlParent, const SAknLayoutControl& aLayout);
- __declspec(dllexport) static void LayoutControl(CCoeControl* aControl, const TRect& aControlParent, const TAknWindowLineLayout& aLayout);
- __declspec(dllexport) static void LayoutControl(CCoeControl* aControl, const TRect& aControlParent, TInt , TInt l, TInt t, TInt r, TInt b, TInt W, TInt H);
- __declspec(dllexport) static void LayoutImage(CEikImage* aImage, const TRect& aParent, TInt aResourceId);
- __declspec(dllexport) static void LayoutImage(CEikImage* aImage, const TRect& aParent, TResourceReader& aReader);
- __declspec(dllexport) static void LayoutImage(CEikImage* aImage, const TRect& aParent, const SAknLayoutControl& aLayout);
- __declspec(dllexport) static void LayoutImage(CEikImage* aImage, const TRect& aParent, const TAknWindowLineLayout& aLayout);
- __declspec(dllexport) static void LayoutImage(CEikImage* aImage, const TRect& aParent, TInt C, TInt l, TInt t, TInt r, TInt b, TInt W, TInt H);
- __declspec(dllexport) static void LayoutSecretEditor(CEikSecretEditor* aSecEd, const TRect& aParent, const SAknLayoutText& aLayout);
- __declspec(dllexport) static void LayoutSecretEditor(CEikSecretEditor* aSecEd, const TRect& aParent, const TAknTextLineLayout& aLayout);
- public:
- __declspec(dllexport) static TRect TextRectFromCoords(const TRect& aParent, const CFont* aFont, TInt l, TInt r, TInt B, TInt W, TInt LB = 0);
- __declspec(dllexport) static TRect RectFromCoords(const TRect& aParent, TInt l, TInt t, TInt r, TInt b, TInt W, TInt H);
- #line 1404
- __declspec(dllexport) static const CFont* FontFromId(TInt aFontId, const CFont* aCustomFont=0);
- #line 1423
- __declspec(dllexport) static const CAknLayoutFont* LayoutFontFromId(TInt aId, const CAknLayoutFont *aCustomFont = 0);
- #line 1434
- __declspec(dllexport) static CAknLayoutFont* CreateLayoutFontFromSpecificationL(
- const TAknFontSpecification& aSpec );
- #line 1449
- __declspec(dllexport) static CAknLayoutFont* CreateLayoutFontFromSpecificationL(
- const TTypeface& aTypeface,
- const TAknFontSpecification& aSpec);
- __declspec(dllexport) static const CFont* FontFromName(const TDesC& aName);
- __declspec(dllexport) static CGraphicsContext::TTextAlign TextAlignFromId(TInt aId);
- __declspec(dllexport) static TGulAlignment GulAlignFromId(TInt aId);
- __declspec(dllexport) static TInt CursorHeightFromFont(const TFontSpec& aFont);
- __declspec(dllexport) static TInt CursorWidthFromFont (const TFontSpec& aFont);
- __declspec(dllexport) static TInt CursorAscentFromFont(const TFontSpec& aFont);
- __declspec(dllexport) static void CursorExtensionsFromFont(const TFontSpec& , TInt& aFirstExtension, TInt& aSecondExtension);
- __declspec(dllexport) static TInt HighlightLeftPixelsFromFont (const TFontSpec& aFont);
- __declspec(dllexport) static TInt HighlightRightPixelsFromFont(const TFontSpec& aFont);
- static void HighlightExtensionsFromFont(const TInt fontid, TInt& aLeft, TInt& aRight, TInt& aTop, TInt& aBottom);
- #line 1482
- static const CAknLayoutFont* MatchFontFromSystemFontArray(
- const TFontSpec& aSpec, MGraphicsDeviceMap* aMap );
- __declspec(dllexport) static TBool LayoutMirrored();
- #line 1496
- __declspec(dllexport) static EVariantFlag Variant();
- __declspec(dllexport) static ESubVariantFlag SubVariant();
- __declspec(dllexport) static void OverrideControlColorL(CCoeControl& aControl, TLogicalColor aLogicalColor, TRgb aColor);
- #line 1516
- __declspec(dllexport) static CEikScrollBarFrame::TScrollBarType DefaultScrollBarType(CAknAppUiBase* aApplication);
- #line 1546
- __declspec(dllexport) static void LayoutVerticalScrollBar(CEikScrollBarFrame* aScrollBarFrame, const TRect& aControlParent, const TAknWindowLineLayout& aLayout);
- #line 1561
- __declspec(dllexport) static void LayoutHorizontalScrollBar(CEikScrollBarFrame* aScrollBarFrame, const TRect& aControlParent, const TAknWindowLineLayout& aLayout);
- public:
- enum TAknLayoutMetrics
- {
- EScreen,
- EApplicationWindow,
- EStatusPane,
- EMainPane,
- EControlPane,
- ESignalPane,
- EContextPane,
- ETitlePane,
- EBatteryPane,
- EUniversalIndicatorPane,
- ENaviPane,
- EFindPane,
- EWallpaperPane,
- EIndicatorPane,
- EAColunm,
- EBColunm,
- ECColunm,
- EDColunm,
- EStatusPaneSecondary,
- EControlPaneSecondary,
- EStaconTop,
- EStaconBottom,
- EStatusPaneBottom = EStatusPaneSecondary,
- EControlPaneBottom = EControlPaneSecondary,
- EControlPaneTop = EControlPane,
- EStatusPaneTop = EStatusPane
- };
- #line 1608
- __declspec(dllexport) static TBool LayoutMetricsRect(TAknLayoutMetrics aParam, TRect& aRect);
- #line 1623
- __declspec(dllexport) static TBool LayoutMetricsSize(TAknLayoutMetrics aParam, TSize& aSize);
- #line 1638
- __declspec(dllexport) static TBool LayoutMetricsPosition(TAknLayoutMetrics aParan, TPoint& aPos);
- public:
- #line 1654
- static TInt CorrectBaseline(TInt aParentHeight, TInt aBaseline, TInt aFontId);
- static void CorrectFontId(TRect aParent, TInt at, TInt aH, TInt ab, TInt &aFontId);
- __declspec(dllexport) static TBool ScalableLayoutInterfaceAvailable();
- enum TAknCbaLocation
- {
- EAknCbaLocationBottom,
- EAknCbaLocationRight,
- EAknCbaLocationLeft
- };
- #line 1688
- __declspec(dllexport) static TAknCbaLocation CbaLocation();
- static TRect HighlightBasedRect( const TRect& aHighlightRect, CCoeControl* aControl );
- };
- class TAknLayoutText
- {
- public:
- __declspec(dllexport) TAknLayoutText();
- __declspec(dllexport) void LayoutText(const TRect& aParent, TInt aResourceId, const CFont* aCustomFont=0);
- __declspec(dllexport) void LayoutText(const TRect& aParent, TResourceReader& aReader, const CFont* aCustomFont=0);
- __declspec(dllexport) void LayoutText(const TRect& aParent, const AknLayoutUtils::SAknLayoutText& aLayout, const CFont* aCustomFont=0);
- __declspec(dllexport) void LayoutText(const TRect& aParent, const TAknTextLineLayout& aLayout, const CFont* aCustomFont=0);
- __declspec(dllexport) void LayoutText(const TRect& aParent, TInt fontid, TInt C, TInt l, TInt r, TInt B, TInt W, TInt J, const CFont* aCustomFont=0);
- __declspec(dllexport) void DrawText(CGraphicsContext& aGc, const TDesC& aText) const;
- __declspec(dllexport) void DrawText(
- CGraphicsContext& aGc,
- const TDesC& aText,
- TBool aUseLogicalToVisualConversion ) const;
- __declspec(dllexport) void DrawText(
- CGraphicsContext& aGc,
- const TDesC& aText,
- TBool aUseLogicalToVisualConversion,
- const TRgb &aColor) const;
- public:
- __declspec(dllexport) TRect TextRect() const;
- const CFont *Font() const { return iFont; }
- TRgb Color() const { return CAknEnv::AvkonColor(iColor) ; }
- CGraphicsContext::TTextAlign Align() const { return iAlign; }
- private:
- TRect iTextRect;
- const CFont *iFont;
- TInt iColor;
- TInt iOffset;
- CGraphicsContext::TTextAlign iAlign;
- friend class CBubbleOutlookNumberEntry;
- };
- #line 1765
- class TAknLayoutRect
- {
- public:
- __declspec(dllexport) TAknLayoutRect();
- __declspec(dllexport) void LayoutRect(const TRect &aParent, TInt aResourceId);
- __declspec(dllexport) void LayoutRect(const TRect &aParent, TResourceReader &aReader);
- __declspec(dllexport) void LayoutRect(const TRect &aParent, const AknLayoutUtils::SAknLayoutRect &aLayout);
- __declspec(dllexport) void LayoutRect(const TRect &aParent, const TAknWindowLineLayout &aLayout);
- __declspec(dllexport) void LayoutRect(const TRect &aParent, TInt C, TInt l, TInt t, TInt r, TInt b, TInt W, TInt H);
- #line 1785
- __declspec(dllexport) TRgb Color() const;
- __declspec(dllexport) TRect Rect() const;
- TBool Valid() const;
- __declspec(dllexport) void DrawRect(CWindowGc& aGc) const;
- __declspec(dllexport) void DrawOutLineRect(CWindowGc& aGc) const;
- __declspec(dllexport) void DrawImage(CBitmapContext& aGc, CFbsBitmap* aBitmap, CFbsBitmap* aMask) const;
- private:
- TInt iColor;
- TRect iRect;
- };
- class AknDraw
- {
- public:
- __declspec(dllexport) static void DrawEmptyList(const TRect& aRect, CWindowGc& aGc, TPtrC aText);
- __declspec(dllexport) static void DrawEmptyListForSettingPage(const TRect &aRect, CWindowGc &aGc, TPtrC text);
- __declspec(dllexport) static void DrawEmptyListWithFind(const TRect& aClientRect, CWindowGc& aGc, TPtrC aText);
- __declspec(dllexport) static void DrawEmptyListHeading(const TRect &aClientRect, CWindowGc& aGc, TPtrC aText);
- #line 1844
- __declspec(dllexport) static void DrawWindowShadow(CWindowGc& aGc, const TAknLayoutRect& aCoverRect, const TAknLayoutRect& aSecondShadowRect, const TAknLayoutRect& aFirstShadowRect, const TAknLayoutRect& aOutlineFrameRect, const TAknLayoutRect& aInsideAreaRect);
- public:
- #line 1865
- __declspec(dllexport) static void DrawEmptyListImpl( const TRect& aRect,
- CWindowGc& aGc,
- TPtrC aText,
- TInt aLayoutLine1,
- TInt aLayoutLine2 );
- };
- class AknDrawWithSkins
- {
- public:
- __declspec(dllexport) static void DrawEmptyList(const TRect& aRect, CWindowGc& aGc, TPtrC aText, CCoeControl *aControl);
- __declspec(dllexport) static void DrawEmptyListForSettingPage(const TRect &aRect, CWindowGc &aGc, TPtrC text, CCoeControl *aControl);
- __declspec(dllexport) static void DrawEmptyListWithFind(const TRect& aClientRect, CWindowGc& aGc, TPtrC aText, CCoeControl *aControl);
- __declspec(dllexport) static void DrawEmptyListHeading(const TRect &aClientRect, CWindowGc& aGc, TPtrC aText, CCoeControl *aControl);
- #line 1916
- __declspec(dllexport) static void DrawWindowShadow(CWindowGc& aGc, const TAknLayoutRect& aCoverRect, const TAknLayoutRect& aSecondShadowRect, const TAknLayoutRect& aFirstShadowRect, const TAknLayoutRect& aOutlineFrameRect, const TAknLayoutRect& aInsideAreaRect, CCoeControl *aControl);
- };
- __declspec(dllexport) const CFont *LatinPlain12();
- __declspec(dllexport) const CFont *LatinBold12();
- __declspec(dllexport) const CFont *LatinBold13();
- __declspec(dllexport) const CFont *LatinBold16();
- __declspec(dllexport) const CFont *LatinBold17();
- __declspec(dllexport) const CFont *LatinBold19();
- __declspec(dllexport) const CFont *NumberPlain5();
- __declspec(dllexport) const CFont *ClockBold30();
- __declspec(dllexport) const CFont *LatinClock14();
- const CFont *CalcBold21();
- const CFont *CalcOperBold21();
- const CFont *CalcOperBold13();
- __declspec(dllexport) const CFont *ApacPlain12();
- __declspec(dllexport) const CFont *ApacPlain16();
- #line 1970
- __declspec(dllexport) TInt CompleteWithAppPath( TDes& aFileName );
- #line 1980
- TBool IsParentRelative(TInt aVal);
- #line 1989
- __declspec(dllexport) TInt DefaultInputLanguageFromUILanguage(const TInt aUiLanguage);
- #line 5 "C:\gbtukmanpf01\NOK124\Courses\S60\05300-S60_C++_Introduction\Working\LabCode\Lab_05304-s2.cb1\starter\src\S60UIExamplePlayContainer.cpp" /* stack depth 0 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikspane.h" /* stack depth 1 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikspmod.h" /* stack depth 2 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\eiksrvc.h" /* stack depth 3 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\eiksrvs.h" /* stack depth 4 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\eiksrv.pan" /* stack depth 5 */
- #line 17
- enum TEikServPanic
- {
- EEikServPanicNotifyBadDescriptor,
- EEikServPanicAlarmAlertServiceNotSupported,
- EEikServPanicNoTaskListDialog,
- EEikServPanicTaskNull,
- EEsPanicAlarmAlert,
- EEikServPanicAlarmAlertServerAlreadyConnected,
- EEikServEnvPanicNullAppUi,
- EEikServPanicNoSuchLabelInAlarm,
- EEikServPanicDriveIndexOutOfRange,
- EEikServPanicNotiferArrayNotNull,
- EEikServPanicChannelIndexOutOfRange,
- EEikServPanicNullObservedList,
- EEikServPanicQueueIndexOutOfRange,
- EEikServPanicNotifyAlertQueueEmpty,
- EEikSrvClientPanicInconsistentMessageParameters,
- };
- extern void Panic(TEikServPanic aPanic);
- #line 18 "C:\Symbian\9.1\S60_3rd\epoc32\include\eiksrvs.h" /* stack depth 4 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\apgtask.h" /* stack depth 5 */
- #line 13
- class RWsSession;
- struct TKeyEvent;
- #line 25
- enum TApaSystemEvent
- {
- EApaSystemEventShutdown=1,
- EApaSystemEventBackupStarting,
- EApaSystemEventBackupComplete,
- EApaSystemEventBroughtToForeground
- };
- #line 71
- const TInt KUidApaMessageSwitchOpenFileValue16=0x10003A39;
- const TUid KUidApaMessageSwitchOpenFile16={KUidApaMessageSwitchOpenFileValue16};
- const TInt KUidApaMessageSwitchCreateFileValue16=0x10003A3A;
- const TUid KUidApaMessageSwitchCreateFile16={KUidApaMessageSwitchCreateFileValue16};
- class TApaTask
- #line 105
- {
- public:
- __declspec(dllexport) TApaTask(RWsSession& aWsSession);
- __declspec(dllexport) void SetWgId(TInt aWgId);
- __declspec(dllexport) TInt WgId() const;
- __declspec(dllexport) TBool Exists() const;
- __declspec(dllexport) TThreadId ThreadId() const;
- __declspec(dllexport) void BringToForeground();
- __declspec(dllexport) void SendToBackground();
- __declspec(dllexport) void EndTask();
- __declspec(dllexport) void KillTask();
- __declspec(dllexport) void SendKey(TInt aKeyCode,TInt aModifiers);
- __declspec(dllexport) void SendKey(const TKeyEvent& aKey);
- __declspec(dllexport) void SendSystemEvent(TApaSystemEvent aEvent);
- __declspec(dllexport) TInt SwitchOpenFile(const TDesC& aFilename);
- __declspec(dllexport) TInt SwitchCreateFile(const TDesC& aFilename);
- __declspec(dllexport) TInt SendMessage(TUid aUid, const TDesC8& aParams);
- private:
- TInt CheckSwitchFile() const;
- private:
- RWsSession& iWsSession;
- TInt iWgId;
- TInt iTApaTask_Reserved1;
- };
- class TApaTaskList
- #line 144
- {
- public:
- enum TCycleDirection
- {
- EForwards,
- EBackwards
- };
- public:
- __declspec(dllexport) TApaTaskList(RWsSession& aWsSession);
- __declspec(dllexport) TApaTask FindApp(const TDesC& aAppName);
- __declspec(dllexport) TApaTask FindDoc(const TDesC& aDocName);
- __declspec(dllexport) TApaTask FindByPos(TInt aPos);
- __declspec(dllexport) TApaTask FindApp(TUid aAppUid);
- __declspec(dllexport) TInt CycleTasks(TUid aAppUid,TCycleDirection aDirection=EForwards);
- private:
- void FindByPosL(TApaTask& aTask,TInt aPos);
- private:
- RWsSession& iWsSession;
- TInt iTApaTaskList_Reserved1;
- };
- #line 22 "C:\Symbian\9.1\S60_3rd\epoc32\include\eiksrvs.h" /* stack depth 4 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\eiksrv.h" /* stack depth 5 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\vwsappst.h" /* stack depth 6 */
- #line 9
- class MVwsAppStarter
- #line 18
- {
- public:
- virtual void StartAppL(TUid aAppUid,TThreadId& aThreadId)=0;
- };
- #line 12 "C:\Symbian\9.1\S60_3rd\epoc32\include\eiksrv.h" /* stack depth 5 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikunder.h" /* stack depth 6 */
- #line 13
- class RThread;
- class MEikUndertakerObserver
- {
- public:
- virtual void HandleThreadExitL(RThread& aThread)=0;
- };
- class CEikUndertaker : public CActive
- {
- public:
- __declspec(dllexport) static CEikUndertaker* NewL(MEikUndertakerObserver& aObserver);
- __declspec(dllexport) ~CEikUndertaker();
- private:
- CEikUndertaker(MEikUndertakerObserver& aObserver);
- void ConstructL();
- void Request();
- private:
- virtual void DoCancel();
- virtual void RunL();
- private:
- MEikUndertakerObserver& iObserver;
- RUndertaker iUndertaker;
- TInt iThreadHandle;
- };
- #line 13 "C:\Symbian\9.1\S60_3rd\epoc32\include\eiksrv.h" /* stack depth 5 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikcycledef.h" /* stack depth 6 */
- #line 9
- enum TTaskCycleDirection
- {
- EBackwards,
- EForwards
- };
- #line 14 "C:\Symbian\9.1\S60_3rd\epoc32\include\eiksrv.h" /* stack depth 5 */
- class CDictionaryFileStore;
- class CVwsSessionWrapper;
- enum TEikAppUiServPanic
- {
- EEikSrvDefault,
- EEikSrvSvrCreateServer,
- EEikSrvSvrStartServer,
- EEikSrvSrvNotFound,
- EEikSrvBadDescriptor,
- EEikSrvIllegalError,
- EEikSrvBadRequestSequence
- };
- class CEikServAppUiSession;
- class CEikServAppUiServer : public CPolicyServer
- {
- friend class CEikServAppUiSession;
- public:
- enum {EPriority=EPriorityAbsoluteHigh};
- __declspec(dllexport) static CEikServAppUiServer* NewL();
- virtual CSession2* NewSessionL(const TVersion &aVersion,const RMessage2& aMessage) const;
- static TInt ThreadFunction(TAny* aStarted);
- CEikAppUi& AppUi();
- private:
- CEikServAppUiServer(TInt aPriority=EPriority);
- void ConstructL();
- CEikServAppUiSession* NewSessionL();
- private:
- CEikAppUi* iAppUi;
- };
- class MEikServAppUiSessionHandler
- {
- public:
- virtual void NotifyAlarmServerOfTaskChangeL() = 0;
- virtual void LaunchTaskListL() = 0;
- virtual void CycleTasksL(enum TTaskCycleDirection aDirection) = 0;
- virtual void SetStatusPaneFlags(TInt aFlags) = 0;
- virtual void SetStatusPaneLayoutL(TInt aLayoutResId) = 0;
- virtual void BlankScreenL() = 0;
- virtual void UnblankScreen() = 0;
- virtual void EnableTaskListL() = 0;
- virtual void Extension(TUid aExtensionUid,const TDesC8& aBuffer,RMessagePtr2 aMessage) = 0;
- protected:
- __declspec(dllexport) MEikServAppUiSessionHandler();
- private:
- __declspec(dllexport) virtual void MEikServAppUiSessionHandler_Reserved1();
- __declspec(dllexport) virtual void MEikServAppUiSessionHandler_Reserved2();
- private:
- TInt iMEikServAppUiSessionHandler_Reserved1;
- };
- class CEikServAppUiSession : public CSession2
- {
- public:
- __declspec(dllexport) CEikServAppUiSession(MEikServAppUiSessionHandler* aHandler);
- __declspec(dllexport) ~CEikServAppUiSession();
- __declspec(dllexport) virtual void ConstructL();
- __declspec(dllexport) virtual void ServiceL(const RMessage2& aMessage);
- __declspec(dllexport) virtual void ServiceError(const RMessage2& aMessage,TInt aError);
- private:
- void PanicClient(const RMessage2& aMessage, TEikAppUiServPanic aCode);
- inline CEikServAppUiServer& Server() {return *(static_cast<CEikServAppUiServer*>((const_cast<CServer2*>(CSession2::Server())))) ;}
- protected:
- __declspec(dllexport) MEikServAppUiSessionHandler* SessionHandler() const;
- protected:
- CEikServAppUiServer* iAppUiServer;
- TBool iScreenBlanked;
- MEikServAppUiSessionHandler* iSessionHandler;
- private:
- TInt iNotUsed1;
- TInt iNotUsed2;
- };
- class CEikPasswordModeCategory : public CBase
- #line 118
- {
- public:
- __declspec(dllexport) static CEikPasswordModeCategory* NewLC(RFs& aFs);
- __declspec(dllexport) ~CEikPasswordModeCategory();
- __declspec(dllexport) void GetPasswordModeL(TPasswordMode& aMode) const;
- __declspec(dllexport) void SetPasswordModeL(TPasswordMode aMode);
- private:
- CEikPasswordModeCategory();
- void ConstructL(RFs& aFs);
- private:
- CDictionaryFileStore* iStore;
- };
- class CEikServNotifyServer;
- class CNotifierServerExtended;
- class CEikServBackupServer;
- class CEikServAlarmAlertServer;
- class CEikKeyWindow;
- class CEikUndertaker;
- class CEikPasswordControl;
- class CEikTaskListDialog;
- class MEikServNotifyAlert;
- class MEikServAlarmFactory;
- class CEikServDllClose;
- class TEikServCtrlFactories
- {
- public:
- inline TEikServCtrlFactories();
- inline TEikServCtrlFactories(MEikServNotifyAlert* aAlert,MEikServAlarmFactory* aAlarmAlert);
- public:
- MEikServNotifyAlert* iAlert;
- MEikServAlarmFactory* iAlarmAlert;
- private:
- TInt iTEikServCtrlFactories_Reserved1;
- };
- class MEikServAppUiSessionFactory
- {
- public:
- virtual CEikServAppUiSession* CreateSessionL() = 0;
- protected:
- __declspec(dllexport) MEikServAppUiSessionFactory();
- private:
- __declspec(dllexport) virtual void MEikServAppUiSessionFactory_Reserved1();
- __declspec(dllexport) virtual void MEikServAppUiSessionFactory_Reserved2();
- private:
- TInt iMEikServAppUiSessionFactory_Reserved1;
- };
- class CEikServEnv : public CEikonEnv
- {
- public:
- __declspec(dllexport) CEikServEnv();
- __declspec(dllexport) ~CEikServEnv();
- __declspec(dllexport) void DestroyEnvironment();
- public:
- __declspec(dllexport) void SetEikServAppUiSessionFactory(MEikServAppUiSessionFactory* aSessionFactory);
- __declspec(dllexport) MEikServAppUiSessionFactory* EikServAppUiSessionFactory() const;
- __declspec(dllexport) TBool IsTaskListEnabled() const;
- __declspec(dllexport) void EnableTaskList();
- public:
- void SetEikServer(CEikServAppUiServer* aServer);
- __declspec(dllexport) void SetUiDll(RLibrary& aDll);
- private:
- __declspec(dllexport) virtual void CEikServEnv_Reserved1();
- __declspec(dllexport) virtual void CEikServEnv_Reserved2();
- __declspec(dllexport) virtual void CEikonEnv_Reserved1();
- __declspec(dllexport) virtual void CEikonEnv_Reserved2();
- __declspec(dllexport) virtual void MApaAppStarter_Reserved1();
- __declspec(dllexport) virtual void MApaAppStarter_Reserved2();
- __declspec(dllexport) virtual void Reserved_1();
- __declspec(dllexport) virtual void Reserved_2();
- private:
- RLibrary iUiDll;
- CEikServAppUiServer* iServer;
- MEikServAppUiSessionFactory* iSessionFactory;
- TBool iIsTaskListEnabled;
- TInt iCEikServEnv_Reserved1;
- };
- inline TEikServCtrlFactories::TEikServCtrlFactories()
- : iAlert(0 ), iAlarmAlert(0 )
- {}
- inline TEikServCtrlFactories::TEikServCtrlFactories(MEikServNotifyAlert* aAlert,MEikServAlarmFactory* aAlarmAlert)
- : iAlert(aAlert), iAlarmAlert(aAlarmAlert)
- {}
- class CEikServSecureData : public CBase
- {
- public:
- __declspec(dllexport) static void GetInstalledFepNameL(TDes& aName);
- __declspec(dllexport) static void SetInstalledFepNameL(const TDesC& aName, TBool aRaiseFileError);
- __declspec(dllexport) static void OpenFepAttributesL();
- __declspec(dllexport) static void GetFepAttributeL(TUid aAttribUid, TDes8& aAttribData);
- __declspec(dllexport) static void SetFepAttributeL(TUid aAttribUid, const TDesC8& aAttribData);
- __declspec(dllexport) static void CommitFepAttributesL();
- __declspec(dllexport) static void CloseFepAttributes();
- __declspec(dllexport) static CBufBase* GetBufferedSystemColorListL();
- __declspec(dllexport) static void SetBufferedSystemColorListL(const TDesC8& aBuffer);
- protected:
- __declspec(dllexport) CEikServSecureData();
- private:
- __declspec(dllexport) virtual void CEikServSecureData_Reserved1();
- __declspec(dllexport) virtual void CEikServSecureData_Reserved2();
- private:
- TInt iCEikServSecureData_Reserved1;
- };
- #line 26 "C:\Symbian\9.1\S60_3rd\epoc32\include\eiksrvs.h" /* stack depth 4 */
- class CDictionaryFileStore;
- const static TLitC<sizeof(L"!EikAppUiServer")/2> EIKAPPUI_SERVER_NAME={sizeof(L"!EikAppUiServer")/2-1,L"!EikAppUiServer"} ;
- const static TLitC<sizeof(L"EikAppUiServerThread")/2> EIKAPPUI_SERVER_THREAD_NAME={sizeof(L"EikAppUiServerThread")/2-1,L"EikAppUiServerThread"} ;
- const static TLitC<sizeof(L"EikAppUiServerStartSemaphore")/2> EIKAPPUI_SERVER_SEMAPHORE={sizeof(L"EikAppUiServerStartSemaphore")/2-1,L"EikAppUiServerStartSemaphore"} ;
- const TInt KEikSrvDefaultHeapSize=0x10000;
- const TInt KEikSrvDefaultMaxHeapSize=0x100000;
- enum TEikAppUiRanges
- {
- EFirstUnrestrictedOpcodeInEikAppUi
- };
- enum TEikUiOpCode
- {
- EEikAppUiFirst=EFirstUnrestrictedOpcodeInEikAppUi,
- EEikAppUiLaunchTaskList,
- EEikAppUiCycleTasks,
- EEikAppUiSetStatusPaneFlags,
- EEikAppUiSetStatusPaneLayout,
- EEikAppUiBlankScreen,
- EEikAppUiUnblankScreen,
- EEikAppUiResolveError,
- EEikAppUiExtension,
- EEikAppUiEnableTaskList,
- EEikAppUiFirstUnusedOpcode,
- };
- extern void PanicServer(TEikAppUiServPanic aPanic);
- #line 9 "C:\Symbian\9.1\S60_3rd\epoc32\include\eiksrvc.h" /* stack depth 3 */
- const TInt KNumConnectRetries=5;
- typedef TThreadFunction* (*EikSrvEntrypoint)();
- class REikAppUiSession : public RSessionBase
- {
- public:
- __declspec(dllexport) REikAppUiSession();
- __declspec(dllexport) TInt Connect();
- __declspec(dllexport) void Close();
- __declspec(dllexport) TVersion Version() const;
- __declspec(dllexport) void LaunchTaskList() const;
- __declspec(dllexport) void CycleTasks(TTaskCycleDirection aDirection) const;
- __declspec(dllexport) TInt SetStatusPaneFlags(TInt aFlags) const;
- __declspec(dllexport) TInt SetStatusPaneLayout(TInt aLayoutResId) const;
- __declspec(dllexport) TInt BlankScreen() const;
- __declspec(dllexport) TInt UnblankScreen() const;
- __declspec(dllexport) CEikonEnv::TErrorValidity ResolveError(TDes& aText,TInt aError,TUid aAppUid) const;
- __declspec(dllexport) void Extension(TUid aExtensionUid,const TDesC8& aBuffer,TRequestStatus& aRequestStatus) const;
- __declspec(dllexport) TInt GetInstalledFepName(TDes& aName) const;
- __declspec(dllexport) TInt SetInstalledFepName(const TDesC& aName, TBool aRaiseFileError) const;
- __declspec(dllexport) CColorList* GetSystemColorsL() const;
- __declspec(dllexport) void SetSystemColorsL(const CColorList& aColorList) const;
- __declspec(dllexport) TInt OpenFepAttributes() const;
- __declspec(dllexport) TInt GetFepAttribute(TUid aAttribUid, TDes8& aAttribData) const;
- __declspec(dllexport) TInt SetFepAttribute(TUid aAttribUid, const TDesC8& aAttribData) const;
- __declspec(dllexport) TInt CommitFepAttributes() const;
- __declspec(dllexport) void CloseFepAttributes() const;
- __declspec(dllexport) TInt EnableTaskList() const;
- __declspec(dllexport) virtual void REikAppUiSession_Reserved1();
- __declspec(dllexport) virtual void REikAppUiSession_Reserved2();
- private:
- class CExtension;
- void StartServerL();
- private:
- RLibrary iNotUsed;
- private:
- CExtension* iExtension;
- };
- #line 68
- extern void PanicServer(TEikAppUiServPanic aPanic);
- #line 18 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikspmod.h" /* stack depth 2 */
- class TResourceReader;
- class CEikStatusPaneLayoutTree;
- class CEikonEnv;
- class CAknSgcClient;
- const TInt KEikStatusPaneDirectionBit = 0x04;
- const TInt KEikStatusPaneHiddenBit = 0x08;
- const TInt KEikStatusPaneInitInitializedBit = 0x80000000;
- typedef TUid TPaneId;
- class TEikStatusPaneInit
- {
- public:
- TEikStatusPaneInit();
- TEikStatusPaneInit(const TEikStatusPaneInit& aCopy);
- TEikStatusPaneInit& operator=(const TEikStatusPaneInit& aCopy);
- inline TPaneId Id() const;
- void LoadDefaults(TResourceReader& aResource);
- inline TBool AppOwned() const;
- inline TInt ControlTypeId() const;
- inline TInt ControlResourceId() const;
- inline void SetHidden();
- inline void ClearHidden();
- inline TBool IsHidden() const;
- private:
- inline TBool Initialized();
- inline void SetInitialized();
- private:
- TPaneId iId;
- TInt iControlId;
- TInt iControlResource;
- TInt iFlags;
- };
- class CEikStatusPaneSetInit : public CArrayFixFlat<TEikStatusPaneInit>
- {
- public:
- static CEikStatusPaneSetInit* NewL();
- ~CEikStatusPaneSetInit();
- void LoadDefaultsL(TResourceReader& aResource);
- TEikStatusPaneInit& FindL(const TPaneId& aPaneId);
- private:
- CEikStatusPaneSetInit();
- };
- class MEikStatusPaneLayoutTreeVisitor
- {
- public:
- virtual void VisitL(CEikStatusPaneLayoutTree* aNode) = 0;
- };
- class CEikStatusPaneLayoutTree : public CBase
- {
- public:
- enum TDirection
- {
- EHorizontal,
- EVertical
- };
- public:
- ~CEikStatusPaneLayoutTree();
- static CEikStatusPaneLayoutTree* NewL(TResourceReader& aResource, TDirection aDefaultDirection = EHorizontal);
- CEikStatusPaneLayoutTree* Find(const TPaneId& aPaneId);
- void AcceptL(MEikStatusPaneLayoutTreeVisitor* aVisitor);
- inline TPaneId Id() const;
- inline TRect Rect() const;
- private:
- CEikStatusPaneLayoutTree(TDirection aDefaultDirection);
- void ConstructL(TResourceReader& aResource);
- void SetRect(const TRect& aRect);
- inline TDirection Direction();
- void SetDirection(TDirection aDirection);
- inline TInt Size();
- inline TBool Stretchable();
- void SetStretchable(TBool aStretchable);
- void Layout();
- #line 130
- void Layout(TInt aLayoutResourceId);
- #line 143
- TRect AknLayoutRect(TInt aLayoutResourceId, TPaneId aPaneId);
- #line 153
- void SetAknLayoutUsed(TBool aAknLayoutUsed);
- #line 163
- TBool AknLayoutUsed();
- private:
- TPaneId iId;
- TInt iFlags;
- TRect iRect;
- TInt iSize;
- typedef CArrayPtrFlat<CEikStatusPaneLayoutTree> CSubPaneArray;
- CSubPaneArray* iSubPanes;
- private:
- friend class CEikStatusPaneLayout;
- };
- class CEikStatusPaneLayout : public CBase
- {
- public:
- static CEikStatusPaneLayout* NewL(TResourceReader& aResource, const TRect& aScreenRect);
- static CEikStatusPaneLayout* NewL(TResourceReader& aResource, const TRect& aScreenRect, TInt aLayoutId);
- ~CEikStatusPaneLayout();
- inline CEikStatusPaneLayoutTree* Find(const TPaneId& aPaneId) const;
- inline void AcceptL(MEikStatusPaneLayoutTreeVisitor* aVisitor);
- inline TRect Rect() const;
- #line 198
- void AknLayoutRefresh(TInt aLayoutResourceId);
- #line 209
- TBool AknLayoutUsed();
- private:
- CEikStatusPaneLayout();
- void ConstructL(TResourceReader& aResource, const TRect& aScreenRect, TInt aLayoutId);
- private:
- CEikStatusPaneLayoutTree* iRoot;
- };
- class CEikStatusPaneModelBase : public CBase
- {
- public:
- __declspec(dllexport) ~CEikStatusPaneModelBase();
- inline CEikStatusPaneSetInit* PaneInits() const;
- __declspec(dllexport) virtual void SetLayoutL(TInt aLayoutResId, TBool aChangeStatusPaneNow = ETrue);
- inline CEikStatusPaneLayout* CurrentLayout() const;
- __declspec(dllexport) TInt CurrentLayoutResId() const;
- #line 238
- void AknLayoutRefresh();
- #line 250
- TBool AknLayoutUsed(TInt aLayoutId);
- protected:
- class CIdLayoutPair : public CBase
- {
- public:
- CIdLayoutPair(TInt aResId, CEikStatusPaneLayout* aLayout);
- ~CIdLayoutPair();
- public:
- TInt iResId;
- CEikStatusPaneLayout* iLayout;
- };
- typedef CArrayPtrFlat<CIdLayoutPair> CLayoutIdSet;
- typedef CArrayFixFlat<TInt> CIdSet;
- protected:
- __declspec(dllexport) CEikStatusPaneModelBase(CEikonEnv& aEikEnv);
- __declspec(dllexport) void BaseConstructL(TInt aCoreResId);
- __declspec(dllexport) CEikStatusPaneLayout* LoadLayoutL(TInt aLayoutResId);
- inline CIdSet* LegalIds() const;
- TBool IsLegalId(TInt aLayoutResId) const;
- private:
- CEikStatusPaneLayout* Layout(TInt aLayoutResId);
- void CheckLayoutL(CEikStatusPaneLayout* aLayout);
- private:
- __declspec(dllexport) virtual void Reserved_1();
- private:
- class TLayoutChecker : public MEikStatusPaneLayoutTreeVisitor
- {
- public:
- TLayoutChecker(CEikStatusPaneSetInit* aPanes);
- void VisitL(CEikStatusPaneLayoutTree* aNode);
- private:
- CEikStatusPaneSetInit* iPanes;
- };
- protected:
- CLayoutIdSet* iLayouts;
- TInt iCurrentResId;
- CEikonEnv& iEikEnv;
- private:
- CEikStatusPaneSetInit* iPanes;
- CEikStatusPaneLayout* iCurrentLayout;
- CIdSet* iLegalIds;
- };
- class CEikAppStatusPaneModel : public CEikStatusPaneModelBase
- {
- public:
- static CEikAppStatusPaneModel* NewL(CEikonEnv& aEikEnv, TInt aCoreResId, TInt aAppResId = 0 , TBool aChangeStatusPaneNow = ETrue);
- ~CEikAppStatusPaneModel();
- void ApplyCurrentLayoutL();
- public:
- void SetLayoutL(TInt aLayoutResId, TBool aChangeStatusPaneNow = ETrue);
- public:
- void SetLayoutL(TInt aLayoutResId, TBool aChangeStatusPaneNow, TBool aNotfiyServerSide);
- private:
- CEikAppStatusPaneModel(CEikonEnv& aEikEnv);
- void ConstructL(TInt aCoreResId, TInt aAppResId, TBool aChangeStatusPaneNow = ETrue);
- };
- inline TPaneId TEikStatusPaneInit::Id() const { return iId; }
- inline TBool TEikStatusPaneInit::AppOwned() const { return iFlags & 1 ; }
- inline TInt TEikStatusPaneInit::ControlTypeId() const { return iControlId; }
- inline TInt TEikStatusPaneInit::ControlResourceId() const { return iControlResource; }
- inline void TEikStatusPaneInit::SetHidden() {iFlags|=KEikStatusPaneHiddenBit;}
- inline void TEikStatusPaneInit::ClearHidden() {iFlags&=~KEikStatusPaneHiddenBit;}
- inline TBool TEikStatusPaneInit::IsHidden() const {return iFlags&KEikStatusPaneHiddenBit;}
- inline CEikStatusPaneLayoutTree* CEikStatusPaneLayout::Find(const TPaneId& aPaneId) const { return iRoot->Find(aPaneId); }
- inline void CEikStatusPaneLayout::AcceptL(MEikStatusPaneLayoutTreeVisitor* aVisitor) { iRoot->AcceptL(aVisitor); }
- inline TRect CEikStatusPaneLayout::Rect() const { return iRoot->Rect(); }
- inline TPaneId CEikStatusPaneLayoutTree::Id() const { return iId; }
- inline TRect CEikStatusPaneLayoutTree::Rect() const { return iRect; }
- inline CEikStatusPaneSetInit* CEikStatusPaneModelBase::PaneInits() const { return iPanes; }
- inline CEikStatusPaneLayout* CEikStatusPaneModelBase::CurrentLayout() const { return iCurrentLayout; }
- inline CEikStatusPaneModelBase::CIdSet* CEikStatusPaneModelBase::LegalIds() const { return iLegalIds; }
- #line 10 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikspane.h" /* stack depth 1 */
- #line 21
- class CCoeBrushAndPenContext;
- class CEikStatusPaneContainer;
- class TEikStatusPaneSyncDrawer;
- class CEikStatusPaneBaseExtension;
- class CAknStatuspaneClearer;
- const TInt KStatusPaneCapsPresentBit = 1;
- const TInt KStatusPaneCapsAppOwnedBit = 2;
- const TInt KStatusPaneCapsInCurrentLayoutBit = 4;
- #line 38
- class MEikStatusPaneObserver
- {
- public:
- virtual void HandleStatusPaneSizeChange() = 0;
- };
- class CEikStatusPaneBase : public CBase
- {
- public:
- class TPaneCapabilities
- {
- public:
- TPaneCapabilities();
- inline TBool IsPresent() const;
- inline TBool IsAppOwned() const;
- inline TBool IsInCurrentLayout() const;
- private:
- inline void SetPresent();
- inline void SetAppOwned();
- inline void SetInCurrentLayout();
- private:
- TInt iFlags;
- private:
- friend class CEikStatusPaneBase;
- };
- public:
- __declspec(dllexport) ~CEikStatusPaneBase();
- __declspec(dllexport) static CEikStatusPaneBase* Current();
- inline void SetObserver(MEikStatusPaneObserver* aObserver);
- __declspec(dllexport) void ReduceRect(TRect& aBoundingRect) const;
- __declspec(dllexport) void GetShapeL(TRegion& aRegion, TBool aIncludeAppPanes, TBool aIncludeServerPanes) const;
- __declspec(dllexport) virtual void SwitchLayoutL(TInt aLayoutResourceId);
- __declspec(dllexport) virtual void MakeVisible(TBool aVisible);
- __declspec(dllexport) virtual void SetDimmed(TBool aDimmed);
- __declspec(dllexport) virtual void SetFaded(TBool aFaded);
- __declspec(dllexport) virtual void HandleResourceChange(TInt aType);
- __declspec(dllexport) virtual TBool OkToChangeStatusPaneNow();
- __declspec(dllexport) void SetFlags(TInt aFlags);
- __declspec(dllexport) TInt Flags() const;
- __declspec(dllexport) TBool IsVisible() const;
- __declspec(dllexport) TBool IsDimmed() const;
- __declspec(dllexport) TBool IsFaded() const;
- __declspec(dllexport) TPaneCapabilities PaneCapabilities(TPaneId aPaneId) const;
- __declspec(dllexport) TRect PaneRectL(TPaneId aPaneId) const;
- __declspec(dllexport) CCoeControl* ControlL(TPaneId aPaneId) const;
- __declspec(dllexport) CCoeControl* SwapControlL(TPaneId aPaneId, CCoeControl* aNewControl);
- __declspec(dllexport) CCoeControl* ContainerControlL(TPaneId aPaneId) const;
- inline RWindowGroup* WindowGroup() const;
- __declspec(dllexport) void DrawNow();
- __declspec(dllexport) TInt CurrentLayoutResId() const;
- protected:
- __declspec(dllexport) CEikStatusPaneBase(CEikonEnv& aEikEnv, RWindowGroup* aParent);
- __declspec(dllexport) void BaseConstructL(TInt aCoreResId);
- virtual CEikStatusPaneModelBase* CreateModelL(TInt aCoreResId) const = 0;
- void CreatePanesL();
- void CreatePaneL(const TEikStatusPaneInit& aPaneInit);
- CEikStatusPaneContainer* Find(TPaneId aPaneId) const;
- virtual TBool IsApp() const = 0;
- inline TRect Rect() const;
- enum TDrawCmd { ENoDraw, EDrawNow, EDrawDeferred };
- void DoDrawNow(TDrawCmd aDraw);
- CAknStatuspaneClearer* Clearer();
- __declspec(dllexport) void DisableClearer(TBool aDisabled);
- __declspec(dllexport) void CommonPrepareForAppExit();
- private:
- void DoSwitchLayoutL(TInt aLayoutResourceId, TDrawCmd aDraw);
- void ApplyLayoutL(CEikStatusPaneLayout* aLayout, TDrawCmd aDraw);
- void SetAllInvisible();
- void SetNotNeededInvisible();
- public:
- void ReportSizeChange();
- private:
- class TSetRectAndVisibility : public MEikStatusPaneLayoutTreeVisitor
- {
- public:
- TSetRectAndVisibility(TBool aIsApp, CEikStatusPaneBase* aStatusPane);
- void VisitL(CEikStatusPaneLayoutTree* aNode);
- private:
- TBool iIsApp;
- CEikStatusPaneBase* iStatusPane;
- };
- friend class TSetRectAndVisibility;
- private:
- void SetLastUsedResourceId(TInt aResourceId);
- TInt LastUsedResourceId();
- TInt ReadInitialUsedResourceIdL(TInt aCoreResId);
- TInt InitialUsedResourceId();
- TRect LargestBoundingRect(TRegion& aWholeRegion, TRegion& aRemovedRegion) const;
- protected:
- void SetInitialUsedResourceId(TInt aResourceId);
- protected:
- CEikonEnv& iEikEnv;
- CEikStatusPaneModelBase* iModel;
- TInt iFlags;
- private:
- typedef CArrayPtrFlat<CEikStatusPaneContainer> CContainerControls;
- CContainerControls* iControls;
- MEikStatusPaneObserver* iObserver;
- RWindowGroup* iParentWindowGroup;
- CEikStatusPaneBaseExtension* iExtension;
- };
- class CEikStatusPane : public CEikStatusPaneBase, public MCoeForegroundObserver
- {
- public:
- __declspec(dllexport) static CEikStatusPane* NewL(CEikonEnv& aEikEnv, RWindowGroup* aParent, TInt aCoreStatusPaneModelResId, TInt aAppStatusPaneModelResId=0 );
- __declspec(dllexport) ~CEikStatusPane();
- __declspec(dllexport) void ApplyCurrentSettingsL();
- __declspec(dllexport) void PrepareForAppExit();
- __declspec(dllexport) virtual void MakeVisible(TBool aVisible);
- __declspec(dllexport) virtual void SetDimmed(TBool aDimmed);
- __declspec(dllexport) virtual void SetFaded(TBool aFaded);
- __declspec(dllexport) virtual void HandleResourceChange(TInt aType);
- __declspec(dllexport) virtual TBool OkToChangeStatusPaneNow();
- private:
- CEikStatusPane(CEikonEnv& aEikEnv, RWindowGroup* aParent, TInt aAppStatusPaneModelId);
- void ConstructL(TInt aCoreStatusPaneModelResId);
- virtual CEikStatusPaneModelBase* CreateModelL(TInt aCoreResId) const;
- TBool IsApp() const;
- void ApplyCurrentFlags();
- void HideAppPanes(TBool aHide);
- private:
- void HandleGainingForeground();
- void HandleLosingForeground();
- private:
- TInt ReadInitialUsedResourceIdL(TInt aCoreResId, TInt aAppStatusPaneModelResId);
- void DoHandleLosingForegroundL();
- private:
- TInt iAppDeclId;
- TEikStatusPaneSyncDrawer* iSyncDrawer;
- TInt iSpare;
- };
- #line 216
- inline TBool CEikStatusPaneBase::TPaneCapabilities::IsPresent() const { return iFlags & KStatusPaneCapsPresentBit; }
- inline TBool CEikStatusPaneBase::TPaneCapabilities::IsAppOwned() const { return iFlags & KStatusPaneCapsAppOwnedBit; }
- inline TBool CEikStatusPaneBase::TPaneCapabilities::IsInCurrentLayout() const { return iFlags & KStatusPaneCapsInCurrentLayoutBit; }
- inline void CEikStatusPaneBase::SetObserver(MEikStatusPaneObserver* aObserver) { iObserver = aObserver; }
- inline TRect CEikStatusPaneBase::Rect() const { return iModel->CurrentLayout()->Rect(); }
- inline RWindowGroup* CEikStatusPaneBase::WindowGroup() const { return iParentWindowGroup; }
- #line 6 "C:\gbtukmanpf01\NOK124\Courses\S60\05300-S60_C++_Introduction\Working\LabCode\Lab_05304-s2.cb1\starter\src\S60UIExamplePlayContainer.cpp" /* stack depth 0 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\aknnavi.h" /* stack depth 1 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\coeccntx.h" /* stack depth 2 */
- #line 13
- class MCoeControlContext
- #line 30
- {
- public:
- __declspec(dllexport) virtual void ActivateContext(CWindowGc& aGc,RDrawableWindow& aWindow) const;
- __declspec(dllexport) virtual void ResetContext(CWindowGc& aGc) const;
- __declspec(dllexport) virtual void PrepareContext(CWindowGc& aGc) const;
- protected:
- __declspec(dllexport) MCoeControlContext();
- private:
- __declspec(dllexport) virtual void MCoeControlContext_Reserved1();
- __declspec(dllexport) virtual void MCoeControlContext_Reserved2();
- private:
- TInt iMCoeControlContext_Reserved1;
- };
- class CCoeBrushAndPenContext : public CBase, public MCoeControlContext
- {
- public:
- __declspec(dllexport) static CCoeBrushAndPenContext* NewL();
- __declspec(dllexport) void SetBrushStyle(CWindowGc::TBrushStyle aBrushStyle);
- __declspec(dllexport) void SetBrushColor(TRgb aColor);
- __declspec(dllexport) void SetBrushBitmap(const CFbsBitmap& aBitmap);
- __declspec(dllexport) void SetPenColor(TRgb aColor);
- __declspec(dllexport) CWindowGc::TBrushStyle BrushStyle() const;
- __declspec(dllexport) TRgb BrushColor() const;
- __declspec(dllexport) const CFbsBitmap& BrushBitmap() const;
- __declspec(dllexport) TRgb PenColor() const;
- protected:
- __declspec(dllexport) void PrepareContext(CWindowGc& aGc) const;
- private:
- CCoeBrushAndPenContext();
- private:
- CWindowGc::TBrushStyle iBrushStyle;
- TRgb iBrushColor;
- const CFbsBitmap* iBitmap;
- TRgb iPenColor;
- };
- class MCoeControlBrushContext : public MCoeControlContext
- #line 91
- {
- public:
- __declspec(dllexport) MCoeControlBrushContext();
- protected:
- __declspec(dllexport) void PrepareContext(CWindowGc& aGc) const;
- public:
- CWindowGc::TBrushStyle iBrushStyle;
- TRgb iBrushColor;
- const CFbsBitmap* iBitmap;
- private:
- TInt iMCoeControlBrushContext_Reserved1;
- };
- #line 28 "C:\Symbian\9.1\S60_3rd\epoc32\include\aknnavi.h" /* stack depth 1 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\aknvolumecontrol.h" /* stack depth 2 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\aknnavidecoratorobserver.h" /* stack depth 3 */
- #line 33
- class MAknNaviDecoratorObserver
- {
- public:
- enum TAknNaviDecoratorEvents
- {
- EAknNaviDecoratorEventRightTabArrow,
- EAknNaviDecoratorEventLeftTabArrow
- };
- public:
- virtual void HandleNaviDecoratorEventL( TInt aEventID ) = 0;
- };
- #line 25 "C:\Symbian\9.1\S60_3rd\epoc32\include\aknvolumecontrol.h" /* stack depth 2 */
- class CGulIcon;
- class MAknsSkinInstance;
- class CVolumeExtension;
- class CAknVolumeControl : public CAknControl, public MAknNaviDecoratorObserver
- {
- public:
- __declspec(dllexport) CAknVolumeControl();
- __declspec(dllexport) ~CAknVolumeControl();
- __declspec(dllexport) void SetValue(TInt aValue);
- __declspec(dllexport) TInt Value() const;
- public:
- TSize MinimumSize();
- TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType);
- __declspec(dllexport) void ConstructFromResourceL(TResourceReader& aReader);
- __declspec(dllexport) void HandleResourceChange(TInt aType);
- #line 58
- __declspec(dllexport) static CFbsBitmap* CreateBitmapL(TInt aValue);
- #line 68
- __declspec(dllexport) static CGulIcon* CreateSetStyleListBoxIconL( TInt aValue );
- protected:
- void SizeChanged();
- void Draw(const TRect& aRect) const;
- public:
- __declspec(dllexport) void HandlePointerEventL(const TPointerEvent& aPointerEvent);
- __declspec(dllexport) void HandleNaviDecoratorEventL( TInt aEventID );
- #line 104
- private:
- __declspec(dllexport) void* ExtensionInterface( TUid aInterface );
- private:
- void SetVolumeLayout(TInt aStyle);
- static TBool DrawSkinnedBackgroundL(CFbsBitGc* aFbsBitGc, MAknsSkinInstance* aSkin,
- const TRect& aOrigin, TRect& aOuterRect, TRect& aInnerRect);
- #line 127
- void CreateNaviIconL();
- private:
- CFbsBitmap* iBitmap;
- CFbsBitmap* iMaskBitmap;
- TPoint iStartPos;
- CVolumeExtension* iExtension;
- TInt iSpare1;
- TPoint iBmpPos;
- TInt iValue;
- TInt iStyle;
- };
- #line 29 "C:\Symbian\9.1\S60_3rd\epoc32\include\aknnavi.h" /* stack depth 1 */
- class CAknNavigationDecorator;
- class CEikStatusPaneBase;
- class CFbsBitmap;
- class MAknTabObserver;
- class CAknNavigationControlContainerExtension;
- class MAknsControlContext;
- class MAknNavigationDecoratorInterface
- {
- public:
- virtual ~MAknNavigationDecoratorInterface() { }
- virtual CCoeControl* DecoratedControl()=0;
- };
- class MAknNavigationContainerInterface
- {
- public:
- virtual ~MAknNavigationContainerInterface() { }
- virtual CAknNavigationDecorator* CreateMessageLabelL(const TDesC& aText)=0;
- virtual CAknNavigationDecorator* CreateTabGroupL()=0;
- virtual void PushL(CAknNavigationDecorator&)=0;
- virtual void Pop()=0;
- };
- class CAknNavigationControlContainer : public CAknControl,
- public MCoeControlContext,
- public MCoeControlObserver,
- public MAknNavigationContainerInterface
- {
- public:
- enum { ETypeId = 0x101F8740 };
- public:
- __declspec(dllexport) CAknNavigationControlContainer();
- __declspec(dllexport) ~CAknNavigationControlContainer();
- __declspec(dllexport) void ConstructL();
- __declspec(dllexport) void ConstructFromResourceL(TResourceReader& aReader);
- __declspec(dllexport) CAknNavigationDecorator* ConstructNavigationDecoratorFromResourceL(TResourceReader& aReader);
- __declspec(dllexport) CAknNavigationDecorator* CreateTabGroupL();
- #line 118
- __declspec(dllexport) CAknNavigationDecorator* CreateTabGroupL(MAknTabObserver* aObserver);
- #line 127
- __declspec(dllexport) CAknNavigationDecorator* CreateTabGroupL(TResourceReader& aReader);
- #line 137
- __declspec(dllexport) CAknNavigationDecorator* CreateTabGroupL(TResourceReader& aReader, MAknTabObserver* aObserver);
- #line 146
- __declspec(dllexport) CAknNavigationDecorator* CreateNavigationLabelL(const TDesC& aText = KNullDesC);
- #line 155
- __declspec(dllexport) CAknNavigationDecorator* CreateNavigationLabelL(TResourceReader& aReader);
- #line 167
- __declspec(dllexport) CAknNavigationDecorator* CreateNavigationImageL(const CFbsBitmap* aBitmap = 0 , const CFbsBitmap* aMaskBitmap = 0 );
- #line 176
- __declspec(dllexport) CAknNavigationDecorator* CreateNavigationImageL(TResourceReader& aReader);
- #line 185
- __declspec(dllexport) CAknNavigationDecorator* CreateMessageLabelL(const TDesC& aText = KNullDesC);
- #line 194
- __declspec(dllexport) CAknNavigationDecorator* CreateMessageLabelL(TResourceReader& aReader);
- #line 203
- __declspec(dllexport) CAknNavigationDecorator* CreateVolumeIndicatorL(TInt aResourceId);
- __declspec(dllexport) CAknNavigationDecorator* CreateEditorIndicatorContainerL();
- #line 220
- __declspec(dllexport) void PushDefaultL( TBool aAllowDuplicates = EFalse );
- #line 233
- __declspec(dllexport) void PushL(CAknNavigationDecorator& aNaviPaneControl);
- #line 244
- __declspec(dllexport) void Pop();
- __declspec(dllexport) void Pop(CAknNavigationDecorator* aControl);
- #line 261
- __declspec(dllexport) CAknNavigationDecorator* Top();
- #line 274
- __declspec(dllexport) TInt ReplaceL(CAknNavigationDecorator& aToBeReplaced,
- CAknNavigationDecorator& aReplacement);
- __declspec(dllexport) CAknNavigationDecorator* ResourceDecorator();
- CFbsBitmap& NaviArrowBitmap(TInt aId);
- public:
- __declspec(dllexport) static TInt ColorScheme();
- void NotifyNaviWipeStatusL();
- static TInt CurrentNaviWipeBitmap();
- __declspec(dllexport) void HandlePointerEventL(const TPointerEvent& aPointerEvent);
- protected:
- __declspec(dllexport) virtual void SizeChanged();
- __declspec(dllexport) virtual void HandleResourceChange(TInt aType);
- __declspec(dllexport) virtual TInt CountComponentControls() const;
- __declspec(dllexport) virtual CCoeControl* ComponentControl(TInt aIndex) const;
- protected:
- __declspec(dllexport) void HandleControlEventL(CCoeControl* aControl, TCoeEvent aEventType);
- private:
- __declspec(dllexport) virtual void Draw(const TRect& aRect) const;
- private:
- __declspec(dllexport) void* ExtensionInterface( TUid aInterface );
- public:
- TBool NaviWipeUsed() const;
- CFbsBitmap* NaviColorBitmap() const;
- static void SetBackgroundContextAttributes(CCoeControl* aControl, TBool aNaviWipeUsed);
- private:
- TBool IsFepOwnedEditorIndicatorControl(CAknNavigationDecorator* aDecorator) const;
- void HandleVisibilityOfNonFepOwnedIndicatorControl(
- CAknNavigationDecorator* aDecorator, TBool aVisible);
- #line 381
- TBool DrawDefaultNaviWipe(CWindowGc& aGc, const TRect& aRect) const;
- #line 393
- TBool DrawDefaultNaviSolid(CWindowGc& aGc, const TRect& aRect) const;
- #line 406
- TBool DrawSkinnedNaviWipe(CWindowGc& aGc, const TRect& aRect, MAknsSkinInstance* aSkin, MAknsControlContext* aCc) const;
- #line 419
- TBool DrawSkinnedNaviSolid(CWindowGc& aGc, const TRect& aRect, MAknsSkinInstance* aSkin, MAknsControlContext* aCc) const;
- void LoadNaviColorBitmapL();
- void SetContainerWindowNonFading(TBool aNonFading);
- protected:
- TTypeUid::Ptr MopSupplyObject(TTypeUid aId);
- private:
- CEikStatusPaneBase* iStatusPane;
- CAknNavigationDecorator* iNaviDecoratorFromResource;
- typedef CArrayPtrFlat<CAknNavigationDecorator> CAknNaviPaneStack;
- CAknNaviPaneStack* iNaviPaneControls;
- CFbsBitmap* iNaviArrowBitmap[4];
- TInt iSpare;
- CAknNavigationControlContainerExtension* iExtension;
- };
- #line 7 "C:\gbtukmanpf01\NOK124\Courses\S60\05300-S60_C++_Introduction\Working\LabCode\Lab_05304-s2.cb1\starter\src\S60UIExamplePlayContainer.cpp" /* stack depth 0 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\aknnavide.h" /* stack depth 1 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\aknnaviobserver.h" /* stack depth 2 */
- #line 29
- class MAknNavigationObserver
- {
- public:
- enum TAknNavigationEvent
- {
- ENaviEventHandleNavigation = 0x0010,
- ENaviEventLeftMostItemReached,
- ENaviEventRightMostItemReached,
- ENaviEventOneItemExists,
- ENaviEventRedrawNeeded
- };
- };
- #line 32 "C:\Symbian\9.1\S60_3rd\epoc32\include\aknnavide.h" /* stack depth 1 */
- class CEikScrollButton;
- class CAknTabGroup;
- class MAknNaviDecoratorObserver;
- class CAknNavigationDecorator : public CAknControl,
- public MCoeControlObserver,
- public MAknNavigationDecoratorInterface
- {
- friend class CAknNavigationControlContainer;
- public:
- enum TScrollButton
- {
- ELeftButton = 0x0001,
- ERightButton = 0x0002
- };
- enum TControlType
- {
- ENotSpecified,
- ETabGroup,
- ENaviLabel,
- ENaviImage,
- EHintText,
- EEditorIndicator,
- ENaviVolume
- };
- public:
- #line 79
- __declspec(dllexport) static CAknNavigationDecorator* NewL(
- CAknNavigationControlContainer* aNavigationControlContainer,
- CCoeControl* aDecoratedControl, TControlType aType = ENotSpecified);
- __declspec(dllexport) ~CAknNavigationDecorator();
- __declspec(dllexport) CCoeControl* DecoratedControl();
- __declspec(dllexport) void MakeScrollButtonVisible(TBool aVisible);
- __declspec(dllexport) TBool ScrollButtonVisible() const;
- #line 118
- __declspec(dllexport) void SetScrollButtonDimmed(TScrollButton aButton, TBool aDimmed);
- __declspec(dllexport) TBool IsScrollButtonDimmed(TScrollButton aButton) const;
- __declspec(dllexport) void SetControlType(TControlType aType);
- __declspec(dllexport) TControlType ControlType() const;
- __declspec(dllexport) virtual void SetNaviDecoratorObserver( MAknNaviDecoratorObserver* aObserver);
- void SetNaviStack(CAknNavigationControlContainer* aContainer);
- __declspec(dllexport) void HandlePointerEventL(const TPointerEvent& aPointerEvent);
- enum TAknNaviControlLayoutStyle
- {
- ENaviControlLayoutNormal = 0x1,
- ENaviControlLayoutNarrow = 0x2
- };
- enum TAknNaviControlLayoutMode
- {
- ENaviControlLayoutModeAutomatic = 0x400,
- ENaviControlLayoutModeForced = 0x800
- };
- #line 189
- __declspec(dllexport) void SetNaviControlLayoutStyle(TAknNaviControlLayoutStyle aStyle);
- #line 198
- __declspec(dllexport) TAknNaviControlLayoutStyle NaviControlLayoutStyle();
- #line 210
- __declspec(dllexport) TBool NaviControlLayoutStyleSupported(TAknNaviControlLayoutStyle aStyle);
- #line 228
- __declspec(dllexport) void SetNaviControlLayoutMode(TAknNaviControlLayoutMode aMode);
- #line 239
- __declspec(dllexport) TAknNaviControlLayoutMode NaviControlLayoutMode();
- protected:
- __declspec(dllexport) virtual void SizeChanged();
- __declspec(dllexport) virtual TInt CountComponentControls() const;
- __declspec(dllexport) virtual CCoeControl* ComponentControl(TInt aIndex) const;
- protected:
- __declspec(dllexport) void HandleControlEventL(CCoeControl* aControl, TCoeEvent aEventType);
- private:
- __declspec(dllexport) void* ExtensionInterface( TUid aInterface );
- private:
- __declspec(dllexport) void ConstructL();
- private:
- __declspec(dllexport) virtual void Draw(const TRect& aRect) const;
- TRect ParentRect();
- public:
- #line 305
- static TRect DecoratedControlRect(TInt aControlType);
- #line 318
- static TRect DecoratedControlNarrowRect(TInt aControlType);
- private:
- #line 329
- static TRect DecoratedDefaultControlRect();
- #line 339
- static TRect DecoratedTabControlRect();
- #line 349
- static TRect DecoratedVolumeControlRect();
- void SizeChangedInNormalLayout();
- void SizeChangedInNarrowLayout();
- void InitLayoutStyleTimer();
- void CancelLayoutStyleTimer();
- static TInt LayoutStyleEvent(TAny * aPtr);
- void DoLayoutStyleEvent();
- protected:
- CCoeControl* iDecoratedControl;
- CAknNavigationControlContainer* iContainer;
- MAknNaviDecoratorObserver* iNaviDecoratorObserver;
- private:
- TBool iNaviArrowsVisible;
- TBool iNaviArrowLeftDimmed;
- TBool iNaviArrowRightDimmed;
- TControlType iControlType;
- TPoint iArrowLeftPos;
- TSize iArrowLeftSize;
- TPoint iArrowRightPos;
- TSize iArrowRightSize;
- TInt iLayoutFlags;
- CPeriodic* iLayoutStyleTimer;
- TInt iSpare[2];
- };
- #line 8 "C:\gbtukmanpf01\NOK124\Courses\S60\05300-S60_C++_Introduction\Working\LabCode\Lab_05304-s2.cb1\starter\src\S60UIExamplePlayContainer.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\Eikspane.h" /* stack depth 3 */
- #line 25 "C:\Symbian\9.1\S60_3rd\epoc32\include\aknappui.h" /* stack depth 2 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\AknTouchPaneObserver.h" /* stack depth 3 */
- #line 33
- class MAknTouchPaneObserver
- {
- public:
- virtual void HandleTouchPaneSizeChange() = 0;
- };
- #line 29 "C:\Symbian\9.1\S60_3rd\epoc32\include\aknappui.h" /* stack depth 2 */
- class CEikButtonGroupContainer;
- class CAknAppShutter;
- class CAknAppUiExtension;
- class CAknWsEventMonitor;
- class CAknKeySoundSystem;
- class CAknAppUiBaseExtension;
- class CAknTouchPane;
- class CAknToolbar;
- #line 52
- class CAknAppUiBase : public CEikAppUi
- {
- private:
- friend class CAknAppUi;
- enum
- {
- EAppOrientationSpecifiedFlag = 0x00010000,
- EAppOrientationLandscapeFlag = 0x00020000,
- EAppOrientationAutomaticFlag = 0x00040000,
- EAknEnableSkinFlag = 0x00080000,
- EAknDisableHighlightAnimationFlag = 0x00100000
- };
- public:
- enum TAppUiOrientation
- {
- EAppUiOrientationUnspecified,
- EAppUiOrientationPortrait,
- EAppUiOrientationLandscape,
- EAppUiOrientationAutomatic
- };
- enum
- {
- #line 112
- EAknEnableSkin = EAknEnableSkinFlag,
- EAppOrientationPortrait = EAppOrientationSpecifiedFlag,
- EAppOrientationLandscape = EAppOrientationSpecifiedFlag
- | EAppOrientationLandscapeFlag,
- EAppOrientationAutomatic = EAppOrientationSpecifiedFlag
- | EAppOrientationAutomaticFlag,
- EAknDisableHighlightAnimation = EAknDisableHighlightAnimationFlag
- };
- public:
- __declspec(dllexport) ~CAknAppUiBase();
- __declspec(dllexport) CAknAppUiBase();
- public:
- __declspec(dllexport) void BaseConstructL( TInt aAppUiFlags );
- #line 150
- __declspec(dllexport) void HandleForegroundEventL(TBool aForeground);
- public:
- __declspec(dllexport) void ConstructL();
- __declspec(dllexport) void Exit();
- __declspec(dllexport) void SetFadedL(TBool aFaded);
- #line 179
- __declspec(dllexport) void HandleResourceChangeL(TInt aType);
- __declspec(dllexport) TRect ApplicationRect() const;
- public:
- __declspec(dllexport) void PrepareToExit();
- public:
- __declspec(dllexport) TBool IsFaded() const;
- __declspec(dllexport) CAknWsEventMonitor* EventMonitor() const;
- __declspec(dllexport) CAknKeySoundSystem* KeySounds() const;
- __declspec(dllexport) TBool IsFullScreenApp() const;
- __declspec(dllexport) TBool IsLayoutAwareApp() const;
- __declspec(dllexport) void SetLayoutAwareApp(TBool aLayoutAwareApp);
- __declspec(dllexport) TBool IsForeground() const;
- __declspec(dllexport) TBool IsPartialForeground() const;
- __declspec(dllexport) TAppUiOrientation Orientation() const;
- __declspec(dllexport) void SetOrientationL(TAppUiOrientation aOrientation);
- TInt FindAppWgIdBelowMeL();
- TInt EventForForegroundState(TBool aPartialFg, TBool aForeground);
- TBool ThreadIsForeground() const;
- void SimulateWsEventL(TInt aEvent);
- __declspec(dllexport) TAknUiZoom LocalUiZoom() const;
- #line 302
- __declspec(dllexport) void SetLocalUiZoomL(TAknUiZoom aZoom);
- protected:
- __declspec(dllexport) virtual void HandleScreenDeviceChangedL();
- protected:
- __declspec(dllexport) virtual void HandleApplicationSpecificEventL(TInt aType,
- const TWsEvent& aEvent);
- protected:
- __declspec(dllexport) void SetFullScreenApp(TBool aIsFullScreen);
- __declspec(dllexport) void ReplaceKeySoundsL( TInt aUid );
- protected:
- __declspec(dllexport) virtual TTypeUid::Ptr MopSupplyObject(TTypeUid aId);
- private:
- void UpdateSettingCacheAndForwardEventL( TInt aEventId );
- void SetAppUiAndLeaveIfErrorL( TInt aError );
- private:
- TBitFlags iAknFlags;
- CAknWsEventMonitor* iEventMonitor;
- CAknKeySoundSystem* iKeySounds;
- CAknAppUiBaseExtension* iAppUiBaseExtension;
- };
- class CAknAppUi : public CAknAppUiBase, MEikStatusPaneObserver,
- public MCoeViewDeactivationObserver,
- public MAknTouchPaneObserver
- {
- public:
- #line 379
- __declspec(dllexport) void BaseConstructL(TInt aAppUiFlags=EStandardApp);
- __declspec(dllexport) ~CAknAppUi();
- public:
- __declspec(dllexport) void ConstructL();
- public:
- __declspec(dllexport) CEikStatusPane* StatusPane();
- __declspec(dllexport) CEikButtonGroupContainer* Cba();
- __declspec(dllexport) CAknTouchPane* TouchPane();
- __declspec(dllexport) CAknToolbar* PopupToolbar() const;
- __declspec(dllexport) CAknToolbar* CurrentPopupToolbar() const;
- void StopDisplayingPopupToolbar();
- #line 439
- __declspec(dllexport) void ProcessCommandL(TInt aCommand);
- #line 451
- __declspec(dllexport) TErrorHandlerResponse HandleError (TInt aError,
- const SExtendedError& aExtErr, TDes& aErrorText, TDes& aContextText);
- __declspec(dllexport) void RunAppShutter();
- __declspec(dllexport) TBool IsAppShutterRunning() const;
- public:
- #line 477
- __declspec(dllexport) virtual void HandleViewDeactivation(
- const TVwsViewId& aViewIdToBeDeactivated,
- const TVwsViewId &aNewlyActivatedViewId);
- public:
- __declspec(dllexport) void PrepareToExit();
- public:
- __declspec(dllexport) void HandleTouchPaneSizeChange();
- protected:
- __declspec(dllexport) void HandleStatusPaneSizeChange();
- __declspec(dllexport) void HandleSystemEventL(const TWsEvent& aEvent);
- protected:
- __declspec(dllexport) virtual void Reserved_MtsmPosition();
- __declspec(dllexport) virtual void Reserved_MtsmObject();
- protected:
- __declspec(dllexport) void HandleForegroundEventL(TBool aForeground);
- __declspec(dllexport) void HandleWsEventL(const TWsEvent& aEvent,
- CCoeControl* aDestination);
- #line 540
- __declspec(dllexport) void SetKeyBlockMode(TAknKeyBlockMode aMode);
- __declspec(dllexport) void HandleErrorL(TInt aError, HBufC** aErrorDesc, TBool aShowNote = ETrue );
- #line 552
- void DumpControl(CCoeControl* aControl, TInt aLevel, RDebug& aDebug);
- void DecideWsClientBufferSizesL();
- private:
- void UpdateKeyBlockMode();
- private:
- TBool iDumpNextControl;
- CAknAppShutter* iAppShutter;
- TAknKeyBlockMode iBlockMode;
- CAknAppUiExtension * iExtension;
- public:
- __declspec(dllexport) void HideApplicationFromFSW(TBool aHide=ETrue);
- };
- #line 24 "C:\Symbian\9.1\S60_3rd\epoc32\include\aknViewAppUi.h" /* stack depth 1 */
- class CAknView;
- class CAknViewShutter;
- class CAknLocalScreenClearer;
- class CAknViewAppUiExtension;
- class CAknViewNavigator;
- #line 43
- class CAknViewAppUi : public CAknAppUi
- {
- public:
- class CViewActivationItem : public CBase
- {
- public:
- #line 58
- static CViewActivationItem* NewLC(CAknView* aNewView,
- TUid aCustomMessageId,
- const TDesC8& aCustomMessage,
- const TVwsViewId& aPrevViewId);
- ~CViewActivationItem();
- private:
- CViewActivationItem(CAknView* aNewView,
- TUid aCustomMessageId,
- const TVwsViewId& aPrevViewId);
- void ConstructL(const TDesC8& aCustomMessage);
- public:
- CAknView* iNewView;
- TUid iCustomMessageId;
- HBufC8* iCustomMessage;
- TVwsViewId iPrevViewId;
- };
- class TAknSplitViewContainer
- {
- public:
- TBool IsPartOf( const TUid aViewId );
- public:
- TUid iViewIds[2];
- TBool iFailed[2];
- TRect iViewRect[2];
- TInt iLeftViewSize;
- };
- typedef CArrayPtrFlat<CViewActivationItem> CAknViewActivationQueue;
- typedef CArrayPtrFlat<CAknView> CAknViews;
- public:
- __declspec(dllexport) void BaseConstructL(TInt aAppUiFlags=EStandardApp);
- __declspec(dllexport) virtual ~CAknViewAppUi();
- __declspec(dllexport) void ActivateLocalViewL(TUid aViewId);
- #line 143
- __declspec(dllexport) void ActivateLocalViewL(TUid aViewId,
- TUid aCustomMessageId,
- const TDesC8& aCustomMessage);
- __declspec(dllexport) CAknView* View(TUid aView) const;
- __declspec(dllexport) void AddViewL(CAknView* aView);
- __declspec(dllexport) void RemoveView(TUid aViewId);
- __declspec(dllexport) void ProcessCommandL(TInt aCommand);
- __declspec(dllexport) void StopDisplayingMenuBar();
- void ViewActivatedL(CAknView* aView,
- const TVwsViewId& aPrevViewId,
- TUid aCustomMessageId,
- const TDesC8& aCustomMessage);
- void ViewDeactivated(CAknView* aView);
- #line 196
- __declspec(dllexport) void SetSplitViewL( const TUid aView1Id, const TUid aView2Id, const TInt aLeftViewSize );
- #line 205
- __declspec(dllexport) void RemoveSplitViewL( const TUid aViewId );
- __declspec(dllexport) TBool SplitViewActive() const;
- __declspec(dllexport) TUid FocusedView() const;
- __declspec(dllexport) TBool ViewShown( const TUid aViewId ) const;
- TRect ViewRect( const TUid aViewId ) const;
- TKeyResponse HandleViewNavigationL( const TKeyEvent& aKeyEvent );
- protected:
- __declspec(dllexport) void HandleStatusPaneSizeChange();
- __declspec(dllexport) void HandleForegroundEventL(TBool aForeground);
- #line 268
- __declspec(dllexport) void HandleWsEventL( const TWsEvent& aEvent, CCoeControl* aDestination );
- private:
- static TInt ActivationCallBack(TAny* aThis);
- void ActivationTick();
- void QueueActivationTick();
- CAknViewAppUiExtension* Extension() const;
- void ActivateSplitViewL( CViewActivationItem* aItem );
- TAknSplitViewContainer* SplitView( const TUid aViewId ) const;
- protected:
- CAknView* iView;
- CAknViews* iViews;
- private:
- CAknViewShutter* iShutter;
- CAknLocalScreenClearer* iClearer;
- CAknViewActivationQueue* iActivationQueue;
- CIdle* iActivationTick;
- CAknViewAppUiExtension* iExtension;
- };
- #line 9 "C:\gbtukmanpf01\NOK124\Courses\S60\05300-S60_C++_Introduction\Working\LabCode\Lab_05304-s2.cb1\starter\src\S60UIExamplePlayContainer.cpp" /* stack depth 0 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\akniconutils.h" /* stack depth 1 */
- #line 31
- class CFbsBitmap;
- class MAknIconObserver;
- enum TScaleMode
- {
- EAspectRatioPreserved = 0,
- #line 57
- EAspectRatioPreservedAndUnusedSpaceRemoved = 1,
- EAspectRatioNotPreserved = 2
- };
- class TAknContentDimensions
- {
- public:
- inline TAknContentDimensions();
- inline TAknContentDimensions(TReal32 aWidth, TReal32 aHeight);
- inline void SetDimensions(TReal32 aWidth, TReal32 aHeight);
- inline void SetDimensions(const TSize& aDimensions);
- public:
- TReal32 iWidth;
- TReal32 iHeight;
- };
- class CAknIcon : public CBase
- {
- public:
- __declspec(dllexport) static CAknIcon* NewL();
- ~CAknIcon();
- public:
- __declspec(dllexport) CFbsBitmap* Bitmap() const;
- __declspec(dllexport) CFbsBitmap* Mask() const;
- __declspec(dllexport) void SetBitmap( CFbsBitmap* aBitmap );
- __declspec(dllexport) void SetMask( CFbsBitmap* aMask );
- private:
- inline CAknIcon() {}
- private:
- CFbsBitmap* iBitmap;
- CFbsBitmap* iMask;
- };
- #line 112
- class MAknIconFileProvider
- {
- public:
- enum TIconFileType
- {
- EMbmFile = 0,
- EMifFile = 1
- };
- public:
- virtual ~MAknIconFileProvider() {}
- #line 144
- virtual void RetrieveIconFileHandleL(
- RFile& aFile, const TIconFileType aType ) = 0;
- #line 159
- virtual void Finished() = 0;
- };
- class AknIconUtils
- {
- public:
- #line 188
- __declspec(dllexport) static void CreateIconL(
- CFbsBitmap*& aBitmap,
- CFbsBitmap*& aMask,
- const TDesC& aFileName,
- TInt aBitmapId,
- TInt aMaskId );
- #line 213
- __declspec(dllexport) static void CreateIconLC(
- CFbsBitmap*& aBitmap,
- CFbsBitmap*& aMask,
- const TDesC& aFileName,
- TInt aBitmapId,
- TInt aMaskId );
- #line 233
- __declspec(dllexport) static CFbsBitmap* CreateIconL(
- const TDesC& aFileName,
- TInt aBitmapId );
- #line 258
- __declspec(dllexport) static void CreateIconL(
- CFbsBitmap*& aBitmap,
- CFbsBitmap*& aMask,
- MAknIconFileProvider& aFileProvider,
- TInt aBitmapId,
- TInt aMaskId );
- #line 285
- __declspec(dllexport) static void CreateIconLC(
- CFbsBitmap*& aBitmap,
- CFbsBitmap*& aMask,
- MAknIconFileProvider& aFileProvider,
- TInt aBitmapId,
- TInt aMaskId );
- #line 307
- __declspec(dllexport) static CFbsBitmap* CreateIconL(
- MAknIconFileProvider& aFileProvider,
- TInt aBitmapId );
- #line 333
- __declspec(dllexport) static void PreserveIconData( CFbsBitmap* aBitmap );
- #line 343
- __declspec(dllexport) static void DestroyIconData( CFbsBitmap* aBitmap );
- #line 360
- __declspec(dllexport) static TInt SetSize(
- CFbsBitmap* aBitmap,
- const TSize& aSize,
- TScaleMode aMode = EAspectRatioPreserved );
- #line 381
- __declspec(dllexport) static TInt SetSizeAndRotation(
- CFbsBitmap* aBitmap,
- const TSize& aSize,
- TScaleMode aMode,
- TInt aAngle );
- #line 398
- __declspec(dllexport) static void SetObserver( CFbsBitmap* aBitmap, MAknIconObserver* aObserver );
- __declspec(dllexport) static const TDesC& AvkonIconFileName();
- #line 421
- __declspec(dllexport) static void ValidateLogicalAppIconId(
- const TDesC& aIconFileName,
- TInt& aBitmapId,
- TInt& aMaskId );
- #line 435
- __declspec(dllexport) static TBool IsMifFile( const TDesC& aFileName );
- #line 447
- __declspec(dllexport) static TBool IsMifIcon( const CFbsBitmap* aBitmap );
- #line 465
- __declspec(dllexport) static TInt GetContentDimensions(
- CFbsBitmap* aBitmap,
- TSize& aContentDimensions );
- #line 484
- __declspec(dllexport) static TInt GetContentDimensions(
- CFbsBitmap* aBitmap,
- TAknContentDimensions& aContentDimensions );
- #line 520
- __declspec(dllexport) static CAknIcon* CreateIconL( CAknIcon* aSourceIcon );
- #line 537
- __declspec(dllexport) static CFbsBitmap* CreateIconL( CFbsBitmap* aSourceBitmap );
- #line 549
- __declspec(dllexport) static void SetIconColor( CFbsBitmap* aBitmap, const TRgb aColor );
- static void ScaleBitmapL(
- const TRect& aTrgRect,
- CFbsBitmap* aTrgBitmap,
- CFbsBitmap* aSrcBitmap );
- #line 578
- static void RotateAndScaleBitmapL(
- const TRect& aTrgRect,
- CFbsBitmap* aTrgBitmap,
- CFbsBitmap* aSrcBitmap,
- TInt aAngle );
- private:
- #line 594
- static TBool IsAknBitmap( const CFbsBitmap* aBitmap );
- static void CreateIconLC(
- CFbsBitmap*& aBitmap,
- CFbsBitmap*& aMask,
- const TDesC& aFileName,
- TInt aBitmapId,
- TInt aMaskId,
- MAknIconFileProvider* aFileProvider );
- static void CreateIconLC(
- CFbsBitmap*& aBitmap,
- CFbsBitmap*& aMask,
- const TDesC& aFileName,
- TInt aBitmapId,
- TInt aMaskId,
- RFile& aFile );
- private:
- AknIconUtils();
- };
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\AknIconUtils.inl" /* stack depth 2 */
- #line 22
- inline TAknContentDimensions::TAknContentDimensions():
- iWidth(0),iHeight(0)
- {
- }
- inline TAknContentDimensions::TAknContentDimensions(TReal32 aWidth, TReal32 aHeight):
- iWidth(aWidth),iHeight(aHeight)
- {
- }
- inline void TAknContentDimensions::SetDimensions(TReal32 aWidth, TReal32 aHeight)
- {
- iWidth = aWidth;
- iHeight = aHeight;
- }
- inline void TAknContentDimensions::SetDimensions(const TSize& aDimensions)
- {
- iWidth = aDimensions.iWidth;
- iHeight = aDimensions.iHeight;
- }
- #line 624 "C:\Symbian\9.1\S60_3rd\epoc32\include\akniconutils.h" /* stack depth 1 */
- #line 10 "C:\gbtukmanpf01\NOK124\Courses\S60\05300-S60_C++_Introduction\Working\LabCode\Lab_05304-s2.cb1\starter\src\S60UIExamplePlayContainer.cpp" /* stack depth 0 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\S60UIExample.mbg" /* stack depth 1 */
- enum TMifS60uiexample
- {
- EMbmS60uiexampleGame_bkg = 16384,
- EMbmS60uiexampleGame_bkg_mask = 16385,
- EMbmS60uiexampleStart_bkg = 16386,
- EMbmS60uiexampleStart_bkg_mask = 16387,
- EMbmS60uiexampleGraduated_bkg = 16388,
- EMbmS60uiexampleGraduated_bkg_mask = 16389,
- EMbmS60uiexampleGun = 16390,
- EMbmS60uiexampleGun_mask = 16391,
- EMbmS60uiexampleDagger = 16392,
- EMbmS60uiexampleDagger_mask = 16393,
- EMbmS60uiexampleCandlestick = 16394,
- EMbmS60uiexampleCandlestick_mask = 16395,
- EMbmS60uiexampleLastElement
- };
- #line 11 "C:\gbtukmanpf01\NOK124\Courses\S60\05300-S60_C++_Introduction\Working\LabCode\Lab_05304-s2.cb1\starter\src\S60UIExamplePlayContainer.cpp" /* stack depth 0 */
- CS60UIExamplePlayContainer* CS60UIExamplePlayContainer::
- NewL(const TRect& aRect, CS60UIExampleModel& aModel)
- {
- CS60UIExamplePlayContainer* self =
- CS60UIExamplePlayContainer::NewLC(aRect, aModel);
- CleanupStack::Pop(self);
- return self;
- }
- CS60UIExamplePlayContainer* CS60UIExamplePlayContainer::
- NewLC(const TRect& aRect, CS60UIExampleModel& aModel)
- {
- CS60UIExamplePlayContainer* self =
- new (ELeave) CS60UIExamplePlayContainer(aModel);
- CleanupStack::PushL(self);
- self->ConstructL(aRect);
- return self;
- }
- CS60UIExamplePlayContainer::
- CS60UIExamplePlayContainer(CS60UIExampleModel& aModel)
- : iModel(aModel)
- {
- }
- void CS60UIExamplePlayContainer::ConstructL(const TRect& aRect)
- {
- CreateWindowL();
- CEikStatusPane* statusPane = ((CAknViewAppUi*)CEikonEnv::Static()->EikAppUi()) ->StatusPane();
- iNaviPane = (CAknNavigationControlContainer*)
- statusPane->ControlL(TUid::Uid(0x100059BD ));
- UpdateNaviPaneL();
- const static TLitC<sizeof(L"z:\resource\apps\S60UIExample.mif")/2> KSvgFile={sizeof(L"z:\resource\apps\S60UIExample.mif")/2-1,L"z:\resource\apps\S60UIExample.mif"} ;
- iBkgBitmap = AknIconUtils::CreateIconL(KSvgFile, EMbmS60uiexampleGame_bkg);
- SetRect(aRect);
- ActivateL();
- }
- CS60UIExamplePlayContainer::~CS60UIExamplePlayContainer()
- {
- delete iNaviDecorator;
- delete iBkgBitmap;
- }
- void CS60UIExamplePlayContainer::SizeChanged()
- {
- TRect rect = Rect();
- TInt error = AknIconUtils::SetSize(iBkgBitmap,
- rect.Size(),
- EAspectRatioNotPreserved);
- }
- void CS60UIExamplePlayContainer::HandleResourceChange(TInt aType)
- {
- CCoeControl::HandleResourceChange(aType);
- if (aType == KEikDynamicLayoutVariantSwitch)
- {
- TRect rect;
- AknLayoutUtils::LayoutMetricsRect(AknLayoutUtils::EMainPane, rect);
- SetRect(rect);
- }
- }
- void CS60UIExamplePlayContainer::Draw(const TRect& aRect) const
- {
- CWindowGc& gc = SystemGc();
- gc.BitBlt(TPoint(0,0), iBkgBitmap);
- if (iModel.IsGamePaused())
- {
- const static TLitC<sizeof(L"Game Paused")/2> KPausedText={sizeof(L"Game Paused")/2-1,L"Game Paused"} ;
- gc.SetPenStyle(CGraphicsContext::ESolidPen);
- gc.SetPenColor(TRgb(0x000000) );
- gc.UseFont(AknLayoutUtils::FontFromId(EAknLogicalFontTitleFont));
- TPoint textPos(aRect.iBr.iX/4, aRect.iBr.iY/2);
- gc.DrawText(KPausedText, textPos);
- gc.DiscardFont();
- }
- }
- TKeyResponse CS60UIExamplePlayContainer::OfferKeyEventL(const TKeyEvent&
- aKeyEvent,
- TEventCode aType)
- {
- if (aType != EEventKey)
- {
- return EKeyWasNotConsumed;
- }
- if (!iModel.IsGameStarted() || iModel.IsGamePaused())
- {
- return EKeyWasNotConsumed;
- }
- switch (aKeyEvent.iCode)
- {
- case '1':
- case '2':
- case '3':
- case '4':
- case '5':
- case '6':
- case '7':
- case '8':
- case '9':
- {
- TInt keyNum = aKeyEvent.iCode - '0';
- TInt score = iModel.Score() + keyNum;
- iModel.SetScore(score);
- TInt level = iModel.LevelNumber();
- if (score > level *100)
- {
- iModel.SetLevelNumber(level + 1);
- }
- UpdateNaviPaneL();
- break;
- }
- default:
- return EKeyWasNotConsumed;
- }
- return EKeyWasConsumed;
- }
- void CS60UIExamplePlayContainer::UpdateNaviPaneL()
- {
- if (iNaviDecorator)
- {
- iNaviPane->Pop(iNaviDecorator);
- delete iNaviDecorator;
- iNaviDecorator = 0 ;
- }
- TBuf<100> naviText;
- const static TLitC<sizeof(L"Level %d Score %d")/2> KNaviText={sizeof(L"Level %d Score %d")/2-1,L"Level %d Score %d"} ;
- naviText.Format(KNaviText,iModel.LevelNumber(), iModel.Score());
- iNaviDecorator = iNaviPane->CreateNavigationLabelL(naviText);
- iNaviPane->PushL(*iNaviDecorator);
- }