28 #ifndef OLA_OLACLIENT_H_
29 #define OLA_OLACLIENT_H_
34 #include <ola/OlaDevice.h>
35 #include <ola/common.h>
36 #include <ola/plugin_id.h>
39 #include <olad/PortConstants.h>
46 class ConnectedDescriptor;
60 virtual void NewDmx(
unsigned int universe,
62 const string &error) {
67 virtual void Plugins(
const vector<class OlaPlugin> &plugins,
68 const string &error) {
73 virtual void PluginDescription(ola_plugin_id plugin_id,
74 const string &description,
75 const string &error) {
80 virtual void Devices(
const vector <class OlaDevice> &devices,
81 const string &error) {
85 virtual void Universes(
const vector <class OlaUniverse> &universes,
86 const string &error) {
90 virtual void DeviceConfig(
unsigned int device_alias,
92 const string &error) {
98 virtual void PatchComplete(
unsigned int device_alias,
100 PortDirection port_direction,
101 const string &error) {
104 (void) port_direction;
107 virtual void UniverseNameComplete(
unsigned int universe,
108 const string &error) {
112 virtual void UniverseMergeModeComplete(
unsigned int universe,
113 const string &error) {
117 virtual void SendDmxComplete(
unsigned int universe,
118 const string &error) {
122 virtual void SetPortPriorityComplete(
123 unsigned int device_alias,
125 PortDirection port_direction,
126 const string &error) {
129 (void) port_direction;
134 virtual void UIDList(
unsigned int universe,
136 const string &error) {
141 virtual void RDMDiscoveryComplete(
unsigned int universe,
143 const string &error) {
148 virtual void SetSourceUIDComplete(
const string &error) {
152 virtual void RegistrationComplete(
unsigned int universe,
153 const string &error) {
173 bool FetchPluginList();
174 bool FetchPluginDescription(ola_plugin_id plugin_id);
175 bool FetchDeviceInfo(ola_plugin_id filter = ola::OLA_PLUGIN_ALL);
176 bool FetchUniverseInfo();
179 bool SendDmx(
unsigned int universe,
const DmxBuffer &data);
180 bool FetchDmx(
unsigned int uni);
183 bool FetchUIDList(
unsigned int universe);
184 bool RunDiscovery(
unsigned int universe,
bool full =
true);
185 bool SetSourceUID(
const UID &uid);
188 unsigned int universe,
192 const uint8_t *data = NULL,
193 unsigned int data_length = 0);
195 unsigned int universe,
199 const uint8_t *data = NULL,
200 unsigned int data_length = 0);
202 unsigned int universe,
207 unsigned int data_length);
209 bool SetUniverseName(
unsigned int uni,
const string &name);
210 bool SetUniverseMergeMode(
unsigned int uni, OlaUniverse::merge_mode mode);
212 bool RegisterUniverse(
unsigned int universe, ola::RegisterAction action);
214 bool Patch(
unsigned int device_alias,
216 PortDirection port_direction,
217 ola::PatchAction action,
220 bool SetPortPriorityInherit(
unsigned int device_alias,
222 PortDirection port_direction);
223 bool SetPortPriorityOverride(
unsigned int device_alias,
225 PortDirection port_direction,
228 bool ConfigureDevice(
unsigned int device_alias,
const string &msg);
238 #endif // OLA_OLACLIENT_H_