source: calamares/trunk/fuentes/src/libcalamaresui/ExecutionViewStep.h @ 7538

Last change on this file since 7538 was 7538, checked in by kbut, 13 months ago

sync with github

File size: 1.8 KB
Line 
1/* === This file is part of Calamares - <https://github.com/calamares> ===
2 *
3 *   Copyright 2014, Aurélien Gâteau <agateau@kde.org>
4 *   Copyright 2014-2015, Teo Mrnjavac <teo@kde.org>
5 *
6 *   Calamares 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 *   Calamares 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 Calamares. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20#ifndef EXECUTIONVIEWSTEP_H
21#define EXECUTIONVIEWSTEP_H
22
23#include <viewpages/ViewStep.h>
24
25#include <QStringList>
26
27class QLabel;
28class QProgressBar;
29class QQuickWidget;
30
31namespace Calamares
32{
33
34class ExecutionViewStep : public ViewStep
35{
36    Q_OBJECT
37public:
38    explicit ExecutionViewStep( QObject* parent = nullptr );
39
40    QString prettyName() const override;
41
42    QWidget* widget() override;
43
44    void next() override;
45    void back() override;
46
47    bool isNextEnabled() const override;
48    bool isBackEnabled() const override;
49
50    bool isAtBeginning() const override;
51    bool isAtEnd() const override;
52
53    void onActivate() override;
54
55    JobList jobs() const override;
56
57    void appendJobModuleInstanceKey( const QString& instanceKey );
58
59private:
60    QWidget* m_widget;
61    QProgressBar* m_progressBar;
62    QLabel* m_label;
63    QQuickWidget* m_slideShow;
64
65    QStringList m_jobInstanceKeys;
66
67    void updateFromJobQueue( qreal percent, const QString& message );
68};
69
70}
71
72#endif /* EXECUTIONVIEWSTEP_H */
Note: See TracBrowser for help on using the repository browser.