summaryrefslogtreecommitdiff
path: root/libopie2/opiesecurity/multiauthmainwindow.h
Unidiff
Diffstat (limited to 'libopie2/opiesecurity/multiauthmainwindow.h') (more/less context) (show whitespace changes)
-rw-r--r--libopie2/opiesecurity/multiauthmainwindow.h74
1 files changed, 74 insertions, 0 deletions
diff --git a/libopie2/opiesecurity/multiauthmainwindow.h b/libopie2/opiesecurity/multiauthmainwindow.h
new file mode 100644
index 0000000..d5f53c6
--- a/dev/null
+++ b/libopie2/opiesecurity/multiauthmainwindow.h
@@ -0,0 +1,74 @@
1/**
2 * \file multiauthmainwindow.h
3 * \brief Defines the Opie multiauth main window.
4 *
5 * This implementation was derived from the today plugins implementation.
6 * \author Clément Séveillac (clement . seveillac (at) via . ecp . fr)
7 */
8/*
9 =. This file is part of the Opie Project
10 .=l. Copyright (C) 2004 Opie Developer Team <opie-devel@handhelds.org>
11 .>+-=
12 _;:, .> :=|. This library is free software; you can
13.> <`_, > . <= redistribute it and/or modify it under
14:`=1 )Y*s>-.-- : the terms of the GNU Library General Public
15.="- .-=="i, .._ License as published by the Free Software
16 - . .-<_> .<> Foundation; either version 2 of the License,
17 ._= =} : or (at your option) any later version.
18 .%`+i> _;_.
19 .i_,=:_. -<s. This library is distributed in the hope that
20 + . -:. = it will be useful, but WITHOUT ANY WARRANTY;
21 : .. .:, . . . without even the implied warranty of
22 =_ + =;=|` MERCHANTABILITY or FITNESS FOR A
23 _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU
24..}^=.= = ; Library General Public License for more
25++= -. .` .: details.
26 : = ...= . :.=-
27 -. .:....=;==+<; You should have received a copy of the GNU
28 -_. . . )=. = Library General Public License along with
29 -- :-=` this library; see the file COPYING.LIB.
30 If not, write to the Free Software Foundation,
31 Inc., 59 Temple Place - Suite 330,
32 Boston, MA 02111-1307, USA.
33
34*/
35
36#ifndef MULTIAUTHMAINWINDOW_H
37#define MULTIAUTHMAINWINDOW_H
38
39#include <qdialog.h>
40#include <qlayout.h>
41#include <qpushbutton.h>
42#include <qlabel.h>
43
44/// Multiauth main window
45/**
46 * This QDialog window displays some information and an exit button,
47 * and completely hides the desktop, preventing user interactions
48 * with it.
49 */
50class MultiauthMainWindow : public QDialog {
51 Q_OBJECT
52
53 public:
54 MultiauthMainWindow();
55 ~MultiauthMainWindow();
56 bool isAlreadyDone();
57
58 private:
59 QVBoxLayout * layout;
60 QLabel * title, * message, * message2;
61 QPushButton * proceedButton, * quit;
62 /// whether to show explanatory screens before and after the authentication plugins
63 bool explanScreens;
64 /// allow to bypass authnentication via 'exit' buttons on both explan. screens
65 bool allowBypass;
66 /// true when the authentication has been done successfully
67 bool alreadyDone;
68
69 private slots:
70 void proceed();
71};
72
73#endif // MULTIAUTHMAINWINDOW_H
74