raDIYo 0.4
swabstractillumination.cpp
1/***************************************************************************
2
3 source::worx raDIYo
4 Copyright © 2020-2022 c.holzheuer
5 c.holzheuer@sourceworx.org
6
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
11
12***************************************************************************/
13
14
15#include <swabstractillumination.h>
16
17SWAbstractIllumination::SWAbstractIllumination(QObject *parent)
18 : QObject{parent}
19{
20
21}
22
23SWAbstractIllumination::~SWAbstractIllumination()
24{
25
26}
27
28void SWAbstractIllumination::toggleIllumination()
29{
30 setIllumation( !isIlluminated() );
31}
32
33bool SWAbstractIllumination::isIlluminated()
34{
35 return _illuminated;
36
37}
38
39void SWAbstractIllumination::setIllumation( bool illuminated )
40{
41 _illuminated = illuminated;
42}
43