Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Password Class Reference

#include </home/clem/local/src/opie/library/password.h>

Collaboration diagram for Password:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Password (QWidget *, const char *, const char *)
 ~Password ()

Static Public Member Functions

static bool needToAuthenticate (bool atpoweron=FALSE)
static void authenticate (bool atpoweron=FALSE)
static QString getPassword (const QString &prompt)

Public Attributes

QString password

Protected Slots

void accept ()
void slotTogglePassword (bool)

Private Attributes

QLineEdit * pw

Detailed Description

DEPRECATED now use Opie's Multiauth Framework
See also:
Opie::Security::MultiauthPassword

Definition at line 29 of file password.h.


Constructor & Destructor Documentation

Password::Password QWidget *  ,
const char *  ,
const char * 
 

Definition at line 57 of file password.cpp.

References QString::null, password, pw, showhideimage_data, slotTogglePassword(), and TRUE.

Password::~Password  ) 
 

Definition at line 84 of file password.cpp.


Member Function Documentation

void Password::accept  )  [protected, slot]
 

Definition at line 88 of file password.cpp.

References password, and pw.

void Password::authenticate bool  at_poweron = FALSE  )  [static]
 

Prompt, fullscreen, for the user's passcode until they get it right.

If at_poweron is TRUE, the dialog is only used if the user's preference request it at poweron; either way, the screen is always repainted by this function. (this functionality may move to the caller of this function).

Definition at line 315 of file password.cpp.

References Global::applicationFileName(), QFile::exists(), QString::isEmpty(), PasswdDlg::passw, qcrypt(), Config::readEntry(), Config::readNumEntry(), Contact::readVCard(), PasswdDlg::reset(), Config::setGroup(), PasswordDialog::text, and TRUE.

QString Password::getPassword const QString prompt  )  [static]
 

Returns a crypted password entered by the user when prompted with prompt The returned value is QString::null if the user cancels the operation, or the empty string if the user enters no password (but confirms the dialog).

Definition at line 269 of file password.cpp.

References QString::isEmpty(), QString::null, PasswdDlg::passw, qcrypt(), PasswordDialog::setPrompt(), PasswordDialog::text, and TRUE.

bool Password::needToAuthenticate bool  at_poweron = FALSE  )  [static]
 

Return if a prompt for the user's passcode is needed.

If at_poweron is TRUE, the dialog is only used if the user's preference request it at poweron

Opie extension to speed up suspend/resume.

Definition at line 297 of file password.cpp.

References QString::isEmpty(), Config::readEntry(), Config::readNumEntry(), and Config::setGroup().

void Password::slotTogglePassword bool   )  [protected, slot]
 

Definition at line 94 of file password.cpp.

References Dasher::Opts::Normal, and pw.

Referenced by Password().


Member Data Documentation

QString Password::password
 

Definition at line 45 of file password.h.

Referenced by accept(), MainWindow::openBook(), Password(), and Checkbook::slotPasswordClicked().

QLineEdit* Password::pw [private]
 

Definition at line 48 of file password.h.

Referenced by accept(), Password(), and slotTogglePassword().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:44:20 2005 for OPIE by  doxygen 1.4.2