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

📄 ansphonephone.h

📁 s60 接打电话代码,很有学习价值的,可以移植到不同平台
💻 H
字号:
#ifndef __ANSPHONEPHONE_H__
#define __ANSPHONEPHONE_H__

#include <etel.h>

/**
*
* @class	RAnsPhonePhone AnsPhonePhone.h
* @brief	This class modifys the speaker volume and microphone gain of the phone
* This is necessary, because the CMdaAudioRecorderUtility does not use the TDeviceMode
* correctly, when it is set using SetAudioDeviceMode()..
*
* To set the speaker and microphone volumes, we use a Set() function from
* RTelSubSessionBase, which RPhone derives from. These are protected functions in
* RTelSubSessionBase so we must derive from RPhone in order to use them.
* The Set() functions work by passing in the appropriate id, which signifies setting
* the speaker volume or microphone gain, and a TInt (the volume/gain) packaged into a descriptor.
*
* Copyright (c) EMCC Software Ltd 2003
* @version	1.0
*
*/

class RAnsPhonePhone	:	public RPhone
	{
	public:
		RAnsPhonePhone();

	public:
		void DeviceSpeakerOff();
		void DeviceSpeakerOn();

		void DeviceMicrophoneOff();
		void DeviceMicrophoneOn();
	};

#endif

⌨️ 快捷键说明

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