Limo
A simple mod manager
Loading...
Searching...
No Matches
AddApiKeyDialog Class Reference

Dialog used to adding a new NexusMods API key and setting an encryption password. More...

#include <addapikeydialog.h>

Inheritance diagram for AddApiKeyDialog:
Collaboration diagram for AddApiKeyDialog:

Public Member Functions

 AddApiKeyDialog (QWidget *parent=nullptr)
 Initializes the UI.
 
 ~AddApiKeyDialog ()
 Deletes the UI.
 
QString getApiKey () const
 Returns the API key entered in the dialog.
 
QString getPassword () const
 Returns the password entered in the dialog.
 

Private Slots

void on_buttonBox_rejected ()
 Closes the dialog.
 
void on_buttonBox_accepted ()
 Closes the dialog.
 
void onPasswordValidityChanged (bool is_valid)
 Disables/ enables the OK button, depending on if the entered passwords match.
 

Private Attributes

Ui::AddApiKeyDialog * ui
 Contains auto-generated UI elements.
 
bool dialog_completed_ = false
 Indicates whether the dialog has been completed.
 

Detailed Description

Dialog used to adding a new NexusMods API key and setting an encryption password.

Constructor & Destructor Documentation

◆ AddApiKeyDialog()

AddApiKeyDialog::AddApiKeyDialog ( QWidget * parent = nullptr)
explicit

Initializes the UI.

Parameters
parentParent for this widget, this is passed to the constructor of QDialog.

Member Function Documentation

◆ getApiKey()

QString AddApiKeyDialog::getApiKey ( ) const

Returns the API key entered in the dialog.

Returns
The API key.

◆ getPassword()

QString AddApiKeyDialog::getPassword ( ) const

Returns the password entered in the dialog.

Returns
The password.

◆ onPasswordValidityChanged

void AddApiKeyDialog::onPasswordValidityChanged ( bool is_valid)
privateslot

Disables/ enables the OK button, depending on if the entered passwords match.

Parameters
is_validTrue if both passwords match.

The documentation for this class was generated from the following files: