phoneobserver.h

来自「symbian手机通话录音程序」· C头文件 代码 · 共 122 行

H
122
字号
/*
* ============================================================================
*  Name     : CPhoneObserver from Phoneobserver.h
*  Part of  : RecorderExample
*  Created  : 20.03.2005 by Forum Nokia
*  Description:
*     Declares active object class to observe phone's line to activate Recorder
*     on phohe calls
*  Version  : 1.0.0
*  Copyright: Nokia Corporation
* ============================================================================
*/

#ifndef PHONEOBSERVER_H
#define PHONEOBSERVER_H

//INCLUDES
#include <etel.h>

class CRecorderView;
class RLine;
class TRequestStatus;


//CLASS DECLARATION
/**
* CPhoneObserver 
*
* discussion Class is created when calls wanted recorded automatically 
* when line is active 
*/
class CPhoneObserver: public CActive
{
	
	public:
	
		/**
		* NewL()
		*
		* discussion Create new CPhoneObserver object
		* return a pointer to the created instance of CPhoneObserver
		*/
	    static CPhoneObserver* NewL(CRecorderView* aRecView, RLine* aLine);
    
    	/**
    	* NewLC()
    	*/
    	static CPhoneObserver* NewLC(CRecorderView* aRecView, RLine* aLine);
	
	
		/**
		* ~CPhoneObserver()
		*
		* discussion Destroy the object and cancel active object
		*/
		~CPhoneObserver();
		
		/**
		* Start()
		*
		* discussion Start active object
		*/
		void Start();
		
		/**
		* Deactive()
		*
		* discussion Cancel notify request
		*/
		void Deactivate();
				
	private:
	
		/**
		* RunL()
		*
		* discussion From CActive. Called when event occurs.
		*/
		void RunL(); 
		
		/**
		* RunError()
		*
		* discussion From CActive. Called on error.
		*/
		TInt RunError(TInt aError); 
		
		/**
		* DoCancel()
		*
		* discussion From CActive. Cancel request to 
		*/
		void DoCancel(); 	
		
		/**
		* ConstructL()
		*/
		void ConstructL(CRecorderView* aRecView, RLine* aLine);
		
		/**
		* CPhoneObserver()
		*
		* discussion Perform the first phase of two phase construction
		*/
		CPhoneObserver();
	
	private: //data
	
		RCall::TStatus iLineStatus;
		
		// starting and stopping recording
		CRecorderView* iRecView;
		
		//phone's line to observe
		RLine* iLine;
	
};


#endif

//End of File

⌨️ 快捷键说明

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