⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 smbmusicapmainplayerplayview.h

📁 symbian
💻 H
📖 第 1 页 / 共 2 页
字号:
	void NotifyMusicAPPlayerStateChangedL(TSmbPGMusicAPPlayerState aState);
	void NotifyExitApp();
	void NotifyForegroundedL(TBool aForeground);
// Add 2007.09.04
	void NotifyCaseClosedL(TBool aCaseClose);
	void NotifyExtMemoryChangeStatus(TBool aMount);
	void NotifyExitPreprocessingL();
	void NotifyExitPostprocessingL();
	void NotifyGetAccessSyncEngine();
	void NotifyReleaseAccessSyncEngine();
	void NotifyLcdChangedL(TBool aBacklight);

public:		// MSmbMusicAPMainPlayerPlayDrawObserver
	void StartedVisualizer();
	void StopedVisualizer();
	void RedrawVisualizer(TInt& aLeft, TInt& aRight);
	TBool ChangedVolumeLevel(TInt aVolume);
	void UpdateFFPicture();
	void UpdateFRPicture();

public:		// MSmbMusicAPMainPlayerPlayDeleteObserver
	void CompleteDeleteSongL(TInt aResult);

public:		// MSmbMusicAPMainPlayerFilterObserver
	void GetPlayInfoPanel(CSkonMusicPlayInfoPanel** aInfo);
	void PlayFromSongListL();
	void PauseFromSongListL();
	void RequestPreparePlay(TInt aListHandle, TInt aIndex, TBool aAllShuffle, TBool aResume);

public:	// own method
	TBool DecideMannerModePlayL(TInt iListHandle, TInt iIndex);
	TBool IsSubMenuDIsplay();
	
	void ChangeState(TSmbMusicAPMainPlayerPlayStatus aStateIndex);
	TSmbMusicAPMainPlayerPlayStatus ViewStatus();
	void ChangeFuncKeyState(TBool aState);

private:		// CSmbAfView  PTX824
	void Draw(const TRect& aRect) const;
	void FocusChanged(TDrawNow aDrawNow);

private:	// Constructor
	CSmbMusicAPMainPlayerPlayView(MSmbMusicAPMainPlayerEnv& aPlayerEnv,
	                              CSmbMusicAPSyncEngine& aMusicSyncEngine,
// Change 2007.09.03
//	                              MSmbMusicAPMainPlayerPlayHandler& aFiltertView
	                              MSmbMusicAPMainPlayerPlayHandler& aFiltertView,
	                              CFbsBitmap* aOffScreen,		// Add 2007.09.01
	                              CSkonBitGc* aSkonGc
	                             );
	void ConstructL();
	void TrappedConstructL(TInt& aStep);

public:
	TKeyResponse KeyEventL(const TKeyEvent& aKeyEvent, const TSmbMusicAPMainPlayerPlayKeyEvent aTbl[], TInt aNum);
	TKeyResponse KeyUpEvent(const TKeyEvent& aKeyEvent);
	
	void ProcKeyDecideInPlayingL(CSmbMusicAPMainPlayerPlayView& aKeyFunc, TBool aFailState);
	void ProcKeyDecideInProcStartL(CSmbMusicAPMainPlayerPlayView& aKeyFunc);
	void ProcKeyDecideInPauseL(CSmbMusicAPMainPlayerPlayView& aKeyFunc);
	void ProcKeyLongRightUp();
	void ProcKeyLongLeftUp();
	
	TBool IsDisableSoft1Key();
	void ShowSubMenuL();
	void ModefySubMenuL(CSkonSubMenu& aSubMenu);
	void SMenuMusicSettingL();
	void SMenuRegisterPlayListL(TSmbMusicAPMainPlayerPlayViewKGCommand aCmd);
	void SMenuDisplayDetailInfoL();
	void SMenuDisplayJacketL();
	void SMenuDisplaySongWordsL();
	void SMenuDeleteSongL();

	static TInt CallBackFailTimer(TAny* aAny);
	static TInt CallBackRetryTimer(TAny* aAny);
	static TInt CallBackPlayStartTimer(TAny* aAny);
	void StartPlayTimerL();

	void NotifyPlayHWAbortL();
	
	void NotifyUpdateInfoL(TSmbMusicAPSyncEngineAppSyncInfo& aInfo);
	
	void NotifyMusicSettingL(TUid aUid, TInt aData);
	void SetDrawableL();
	void HandleDialogClosed(TInt aResourceId, TInt aResult);
	void ReqGetPlayInfoL();
	void DoCancelProc(CSmbMusicAPMainPlayerPlayView& aKeyFunc);
	TBool ProcCancelAction();

