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

Opie::Security::MultiauthMainWindow Class Reference

Multiauth main window. More...

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

List of all members.

Public Member Functions

 MultiauthMainWindow (bool allowBypass=false)
 Initializes widgets according to allowBypass argument (false by default) and explanScreens config.
 ~MultiauthMainWindow ()
 nothing to do
bool isAlreadyDone ()

Private Slots

void proceed ()
 launch the authentication

Private Attributes

QVBoxLayout * layout
QLabel * title
QLabel * message
QLabel * message2
QPushButton * proceedButton
QPushButton * quit
bool explanScreens
 whether to show explanatory screens before and after the authentication plugins
bool allowBypass
 allow to bypass authnentication via 'exit' buttons on both explan. screens
bool alreadyDone
 true when the authentication has been done successfully
Private * d


Detailed Description

Multiauth main window.

This QDialog window displays some information and an exit button, and completely hides the desktop, preventing user interactions with it.

Definition at line 54 of file multiauthmainwindow.h.


Constructor & Destructor Documentation

Opie::Security::MultiauthMainWindow::MultiauthMainWindow bool  allowBypass = false  ) 
 

Initializes widgets according to allowBypass argument (false by default) and explanScreens config.

Note:
if allowBypass is true, we will show explanatory screens anyway

Definition at line 13 of file multiauthmainwindow.cpp.

References Qt::AlignHCenter, Qt::AlignTop, alreadyDone, explanScreens, layout, message, message2, proceed(), proceedButton, quit, Config::readBoolEntry(), Config::setGroup(), title, and tr.

Opie::Security::MultiauthMainWindow::~MultiauthMainWindow  ) 
 

nothing to do

Definition at line 83 of file multiauthmainwindow.cpp.


Member Function Documentation

bool Opie::Security::MultiauthMainWindow::isAlreadyDone  ) 
 

When we don't show explanatory screens and we succeed authentication, as early as during the proceed() call of the constructor, the caller must know (through this function) authentication has already been succeeded..

Todo:
try to avoid this hack?

Definition at line 140 of file multiauthmainwindow.cpp.

References alreadyDone.

Referenced by Opie::Security::MultiauthPassword::authenticate().

void Opie::Security::MultiauthMainWindow::proceed  )  [private, slot]
 

launch the authentication

Definition at line 87 of file multiauthmainwindow.cpp.

References allowBypass, alreadyDone, explanScreens, message, message2, proceedButton, quit, Opie::Security::Internal::runPlugins(), and tr.

Referenced by MultiauthMainWindow().


Member Data Documentation

bool Opie::Security::MultiauthMainWindow::allowBypass [private]
 

allow to bypass authnentication via 'exit' buttons on both explan. screens

Definition at line 69 of file multiauthmainwindow.h.

Referenced by proceed().

bool Opie::Security::MultiauthMainWindow::alreadyDone [private]
 

true when the authentication has been done successfully

Definition at line 71 of file multiauthmainwindow.h.

Referenced by isAlreadyDone(), MultiauthMainWindow(), and proceed().

Private* Opie::Security::MultiauthMainWindow::d [private]
 

Definition at line 76 of file multiauthmainwindow.h.

bool Opie::Security::MultiauthMainWindow::explanScreens [private]
 

whether to show explanatory screens before and after the authentication plugins

Definition at line 67 of file multiauthmainwindow.h.

Referenced by MultiauthMainWindow(), and proceed().

QVBoxLayout* Opie::Security::MultiauthMainWindow::layout [private]
 

Definition at line 63 of file multiauthmainwindow.h.

Referenced by MultiauthMainWindow().

QLabel * Opie::Security::MultiauthMainWindow::message [private]
 

Definition at line 64 of file multiauthmainwindow.h.

Referenced by MultiauthMainWindow(), and proceed().

QLabel * Opie::Security::MultiauthMainWindow::message2 [private]
 

Definition at line 64 of file multiauthmainwindow.h.

Referenced by MultiauthMainWindow(), and proceed().

QPushButton* Opie::Security::MultiauthMainWindow::proceedButton [private]
 

Definition at line 65 of file multiauthmainwindow.h.

Referenced by MultiauthMainWindow(), and proceed().

QPushButton * Opie::Security::MultiauthMainWindow::quit [private]
 

Definition at line 65 of file multiauthmainwindow.h.

Referenced by MultiauthMainWindow(), and proceed().

QLabel* Opie::Security::MultiauthMainWindow::title [private]
 

Definition at line 64 of file multiauthmainwindow.h.

Referenced by MultiauthMainWindow().


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