21 #ifndef PLUGINS_STAGEPROFI_STAGEPROFIWIDGET_H_
22 #define PLUGINS_STAGEPROFI_STAGEPROFIWIDGET_H_
29 #include "ola/io/SelectServerInterface.h"
33 namespace stageprofi {
50 const std::string &widget_path,
51 DisconnectCallback *disconnect_cb);
62 std::string
GetPath()
const {
return m_widget_path; }
67 enum { DMX_MSG_LEN = 255 };
68 enum { DMX_HEADER_SIZE = 4};
71 std::auto_ptr<ola::io::ConnectedDescriptor> m_descriptor;
72 const std::string m_widget_path;
73 DisconnectCallback *m_disconnect_cb;
78 void DiscoveryTimeout();
79 bool Send255(uint16_t start,
const uint8_t *buf,
unsigned int len)
const;
80 void SendQueryPacket();
81 void RunDisconnectHandler();
86 #endif // PLUGINS_STAGEPROFI_STAGEPROFIWIDGET_H_
A 0 arg, single use callback that returns void.
Definition: Callback.h:157
A BidirectionalFileDescriptor that also generates notifications when closed.
Definition: Descriptor.h:282
Used to hold a single universe of DMX data.
Definition: DmxBuffer.h:49
void * timeout_id
A timeout handle which can later be used to cancel a timeout.
Definition: SchedulerInterface.h:34
A class used to hold a single universe of DMX data.
The interface for the SelectServer.
Definition: SelectServerInterface.h:42
The namespace containing all OLA symbols.
Definition: Credentials.cpp:44