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

Opie::Security::MultiauthPassword Class Reference

#include </home/clem/local/src/opie/libopie2/opiesecurity/multiauthpassword.h>

List of all members.

Static Public Member Functions

static void authenticate (int authMode=LockNow)
 Require (if configured so) user authentication to unlock and continue.
static bool needToAuthenticate (bool atpoweron=false)


Detailed Description

This is the dropin replacement for the libqpe Password class. If you call authenticate() a widget will cover the whole screen and only return if the user is able to authenticate with any of the configured Authentication Plugins. It uses the Opie::Security::MultiauthMainWindow QDialog internally.

Author:
Clement Séveillac, Holger Freyther

Definition at line 55 of file multiauthpassword.h.


Member Function Documentation

void Opie::Security::MultiauthPassword::authenticate int  lockMode = LockNow  )  [static]
 

Require (if configured so) user authentication to unlock and continue.

This method will check if you require authentication and then will lock the screen and ask for a successful authentication (explaining what it does or not, depending on your local configuration). It may go into an event loop, but anyhow it will only end when the user has successfully authenticated to the system.

Conditions
If lockMode is an If, it's conditional:
  • IfPowerOn will not trigger an authentication if onStart is set to false in Security.conf,
  • IfResume will not trigger an authentication if onResume is set to false in Security.conf.
  • TestNow will ensure that the authentication window will let people escape through the last screen (which they can reach skipping all the authentication steps)
  • LockNow will always go on with the authentication, and won't let people escape.

Definition at line 86 of file multiauthpassword.cpp.

References Opie::Security::IfPowerOn, Opie::Security::IfResume, Opie::Security::MultiauthMainWindow::isAlreadyDone(), qApp, Config::readBoolEntry(), Config::setGroup(), and Opie::Security::TestNow.

Referenced by LockMenuApplet::activated(), ServerApplication::login(), main(), and MultiauthGeneralConfig::tryAuth().

bool Opie::Security::MultiauthPassword::needToAuthenticate bool  at_poweron = false  )  [static]
 

Tells if the users requires authentication (used internally to know whether to repaint the screen on resume)

Parameters:
at_poweron true if we are booting Opie, false if we are resuming it
Returns:
true if authenticate() launched right now would trigger an authentication

Definition at line 62 of file multiauthpassword.cpp.

Referenced by ServerApplication::togglePower().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 18:01:47 2005 for OPIE by  doxygen 1.4.2