Instrument Neutral Distributed Interface INDI
2.2.5
libs
indidevice
property
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
22
namespace
INDI
23
{
24
25
PropertyLightPrivate::PropertyLightPrivate
(
size_t
count)
26
:
PropertyBasicPrivateTemplate
<
ILight
>(count)
27
{ }
28
29
PropertyLightPrivate::~PropertyLightPrivate
()
30
{ }
31
32
PropertyLight::PropertyLight
(
size_t
count)
33
:
PropertyBasic
<
ILight
>(*new
PropertyLightPrivate
(count))
34
{ }
35
36
PropertyLight::PropertyLight
(
INDI::Property
property)
37
:
PropertyBasic
<
ILight
>(property_private_cast<
PropertyLightPrivate
>(property.d_ptr))
38
{ }
39
40
PropertyLight::~PropertyLight
()
41
{ }
42
43
void
PropertyLight::fill
(
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
}
device
hid_device * device
Definition
activefocuser_utils.cpp:102
INDI::PropertyBasicPrivateTemplate
Definition
indipropertybasic_p.h:43
INDI::PropertyBasic
Definition
indipropertybasic.h:39
INDI::PropertyLightPrivate
Definition
indipropertylight_p.h:28
INDI::PropertyLightPrivate::~PropertyLightPrivate
virtual ~PropertyLightPrivate()
Definition
indipropertylight.cpp:29
INDI::PropertyLightPrivate::PropertyLightPrivate
PropertyLightPrivate(size_t count)
Definition
indipropertylight.cpp:25
INDI::PropertyLight
Definition
indipropertylight.h:28
INDI::PropertyLight::~PropertyLight
~PropertyLight()
Definition
indipropertylight.cpp:40
INDI::PropertyLight::fill
void fill(const char *device, const char *name, const char *label, const char *group, IPState state)
Definition
indipropertylight.cpp:43
INDI::Property
Provides generic container for INDI properties.
Definition
indiproperty.h:48
INDI::Property::PropertyLight
friend class PropertyLight
Definition
indiproperty.h:237
IPState
IPState
Property state.
Definition
indiapi.h:158
indipropertylight.h
indipropertylight_p.h
INDI
Namespace to encapsulate INDI client, drivers, and mediator classes.
Definition
AlignmentSubsystemForClients.cpp:12
ILight
One light descriptor.
Generated on Thu Oct 22 2026 09:22:01 for Instrument Neutral Distributed Interface INDI by
1.9.8