LibrePCB Developers Documentation
Loading...
Searching...
No Matches
lppzoutputjob.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_LPPZOUTPUTJOB_H
21#define LIBREPCB_CORE_LPPZOUTPUTJOB_H
22
23/*******************************************************************************
24 * Includes
25 ******************************************************************************/
26#include "outputjob.h"
27
28#include <QtCore>
29#include <QtGui>
30
31#include <optional>
32
33/*******************************************************************************
34 * Namespace / Forward Declarations
35 ******************************************************************************/
36namespace librepcb {
37
38/*******************************************************************************
39 * Class LppzOutputJob
40 ******************************************************************************/
41
45class LppzOutputJob final : public OutputJob {
46 Q_DECLARE_TR_FUNCTIONS(LppzOutputJob)
47
48public:
49 // Constructors / Destructor
50 LppzOutputJob() noexcept;
51 LppzOutputJob(const LppzOutputJob& other) noexcept;
52 explicit LppzOutputJob(const SExpression& node);
53 virtual ~LppzOutputJob() noexcept;
54
55 // Getters
56 virtual QString getTypeTr() const noexcept override;
57 virtual QIcon getTypeIcon() const noexcept override;
58 const QString& getOutputPath() const noexcept { return mOutputPath; }
59
60 // Setters
61 void setOutputPath(const QString& path) noexcept;
62
63 // General Methods
64 static QString getTypeName() noexcept { return "lppz"; }
65 static QString getTypeTrStatic() noexcept {
66 return tr("Project Archive") % " (*.lppz)";
67 }
68 virtual std::shared_ptr<OutputJob> cloneShared() const noexcept override;
69
70 // Operator Overloadings
71 LppzOutputJob& operator=(const LppzOutputJob& rhs) = delete;
72
73private: // Methods
74 virtual void serializeDerived(SExpression& root) const override;
75 virtual bool equals(const OutputJob& rhs) const noexcept override;
76
77private: // Data
78 QString mOutputPath;
79};
80
81/*******************************************************************************
82 * End of File
83 ******************************************************************************/
84
85} // namespace librepcb
86
87#endif
Zipped project (*.lppz) output job.
Definition lppzoutputjob.h:45
virtual QString getTypeTr() const noexcept override
Definition lppzoutputjob.cpp:59
void setOutputPath(const QString &path) noexcept
Definition lppzoutputjob.cpp:71
LppzOutputJob() noexcept
Definition lppzoutputjob.cpp:37
virtual bool equals(const OutputJob &rhs) const noexcept override
Definition lppzoutputjob.cpp:95
static QString getTypeName() noexcept
Definition lppzoutputjob.h:64
static QString getTypeTrStatic() noexcept
Definition lppzoutputjob.h:65
QString mOutputPath
Definition lppzoutputjob.h:78
virtual ~LppzOutputJob() noexcept
Definition lppzoutputjob.cpp:52
virtual QIcon getTypeIcon() const noexcept override
Definition lppzoutputjob.cpp:63
virtual void serializeDerived(SExpression &root) const override
Definition lppzoutputjob.cpp:90
const QString & getOutputPath() const noexcept
Definition lppzoutputjob.h:58
virtual std::shared_ptr< OutputJob > cloneShared() const noexcept override
Definition lppzoutputjob.cpp:82
Base class for all output job types.
Definition outputjob.h:50
The SExpression class.
Definition sexpression.h:69
Definition occmodel.cpp:76