Classified ads
Signals | Public Member Functions | Private Slots | Private Attributes | List of all members
PasswdDialog Class Reference

class for querying a password from user. More...

#include <passwd_dialog.h>

Inheritance diagram for PasswdDialog:
Inheritance graph
[legend]
Collaboration diagram for PasswdDialog:
Collaboration graph
[legend]

Signals

void error (MController::CAErrorSituation aError, const QString &aExplanation)
 

Public Member Functions

 PasswdDialog (QWidget *aParent, MController &aController, const QString &aPrompt, bool aIsPwdQueryDialog=true)
 
 ~PasswdDialog ()
 

Private Slots

void okClicked ()
 
void showPasswordCheckBoxStateChanged (int aState)
 

Private Attributes

Ui_PasswordDialog ui
 
MControlleriController
 
QString iPrompt
 
bool iIsPwdQueryDialog
 

Detailed Description

class for querying a password from user.

thanks to Jasmin Blanchette and Mark Summerfield who wrote the article at http://www.informit.com/articles/article.aspx?p=1405224 where this code here is more-or-less stolen from.

Constructor & Destructor Documentation

◆ PasswdDialog()

PasswdDialog::PasswdDialog ( QWidget *  aParent,
MController aController,
const QString &  aPrompt,
bool  aIsPwdQueryDialog = true 
)

Constructor.

Parameters
aParentis owner-window of this dialog
aControllerapplication controller reference
aPrompttext presented to user
aIsPwdQueryDialogif set to true, queries. If false this dialog will change the password

◆ ~PasswdDialog()

PasswdDialog::~PasswdDialog ( )

Member Function Documentation

◆ error

void PasswdDialog::error ( MController::CAErrorSituation  aError,
const QString &  aExplanation 
)
signal

◆ okClicked

void PasswdDialog::okClicked ( )
privateslot

◆ showPasswordCheckBoxStateChanged

void PasswdDialog::showPasswordCheckBoxStateChanged ( int  aState)
privateslot

Member Data Documentation

◆ iController

MController& PasswdDialog::iController
private

◆ iIsPwdQueryDialog

bool PasswdDialog::iIsPwdQueryDialog
private

◆ iPrompt

QString PasswdDialog::iPrompt
private

◆ ui

Ui_PasswordDialog PasswdDialog::ui
private

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