Open Lighting Architecture
0.9.5
Main Page
Modules
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
plugins
usbdmx
AnymauDMXFactory.h
1
/*
2
* This program is free software; you can redistribute it and/or modify
3
* it under the terms of the GNU General Public License as published by
4
* the Free Software Foundation; either version 2 of the License, or
5
* (at your option) any later version.
6
*
7
* This program is distributed in the hope that it will be useful,
8
* but WITHOUT ANY WARRANTY; without even the implied warranty of
9
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
* GNU Library General Public License for more details.
11
*
12
* You should have received a copy of the GNU General Public License
13
* along with this program; if not, write to the Free Software
14
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
15
*
16
* AnymauDMXFactory.h
17
* The factory for Anyma uDMX widgets.
18
* Copyright (C) 2014 Simon Newton
19
*/
20
21
#ifndef PLUGINS_USBDMX_ANYMAUDMXFACTORY_H_
22
#define PLUGINS_USBDMX_ANYMAUDMXFACTORY_H_
23
24
#include "
ola/base/Macro.h
"
25
#include "plugins/usbdmx/WidgetFactory.h"
26
27
namespace
ola {
28
namespace
plugin {
29
namespace
usbdmx {
30
34
class
AnymauDMXFactory
:
public
BaseWidgetFactory
<class AnymauDMX> {
35
public
:
36
explicit
AnymauDMXFactory
(
class
LibUsbAdaptor
*adaptor)
37
: m_missing_serial_number(
false
),
38
m_adaptor(adaptor) {
39
}
40
41
bool
DeviceAdded
(
42
WidgetObserver
*observer,
43
libusb_device *usb_device,
44
const
struct
libusb_device_descriptor &descriptor);
45
46
private
:
47
bool
m_missing_serial_number;
48
class
LibUsbAdaptor
*m_adaptor;
49
50
static
const
char
EXPECTED_MANUFACTURER[];
51
static
const
char
EXPECTED_PRODUCT[];
52
static
const
uint16_t PRODUCT_ID;
53
static
const
uint16_t VENDOR_ID;
54
55
DISALLOW_COPY_AND_ASSIGN
(
AnymauDMXFactory
);
56
};
57
}
// namespace usbdmx
58
}
// namespace plugin
59
}
// namespace ola
60
#endif // PLUGINS_USBDMX_ANYMAUDMXFACTORY_H_
Generated on Sun Mar 1 2015 13:02:41 for Open Lighting Architecture by
1.8.1.2