📄 bluetoothinfo.cpp
字号:
/*
* ============================================================================
* Name : TBluetoothInfo from Bluetoothinfo.h
* Part of : ThreadAO
* Created : 12.1.2005 by Forum Nokia
* Version : 1.0
* Copyright: Nokia Corporation
* ============================================================================
*/
#include "BluetoothInfo.h"
// ----------------------------------------------------------------------------------------------
// TBluetoothInfo::TBluetoothInfo(TDes& aName, TDes& aAddress)
//
// Constructor.
// ----------------------------------------------------------------------------------------------
TBluetoothInfo::TBluetoothInfo(TDes& aName, TDes& aAddress)
{
iDeviceName = aName;
iHexAddress = aAddress;
}
// ----------------------------------------------------------------------------------------------
// void TBluetoothInfo::GetDeviceName(TDes& aName)
//
// Get the name of the bluetooth device.
// ----------------------------------------------------------------------------------------------
void TBluetoothInfo::GetDeviceName(TDes& aName)
{
aName.Copy(iDeviceName);
}
// ----------------------------------------------------------------------------------------------
// void TBluetoothInfo::GetAddressHex(TDes& aAddress)
//
// Get the address of the bluetooth device.
// ----------------------------------------------------------------------------------------------
void TBluetoothInfo::GetAddressHex(TDes& aAddress)
{
aAddress.Copy(iHexAddress);
}
// ----------------------------------------------------------------------------------------------
// TBluetoothInfo::SetDeviceName(TDes& aName)
//
// Set the name of the bluetooth device.
// ----------------------------------------------------------------------------------------------
void TBluetoothInfo::SetDeviceName(TDes& aName)
{
iDeviceName = aName;
}
// ----------------------------------------------------------------------------------------------
// void TBluetoothInfo::SetAddressHex(TDes& aAddress)
//
// Set the address of the bluetooth device.
// ----------------------------------------------------------------------------------------------
void TBluetoothInfo::SetAddressHex(TDes& aAddress)
{
iHexAddress = aAddress;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -