A bit more styling on main headers

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26743 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Oliver Ruiz Dorantes
2008-08-02 21:15:02 +00:00
parent 7cc9a52df8
commit 001662ae04
18 changed files with 293 additions and 352 deletions
+31 -34
View File
@@ -1,10 +1,7 @@
/*
* Copyright 2007 Oliver Ruiz Dorantes, oliver.ruiz.dorantes_at_gmail.com
*
* All rights reserved. Distributed under the terms of the MIT License.
*
*/
#ifndef _DEVICE_CLASS_H
#define _DEVICE_CLASS_H
@@ -14,50 +11,50 @@ namespace Bluetooth {
class DeviceClass {
public:
public:
DeviceClass(int record)
{
this->record = record;
}
DeviceClass(int record)
{
this->record = record;
}
DeviceClass()
{
this->record = 0;
}
DeviceClass()
{
this->record = 0;
}
int GetServiceClasses()
{
return (record & 0x00FFE000) >> 13;
}
int GetServiceClasses()
{
return (record & 0x00FFE000) >> 13;
}
int GetMajorDeviceClass()
{
return (record & 0x00001F00) >> 8;
}
int GetMajorDeviceClass()
{
return (record & 0x00001F00) >> 8;
}
void GetMajorDeviceClass(BString* str)
{
void GetMajorDeviceClass(BString* str)
{
}
}
int GetMinorDeviceClass()
{
return (record & 0x000000FF) >> 2;
}
int GetMinorDeviceClass()
{
return (record & 0x000000FF) >> 2;
}
void GetMinorDeviceClass(BString* str)
{
void GetMinorDeviceClass(BString* str)
{
}
private:
int record;
}
private:
int record;
};
}
@@ -66,4 +63,4 @@ class DeviceClass {
using Bluetooth::DeviceClass;
#endif
#endif
#endif // _DEVICE_CLASS_H