diff --git a/headers/os/bluetooth/DeviceClass.h b/headers/os/bluetooth/DeviceClass.h index 5dd2c8256e..ce89278d4a 100644 --- a/headers/os/bluetooth/DeviceClass.h +++ b/headers/os/bluetooth/DeviceClass.h @@ -65,7 +65,9 @@ public: void GetServiceClass(BString&); void GetMajorDeviceClass(BString&); void GetMinorDeviceClass(BString&); - + + void DumpDeviceClass(BString&); + private: uint32 record; diff --git a/src/kits/bluetooth/DeviceClass.cpp b/src/kits/bluetooth/DeviceClass.cpp index 2f07e2a7ac..408880e561 100644 --- a/src/kits/bluetooth/DeviceClass.cpp +++ b/src/kits/bluetooth/DeviceClass.cpp @@ -314,8 +314,20 @@ DeviceClass::GetMinorDeviceClass(BString& minorClass) minorClass << "Unknown (reserved) minor device class"; break; } +} +void +DeviceClass::DumpDeviceClass(BString& string) +{ + + GetServiceClass(string); + string << " | "; + GetMajorDeviceClass(string); + string << " | "; + GetMinorDeviceClass(string); + string << "."; + } }