Fix coding style and add more classes
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22667 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -12,36 +12,49 @@
|
||||
|
||||
namespace Bluetooth {
|
||||
|
||||
class DeviceClass {
|
||||
|
||||
public:
|
||||
DeviceClass(int record) {
|
||||
this->record = record;
|
||||
}
|
||||
|
||||
int getServiceClasses() {
|
||||
return (record & 0x00FFE000) >> 13;
|
||||
}
|
||||
|
||||
int getMajorDeviceClass() {
|
||||
return (record & 0x00001F00) >> 8;
|
||||
}
|
||||
class DeviceClass {
|
||||
|
||||
void getMajorDeviceClass(BString* str) {
|
||||
public:
|
||||
|
||||
}
|
||||
|
||||
int getMinorDeviceClass() {
|
||||
return (record & 0x000000FF) >> 2;
|
||||
}
|
||||
DeviceClass(int record)
|
||||
{
|
||||
this->record = record;
|
||||
}
|
||||
|
||||
void getMinorDeviceClass(BString* str) {
|
||||
|
||||
}
|
||||
|
||||
private:
|
||||
int record;
|
||||
};
|
||||
int GetServiceClasses()
|
||||
{
|
||||
return (record & 0x00FFE000) >> 13;
|
||||
}
|
||||
|
||||
|
||||
int GetMajorDeviceClass()
|
||||
{
|
||||
return (record & 0x00001F00) >> 8;
|
||||
}
|
||||
|
||||
|
||||
void GetMajorDeviceClass(BString* str)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
int GetMinorDeviceClass()
|
||||
{
|
||||
return (record & 0x000000FF) >> 2;
|
||||
}
|
||||
|
||||
|
||||
void GetMinorDeviceClass(BString* str)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private:
|
||||
int record;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user