• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mcallegari / qlcplus / 7307414152

23 Dec 2023 09:18AM UTC coverage: 32.067%. Remained the same
7307414152

push

github

web-flow
Merge pull request #1493 from yestalgia/readme

Update Readme

15169 of 47304 relevant lines covered (32.07%)

23733.74 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/engine/src/dmxdumpfactoryproperties.cpp
1
/*
2
  Q Light Controller Plus
3
  dmxdumpfactoryproperties.cpp
4

5
  Copyright (c) Massimo Callegari
6

7
  Licensed under the Apache License, Version 2.0 (the "License");
8
  you may not use this file except in compliance with the License.
9
  You may obtain a copy of the License at
10

11
      http://www.apache.org/licenses/LICENSE-2.0.txt
12

13
  Unless required by applicable law or agreed to in writing, software
14
  distributed under the License is distributed on an "AS IS" BASIS,
15
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
  See the License for the specific language governing permissions and
17
  limitations under the License.
18
*/
19

20
#include "dmxdumpfactoryproperties.h"
21

22
DmxDumpFactoryProperties::DmxDumpFactoryProperties(int universes)
×
23
    : m_dumpAllChannels(true)
24
    , m_dumpNonZeroValues(false)
25
    , m_selectedTarget(Chaser)
×
26
{
27
    m_channelsMask = QByteArray(universes * 512, 0);
×
28
}
×
29

30
bool DmxDumpFactoryProperties::dumpChannelsMode()
×
31
{
32
    return m_dumpAllChannels;
×
33
}
34

35
void DmxDumpFactoryProperties::setDumpChannelsMode(bool mode)
×
36
{
37
    m_dumpAllChannels = mode;
×
38
}
×
39

40
bool DmxDumpFactoryProperties::nonZeroValuesMode()
×
41
{
42
    return m_dumpNonZeroValues;
×
43
}
44

45
void DmxDumpFactoryProperties::setNonZeroValuesMode(bool mode)
×
46
{
47
    m_dumpNonZeroValues = mode;
×
48
}
×
49

50
QByteArray DmxDumpFactoryProperties::channelsMask()
×
51
{
52
    return m_channelsMask;
×
53
}
54

55
void DmxDumpFactoryProperties::setChannelsMask(QByteArray mask)
×
56
{
57
    if (mask.isEmpty() == false)
×
58
        m_channelsMask.replace(0, mask.length(), mask);
×
59
}
×
60

61
/************************************************************************
62
 * Dump target
63
 ***********************************************************************/
64

65
void DmxDumpFactoryProperties::addChaserID(quint32 id)
×
66
{
67
    if (m_selectedChaserIDs.contains(id) == false)
×
68
        m_selectedChaserIDs.append(id);
×
69
}
×
70

71
void DmxDumpFactoryProperties::removeChaserID(quint32 id)
×
72
{
73
    if (m_selectedChaserIDs.contains(id) == true)
×
74
        m_selectedChaserIDs.removeAll(id);
×
75
}
×
76

77
bool DmxDumpFactoryProperties::isChaserSelected(quint32 id)
×
78
{
79
    return m_selectedChaserIDs.contains(id);
×
80
}
81

82
void DmxDumpFactoryProperties::setSelectedTarget(DmxDumpFactoryProperties::TargetType type)
×
83
{
84
    m_selectedTarget = type;
×
85
}
×
86

87
DmxDumpFactoryProperties::TargetType DmxDumpFactoryProperties::selectedTarget()
×
88
{
89
    return m_selectedTarget;
×
90
}
91

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc