source: calamares/trunk/fuentes/src/modules/finished/FinishedPage.h @ 7538

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

sync with github

File size: 1.5 KB
Line 
1/* === This file is part of Calamares - <https://github.com/calamares> ===
2 *
3 *   Copyright 2014-2015, Teo Mrnjavac <teo@kde.org>
4 *   Copyright 2017, Adriaan de Groot <groot@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 FINISHEDPAGE_H
21#define FINISHEDPAGE_H
22
23#include <QWidget>
24
25namespace Ui
26{
27class FinishedPage;
28}
29
30class FinishedPage : public QWidget
31{
32    Q_OBJECT
33public:
34    explicit FinishedPage( QWidget* parent = nullptr );
35
36    void setRestartNowEnabled( bool enabled );
37    void setRestartNowChecked( bool checked );
38    void setRestartNowCommand( const QString& command );
39
40    void setUpRestart();
41
42public slots:
43    void onInstallationFailed( const QString& message, const QString& details );
44
45protected:
46    void focusInEvent( QFocusEvent* e ) override; //choose the child widget to focus
47
48private:
49    Ui::FinishedPage* ui;
50
51    QString m_restartNowCommand;
52
53    bool m_restartSetUp;
54};
55
56#endif // FINISHEDPAGE_H
Note: See TracBrowser for help on using the repository browser.