Kstars

indilightbox.h
1/*
2 SPDX-FileCopyrightText: 2015 Jasem Mutlaq <mutlaqja@ikarustech.com>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8
9#include "indidustcap.h"
10#include "indistd.h"
11
12namespace ISD
13{
14/**
15 * @class LightBox
16 * Handles operation of a remotely controlled light box.
17 *
18 * @author Jasem Mutlaq
19 */
21{
23
24 public:
26
27 Q_SCRIPTABLE virtual bool isLightOn();
28
29public slots:
30 /**
31 * @brief SetBrightness Set light box brightness levels if dimmable.
32 * @param val Value of brightness level.
33 * @return True if operation is successful, false otherwise.
34 */
35 Q_SCRIPTABLE bool setBrightness(uint16_t val);
36
37 /**
38 * @brief SetLightEnabled Turn on/off light
39 * @param enable true to turn on, false to turn off
40 * @return True if operation is successful, false otherwise.
41 */
42 Q_SCRIPTABLE bool setLightEnabled(bool enable);
43};
44}
The ConcreteDevice class.
GenericDevice is the Generic Device for INDI devices.
Definition indistd.h:117
Handles operation of a remotely controlled light box.
Q_SCRIPTABLE bool setLightEnabled(bool enable)
SetLightEnabled Turn on/off light.
Q_SCRIPTABLE bool setBrightness(uint16_t val)
SetBrightness Set light box brightness levels if dimmable.
ISD is a collection of INDI Standard Devices.
Q_OBJECTQ_OBJECT
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:04:46 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.