ansphonephone.h
来自「s60 接打电话代码,很有学习价值的,可以移植到不同平台」· C头文件 代码 · 共 38 行
H
38 行
#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 + =
减小字号Ctrl + -
显示快捷键?