21 #ifndef PLUGINS_MILINST_MILINSTWIDGET_H_
22 #define PLUGINS_MILINST_MILINSTWIDGET_H_
28 #include "ola/io/SelectServer.h"
37 static int ConnectToWidget(
const std::string &path, speed_t speed = B9600);
47 virtual bool Connect() = 0;
50 std::string GetPath() {
return m_path; }
51 virtual std::string Type() = 0;
53 std::string Description() {
54 std::ostringstream str;
55 str << GetPath() <<
", " << Type();
59 virtual bool SendDmx(
const DmxBuffer &buffer)
const = 0;
60 virtual bool DetectDevice() = 0;
63 virtual int SetChannel(
unsigned int chan, uint8_t val)
const = 0;
67 const std::string m_path;
73 #endif // PLUGINS_MILINST_MILINSTWIDGET_H_
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
A class used to hold a single universe of DMX data.
The namespace containing all OLA symbols.
Definition: Credentials.cpp:44