private:	// 撪晹張棟儊僜僢僪
	void TrappedDoConstructContainerL(TInt& aStep);
	void TrappedViewDeactivatedL();
	
	void RedrawByChangeViewL();
	void RedrawByChangeViewLcdOnL();

	void TrappedHandleDialogClosedL(TInt aResourceId, TInt aResult);

	TBool ContinuousPlayL();
	void UpdatePictureInfoL(const TSmbMusicAPSyncEngineAppSyncInfo& aInfo);
	void ResourceFailInStartPlayL();
//	void RespPlayPrevErrorProcL(TInt aResult);
	void GetDefaultImageL();

	void NotifyPlayerEventInCaseCloseL(TSmbMusicAPSyncEnginePlayerEvent& aEvent);
	void NotifyPlayerEventPlayInCaseClose(TSmbMusicAPSyncEnginePlayerEvent& aEvent);
	void NotifyPlayerEventFailSongInCaseCloseL();
	void NotifyPlayerEventCompleteInCaseClose();
	void NotifyPlayerEventPauseInCaseCloseL();
	void NotifyPlayerEventChangeSongInFailSkip();
	void NotifyLimitCountContentsInCaseCloseL();
	void NotifyGracePeriodContentsInCaseCloseL();
	
public:
	void NotifyUpdateInfoOtherViewL(TSmbMusicAPSyncEngineAppSyncInfo& aInfo, TSmbMusicAPMainPlayerViewIds aLocalID);
	void NotifyUpdateInfoPlayView(TSmbMusicAPSyncEngineAppSyncInfo& aInfo);
	void NotifyUpdateInfoChangeSong(TSmbMusicAPSyncEngineAppSyncInfo& aInfo);
	void NotifyLcdOnL();
	void BackgroundToForegroundL();
	void ForegroundToBackgroundL();
	void NotifyGetAccessSyncEngineInFailSong();
	void BackLightOn();
	
	TBool IsRequestSongListPlay(TUid aCustomMessageId);
	TBool IsPlaySongChanged();
	TBool IsShuffleModeOFF();
	TBool IsCaseClosedL();
	TBool IsSendingUpdateDisplayInfo();
	TBool IsPlayFF();
	TBool IsPlayFFState();
	TBool IsPlayFR();
	TBool IsPlayFRState();
	TBool IsProcStartPlay(TSmbMusicAPMainPlayerPlayProcStatus aProc);
	TBool IsProcStartPlayWithFailSongCheck();
	TBool IsPlayModeCommand();
	TBool IsPlayFromFilterView();
	TBool IsPlayFromPlayView();
	TBool IsDiscardInPlayError(TInt aResult);
	TBool IsHoldingCancelPlayFF();
	TBool IsHoldingCancelPlayFR();
	TBool IsPlayStopState();
	TBool IsProcFailSong();
	TBool IsDrawStopPictureByGetTime();
	TBool IsCancelGetPlayTime(TBool aCancel);
	TBool IsDrawableFromWsL() const;
	TBool IsBackgroundMainPlayerL();
	TBool IsForegroundMainPlayerL();
	TBool IsResumeCancelOnPause();
	TBool IsStartPlayOfIniitialPicture();
	TBool IsChangeSongOfIniitialPicture();
	TBool IsNotifyChangeSongProcess();
	TBool IsChangeProcStartPlay();
	TBool IsChangeNoProcessAfterGetImage();
	TBool IsGetTimeInFFFR(TInt aResult, TBool aTimeGetFF);
	TBool IsChangeStatusToPlayingAfterGetTime();
	TBool IsSettingZeroToPlayTime();
	TBool IsActiveKeyEvent(TEventCode aType);

	TBool IsMovingSong();
	
	static TBool IsEnableDecideKey(CSmbMusicAPMainPlayerPlayView& aKeyFunc);
	static TBool IsEnableClearKey(CSmbMusicAPMainPlayerPlayView& aKeyFunc);

