- Add method in DeviceClass to draw something representative for the kind of device

- Adopt it in Preferences
(Joerg Meyer & me)



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30405 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Oliver Ruiz Dorantes
2009-04-25 18:40:00 +00:00
parent 57e7daa5a4
commit 155fa31ec6
5 changed files with 136 additions and 76 deletions
+7
View File
@@ -6,6 +6,7 @@
#define _DEVICE_CLASS_H
#include <String.h>
#include <View.h>
namespace Bluetooth {
@@ -15,6 +16,10 @@ namespace Bluetooth {
class DeviceClass {
public:
static const uint8 PixelsForIcon = 32;
static const uint8 IconInsets = 5;
DeviceClass(uint8 record[3])
{
SetRecord(record);
@@ -67,6 +72,8 @@ public:
void GetMinorDeviceClass(BString&);
void DumpDeviceClass(BString&);
void Draw(BView* view, const BPoint& point);
private:
uint32 record;