00001 /* 00002 * Copyright © 2008 Nokia Corporation. 00003 */ 00004 00005 #include "BluetoothInfo.h" 00006 00007 // ---------------------------------------------------------------------------- 00008 // TBluetoothInfo::TBluetoothInfo(TDes& aName, TDes& aAddress) 00009 // 00010 // Constructor. 00011 // ---------------------------------------------------------------------------- 00012 00013 TBluetoothInfo::TBluetoothInfo(TDes& aName, TDes& aAddress) 00014 { 00015 iDeviceName = aName; 00016 iHexAddress = aAddress; 00017 } 00018 00019 // ---------------------------------------------------------------------------- 00020 // void TBluetoothInfo::GetDeviceName(TDes& aName) 00021 // 00022 // Get the name of the bluetooth device. 00023 // ---------------------------------------------------------------------------- 00024 00025 void TBluetoothInfo::GetDeviceName(TDes& aName) 00026 { 00027 aName.Copy(iDeviceName); 00028 } 00029 // ---------------------------------------------------------------------------- 00030 // void TBluetoothInfo::GetAddressHex(TDes& aAddress) 00031 // 00032 // Get the address of the bluetooth device. 00033 // ---------------------------------------------------------------------------- 00034 00035 void TBluetoothInfo::GetAddressHex(TDes& aAddress) 00036 { 00037 aAddress.Copy(iHexAddress); 00038 } 00039 00040 // ---------------------------------------------------------------------------- 00041 // TBluetoothInfo::SetDeviceName(TDes& aName) 00042 // 00043 // Set the name of the bluetooth device. 00044 // ---------------------------------------------------------------------------- 00045 00046 void TBluetoothInfo::SetDeviceName(TDes& aName) 00047 { 00048 iDeviceName = aName; 00049 } 00050 // ---------------------------------------------------------------------------- 00051 // void TBluetoothInfo::SetAddressHex(TDes& aAddress) 00052 // 00053 // Set the address of the bluetooth device. 00054 // ---------------------------------------------------------------------------- 00055 00056 void TBluetoothInfo::SetAddressHex(TDes& aAddress) 00057 { 00058 iHexAddress = aAddress; 00059 }