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

📄 vrexview.h

📁 nokia S60_video_operation
💻 H
字号:
/*
* ============================================================================
*  Name     : CVRexView from VRexView.h
*  Part of  : Video Recording Example (VRex)
*  Created  : 16.03.2004 by Nokia Forum
*  Implementation notes:
*     Initial content was generated by Series 60 AppWizard.
*  Version  : 1.0
*  Copyright: Nokia Corporation
* ============================================================================
*/

#ifndef __VREXVIEW_H__
#define __VREXVIEW_H__

#include <coecntrl.h>
#include <coemain.h>

class CAknDoubleNumberStyleListBox;
class CDesC16ArrayFlat;
class CDesC16Array;
class CFileListEngine;
class CEikButtonGroupContainer;
class CVideoViewFinder;

// CLASS DECLARATION

/**
 *  CVRexView  container control class.
 *
 */
class CVRexView : public CCoeControl, MCoeControlObserver
    {
    public: // Constructors and destructor
        /**
         * EPOC default constructor.
         */
        void ConstructL(const TRect& aRect);

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

    public: // New functions
        /**
         * This method returns containers RWindow.
         * @return RWindow 
         */
        inline RWindow& ClientWindow();

		/**
         * This method returns TRect of the video area.
         * @return TRect 
         */
        inline TRect VideoRect() const;

        /**
         * This method returns containers RWsSession.
         * @return RWsSession 
         */
        inline RWsSession& ClientWsSession();

        /**
         * This method returns containers CWsScreenDevice.
         * @return CWsScreenDevice 
         */
        inline CWsScreenDevice& ScreenDevice();

		/**
		 * This method gets the total number of items in the list box.
		 * @return number of items 
		 */
	    TInt GetNumOfItemsInListBox();

		/**
		 * 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);
		
		/**
		 * This method starts the video view finder display.
		 * @return void 
		 */
		void StartFinderL();
		
		/**
		 * This method stops the video view finder display.
		 * @return void 
		 */
		void StopFinder();

		/**
		 * This methog gets the current video file name in the list box.
		 * @param aFileName, output to hold the selected video file name
		 * @return void 
		 */
		void UpdateFileListL();
		
		/**
		 * This method returns CVideoViewFinder.
		 * @return CVideoViewFinder 
		 */
		CVideoViewFinder* Finder() const { return iFinder; }

    public: // Functions from base classes
        /**
		 * See CCoeControl::OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType).
		 */
		TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType);

    private: // Functions from base classes
        /**
         * See CCoeControl::SizeChanged().
         */
        void SizeChanged();

        /**
         * See CCoeControl::CountComponentControls() const.
         */
        TInt CountComponentControls() const;

        /**
         * See CCoeControl::ComponentControl(TInt aIndex) const.
         */
        CCoeControl* ComponentControl(TInt aIndex) const;

        /**
         * See CCoeControl::Draw(const TRect& aRect) const.
         */
        void Draw(const TRect& aRect) const;

		/**
		 * See MCoeControlObserver::HandleControlEventL(CCoeControl* aControl,TCoeEvent aEventType).
		 */
        void HandleControlEventL(CCoeControl* aControl,TCoeEvent aEventType);

	private:
		/**
		 * This methog sets the file list.
		 * @param aDirectory, directory code
		 * @param aSizeDate, size/date code
		 * @return void 
		 */
		void SetFileListL(TInt aDirectory, TInt aSizeDate);

    private: //Data	
        TRect iVideoRect;
        CAknDoubleNumberStyleListBox* iListBox;
		CFileListEngine* iFileListEngine;
		CVideoViewFinder* iFinder;
    };

// INLINED FUNCTIONS!

/*
-----------------------------------------------------------------------------

    inline RWindow& CVRexView::ClientWindow()

	Description: This method returns client window handle.
	Comments   :

    Return values: Client window handle

-----------------------------------------------------------------------------
*/	
    inline RWindow& CVRexView::ClientWindow()
        {
        return Window();
        }

/*
-----------------------------------------------------------------------------

    inline TRect CVRexView::VideoRect() const

	Description: This method returns video area.
	Comments   :

    Return values: Video area

-----------------------------------------------------------------------------
*/  	
    inline TRect CVRexView::VideoRect() const
        {
        return iVideoRect;
        }

/*
-----------------------------------------------------------------------------

    inline RWsSession& CVRexView::ClientWsSession()

	Description: This method returns client WsSession.
	Comments   :

    Return values: WsSession

-----------------------------------------------------------------------------
*/  	  	
    inline RWsSession& CVRexView::ClientWsSession()
        {
        return ControlEnv()->WsSession();
        }

/*
-----------------------------------------------------------------------------

    inline CWsScreenDevice& CVRexView::ScreenDevice()

	Description: This method returns client ScreenDevice.
	Comments   :

    Return values: ScreenDevice

-----------------------------------------------------------------------------
*/  	
    inline CWsScreenDevice& CVRexView::ScreenDevice()
        {
        return *(ControlEnv()->ScreenDevice());
        }

#endif

// End of File

⌨️ 快捷键说明

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