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 ()
 

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 ( 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 ( )

Member Function Documentation

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

Member Data Documentation

MController& PasswdDialog::iController
private
bool PasswdDialog::iIsPwdQueryDialog
private
QString PasswdDialog::iPrompt
private
Ui_PasswordDialog PasswdDialog::ui
private

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