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

📄 bluetoothinfo.h

📁 symbian的线程和活动对象源码
💻 H
字号:
/*
* ============================================================================
*  Name     : TBluetoothInfo from Bluetoothinfo.h
*  Part of  : ThreadAO
*  Created  : 12.1.2005 by Forum Nokia
*  Description:
*     Represents Bluetooth device's data.  
*  Version  : 1.0
*  Copyright: Nokia Corporation
* ============================================================================
*/

#ifndef __BLUETOOTH_INFO_H__
#define __BLUETOOTH_INFO_H__

#include <e32base.h>
#include "btdiscoverer.h"

// CLASS DECLARATION

 /*!
 *  TBluetoothInfo represents Bluetooth device's data. 
 * 
 */
class TBluetoothInfo
	{
public:

 /*!
 * TBluetoothInfo()
 *
 * discussion Destructor.
 * param aName is the name of a bluetooth device.
 * param aAddress is the address of a bluetooth device.
 *
 */
	TBluetoothInfo(TDes& aName, TDes& aAddress);

/*!
 * GetDeviceName()
 *
 * discussion Gets name of bluetooth device.
 * param aName is a reference which the name of a bluetooth device
 * is copied
 * 
 */
	void GetDeviceName(TDes& aName);

/*!
 * 	void GetAddressHex()
 *
 * discussion Gets address of bluetooth device.
 * param aAddress is the reference which  the address of a bluetooth device
 * is copied.
 * 
 */
	void GetAddressHex(TDes& aAddress);

/*!
 * SetDeviceName()
 *
 * discussion Sets the name of a bluetooth device
 * param aName is the name of a bluetooth device
 * 
 */
	void SetDeviceName(TDes& aName);

/*!
 * SetAddressHex()
 *
 * discussion Sets the address of a bluetooth device.
 * param aAddress is the address of a device 
 * 
 */
	void SetAddressHex(TDes& aAddress);

private: // member data
	
    // the name of a bluetooth device
	TBuf <KBTDeviceLength> iDeviceName;
    // the address of a bluetooth device
	TBuf <KBTDeviceAddress> iHexAddress;
	};

#endif // __BLUETOOTH_INFO_H__

⌨️ 快捷键说明

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