Limo
A simple mod manager
Loading...
Searching...
No Matches
addapikeydialog.h
Go to the documentation of this file.
1
5
6#pragma once
7
8#include <QDialog>
9
10
11namespace Ui
12{
13class AddApiKeyDialog;
14}
15
19class AddApiKeyDialog : public QDialog
20{
21 Q_OBJECT
22
23public:
28 explicit AddApiKeyDialog(QWidget* parent = nullptr);
31
36 QString getApiKey() const;
41 QString getPassword() const;
42
43private slots:
52 void onPasswordValidityChanged(bool is_valid);
53
54private:
56 Ui::AddApiKeyDialog* ui;
58 bool dialog_completed_ = false;
59};
Ui::AddApiKeyDialog * ui
Contains auto-generated UI elements.
Definition addapikeydialog.h:56
void onPasswordValidityChanged(bool is_valid)
Disables/ enables the OK button, depending on if the entered passwords match.
Definition addapikeydialog.cpp:49
QString getApiKey() const
Returns the API key entered in the dialog.
Definition addapikeydialog.cpp:21
void on_buttonBox_rejected()
Closes the dialog.
Definition addapikeydialog.cpp:31
QString getPassword() const
Returns the password entered in the dialog.
Definition addapikeydialog.cpp:26
~AddApiKeyDialog()
Deletes the UI.
Definition addapikeydialog.cpp:16
void on_buttonBox_accepted()
Closes the dialog.
Definition addapikeydialog.cpp:40
bool dialog_completed_
Indicates whether the dialog has been completed.
Definition addapikeydialog.h:58
AddApiKeyDialog(QWidget *parent=nullptr)
Initializes the UI.
Definition addapikeydialog.cpp:6