2022-05-17 14:40:36 +02:00
|
|
|
/* === This file is part of Calamares - <https://calamares.io> ===
|
|
|
|
*
|
2020-08-22 01:19:58 +02:00
|
|
|
* SPDX-FileCopyrightText: 2016 Luca Giambonini <almack@chakraos.org>
|
|
|
|
* SPDX-FileCopyrightText: 2016 Lisa Vitolo <shainer@chakraos.org>
|
|
|
|
* SPDX-FileCopyrightText: 2017 Kyle Robbertze <krobbertze@gmail.com>
|
|
|
|
* SPDX-FileCopyrightText: 2017-2018 2020, Adriaan de Groot <groot@kde.org>
|
|
|
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
2016-06-28 00:00:47 +02:00
|
|
|
*
|
2020-08-25 16:05:56 +02:00
|
|
|
* Calamares is Free Software: see the License-Identifier above.
|
2016-06-26 00:26:08 +02:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef NETINSTALLPAGE_H
|
|
|
|
#define NETINSTALLPAGE_H
|
|
|
|
|
2020-03-27 16:12:48 +01:00
|
|
|
#include "Config.h"
|
2017-01-23 13:42:40 +01:00
|
|
|
#include "PackageModel.h"
|
2017-01-25 09:34:18 +01:00
|
|
|
#include "PackageTreeItem.h"
|
|
|
|
|
2020-02-19 09:29:23 +01:00
|
|
|
#include "locale/TranslatableConfiguration.h"
|
|
|
|
|
2019-09-02 14:10:36 +02:00
|
|
|
#include <QString>
|
2018-05-21 16:58:57 +02:00
|
|
|
#include <QWidget>
|
2016-06-26 00:26:08 +02:00
|
|
|
|
2020-02-19 09:29:23 +01:00
|
|
|
#include <memory>
|
|
|
|
|
2016-07-15 14:27:10 +02:00
|
|
|
class QNetworkReply;
|
2016-06-26 00:26:08 +02:00
|
|
|
|
|
|
|
namespace Ui
|
|
|
|
{
|
|
|
|
class Page_NetInst;
|
|
|
|
}
|
|
|
|
|
|
|
|
class NetInstallPage : public QWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2020-03-27 16:12:48 +01:00
|
|
|
NetInstallPage( Config* config, QWidget* parent = nullptr );
|
2020-09-22 22:34:38 +02:00
|
|
|
~NetInstallPage() override;
|
2016-07-15 14:27:10 +02:00
|
|
|
|
2020-03-27 15:51:03 +01:00
|
|
|
void onActivate();
|
2016-06-26 00:26:08 +02:00
|
|
|
|
2020-03-27 16:12:48 +01:00
|
|
|
/** @brief Expand entries that should be pre-expanded.
|
|
|
|
*
|
|
|
|
* Follows the *expanded* key / the startExpanded field in the
|
|
|
|
* group entries of the model. Call this after filling up the model.
|
|
|
|
*/
|
|
|
|
void expandGroups();
|
2016-06-26 00:26:08 +02:00
|
|
|
|
|
|
|
private:
|
2020-03-27 16:12:48 +01:00
|
|
|
Config* m_config;
|
2016-06-26 00:26:08 +02:00
|
|
|
Ui::Page_NetInst* ui;
|
|
|
|
};
|
|
|
|
|
2019-09-02 14:10:36 +02:00
|
|
|
#endif // NETINSTALLPAGE_H
|