?? 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 + -