private:	// data
	friend class CSmbMusicAPMainPlayerStateBase;
	friend class CSmbMusicAPMainPlayerStateInitial;
	friend class CSmbMusicAPMainPlayerStatePause;
	friend class CSmbMusicAPMainPlayerStatePlay;
	friend class CSmbMusicAPMainPlayerStateFF;
	friend class CSmbMusicAPMainPlayerStateFR;
	friend class CSmbMusicAPMainPlayerStateResourceFail;
	
	CSmbMusicAPSyncEngine& 				iSyncEngine;		///< 摨婜僄儞僕儞
	MSmbMusicAPMainPlayerPlayHandler& 	iFilterView;		///< 嵞惗忣曬曄峏捠抦(僼傿儖僞價儏乕)
	CSmbMusicAPMainPlayerAppUi&			iAppUi;				///< 傾僾儕働乕僔儑儞UI僋儔僗

	CSmbMusicAPMainPlayerPlayCmd* 		iCmd;				///< 僐儅儞僪僋儔僗
	CSmbMusicAPMainPlayerPlayDrawer*	iDrawer;			///< 昤夋僋儔僗
	CSmbMusicAPMainPlayerPlayDelete*	iDelete;			///< 1審嶍彍張棟僋儔僗
	
	TSmbMusicAPMainPlayerPlayStatus 	iStatus;			///< 嵞惗價儏乕忬懺 Y:
	TBool								iPauseResumeCancel;	///< ETrue:掆巭屻儗僕儏乕儉攋婞	TRK:11175  2006.10.14
	TSmbMusicAPMainPlayerPrmPlayList	iReqPlayList;		///< 嵞惗梫媮帪偺嵞惗儕僗僩忣曬
	TSmbMusicAPSyncEngineItemIndex		iPlayList;			///< 嵞惗儕僗僩忣曬
	CPeriodic*							iPeriodic;			///< 嵞惗晄壜嬋僗僉僢僾懸偪僞僀儅
	TBool								iFailState;			///< ETrue:嵞惗晄壜嬋僗僉僢僾張棟拞        2006.09.30
	TSmbMusicAPMainPlayerPlayRequest	iProckind;			///< 尰嵼幚峴拞偺嵞惗宯張棟梫媮
	TSmbMusicAPMainPlayerPlayRequest	iInfokind;			///< 尰嵼幚峴拞偺嬋忣曬庢摼宯張棟梫媮
	TBool								iNotifyFial2Idle;	///< ETrue:嵞惗晄壜嬋僗僉僢僾張棟拞偵嬻偺儕僗僩嵞惗偑梫媮偝傟偨(嵞惗晄壜捠抦帪張棟)
	TBool								iCancelTimeGet;		///< ETrue:嵞惗帪娫庢摼僉儍儞僙儖
	TBool								iAllShuffle;		///< ETrue:慡嬋僔儍僢僼儖
	TBool								iDonePreparePlay;	///< ETrue:専嶕價儏乕偐傜偺嵞惗弨旛梫媮偑姰椆偟偨 2006.10.21 TRK:11888

