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

📄 recorderview.h

📁 play stream media file. OS: symbian s60
💻 H
字号:
/*
* ============================================================================
*  Name     : CRecorderView from Recorderview.h
*  Part of  : RecorderExample
*  Created  : 20.03.2005 by Forum Nokia
*  Description: An instance of the Application View object for the Recorder 
*  example application
*  Version  : 1.0.0
*  Copyright: Nokia Corporation
* ============================================================================
*/

#ifndef RECORDERVIEW_H
#define RECORDERVIEW_H

// INCLUDES
#include <aknview.h>

#include "Timermodel.h"
#include <etel.h>

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

// FORWARD DECLARATIONS
class CRecorderContainer;
class CScreenUpdateTimer;

class CRecorderAdapter; //audio class

class CPhoneObserver;

class RLine;

struct TTimerModel;

// CLASS DECLARATION

class CRecorderView : public CAknView
    {
    public : // Constructors and destructor

        /**
        * CRecorderView()
        *
        * @discussion C++ default constructor
        */
        CRecorderView();

        /**
        * ConstructL()
        *
        * @discussion EPOC Default constructor
        */
        void ConstructL();

        /**
        * ~CRecorderView()
        *
        * @discussion Destructor
        */
        virtual ~CRecorderView();

    public: // From CAknView

        /**
        * Id()
        *
        * @discussion From CAknView, Id.
        * @return The ID of view.
        */        
        TUid Id() const;

        /**
        * HandleCommandL()  
        *
        * @discussion From CAknView, Handles the commands.
        * @param aCommand Command to be handled.
        */
        void HandleCommandL( TInt aCommand );

        /**
        * HandleClientRectCgange()
        *
        * @discussion From CAknView, Handles the clientrect.
        */
        void HandleClientRectChange();

	private: // From CAknView

        /**
        * DoActivateL()
        *
        * @discussion From CAknView, Creates the Container class object.
        * @param aPrevViewId Spcified TVwsViewId.
        * @param aCustomMessageId Spcified TUid.
        * @param aCustomMessage Spcified TDesC8.
        */
        void DoActivateL( const TVwsViewId& aPrevViewId, TUid aCustomMessageId,
            const TDesC8& aCustomMessage );

        /**
        * DoDeactivate()
        *
        * @discussion From CAknView, Deletes the Container class object.
        */
        void DoDeactivate();
        
    public:
	    /**
	    * SetText()
	    *
		* @discussion Sets text in errormessage label
		*/        
        void SetText(TDesC& aText);

    private: // New Functions
    	/*
    	* ConstructTimerModel()
    	*
    	* @discussion Sets timer parameters
    	*/
        void ConstructTimerModel();
        
        /*
        * ConstructTimerL()
        *
        * @discussion Starts timer to update progressbar and time label
        */
        void ConstructTimerL();
        
        /*
        * RegisterLine()
        *
        * @discussion Connect server, phone and line.
        */
        void RegisterLineL();
        
        /*
        * UnregisterLine()
        *
        * @discussion Close server, phone and line.
        */
        void UnRegisterLine();

    private: // Data
     	//Ptr to Container
        CRecorderContainer* iContainer;
        
        // Timer Model
        TTimerModel iTimerModel;
        
        // Ptr to Timer
        CScreenUpdateTimer* iTimer; 
        
        //the audio recorder adapter.
   		CRecorderAdapter* iRecorderAdapter;
   		
   		//Active object to start record
   		CPhoneObserver* iPhoneObserver;
   		
   		//Variables to listen phone's line
   		RPhone iPhone;
		RLine iLine;
		RTelServer iServer;

    };

#endif 

// End of File

⌨️ 快捷键说明

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