Index: sources/view/VBluetoothDeviceInfo.cpp =================================================================== diff -u -r5220c64dd3a0fc9c322a68884e73503bb7893d12 -r2fde0cfeb28b3fab9437e9bd15c1ec775785f103 --- sources/view/VBluetoothDeviceInfo.cpp (.../VBluetoothDeviceInfo.cpp) (revision 5220c64dd3a0fc9c322a68884e73503bb7893d12) +++ sources/view/VBluetoothDeviceInfo.cpp (.../VBluetoothDeviceInfo.cpp) (revision 2fde0cfeb28b3fab9437e9bd15c1ec775785f103) @@ -69,3 +69,19 @@ { return _connected; } + +/*! + * \brief VBluetoothDeviceInfo::isValid + * Checks whether the VBluetoothDeviceInfo object is valid or not. + * \return true if valid, false otherwise + */ +bool VBluetoothDeviceInfo::isValid() const +{ + if (_address.length() != 17) + return false; + + if (_name.length() == 0) + return false; + + return true; +}