-
-
Notifications
You must be signed in to change notification settings - Fork 337
/
IconObject.h
50 lines (39 loc) · 1.06 KB
/
IconObject.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/*
* Copyright 2006, Haiku.
* Distributed under the terms of the MIT License.
*
* Authors:
* Stephan Aßmus <superstippi@gmx.de>
*/
#ifndef ICON_OBJECT_H
#define ICON_OBJECT_H
#include <Referenceable.h>
#include <String.h>
#include "Observable.h"
#include "Selectable.h"
class BMessage;
class PropertyObject;
class IconObject : public Observable,
public BReferenceable,
public Selectable {
public:
IconObject(const char* name);
IconObject(const IconObject& other);
IconObject(BMessage* archive);
virtual ~IconObject();
// Selectable interface
virtual void SelectedChanged();
// IconObject
virtual status_t Unarchive(const BMessage* archive);
virtual status_t Archive(BMessage* into,
bool deep = true) const;
virtual PropertyObject* MakePropertyObject() const;
virtual bool SetToPropertyObject(
const PropertyObject* object);
void SetName(const char* name);
const char* Name() const
{ return fName.String(); }
private:
BString fName;
};
#endif // ICON_OBJECT_H