#include "VBluetoothDeviceInfo.h" // Qt #include #include // Project using namespace View; /*! * \brief VBluetoothDeviceInfo::VBluetoothDeviceInfo * Constructor for the VBluetoothDeviceInfo class * \param info - the device information */ VBluetoothDeviceInfo::VBluetoothDeviceInfo(const QBluetoothDeviceInfo &info) { device = info; } /*! * \brief VBluetoothDeviceInfo::getDevice * Gets the QBluetoothDeviceInfo this class describes * \return The QBluetoothDeviceInfo object */ QBluetoothDeviceInfo VBluetoothDeviceInfo::getDevice() const { return device; } /*! * \brief VBluetoothDeviceInfo::getName * Gets the name of the device * \return QString - the name of the device */ QString VBluetoothDeviceInfo::getName() const { return device.name(); } /*! * \brief VBluetoothDeviceInfo::getAddress * Gets the bluetooth address * \return QString - the bluetooth address */ QString VBluetoothDeviceInfo::getAddress() const { return device.address().toString(); } /*! * \brief VBluetoothDeviceInfo::setDevice * Sets the QBluetoothDeviceInfo object to a new object * \param device - the new QbluetoothDeviceInfo device */ void VBluetoothDeviceInfo::setDevice(const QBluetoothDeviceInfo &device) { this->device = device; emit deviceChanged(); }