ToolX 1.11.1 [e3f477f]
A GUI debug tool chain for diagnosing GVA systems
Loading...
Searching...
No Matches
license_setup_dialog.h
Go to the documentation of this file.
1//
2// Copyright (c) 2026, Astute Systems PTY LTD
3//
4// This file is part of the VivoeX project developed by Astute Systems.
5//
6// License. See the LICENSE file in the project root for full license details.
7//
12
13#ifndef LICENSE_SETUP_DIALOG_H
14#define LICENSE_SETUP_DIALOG_H
15
16#include <QDialog>
17#include <QString>
18
19class QLabel;
20class QLineEdit;
21class QPushButton;
22
23namespace toolx {
24
26inline constexpr const char *kLicenseSettingsOrg = "ToolX";
27inline constexpr const char *kLicenseSettingsApp = "ToolX";
28inline constexpr const char *kLicenseSettingsKey = "license/key";
29
33class LicenseSetupDialog : public QDialog
34{
35 Q_OBJECT
36
37public:
38 explicit LicenseSetupDialog(QWidget *parent = nullptr);
39
41 QString validatedValue() const { return m_validatedValue; }
42
43private slots:
44 void onActivateOnline();
45 void onBrowseAirGapped();
46 void onActivateAirGapped();
47
48private:
49 void setStatus(const QString &message, bool success);
50 void store(const QString &value);
51
52 QLineEdit *m_onlineKeyEdit = nullptr;
53 QPushButton *m_activateOnline = nullptr;
54 QLineEdit *m_licFileEdit = nullptr;
55 QPushButton *m_activateAirGapped = nullptr;
56 QLabel *m_statusLabel = nullptr;
57 QString m_validatedValue;
58};
59
60} // namespace toolx
61
62#endif // LICENSE_SETUP_DIALOG_H
QString validatedValue() const
The key or .lic path that validated.
Definition license_setup_dialog.h:41
constexpr const char * kLicenseSettingsOrg
QSettings scope and key the validated licence is stored under.
Definition license_setup_dialog.h:26