LibrePCB Developers Documentation
Loading...
Searching...
No Matches
unknownoutputjob.h
Go to the documentation of this file.
1/*
2 * LibrePCB - Professional EDA for everyone!
3 * Copyright (C) 2013 LibrePCB Developers, see AUTHORS.md for contributors.
4 * https://librepcb.org/
5 *
6 * This program is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20#ifndef LIBREPCB_CORE_UNKNOWNOUTPUTJOB_H
21#define LIBREPCB_CORE_UNKNOWNOUTPUTJOB_H
22
23/*******************************************************************************
24 * Includes
25 ******************************************************************************/
26#include "outputjob.h"
27
28#include <QtCore>
29#include <QtGui>
30
31/*******************************************************************************
32 * Namespace / Forward Declarations
33 ******************************************************************************/
34namespace librepcb {
35
36/*******************************************************************************
37 * Class UnknownOutputJob
38 ******************************************************************************/
39
46class UnknownOutputJob final : public OutputJob {
47 Q_DECLARE_TR_FUNCTIONS(UnknownOutputJob)
48
49public:
50 // Constructors / Destructor
51 UnknownOutputJob() = delete;
52 UnknownOutputJob(const UnknownOutputJob& other) noexcept;
53 explicit UnknownOutputJob(const SExpression& node);
54 virtual ~UnknownOutputJob() noexcept;
55
56 // Getters
57 virtual QString getTypeTr() const noexcept override;
58 virtual QIcon getTypeIcon() const noexcept override;
59
60 // General Methods
61 virtual std::shared_ptr<OutputJob> cloneShared() const noexcept override;
62 virtual void serialize(SExpression& root) const override;
63
64 // Operator Overloadings
65 UnknownOutputJob& operator=(const UnknownOutputJob& rhs) = delete;
66
67private: // Methods
68 virtual void serializeDerived(SExpression& root) const override;
69 virtual bool equals(const OutputJob& rhs) const noexcept override;
70
71private: // Data
73};
74
75/*******************************************************************************
76 * End of File
77 ******************************************************************************/
78
79} // namespace librepcb
80
81#endif
Base class for all output job types.
Definition outputjob.h:50
The SExpression class.
Definition sexpression.h:69
Fallback output job for unknown types.
Definition unknownoutputjob.h:46
virtual QString getTypeTr() const noexcept override
Definition unknownoutputjob.cpp:52
SExpression mNode
Definition unknownoutputjob.h:72
virtual bool equals(const OutputJob &rhs) const noexcept override
Definition unknownoutputjob.cpp:80
virtual QIcon getTypeIcon() const noexcept override
Definition unknownoutputjob.cpp:56
virtual void serializeDerived(SExpression &root) const override
Definition unknownoutputjob.cpp:76
virtual void serialize(SExpression &root) const override
Serialize into librepcb::SExpression node.
Definition unknownoutputjob.cpp:68
virtual std::shared_ptr< OutputJob > cloneShared() const noexcept override
Definition unknownoutputjob.cpp:64
virtual ~UnknownOutputJob() noexcept
Definition unknownoutputjob.cpp:45
Definition occmodel.cpp:76
Definition uuid.h:186