private:
	TBool		iViewTop;						///< ETrue丗嵟慜柺偺價儏乕偱偁傞
	
	TSmbMusicAPMainPlayerPlayProcStatus	iProc;		///< 嵞惗價儏乕張棟忬懺
	TSmbMusicAPMainPlayerPlayProcStatus	iProcPrev;	///< 捈慜偺嵞惗價儏乕張棟忬懺乮嵞惗奐巒拞偺掆巭張棟帪偵巊梡乯
	TSmbMusicAPMainPlayerPlayRequest	iReqWait;	///< 張棟懸偪偺張棟梫媮庬暿

	TBool		iReqCancel;						///< ETrue:嵞惗晄壜張棟拞偺僉儍儞僙儖
	TBool		iPlayComplete;					///< ETrue:儕僗僩嵞惗姰椆
	TBool		iLowBattery;					///< ETrue:傾僾儕掅揹埑張棟拞
	TBool		iLowBatteryStoped;				///< ETrue:傾僾儕掅揹埑偱掆巭張棟傪峴偭偨
	TBool		iPlayCancel;					///< ETrue:嵞惗奐巒拞偵掆巭偝傟偨  TRK:9450
	TBool		iReqPreparePlay;				///< ETrue:専嶕價儏乕偐傜偺嵞惗弨旛梫媮  2006.10.12
	TBool		iBottomSong;					///< ETrue:嵟廔嬋嵞惗拞
	TBool		iTopSong;						///< ETrue:愭摢嬋忬懺
	TBool		iBacklight;						///< LCD僶僢僋儔僀僩忬懺乮ETrue丗揰摂丄EFalse丗徚摂乯

	TSmbMusicAPMainPlayerPlayProcStatus	iProcFail;	///< 儕僜乕僗嫞崌帪偺嵞惗價儏乕張棟忬懺

	TUid		iCurMessageID;					///< 價儏乕愗懼偊帪偺僇儗儞僩儊僢僙乕僕ID
	TInt		iPlayNum;						///< 傾僀僥儉悢乮嬋悢乯
	TInt		iIndex;							///< 嵞惗拞嬋偺嵞惗儕僗僩撪僀儞僨僢僋僗
	TInt		iNumJacket;						///< 尰嵼嬋偺僕儍働僢僩夋憸枃悢
	TInt		iNumLyric;						///< 尰嵼嬋偺壧帉夋憸枃悢
	TInt		iJacketIndex;					///< 僕儍働僢僩夋憸偵懳墳偡傞僀儞僨僢僋僗斣崋
	TInt		iBeforeIndex;					///< 掆巭捠抦慜偺僀儞僨僢僋僗斣崋

	TBuf<256>	iArtistTitle;					///< 尰嵼嬋偺傾乕僥傿僗僩柤
	TBuf<256>	iAlbumTitle;					///< 尰嵼嬋偺傾儖僶儉柤
	TBuf<256>	iSongTitle;						///< 尰嵼嬋偺嬋僞僀僩儖
	TInt		iTotalPlayTime;					///< 尰嵼嬋偺僩乕僞儖嵞惗嬋帪娫
	TInt		iSongInfoIndex;					///< 嵞惗嬋忣曬偵懳墳偡傞僀儞僨僢僋僗斣崋
	TSmbMusicAPSyncEngineStoreIn	iSDBind;	///< 尰嵼嬋偺奿擺応強   TRK:7935
	TSmbMusicAPSyncEngineFileFormat	iFileFormat;	///< 尰嵼嬋偺僼僅乕儅僢僩   TRK:7935
	TBool		iIsUimLimited;					///< UIM幚峴惂尷偐偳偆偐偺僼儔僌(ETrue:惂尷拞/EFalse:惂尷拞偱側偄)
	TBool		iIsOnline;						///< 僆儞儔僀儞僼儔僌(ETrue:僆儞儔僀儞/EFalse:僆僼儔僀儞)
	TBool		iTimeGetFF;						///< ETrue:憗憲傝拞偺帪崗庢摼	2006.09.30

	TBool		iCancelAction;					///< ETrue:僉儍儞僙儖張棟傪峴偭偨丅	TRK:9802
	TSmbMusicAPMainPlayerPlayRequest	iCancelKind;	///< 僉儍儞僙儖偟偨張棟
	TBool		iCancelClearKey;				///< ETrue:僋儕傾僉乕柍岠忬懺
	
	TSmbMusicAPSyncEnginePlayerEvent	iPlayEvent;	///< 嵞惗宯僀儀儞僩忣曬
	TSmbMusicAPSyncEnginePlayerEvent	iFailEvent;	///< 嵞惗晄壜僀儀儞僩忣曬
	TSmbMusicAPSyncEngineSyncEvent	iSyncEvent;		///< 摨婜宯僀儀儞僩忣曬
	TSmbMusicAPSyncEngineContentsEvent	iCoEvent;	///< 僐儞僥儞僣宯僀儀儞僩忣曬
	TBool		iSyncRelease;					///< ETrue:摨婜僄儞僕儞巊梡尃棙奐曻張棟拞

	TBool		iFial2Play;						///< ETrue:嵞惗晄壜嬋僗僉僢僾張棟拞偵嵞惗嬋曄峏偁傝	2006.10.14
	TBool		iFial2Idle;						///< ETrue:嵞惗晄壜嬋僗僉僢僾張棟拞偵嬻偺儕僗僩嵞惗偑梫媮偝傟偨(嬋憲傝墳摎帪張棟)

	TBool		iPlay2Start;					///< ETrue:嵞惗奐巒偐傜嵞惗奐巒捠抦傑偱偺忬懺  2006.10.16  TRK:11623
	TBool		iPlayStartWaiting;				///< ETrue:嵞惗奐巒懸偪忬懺  2006.09.30  TRK:10025
	TBool		iPauseState;					///< ETrue:Pause張棟拞       2006.10.01  TRK:10167
	TBool		iStartPause;					///< ETrue:嬋愗懼偊帪偺掆巭  2006.10.06  TRK:9895
	TBool		iExtMemory;						///< ETrue:奜晹儊儌儕乕憓敳偑偁偭偨丅2006.10.07
	TBool		iReqPlayPrev;					///< ETrue:摢弌偟拞偺嬋栠偟梫媮偁傝  2006.10.07 TRK:10878
	TBool		iPauseWaiting;					///< ETrue:掆巭曐棷拞

