- 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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user