2 #ifndef _MIDI_ENDPOINT_H
3 #define _MIDI_ENDPOINT_H
14 namespace BPrivate
{ class BMidiRosterLooper
; }
20 const char *Name() const;
21 void SetName(const char *name
);
25 bool IsProducer() const;
26 bool IsConsumer() const;
27 bool IsRemote() const;
29 bool IsPersistent() const;
35 status_t
SetProperties(const BMessage
*properties
);
36 status_t
GetProperties(BMessage
*properties
) const;
39 status_t
Unregister();
43 friend class BMidiConsumer
;
44 friend class BMidiLocalConsumer
;
45 friend class BMidiLocalProducer
;
46 friend class BMidiProducer
;
47 friend class BMidiRoster
;
48 friend class BPrivate::BMidiRosterLooper
;
50 BMidiEndpoint(const char *name
);
51 virtual ~BMidiEndpoint();
53 virtual void _Reserved1();
54 virtual void _Reserved2();
55 virtual void _Reserved3();
56 virtual void _Reserved4();
57 virtual void _Reserved5();
58 virtual void _Reserved6();
59 virtual void _Reserved7();
60 virtual void _Reserved8();
62 status_t
SendRegisterRequest(bool);
63 status_t
SendChangeRequest(BMessage
*);
65 bool IsRegistered() const;
66 bool LockLooper() const;
67 void UnlockLooper() const;
72 BMessage
*fProperties
;
81 #endif // _MIDI_ENDPOINT_H