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

mcallegari / qlcplus / 14452115210

14 Apr 2025 05:40PM UTC coverage: 31.855% (+0.001%) from 31.854%
14452115210

Pull #1708

github

web-flow
Merge 772292420 into 02d6f8913
Pull Request #1708: simplify work with containers

55 of 80 new or added lines in 19 files covered. (68.75%)

3 existing lines in 3 files now uncovered.

14671 of 46056 relevant lines covered (31.85%)

26461.66 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
{
NEW
73
    m_selectedChaserIDs.removeAll(id);
×
74
}
×
75

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

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

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

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

© 2026 Coveralls, Inc