Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
DlgLoginPrompt Class Reference

Small sign-in dialog used when a cockatrice:// link needs credentials that are not saved for the target server. More...

#include <dlg_login_prompt.h>

Inheritance diagram for DlgLoginPrompt:
[legend]
Collaboration diagram for DlgLoginPrompt:
[legend]

Public Member Functions

 DlgLoginPrompt (const QString &serverText, QWidget *parent=nullptr)
QString username () const
QString password () const
bool savePassword () const

Private Attributes

QLineEdit * usernameEdit
QLineEdit * passwordEdit
QCheckBox * savePasswordCheckBox

Detailed Description

Small sign-in dialog used when a cockatrice:// link needs credentials that are not saved for the target server.

The entered name and password are handed to the intent chain; when the user opts to save them, they are stored in the server settings so that later links to the same server connect seamlessly.

Constructor & Destructor Documentation

◆ DlgLoginPrompt()

DlgLoginPrompt::DlgLoginPrompt ( const QString & serverText,
QWidget * parent = nullptr )
explicit

Member Function Documentation

◆ password()

QString DlgLoginPrompt::password ( ) const
nodiscard
Here is the caller graph for this function:

◆ savePassword()

bool DlgLoginPrompt::savePassword ( ) const
nodiscard
Here is the caller graph for this function:

◆ username()

QString DlgLoginPrompt::username ( ) const
nodiscard
Here is the caller graph for this function:

Member Data Documentation

◆ passwordEdit

QLineEdit* DlgLoginPrompt::passwordEdit
private

◆ savePasswordCheckBox

QCheckBox* DlgLoginPrompt::savePasswordCheckBox
private

◆ usernameEdit

QLineEdit* DlgLoginPrompt::usernameEdit
private

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