// Add 2007.03.09
	TInt		iHoldPlayNextCount;				///< 嬋憲傝曐棷悢
	TInt		iHoldPlayPrevCount;				///< 嬋栠偟曐棷悢
// Add End 2007.03.09
	
	CPeriodic*	iPeriodicStart;					///< 嵞惗奐巒捈屻1昩僞僀儅
	CPeriodic*	iPeriodicTime;					///< 嵞惗帪娫庢摼儕僩儔僀梡僞僀儅
	TSmbMusicAPMainPlayerPlayProcStatus	iPeriodicProcProc;	///< 嵞惗帪娫庢摼儕僩儔僀帪偺張棟庬暿
	
	TSmbMusicAPMainPlayerPlaySettingData iSetdata;	///< 儈儏乕僕僢僋愝掕僨乕僞
	
	CFbsBitmap*	iDefaultImage;					///< 僨僼僅儖僩夋憸價僢僩儅僢僾
	CFbsBitmap*	iDefaultImageMask;				///< 僨僼僅儖僩夋憸價僢僩儅僢僾
	CFbsBitmap*	iDefaultImageIcon;				///< 僨僼僅儖僩夋憸價僢僩儅僢僾(Icon梡)
	CFbsBitmap*	iDefaultImageIconMask;			///< 僨僼僅儖僩夋憸價僢僩儅僢僾(Icon梡)
	HBufC*		iUndefTitle;					///< 乽晄柧乿昞帵梡僨乕僞
	TBool		iBatteryLowPlay;
	TKeyEvent	iKeyEvent;						///< TRK:6911懳墳
	
	CSkonSubMenu*	iSubMenu;					///< 僒僽儊僯儏乕
	TBool			iEnableFuncKey;				///< ETrue:婡擻僉乕桳岠
	TBool			iDisplayedPopup;			///< ETrue:億僢僾傾僢僾昞帵拞
	
	//Y: 儕僼傽僋僞
	CSmbMusicAPMainPlayerStateBase* iState;
	CSmbMusicAPMainPlayerStateBase* iStateArray[ESmbMusicAPMainPlayerPlayPlayResourceFail+1];

//ADD-S 2007.4.2 [PTX824 i-keeper(TRK):384] 僉乕梷惂偺偨傔偺儊儞僶傪捛壛
	TBool iRejectKeyEvent;
//ADD-E 2007.4.2 [PTX824 i-keeper(TRK):384] 僉乕梷惂偺偨傔偺儊儞僶傪捛壛
	
	TInt		iRemainiPlayCount;				///< 嵞惗夞悢惂尷捠抦帪偺巆傝嵞惗夞悢
	TInt		iDisplayDialog;					///< 昞帵拞偺儌乕僪儗僗僟僀傾儘僌偺儕僜乕僗ID

// Add 2007.07
	TBool		iChangedSong;					///< ETrue:働乕僗僋儘乕僘拞偵嬋曄峏偵側偭偨
// Add End 2007.07

// Add 2007.08.20
	TBool		iStartingAutoResume;			///< ETrue:僆乕僩儗僕儏乕儉嵞惗奐巒拞
// Add End 2007.08.20

// Add 2007.09.01
	CFbsBitmap*	iOffScreen;
	CSkonBitGc*	iSkonGc;						///< SkonMusic僆僼僗僋儕乕儞Gc
// Add End 2007.09.01

#ifdef __SMBMUSICAP_PERFORMANCE_DEF__
/////// 昤夋惈擻帋尡梡 2007.08.08
	TInt		iDrawInterval;
#endif
	};

SEMCJ_NAMESPACE_END

#endif		// __SMBMUSICAPMAINPLAYERPLAYVIEW_H__

// end of SmbMusicAPMainPlayerPlayView.h
/* Copyright (C) 2006 Sony Ericsson Mobile Communications Japan, Inc. */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -