Instrument Neutral Distributed Interface INDI 2.2.5
indipropertylight.cpp
Go to the documentation of this file.
1/*
2 Copyright (C) 2021 by Pawel Soja <[email protected]>
3
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2.1 of the License, or (at your option) any later version.
8
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Lesser General Public License for more details.
13
14 You should have received a copy of the GNU Lesser General Public
15 License along with this library; if not, write to the Free Software
16 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17*/
18
19#include "indipropertylight.h"
20#include "indipropertylight_p.h"
21
22namespace INDI
23{
24
28
31
35
37 : PropertyBasic<ILight>(property_private_cast<PropertyLightPrivate>(property.d_ptr))
38{ }
39
42
44 const char *device, const char *name, const char *label, const char *group,
45 IPState state
46)
47{
48 D_PTR(PropertyLight);
49 d->typedProperty.setWidgets(d->widgets.data(), d->widgets.size());
50 d->typedProperty.fill(device, name, label, group, state);
51}
52
53}
hid_device * device
void fill(const char *device, const char *name, const char *label, const char *group, IPState state)
Provides generic container for INDI properties.
friend class PropertyLight
IPState
Property state.
Definition indiapi.h:158
Namespace to encapsulate INDI client, drivers, and mediator classes.
One light descriptor.