qTox  Version: nightly | Commit: bc751c8e1cac455f9690654fcfe0f560d2d7dfdd
Public Slots | Signals | Public Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
LoginScreen Class Reference

#include <loginscreen.h>

Inheritance diagram for LoginScreen:
Inheritance graph
Collaboration diagram for LoginScreen:
Collaboration graph

Public Slots

void onProfileLoaded ()
 
void onProfileLoadFailed ()
 
void onAutoLoginChanged (bool state)
 

Signals

void windowStateChanged (Qt::WindowStates states)
 
void autoLoginChanged (bool state)
 
void createNewProfile (QString name, const QString &pass)
 
void loadProfile (QString name, const QString &pass)
 

Public Member Functions

 LoginScreen (const QString &initialProfileName=QString(), QWidget *parent=nullptr)
 
 ~LoginScreen ()
 
bool event (QEvent *event) final
 

Private Slots

void onAutoLoginCheckboxChanged (int state)
 
void onLoginUsernameSelected (const QString &name)
 
void onPasswordEdited ()
 
void onNewProfilePageClicked ()
 
void onLoginPageClicked ()
 
void onCreateNewProfile ()
 
void onLogin ()
 
void onImportProfile ()
 

Private Member Functions

void reset (const QString &initialProfileName=QString())
 Resets the UI, clears all fields. More...
 
void retranslateUi ()
 
void showCapsIndicator ()
 
void hideCapsIndicator ()
 
void checkCapsLock ()
 

Private Attributes

Ui::LoginScreen * ui
 
QShortcut quitShortcut
 

Detailed Description

Definition at line 33 of file loginscreen.h.

Constructor & Destructor Documentation

◆ LoginScreen()

LoginScreen::LoginScreen ( const QString &  initialProfileName = QString(),
QWidget *  parent = nullptr 
)

Definition at line 35 of file loginscreen.cpp.

◆ ~LoginScreen()

LoginScreen::~LoginScreen ( )

Definition at line 69 of file loginscreen.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ autoLoginChanged

void LoginScreen::autoLoginChanged ( bool  state)
signal
Here is the caller graph for this function:

◆ checkCapsLock()

void LoginScreen::checkCapsLock ( )
private

◆ createNewProfile

void LoginScreen::createNewProfile ( QString  name,
const QString &  pass 
)
signal
Here is the caller graph for this function:

◆ event()

bool LoginScreen::event ( QEvent *  event)
final

Definition at line 119 of file loginscreen.cpp.

◆ hideCapsIndicator()

void LoginScreen::hideCapsIndicator ( )
private

◆ loadProfile

void LoginScreen::loadProfile ( QString  name,
const QString &  pass 
)
signal
Here is the caller graph for this function:

◆ onAutoLoginChanged

void LoginScreen::onAutoLoginChanged ( bool  state)
slot

Definition at line 114 of file loginscreen.cpp.

Here is the caller graph for this function:

◆ onAutoLoginCheckboxChanged

void LoginScreen::onAutoLoginCheckboxChanged ( int  state)
privateslot

Definition at line 227 of file loginscreen.cpp.

◆ onCreateNewProfile

void LoginScreen::onCreateNewProfile ( )
privateslot

Definition at line 145 of file loginscreen.cpp.

Here is the call graph for this function:

◆ onImportProfile

void LoginScreen::onImportProfile ( )
privateslot

Definition at line 238 of file loginscreen.cpp.

Here is the call graph for this function:

◆ onLogin

void LoginScreen::onLogin ( )
privateslot

Definition at line 200 of file loginscreen.cpp.

Here is the call graph for this function:

◆ onLoginPageClicked

void LoginScreen::onLoginPageClicked ( )
privateslot

Definition at line 140 of file loginscreen.cpp.

◆ onLoginUsernameSelected

void LoginScreen::onLoginUsernameSelected ( const QString &  name)
privateslot

Definition at line 178 of file loginscreen.cpp.

Here is the call graph for this function:

◆ onNewProfilePageClicked

void LoginScreen::onNewProfilePageClicked ( )
privateslot

Definition at line 135 of file loginscreen.cpp.

◆ onPasswordEdited

void LoginScreen::onPasswordEdited ( )
privateslot

Definition at line 222 of file loginscreen.cpp.

Here is the call graph for this function:

◆ onProfileLoaded

void LoginScreen::onProfileLoaded ( )
slot

Definition at line 102 of file loginscreen.cpp.

Here is the caller graph for this function:

◆ onProfileLoadFailed

void LoginScreen::onProfileLoadFailed ( )
slot

Definition at line 107 of file loginscreen.cpp.

Here is the caller graph for this function:

◆ reset()

void LoginScreen::reset ( const QString &  initialProfileName = QString())
private

Resets the UI, clears all fields.

Definition at line 78 of file loginscreen.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ retranslateUi()

void LoginScreen::retranslateUi ( )
private

Definition at line 233 of file loginscreen.cpp.

◆ showCapsIndicator()

void LoginScreen::showCapsIndicator ( )
private

◆ windowStateChanged

void LoginScreen::windowStateChanged ( Qt::WindowStates  states)
signal
Here is the caller graph for this function:

Member Data Documentation

◆ quitShortcut

QShortcut LoginScreen::quitShortcut
private

Definition at line 75 of file loginscreen.h.

◆ ui

Ui::LoginScreen* LoginScreen::ui
private

Definition at line 74 of file loginscreen.h.


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