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

📄 smbmusicapmainplayerviewbase.h

📁 symbian
💻 H
字号:
/* Copyright (C) 2005-2006 Sony Ericsson Mobile Communications Japan, Inc. */
/*-------------------------------------------------------------------------*/
// FileName:
//	SmbMusicAPMainPlayerViewBase.h
//
// Description: 
//	儈儏乕僕僢僋儊僀儞僾儗僀儎乕偺價儏乕儀乕僗僋儔僗偺掕媊僿僢僟丅
/*------------------------------------------------------------------------*/
//曄峏棜楌
//擔晅			|曄峏幰 	|撪梕
//--------------+-----------+----------------------------------------------
//2006/06/07	|K3戝嫶		|怴婯嶌惉

/**
 * @file SmbMusicAPMainPlayerViewBase.h
 *
 * 儈儏乕僕僢僋儊僀儞僾儗僀儎乕偺價儏乕儀乕僗僋儔僗偺掕媊僿僢僟丅
 */
#ifndef __SMBMUSICAPMAINPLAYERVIEWBASE_H__
#define __SMBMUSICAPMAINPLAYERVIEWBASE_H__

#include "SmbMusicAPMainPlayerPlayDebug.h"

#ifdef __SMBMUSICAP_PTX824_DEF__
// PTX824 APF
#ifndef __SMBAFVIEW_H__
#include <SmbAfView.h>
#endif
#endif

#ifndef FJAFVIEW_H__
#include <FjAfView.h>
#endif

#ifndef __SMBCOMMONDEF_H__
#include <SmbCommonDef.h>
#endif
#ifndef __SMBMUSICAPMAINPLAYEREXTERNALINTERFACE_H__
#include <SmbMusicAPMainPlayerExternalInterface.h>
#endif
#ifndef __SMBMUSICAPMAINPLAYERCOMMONDEF_H__
#include "SmbMusicAPPlayerCommonDef.h"
#endif

// 僋儔僗慜掕媊
SEMCJ_NAMESPACE_BEGIN
class CSmbMusicAPSyncEngine;
class MSmbMusicAPMainPlayerBasisPartObserver;
class MSmbMusicAPMainPlayerEnv;
class MSmbMusicAPMainPlayerEventHandler;
SEMCJ_NAMESPACE_END


SEMCJ_NAMESPACE_BEGIN

/**
 * 夋柺峏怴僀儀儞僩偐傜價儏乕ID偵曄姺偡傞偨傔偺峔憿懱
 */
struct TSmbMusicAPMainPlayerChangeLocalViewId
	{
	TSmbMusicAPPlayerChangeViewEvent iEventId;  ///< 僀儀儞僩ID
	TSmbMusicAPMainPlayerViewIds iLocalViewId;  ///< 價儏乕ID
	};

/**
 * 儈儏乕僕僢僋儊僀儞僾儗僀儎乕價儏乕儀乕僗僋儔僗
 */
#ifdef __SMBMUSICAP_PTX824_DEF__
// PTX824 APF
class CSmbMusicAPMainPlayerViewBase : public CSmbAfView
#else
class CSmbMusicAPMainPlayerViewBase : public DCM_NAMESPACE::CAfView
#endif
	{
public:
	// new function(constructor/destructor)
	CSmbMusicAPMainPlayerViewBase(const DCM_NAMESPACE::TAfViewParam& aViewParam, MSmbMusicAPMainPlayerEnv& aPlayerEnv, CSmbMusicAPSyncEngine& aSyncEngine);  // 僐儞僗僩儔僋僞
	virtual ~CSmbMusicAPMainPlayerViewBase();  // 僨僗僩儔僋僞

	// new function
	void SetBasisPartObserver(MSmbMusicAPMainPlayerBasisPartObserver* aBasisPartObserver);// 捠抦愭傪僙僢僩
	TBool IsDrawableL();  // 昤夋傪峴偆傋偒偐敾掕偡傞
	TSmbMusicAPMainPlayerViewIds ChangeLocalViewId(TSmbMusicAPPlayerChangeViewEvent aEventId);  // 夋柺曄峏捠抦梡僀儀儞僩ID偐傜儘乕僇儖價儏乕ID偵曄姺偡傞

//ADD-START 2007.08.09
	void ViewActivatedL(const TVwsViewId& aPrevViewId, TUid aCustomMessageId, const TDesC8& aCustomMessage);
//ADD-END 2007.08.09

	// from CAfView  --> PTX824 CSmbAfView
	void DoViewActivatedL(const TVwsViewId& aViewId, TUid aCustomMessageId, const TDesC8& aCustomMessage);  // 價儏乕傾僋僥傿儀乕僩帪偺張棟
	TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType);                              // 僉乕僀儀儞僩張棟

	// new interface
	/**
	 * 幚嵺偺價儏乕傾僋僥傿儀乕僩帪偺張棟
	 *
	 * 攈惗僋儔僗偼偙偺儊僜僢僪偵幚憰偡傞丅
	 * 攈惗僋儔僗偼DoViewActivatedL()傪僆乕僶乕儔僀僪偟偰偼側傜側偄丅
	 *
	 * @param[in] aViewId 價儏乕ID
	 * @param[in] aCostomCommandUid 儊僢僙乕僕ID
	 * @param[in] aCustomCommand 儊僢僙乕僕
	 */
	virtual void DoViewActivatedImplL(const TVwsViewId& aViewId, TUid aCustomMessageId, const TDesC8& aCustomMessage) = 0;

	/**
	 * 幚嵺偺僉乕僀儀儞僩張棟
	 *
	 * 攈惗僋儔僗偼偙偺儊僜僢僪偵僉乕僀儀儞僩張棟傪幚憰偡傞丅
	 * 攈惗僋儔僗偼OfferKeyEventL()傪僆乕僶乕儔僀僪偟偰偼側傜側偄丅
	 *
	 * @param[in] aKeyEvent 僉乕僀儀儞僩
	 * @param[in] aType 僉乕僐乕僪
	 */
	virtual TKeyResponse OfferKeyEventImplL(const TKeyEvent& aKeyEvent, TEventCode aType) = 0;

	/**
	 * 僀儀儞僩僴儞僪儔傪曉偡丅
	 *
	 * 攈惗僋儔僗偼丄僀儀儞僩僴儞僪儔偺億僀儞僞傪曉偡傛偆偵幚憰偡傞丅
	 * 僀儀儞僩僴儞僪儔傪幚憰偟側偄応崌偼NULL傪曉偡偙偲丅
	 *
	 * @return 僀儀儞僩僴儞僪儔
	 */
	virtual MSmbMusicAPMainPlayerEventHandler* EventHandler() const = 0;

private:
	TBool IsStartFromFileMgr(TUid aCustomMessageId);

protected:
	MSmbMusicAPMainPlayerEnv& iPlayerEnv;                        ///< 娐嫬僋儔僗(uses)
	CSmbMusicAPSyncEngine&    iSyncEngine;                       ///< 摨婜僄儞僕儞(uses)
	MSmbMusicAPMainPlayerBasisPartObserver* iBasisPartObserver;  ///< 婎杮晹偵懳偡傞捠抦(uses)
	};

SEMCJ_NAMESPACE_END

#endif // __SMBMUSICAPMAINPLAYERVIEWBASE_H__
// end of SmbMusicAPMainPlayerViewBase.h
/* Copyright (C) 2005-2006 Sony Ericsson Mobile Communications Japan, Inc. */

⌨️ 快捷键说明

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