libroot/posix/stdio: Remove unused portions.
[haiku.git] / src / apps / patchbay / EndpointInfo.h
blob49a52d841b403220852cbeb9a9d6bb79aba85f0b
1 /* EndpointInfo.h
2 * --------------
3 * A simple structure that describes a MIDI object.
4 * Currently, it only contains icon data associated with the object.
6 * Copyright 2013, Haiku, Inc. All rights reserved.
7 * Distributed under the terms of the MIT License.
9 * Revisions by Pete Goodeve
11 * Copyright 1999, Be Incorporated. All Rights Reserved.
12 * This file may be used under the terms of the Be Sample Code License.
14 #ifndef ENDPOINTINFO_H
15 #define ENDPOINTINFO_H
17 #include <Mime.h> /* for icon_size */
18 #include <GraphicsDefs.h> /* for color_space */
20 class BMidiEndpoint;
22 extern const uint8 LARGE_ICON_SIZE;
23 extern const uint8 MINI_ICON_SIZE;
24 extern const icon_size DISPLAY_ICON_SIZE;
25 extern const color_space ICON_COLOR_SPACE;
27 class EndpointInfo
29 public:
30 EndpointInfo();
31 EndpointInfo(int32 id);
32 EndpointInfo(const EndpointInfo& info);
33 EndpointInfo& operator=(const EndpointInfo& info);
34 ~EndpointInfo();
36 int32 ID() const
38 return fId;
40 const BBitmap* Icon() const
42 return fIcon;
44 void UpdateProperties(const BMessage* props);
46 private:
47 int32 fId;
48 BBitmap* fIcon;
51 #endif /* ENDPOINTINFO_H */