QElectroTech 0.100.0-dev
Loading...
Searching...
No Matches
trueterminalstrip.h
Go to the documentation of this file.
1/*
2 Copyright 2006-2024 The QElectroTech Team
3 This file is part of QElectroTech.
4
5 QElectroTech is free software: you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation, either version 2 of the License, or
8 (at your option) any later version.
9
10 QElectroTech is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
17*/
18#ifndef TRUETERMINALSTRIP_H
19#define TRUETERMINALSTRIP_H
20
21#include "terminalstripdrawer.h"
22
23class TerminalStrip;
25class RealTerminal;
27
28namespace TerminalStripDrawer
29{
31 {
32 public:
34
35 QString installation() const override;
36 QString location() const override;
37 QString name() const override;
38 QVector<QSharedPointer<AbstractPhysicalTerminalInterface>> physicalTerminal() const override;
39
40 private:
41 QPointer<TerminalStrip> m_strip;
42 };
43
45 {
46 public:
47 TruePhysicalTerminal(QSharedPointer<PhysicalTerminal> physical);
48 QVector<QSharedPointer<AbstractRealTerminalInterface>> realTerminals() const override;
49
50 private:
51 QSharedPointer<PhysicalTerminal> m_physical;
52 };
53
55 {
56 public:
57 TrueRealTerminal(QSharedPointer<RealTerminal> real);
58 QString label() const override;
59 bool isBridged() const override;
60 AbstractBridgeInterface* bridge() const override;
61
62 private:
63 QSharedPointer<RealTerminal> m_real;
64 };
65
67 {
68 public:
69 TrueBridge(QSharedPointer<TerminalStripBridge> bridge);
70 QUuid uuid() const override;
71
72 private:
73 QSharedPointer<TerminalStripBridge> m_bridge;
74 };
75}
76
77#endif // TRUETERMINALSTRIP_H
The PhysicalTerminal class Represent a physical terminal. A physical terminal is composed a least by ...
Definition physicalterminal.h:62
The RealTerminal class Represent a real terminal. A real terminal can be a drawn terminal in a folio ...
Definition realterminal.h:43
Definition terminalstripbridge.h:32
Definition terminalstripdrawer.h:31
Definition terminalstripdrawer.h:39
Definition terminalstripdrawer.h:57
Definition trueterminalstrip.h:67
QUuid uuid() const override
Definition trueterminalstrip.cpp:125
QSharedPointer< TerminalStripBridge > m_bridge
Definition trueterminalstrip.h:73
Definition trueterminalstrip.h:45
QVector< QSharedPointer< AbstractRealTerminalInterface > > realTerminals() const override
Definition trueterminalstrip.cpp:81
QSharedPointer< PhysicalTerminal > m_physical
Definition trueterminalstrip.h:51
Definition trueterminalstrip.h:55
bool isBridged() const override
Definition trueterminalstrip.cpp:106
AbstractBridgeInterface * bridge() const override
Definition trueterminalstrip.cpp:116
QString label() const override
Definition trueterminalstrip.cpp:97
QSharedPointer< RealTerminal > m_real
Definition trueterminalstrip.h:63
Definition trueterminalstrip.h:31
QVector< QSharedPointer< AbstractPhysicalTerminalInterface > > physicalTerminal() const override
Definition trueterminalstrip.cpp:65
QPointer< TerminalStrip > m_strip
Definition trueterminalstrip.h:41
QString name() const override
Definition trueterminalstrip.cpp:56
QString location() const override
Definition trueterminalstrip.cpp:47
QString installation() const override
Definition trueterminalstrip.cpp:38
The TerminalStrip class This class hold all the datas and configurations of a terminal strip (but the...
Definition terminalstrip.h:45
Definition demoterminalstrip.cpp:21