author | zecke <zecke> | 2004-07-17 20:03:12 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-07-17 20:03:12 (UTC) |
commit | d68baedc489a7ab4ab1419144608d28d5336a884 (patch) (unidiff) | |
tree | 487ee1528b6696a7bd1954eeae0d6b600cd57e9f /libopie2 | |
parent | 658ea4b6442d26b4ef0cbde5e9f98433b01dff57 (diff) | |
download | opie-d68baedc489a7ab4ab1419144608d28d5336a884.zip opie-d68baedc489a7ab4ab1419144608d28d5336a884.tar.gz opie-d68baedc489a7ab4ab1419144608d28d5336a884.tar.bz2 |
Add Clements reworked and OMAF capable Security Settings application
This adds configuration of OMAF
For now it disables quicklaunch which will be changed
Also a demo application is added
-rw-r--r-- | libopie2/opiesecurity/multiauthmainwindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libopie2/opiesecurity/multiauthmainwindow.cpp b/libopie2/opiesecurity/multiauthmainwindow.cpp index c6229c7..fa247ab 100644 --- a/libopie2/opiesecurity/multiauthmainwindow.cpp +++ b/libopie2/opiesecurity/multiauthmainwindow.cpp | |||
@@ -7,33 +7,33 @@ namespace Opie { | |||
7 | namespace Security { | 7 | namespace Security { |
8 | 8 | ||
9 | /// Initializes widgets according to allowBypass and explanScreens config | 9 | /// Initializes widgets according to allowBypass and explanScreens config |
10 | MultiauthMainWindow::MultiauthMainWindow() | 10 | MultiauthMainWindow::MultiauthMainWindow() |
11 | : QDialog(0, "main Opie multiauth modal dialog", TRUE, | 11 | : QDialog(0, "main Opie multiauth modal dialog", TRUE, |
12 | Qt::WStyle_NoBorder | Qt::WStyle_Customize | Qt::WStyle_StaysOnTop) | 12 | Qt::WStyle_NoBorder | Qt::WStyle_Customize | Qt::WStyle_StaysOnTop) |
13 | 13 | ||
14 | { | 14 | { |
15 | alreadyDone = false; | 15 | alreadyDone = false; |
16 | // initializes widget pointers which not always point to an object | 16 | // initializes widget pointers which not always point to an object |
17 | quit = 0; | 17 | quit = 0; |
18 | message2 = 0; | 18 | message2 = 0; |
19 | 19 | ||
20 | Config *pcfg = new Config("Security"); | 20 | Config *pcfg = new Config("Security"); |
21 | pcfg->setGroup("Misc"); | 21 | pcfg->setGroup("Misc"); |
22 | explanScreens = pcfg->readBoolEntry("explanScreens", true); | 22 | explanScreens = pcfg->readBoolEntry("explanScreens", true); |
23 | allowBypass = pcfg->readBoolEntry("allowBypass", true); | 23 | allowBypass = pcfg->readBoolEntry("allowBypass", false); |
24 | delete pcfg; | 24 | delete pcfg; |
25 | 25 | ||
26 | layout = new QVBoxLayout(this); | 26 | layout = new QVBoxLayout(this); |
27 | layout->setSpacing(11); | 27 | layout->setSpacing(11); |
28 | layout->setMargin(11); | 28 | layout->setMargin(11); |
29 | layout->setAlignment( Qt::AlignTop ); | 29 | layout->setAlignment( Qt::AlignTop ); |
30 | 30 | ||
31 | // if explanScreens is false, we don't show any text in the QDialog, | 31 | // if explanScreens is false, we don't show any text in the QDialog, |
32 | // and we proceed directly | 32 | // and we proceed directly |
33 | if ( explanScreens == true ) | 33 | if ( explanScreens == true ) |
34 | { | 34 | { |
35 | title = new QLabel("<center><h1>" + tr("Welcome to Opie Multi-authentication Framework") + "</h1></center>", this); | 35 | title = new QLabel("<center><h1>" + tr("Welcome to Opie Multi-authentication Framework") + "</h1></center>", this); |
36 | message = new QLabel("<center><h3>" + tr("Launching authentication plugins...") + "</h3></center>", this); | 36 | message = new QLabel("<center><h3>" + tr("Launching authentication plugins...") + "</h3></center>", this); |
37 | } else { | 37 | } else { |
38 | title = new QLabel("", this); | 38 | title = new QLabel("", this); |
39 | message = new QLabel("", this); | 39 | message = new QLabel("", this); |