Consistently use ~T() override; in class declarations (so no virtual in front, and avoid warnings due to the missing override in back).
72 lines
1.7 KiB
C++
72 lines
1.7 KiB
C++
/*
|
|
* 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
|
|
*
|
|
* Calamares is Free Software: see the License-Identifier above.
|
|
*
|
|
*/
|
|
|
|
#ifndef NETINSTALLPAGE_H
|
|
#define NETINSTALLPAGE_H
|
|
|
|
#include "Config.h"
|
|
#include "PackageModel.h"
|
|
#include "PackageTreeItem.h"
|
|
|
|
#include "locale/TranslatableConfiguration.h"
|
|
|
|
#include <QString>
|
|
#include <QWidget>
|
|
|
|
#include <memory>
|
|
|
|
class QNetworkReply;
|
|
|
|
namespace Ui
|
|
{
|
|
class Page_NetInst;
|
|
}
|
|
|
|
class NetInstallPage : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
NetInstallPage( Config* config, QWidget* parent = nullptr );
|
|
~NetInstallPage() override;
|
|
|
|
/** @brief Sets the page title
|
|
*
|
|
* In situations where there is more than one netinstall page,
|
|
* or you want some explanatory title above the treeview,
|
|
* set the page title. This page takes ownership of the
|
|
* TranslatedString object.
|
|
*
|
|
* Set to nullptr to remove the title.
|
|
*/
|
|
void setPageTitle( CalamaresUtils::Locale::TranslatedString* );
|
|
|
|
void onActivate();
|
|
|
|
public slots:
|
|
void retranslate();
|
|
void setStatus( QString s );
|
|
|
|
/** @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();
|
|
|
|
private:
|
|
Config* m_config;
|
|
Ui::Page_NetInst* ui;
|
|
|
|
std::unique_ptr< CalamaresUtils::Locale::TranslatedString > m_title; // Above the treeview
|
|
};
|
|
|
|
#endif // NETINSTALLPAGE_H
|