source: calamares/trunk/fuentes/src/modules/license/LicensePage.h @ 7538

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

sync with github

File size: 1.6 KB
Line 
1/* === This file is part of Calamares - <https://github.com/calamares> ===
2 *
3 *   Copyright 2015, Anke Boersma <demm@kaosx.us>
4 *   Copyright 2015, Alexandre Arnt <qtgzmanager@gmail.com>
5 *   Copyright 2015, Teo Mrnjavac <teo@kde.org>
6 *
7 *   Calamares is free software: you can redistribute it and/or modify
8 *   it under the terms of the GNU General Public License as published by
9 *   the Free Software Foundation, either version 3 of the License, or
10 *   (at your option) any later version.
11 *
12 *   Calamares is distributed in the hope that it will be useful,
13 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
14 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 *   GNU General Public License for more details.
16 *
17 *   You should have received a copy of the GNU General Public License
18 *   along with Calamares. If not, see <http://www.gnu.org/licenses/>.
19 */
20
21#ifndef LICENSEPAGE_H
22#define LICENSEPAGE_H
23
24#include <QWidget>
25#include <QUrl>
26
27namespace Ui
28{
29class LicensePage;
30}
31
32struct LicenseEntry
33{
34    enum Type
35    {
36        Software = 0,
37        Driver,
38        GpuDriver,
39        BrowserPlugin,
40        Codec,
41        Package
42    };
43
44    QString id;
45    QString prettyName;
46    QString prettyVendor;
47    Type type;
48    QUrl url;
49    bool required;
50};
51
52class LicensePage : public QWidget
53{
54    Q_OBJECT
55public:
56    explicit LicensePage( QWidget* parent = nullptr );
57
58    void setEntries( const QList< LicenseEntry >& entriesList );
59
60    bool isNextEnabled() const;
61signals:
62    void nextStatusChanged( bool status );
63
64private:
65    Ui::LicensePage* ui;
66
67    bool m_isNextEnabled;
68};
69
70#endif //LICENSEPAGE_H
Note: See TracBrowser for help on using the repository browser.