xref: /haiku/src/kits/media/Controllable.cpp (revision e20a514ae90bd65d06ff19517a1220b3f92760ee)
1 /***********************************************************************
2  * AUTHOR: Marcus Overhagen
3  *   FILE: Controllable.cpp
4  *  DESCR:
5  ***********************************************************************/
6 #include <Controllable.h>
7 #include "debug.h"
8 #include "NotificationManager.h"
9 
10 /*************************************************************
11  * protected BControllable
12  *************************************************************/
13 
14 BControllable::~BControllable()
15 {
16 	UNIMPLEMENTED();
17 }
18 
19 /*************************************************************
20  * public BControllable
21  *************************************************************/
22 
23 BParameterWeb *
24 BControllable::Web()
25 {
26 	UNIMPLEMENTED();
27 	return NULL;
28 }
29 
30 
31 bool
32 BControllable::LockParameterWeb()
33 {
34 	UNIMPLEMENTED();
35 
36 	return false;
37 }
38 
39 /*************************************************************
40  * protected BControllable
41  *************************************************************/
42 
43 void
44 BControllable::UnlockParameterWeb()
45 {
46 	UNIMPLEMENTED();
47 }
48 
49 
50 BControllable::BControllable()
51 	: BMediaNode("XXX fixme")
52 {
53 	UNIMPLEMENTED();
54 
55 	AddNodeKind(B_CONTROLLABLE);
56 }
57 
58 
59 status_t
60 BControllable::SetParameterWeb(BParameterWeb *web)
61 {
62 	UNIMPLEMENTED();
63 
64 	return B_ERROR;
65 }
66 
67 
68 status_t
69 BControllable::HandleMessage(int32 message,
70 							 const void *data,
71 							 size_t size)
72 {
73 	UNIMPLEMENTED();
74 
75 	return B_ERROR;
76 }
77 
78 
79 status_t
80 BControllable::BroadcastChangedParameter(int32 id)
81 {
82 	CALLED();
83 	return _NotificationManager->ParameterChanged(Node(), id);
84 }
85 
86 
87 status_t
88 BControllable::BroadcastNewParameterValue(bigtime_t when,
89 										  int32 id,
90 										  void *newValue,
91 										  size_t valueSize)
92 {
93 	CALLED();
94 	return _NotificationManager->NewParameterValue(Node(), id, when, newValue, valueSize);
95 }
96 
97 
98 status_t
99 BControllable::StartControlPanel(BMessenger *out_messenger)
100 {
101 	UNIMPLEMENTED();
102 
103 	return B_ERROR;
104 }
105 
106 
107 status_t
108 BControllable::ApplyParameterData(const void *value,
109 								  size_t size)
110 {
111 	UNIMPLEMENTED();
112 
113 	return B_ERROR;
114 }
115 
116 
117 status_t
118 BControllable::MakeParameterData(const int32 *controls,
119 								 int32 count,
120 								 void *buf,
121 								 size_t *ioSize)
122 {
123 	UNIMPLEMENTED();
124 
125 	return B_ERROR;
126 }
127 
128 /*************************************************************
129  * private BControllable
130  *************************************************************/
131 
132 /*
133 private unimplemented
134 BControllable::BControllable(const BControllable &clone)
135 BControllable & BControllable::operator=(const BControllable &clone)
136 */
137 
138 status_t BControllable::_Reserved_Controllable_0(void *) { return B_ERROR; }
139 status_t BControllable::_Reserved_Controllable_1(void *) { return B_ERROR; }
140 status_t BControllable::_Reserved_Controllable_2(void *) { return B_ERROR; }
141 status_t BControllable::_Reserved_Controllable_3(void *) { return B_ERROR; }
142 status_t BControllable::_Reserved_Controllable_4(void *) { return B_ERROR; }
143 status_t BControllable::_Reserved_Controllable_5(void *) { return B_ERROR; }
144 status_t BControllable::_Reserved_Controllable_6(void *) { return B_ERROR; }
145 status_t BControllable::_Reserved_Controllable_7(void *) { return B_ERROR; }
146 status_t BControllable::_Reserved_Controllable_8(void *) { return B_ERROR; }
147 status_t BControllable::_Reserved_Controllable_9(void *) { return B_ERROR; }
148 status_t BControllable::_Reserved_Controllable_10(void *) { return B_ERROR; }
149 status_t BControllable::_Reserved_Controllable_11(void *) { return B_ERROR; }
150 status_t BControllable::_Reserved_Controllable_12(void *) { return B_ERROR; }
151 status_t BControllable::_Reserved_Controllable_13(void *) { return B_ERROR; }
152 status_t BControllable::_Reserved_Controllable_14(void *) { return B_ERROR; }
153 status_t BControllable::_Reserved_Controllable_15(void *) { return B_ERROR; }
154 
155 
156