-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add simple CLI * switch to qMax
- Loading branch information
Showing
13 changed files
with
1,758 additions
and
859 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// SPDX-License-Identifier: LGPL-3.0-or-later | ||
#include <QCommandLineParser> | ||
#include <QCoreApplication> | ||
|
||
#include "compat.h" | ||
#include "efibootdata.h" | ||
|
||
class EFIBootEditorCLI: public QObject | ||
{ | ||
Q_OBJECT | ||
|
||
QCommandLineParser parser{}; | ||
EFIBootData data{this}; | ||
bool efi_supported; | ||
|
||
public: | ||
explicit EFIBootEditorCLI(const std::optional<std::tstring> &efi_error_message, QObject *parent = nullptr); | ||
EFIBootEditorCLI(const EFIBootEditorCLI &) = delete; | ||
EFIBootEditorCLI &operator=(const EFIBootEditorCLI &) = delete; | ||
~EFIBootEditorCLI() override; | ||
|
||
bool process(QCoreApplication &app); | ||
|
||
public slots: | ||
void showError(const QString &message, const QString &details); | ||
void showProgress(size_t step, size_t total, const QString &details); | ||
void hideProgress(); | ||
}; |
Oops, something went wrong.