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

📄 vrexlistview.h

📁 symbian s60 有关音频的代码实例,供参考
💻 H
字号:
/*
* ============================================================================
*  Name     : CVRexListView from VRexListView.h
*  Part of  : Video Example
*  Created  : 30/08/2006 by Forum  Nokia
*  Implementation notes:
*  Version  : 2.0
*  Copyright: Nokia Corporation, 2006
* ============================================================================
*/

#ifndef VREXLISTVIEW_H
#define VREXLISTVIEW_H

// INCLUDES
#include <aknview.h>
#include "VRexEngine.h"

// CONSTANTS
// UID of view
const TUid KViewId = {1};

_LIT(KNoCameraErrorMessage, "There's no camera in this device");

// FORWARD DECLARATIONS
class CVRexListContainer;
class CVRexEngine;

// CLASS DECLARATION

/**
*  CVRexView view class.
*
*/
class CVRexListView : public CAknView
    {
    public: // Constructors and destructor

		CVRexListView();
        /**
        * EPOC default constructor.
        */
        void ConstructL();

        /**
        * Destructor.
        */
        ~CVRexListView();

    public: // Functions from base classes

        /**
        * From CAknView returns Uid of View
        * @return TUid uid of the view
        */
        TUid Id() const;

        /**
        * From MEikMenuObserver delegate commands from the menu
        * @param aCommand a command emitted by the menu
        * @return void
        */
        void HandleCommandL(TInt aCommand);

        /**
        * From CAknView reaction if size change
        * @return void
        */
        void HandleClientRectChange();


		/**
		 * This method gets the current video file name in the list box.
		 * @param aFileName, output to hold the selected video file name
		 * @return void
		 */
	    void GetCurrentVideoFileNameL(TDes &aFileName);

	protected:
	    /**
	     * This method gets the file information.
	     * @return void
	     */
	    void DoGetFileInfoL();
		/**
		 * This method plays a video clip.
		 * @return void
		 */
	    void DoPlayL();

        /**
		 * This method plays a video using a document handler.
		 * @return void
		 */
	    void DoDocPlayL();


    private:

        /**
        * From CAknView activate the view
        * @param aPrevViewId
        * @param aCustomMessageId
        * @param aCustomMessage
        * @return void
        */
        void DoActivateL(const TVwsViewId& aPrevViewId,TUid aCustomMessageId,
            const TDesC8& aCustomMessage);

        /**
        * From CAknView deactivate the view (free resources)
        * @return void
        */
        void DoDeactivate();

        /**
	     * From MEikMenuObserver, dynamically initialises a menu pane.
	     * @param aResourceId, menu pane id
         * @param aMenuPane, menu pane
         * @return void
	     */
        void DynInitMenuPaneL(TInt aResourceId,CEikMenuPane* aMenuPane);


        /**
        * Called by the framework when status pane size changes
        * @return void
        */
        void HandleStatusPaneSizeChange();

    private: // Data
        CVRexListContainer* iContainer;
        CVRexEngine* iEngine;
    };

#endif //VREXLISTVIEW_H

⌨️ 快捷键说明

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