-rw-r--r-- | core/applets/lockapplet/.cvsignore | 4 | ||||
-rw-r--r-- | core/applets/lockapplet/config.in | 4 | ||||
-rw-r--r-- | core/applets/lockapplet/lock.cpp | 84 | ||||
-rw-r--r-- | core/applets/lockapplet/lock.h | 36 | ||||
-rw-r--r-- | core/applets/lockapplet/lockapplet.pro | 12 | ||||
-rw-r--r-- | core/applets/lockapplet/opie-lockapplet.control | 11 | ||||
-rw-r--r-- | core/launcher/serverapp.cpp | 3 | ||||
-rw-r--r-- | core/settings/security/demo/main.cpp | 2 | ||||
-rw-r--r-- | core/settings/security/multiauthconfig.cpp | 20 | ||||
-rw-r--r-- | libopie2/opiesecurity/multiauthpassword.cpp | 47 | ||||
-rw-r--r-- | libopie2/opiesecurity/multiauthpassword.h | 10 | ||||
-rw-r--r-- | packages | 1 | ||||
-rw-r--r-- | pics/security/lock.png | bin | 0 -> 419 bytes |
13 files changed, 206 insertions, 28 deletions
diff --git a/core/applets/lockapplet/.cvsignore b/core/applets/lockapplet/.cvsignore new file mode 100644 index 0000000..5e2908c --- a/dev/null +++ b/core/applets/lockapplet/.cvsignore | |||
@@ -0,0 +1,4 @@ | |||
1 | Makefile* | ||
2 | .moc | ||
3 | .obj | ||
4 | |||
diff --git a/core/applets/lockapplet/config.in b/core/applets/lockapplet/config.in new file mode 100644 index 0000000..ddc3522 --- a/dev/null +++ b/core/applets/lockapplet/config.in | |||
@@ -0,0 +1,4 @@ | |||
1 | config LOCKAPPLET | ||
2 | boolean "opie-lockapplet (button in the Opie menu to lock the PDA)" | ||
3 | default "y" | ||
4 | depends ( LIBQPE || LIBQPE-X11 ) && SECURITY | ||
diff --git a/core/applets/lockapplet/lock.cpp b/core/applets/lockapplet/lock.cpp new file mode 100644 index 0000000..89f27bb --- a/dev/null +++ b/core/applets/lockapplet/lock.cpp | |||
@@ -0,0 +1,84 @@ | |||
1 | #include "lock.h" | ||
2 | |||
3 | /* OPIE */ | ||
4 | #include <opie2/multiauthpassword.h> | ||
5 | |||
6 | #include <qpe/applnk.h> | ||
7 | #include <qpe/resource.h> | ||
8 | |||
9 | /* QT */ | ||
10 | #include <qiconset.h> | ||
11 | #include <qpopupmenu.h> | ||
12 | #include <qmessagebox.h> | ||
13 | |||
14 | |||
15 | LockMenuApplet::LockMenuApplet() | ||
16 | :QObject( 0, "LockMenuApplet" ) | ||
17 | { | ||
18 | } | ||
19 | |||
20 | LockMenuApplet::~LockMenuApplet ( ) | ||
21 | {} | ||
22 | |||
23 | int LockMenuApplet::position() const | ||
24 | { | ||
25 | return 3; | ||
26 | } | ||
27 | |||
28 | QString LockMenuApplet::name() const | ||
29 | { | ||
30 | return tr( "Lock shortcut" ); | ||
31 | } | ||
32 | |||
33 | QString LockMenuApplet::text() const | ||
34 | { | ||
35 | return tr( "Lock" ); | ||
36 | } | ||
37 | |||
38 | |||
39 | QIconSet LockMenuApplet::icon() const | ||
40 | { | ||
41 | QPixmap pix; | ||
42 | QImage img = Resource::loadImage( "security/lock" ); | ||
43 | if ( !img.isNull() ) | ||
44 | pix.convertFromImage( img.smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ) ); | ||
45 | return pix; | ||
46 | } | ||
47 | |||
48 | QPopupMenu* LockMenuApplet::popup(QWidget*) const | ||
49 | { | ||
50 | /* no subdir */ | ||
51 | return 0; | ||
52 | } | ||
53 | |||
54 | void LockMenuApplet::activated() | ||
55 | { | ||
56 | /* | ||
57 | QMessageBox::information(0,tr("No white rabbit found"), | ||
58 | tr("<qt>No white rabbit was seen near Opie." | ||
59 | "Only the beautiful OpieZilla is available" | ||
60 | "for your pleassure</qt>")); | ||
61 | */ | ||
62 | Opie::Security::MultiauthPassword::authenticate(Opie::Security::LockNow); | ||
63 | } | ||
64 | |||
65 | |||
66 | QRESULT LockMenuApplet::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) | ||
67 | { | ||
68 | *iface = 0; | ||
69 | if ( uuid == IID_QUnknown ) | ||
70 | *iface = this; | ||
71 | else if ( uuid == IID_MenuApplet ) | ||
72 | *iface = this; | ||
73 | else | ||
74 | return QS_FALSE; | ||
75 | |||
76 | if ( *iface ) | ||
77 | (*iface)->addRef(); | ||
78 | return QS_OK; | ||
79 | } | ||
80 | |||
81 | Q_EXPORT_INTERFACE() | ||
82 | { | ||
83 | Q_CREATE_INSTANCE( LockMenuApplet ) | ||
84 | } | ||
diff --git a/core/applets/lockapplet/lock.h b/core/applets/lockapplet/lock.h new file mode 100644 index 0000000..ff94bce --- a/dev/null +++ b/core/applets/lockapplet/lock.h | |||
@@ -0,0 +1,36 @@ | |||
1 | /** | ||
2 | * \file lock.h | ||
3 | * \brief defines a lock button that goes in the 'O' Opie menu | ||
4 | * It's based on the examples/menuapplet code of 2004/10/06. | ||
5 | */ | ||
6 | #ifndef CORE_SETTINGS_SECURITY_LOCKAPPLET_LOCK_H | ||
7 | #define CORE_SETTINGS_SECURITY_LOCKAPPLET_LOCK_H | ||
8 | |||
9 | #include <qpe/menuappletinterface.h> | ||
10 | #include <qobject.h> | ||
11 | |||
12 | class LockMenuApplet: public QObject, public MenuAppletInterface | ||
13 | { | ||
14 | |||
15 | Q_OBJECT | ||
16 | |||
17 | public: | ||
18 | LockMenuApplet ( ); | ||
19 | virtual ~LockMenuApplet ( ); | ||
20 | |||
21 | QRESULT queryInterface( const QUuid&, QUnknownInterface** ); | ||
22 | Q_REFCOUNT | ||
23 | |||
24 | virtual int position() const; | ||
25 | |||
26 | virtual QString name ( ) const; | ||
27 | virtual QIconSet icon ( ) const; | ||
28 | virtual QString text ( ) const; | ||
29 | /* virtual QString tr( const char* ) const; | ||
30 | virtual QString tr( const char*, const char* ) const; | ||
31 | */ | ||
32 | virtual QPopupMenu *popup ( QWidget *parent ) const; | ||
33 | virtual void activated ( ); | ||
34 | }; | ||
35 | |||
36 | #endif | ||
diff --git a/core/applets/lockapplet/lockapplet.pro b/core/applets/lockapplet/lockapplet.pro new file mode 100644 index 0000000..e0ee780 --- a/dev/null +++ b/core/applets/lockapplet/lockapplet.pro | |||
@@ -0,0 +1,12 @@ | |||
1 | TEMPLATE = lib | ||
2 | CONFIG += qt plugn warn_on | ||
3 | HEADERS = lock.h | ||
4 | SOURCES = lock.cpp | ||
5 | TARGET = lockapplet | ||
6 | DESTDIR = $(OPIEDIR)/plugins/applets | ||
7 | INCLUDEPATH += $(OPIEDIR)/include | ||
8 | DEPENDPATH += $(OPIEDIR)/include | ||
9 | LIBS += -lqpe | ||
10 | VERSION = 1.0.0 | ||
11 | |||
12 | include ( $(OPIEDIR)/include.pro ) | ||
diff --git a/core/applets/lockapplet/opie-lockapplet.control b/core/applets/lockapplet/opie-lockapplet.control new file mode 100644 index 0000000..e175a3e --- a/dev/null +++ b/core/applets/lockapplet/opie-lockapplet.control | |||
@@ -0,0 +1,11 @@ | |||
1 | Package: opie-lockapplet | ||
2 | Files: plugins/applets/liblockapplet.so* | ||
3 | Priority: optional | ||
4 | Section: opie/applets | ||
5 | Maintainer: Opie Team <opie@handhelds.org> | ||
6 | Architecture: arm | ||
7 | Depends: task-opie-minimal, opie-security | ||
8 | Description: Lock Opie now | ||
9 | Button to lock Opie (as configured in the Security | ||
10 | settings) on demand. | ||
11 | Version: $QPE_VERSION$EXTRAVERSION | ||
diff --git a/core/launcher/serverapp.cpp b/core/launcher/serverapp.cpp index dc1f2c7..e541d10 100644 --- a/core/launcher/serverapp.cpp +++ b/core/launcher/serverapp.cpp | |||
@@ -449,129 +449,130 @@ void ServerApplication::systemMessage( const QCString& msg, | |||
449 | else if ( msg == "setDisplayState(int)" ) { | 449 | else if ( msg == "setDisplayState(int)" ) { |
450 | int state; | 450 | int state; |
451 | stream >> state; | 451 | stream >> state; |
452 | m_screensaver-> setDisplayState ( state != 0 ); | 452 | m_screensaver-> setDisplayState ( state != 0 ); |
453 | } | 453 | } |
454 | else if ( msg == "suspend()" ) { | 454 | else if ( msg == "suspend()" ) { |
455 | emit power(); | 455 | emit power(); |
456 | } | 456 | } |
457 | else if ( msg == "sendBusinessCard()" ) { | 457 | else if ( msg == "sendBusinessCard()" ) { |
458 | QString card = ::getenv ( "HOME" ); | 458 | QString card = ::getenv ( "HOME" ); |
459 | card += "/Applications/addressbook/businesscard.vcf"; | 459 | card += "/Applications/addressbook/businesscard.vcf"; |
460 | 460 | ||
461 | if ( QFile::exists( card ) ) { | 461 | if ( QFile::exists( card ) ) { |
462 | QCopEnvelope e ( "QPE/Obex", "send(QString,QString,QString)" ); | 462 | QCopEnvelope e ( "QPE/Obex", "send(QString,QString,QString)" ); |
463 | QString mimetype = "text/x-vCard"; | 463 | QString mimetype = "text/x-vCard"; |
464 | e << tr( "business card" ) << card << mimetype; | 464 | e << tr( "business card" ) << card << mimetype; |
465 | } | 465 | } |
466 | } | 466 | } |
467 | } | 467 | } |
468 | 468 | ||
469 | void ServerApplication::reloadPowerWarnSettings ( ) | 469 | void ServerApplication::reloadPowerWarnSettings ( ) |
470 | { | 470 | { |
471 | Config cfg ( "apm" ); | 471 | Config cfg ( "apm" ); |
472 | cfg. setGroup ( "Warnings" ); | 472 | cfg. setGroup ( "Warnings" ); |
473 | 473 | ||
474 | int iv = cfg. readNumEntry ( "checkinterval", 10000 ); | 474 | int iv = cfg. readNumEntry ( "checkinterval", 10000 ); |
475 | 475 | ||
476 | m_apm_timer-> stop ( ); | 476 | m_apm_timer-> stop ( ); |
477 | if ( iv ) | 477 | if ( iv ) |
478 | m_apm_timer-> start ( iv ); | 478 | m_apm_timer-> start ( iv ); |
479 | 479 | ||
480 | m_powerVeryLow = cfg. readNumEntry ( "powerverylow", 10 ); | 480 | m_powerVeryLow = cfg. readNumEntry ( "powerverylow", 10 ); |
481 | m_powerCritical = cfg. readNumEntry ( "powervcritical", 5 ); | 481 | m_powerCritical = cfg. readNumEntry ( "powervcritical", 5 ); |
482 | } | 482 | } |
483 | 483 | ||
484 | void ServerApplication::launcherMessage( const QCString & msg, const QByteArray & data ) | 484 | void ServerApplication::launcherMessage( const QCString & msg, const QByteArray & data ) |
485 | { | 485 | { |
486 | QDataStream stream ( data, IO_ReadOnly ); | 486 | QDataStream stream ( data, IO_ReadOnly ); |
487 | 487 | ||
488 | if ( msg == "deviceButton(int,int,int)" ) { | 488 | if ( msg == "deviceButton(int,int,int)" ) { |
489 | int keycode, press, autoRepeat; | 489 | int keycode, press, autoRepeat; |
490 | stream >> keycode >> press >> autoRepeat; | 490 | stream >> keycode >> press >> autoRepeat; |
491 | 491 | ||
492 | kf->checkButtonAction ( true, keycode, press, autoRepeat ); | 492 | kf->checkButtonAction ( true, keycode, press, autoRepeat ); |
493 | } | 493 | } |
494 | else if ( msg == "keyRegister(int,QCString,QCString)" ) { | 494 | else if ( msg == "keyRegister(int,QCString,QCString)" ) { |
495 | int k; | 495 | int k; |
496 | QCString c, m; | 496 | QCString c, m; |
497 | stream >> k >> c >> m; | 497 | stream >> k >> c >> m; |
498 | 498 | ||
499 | kf -> registerKey( QCopKeyRegister(k, c, m) ); | 499 | kf -> registerKey( QCopKeyRegister(k, c, m) ); |
500 | } | 500 | } |
501 | } | 501 | } |
502 | 502 | ||
503 | 503 | ||
504 | bool ServerApplication::screenLocked() | 504 | bool ServerApplication::screenLocked() |
505 | { | 505 | { |
506 | return loggedin == 0; | 506 | return loggedin == 0; |
507 | } | 507 | } |
508 | 508 | ||
509 | void ServerApplication::login(bool at_poweron) | 509 | void ServerApplication::login(bool at_poweron) |
510 | { | 510 | { |
511 | if ( !loggedin ) { | 511 | if ( !loggedin ) { |
512 | Global::terminateBuiltin("calibrate"); // No tr | 512 | Global::terminateBuiltin("calibrate"); // No tr |
513 | Opie::Security::MultiauthPassword::authenticate(at_poweron); | 513 | int lockMode = at_poweron ? Opie::Security::IfPowerOn : Opie::Security::IfResume; |
514 | Opie::Security::MultiauthPassword::authenticate(lockMode); | ||
514 | loggedin=1; | 515 | loggedin=1; |
515 | #ifndef QT_NO_COP | 516 | #ifndef QT_NO_COP |
516 | QCopEnvelope e( "QPE/Desktop", "unlocked()" ); | 517 | QCopEnvelope e( "QPE/Desktop", "unlocked()" ); |
517 | #endif | 518 | #endif |
518 | } | 519 | } |
519 | } | 520 | } |
520 | 521 | ||
521 | #if defined(QPE_HAVE_TOGGLELIGHT) | 522 | #if defined(QPE_HAVE_TOGGLELIGHT) |
522 | #include <qtopia/config.h> | 523 | #include <qtopia/config.h> |
523 | 524 | ||
524 | #include <sys/ioctl.h> | 525 | #include <sys/ioctl.h> |
525 | #include <sys/types.h> | 526 | #include <sys/types.h> |
526 | #include <fcntl.h> | 527 | #include <fcntl.h> |
527 | #include <unistd.h> | 528 | #include <unistd.h> |
528 | #include <errno.h> | 529 | #include <errno.h> |
529 | #include <linux/ioctl.h> | 530 | #include <linux/ioctl.h> |
530 | #include <time.h> | 531 | #include <time.h> |
531 | #endif | 532 | #endif |
532 | 533 | ||
533 | namespace { | 534 | namespace { |
534 | void execAutoStart(const QDateTime& suspendTime ) { | 535 | void execAutoStart(const QDateTime& suspendTime ) { |
535 | QString appName; | 536 | QString appName; |
536 | int delay; | 537 | int delay; |
537 | QDateTime now = QDateTime::currentDateTime(); | 538 | QDateTime now = QDateTime::currentDateTime(); |
538 | 539 | ||
539 | Config cfg( "autostart" ); | 540 | Config cfg( "autostart" ); |
540 | cfg.setGroup( "AutoStart" ); | 541 | cfg.setGroup( "AutoStart" ); |
541 | appName = cfg.readEntry( "Apps", "" ); | 542 | appName = cfg.readEntry( "Apps", "" ); |
542 | delay = cfg.readNumEntry( "Delay", 0 ); | 543 | delay = cfg.readNumEntry( "Delay", 0 ); |
543 | 544 | ||
544 | // If the time between suspend and resume was longer then the | 545 | // If the time between suspend and resume was longer then the |
545 | // value saved as delay, start the app | 546 | // value saved as delay, start the app |
546 | if ( suspendTime.secsTo( now ) >= ( delay * 60 ) && !appName.isEmpty() ) { | 547 | if ( suspendTime.secsTo( now ) >= ( delay * 60 ) && !appName.isEmpty() ) { |
547 | QCopEnvelope e( "QPE/System", "execute(QString)" ); | 548 | QCopEnvelope e( "QPE/System", "execute(QString)" ); |
548 | e << QString( appName ); | 549 | e << QString( appName ); |
549 | } | 550 | } |
550 | } | 551 | } |
551 | } | 552 | } |
552 | 553 | ||
553 | 554 | ||
554 | void ServerApplication::togglePower() | 555 | void ServerApplication::togglePower() |
555 | { | 556 | { |
556 | static bool excllock = false; | 557 | static bool excllock = false; |
557 | 558 | ||
558 | if ( excllock ) | 559 | if ( excllock ) |
559 | return ; | 560 | return ; |
560 | 561 | ||
561 | excllock = true; | 562 | excllock = true; |
562 | 563 | ||
563 | bool wasloggedin = loggedin; | 564 | bool wasloggedin = loggedin; |
564 | loggedin = 0; | 565 | loggedin = 0; |
565 | m_suspendTime = QDateTime::currentDateTime(); | 566 | m_suspendTime = QDateTime::currentDateTime(); |
566 | 567 | ||
567 | #ifdef QWS | 568 | #ifdef QWS |
568 | if ( Opie::Security::MultiauthPassword::needToAuthenticate ( true ) && qt_screen ) { | 569 | if ( Opie::Security::MultiauthPassword::needToAuthenticate ( true ) && qt_screen ) { |
569 | // Should use a big black window instead. | 570 | // Should use a big black window instead. |
570 | // But this would not show up fast enough | 571 | // But this would not show up fast enough |
571 | QGfx *g = qt_screen-> screenGfx ( ); | 572 | QGfx *g = qt_screen-> screenGfx ( ); |
572 | g-> fillRect ( 0, 0, qt_screen-> width ( ), qt_screen-> height ( )); | 573 | g-> fillRect ( 0, 0, qt_screen-> width ( ), qt_screen-> height ( )); |
573 | delete g; | 574 | delete g; |
574 | } | 575 | } |
575 | #endif | 576 | #endif |
576 | 577 | ||
577 | ODevice::inst ( )-> suspend ( ); | 578 | ODevice::inst ( )-> suspend ( ); |
diff --git a/core/settings/security/demo/main.cpp b/core/settings/security/demo/main.cpp index 1c49f57..82f940d 100644 --- a/core/settings/security/demo/main.cpp +++ b/core/settings/security/demo/main.cpp | |||
@@ -1,12 +1,12 @@ | |||
1 | #include <opie2/multiauthpassword.h> | 1 | #include <opie2/multiauthpassword.h> |
2 | 2 | ||
3 | #include <opie2/oapplication.h> | 3 | #include <opie2/oapplication.h> |
4 | 4 | ||
5 | /// Run an authentication sequence using the global opie-security settings | 5 | /// Run an authentication sequence using the global opie-security settings |
6 | int main( int argc, char ** argv ) | 6 | int main( int argc, char ** argv ) |
7 | { | 7 | { |
8 | Opie::Core::OApplication app(argc, argv, "Multi-authentication demo"); | 8 | Opie::Core::OApplication app(argc, argv, "Multi-authentication demo"); |
9 | 9 | ||
10 | // Run the authentication process until it succeeds | 10 | // Run the authentication process until it succeeds |
11 | Opie::Security::MultiauthPassword::authenticate(); | 11 | Opie::Security::MultiauthPassword::authenticate(Opie::Security::LockNow); |
12 | } | 12 | } |
diff --git a/core/settings/security/multiauthconfig.cpp b/core/settings/security/multiauthconfig.cpp index 192b8ca..9d5c032 100644 --- a/core/settings/security/multiauthconfig.cpp +++ b/core/settings/security/multiauthconfig.cpp | |||
@@ -1,203 +1,189 @@ | |||
1 | #include <opie2/odebug.h> | 1 | #include <opie2/odebug.h> |
2 | #include <opie2/multiauthmainwindow.h> | 2 | #include <opie2/multiauthpassword.h> |
3 | 3 | ||
4 | #include <qgroupbox.h> | 4 | #include <qgroupbox.h> |
5 | #include <qvgroupbox.h> | 5 | #include <qvgroupbox.h> |
6 | #include <qpe/resource.h> | 6 | #include <qpe/resource.h> |
7 | #include <qlayout.h> | 7 | #include <qlayout.h> |
8 | #include <qlabel.h> | 8 | #include <qlabel.h> |
9 | #include <qhbox.h> | 9 | #include <qhbox.h> |
10 | #include <qheader.h> | 10 | #include <qheader.h> |
11 | #include <qvbox.h> | 11 | #include <qvbox.h> |
12 | #include <qwhatsthis.h> | 12 | #include <qwhatsthis.h> |
13 | #include <qtoolbutton.h> | 13 | #include <qtoolbutton.h> |
14 | #include <qstringlist.h> | 14 | #include <qstringlist.h> |
15 | #include <qdir.h> | 15 | #include <qdir.h> |
16 | #include <qpe/qlibrary.h> | 16 | #include <qpe/qlibrary.h> |
17 | #include <qpe/qpeapplication.h> | 17 | #include <qpe/qpeapplication.h> |
18 | 18 | ||
19 | #include "multiauthconfig.h" | 19 | #include "multiauthconfig.h" |
20 | 20 | ||
21 | 21 | ||
22 | using Opie::Security::MultiauthPluginInterface; | 22 | using Opie::Security::MultiauthPluginInterface; |
23 | using Opie::Security::MultiauthPluginObject; | 23 | using Opie::Security::MultiauthPluginObject; |
24 | using Opie::Security::MultiauthConfigWidget; | 24 | using Opie::Security::MultiauthConfigWidget; |
25 | /// keeps information about MultiauthPluginObject plugins | 25 | /// keeps information about MultiauthPluginObject plugins |
26 | struct MultiauthPlugin { | 26 | struct MultiauthPlugin { |
27 | MultiauthPlugin() : library( 0 ), iface( 0 ), pluginObject( 0 ) {} | 27 | MultiauthPlugin() : library( 0 ), iface( 0 ), pluginObject( 0 ) {} |
28 | /// plugin file | 28 | /// plugin file |
29 | QLibrary *library; | 29 | QLibrary *library; |
30 | /// the plugin object interface | 30 | /// the plugin object interface |
31 | QInterfacePtr<MultiauthPluginInterface> iface; | 31 | QInterfacePtr<MultiauthPluginInterface> iface; |
32 | /// the plugin object itself | 32 | /// the plugin object itself |
33 | MultiauthPluginObject *pluginObject; | 33 | MultiauthPluginObject *pluginObject; |
34 | /// name of the plugin file | 34 | /// name of the plugin file |
35 | QString name; | 35 | QString name; |
36 | /// should the plugin be launched during authentication or not | 36 | /// should the plugin be launched during authentication or not |
37 | bool active; | 37 | bool active; |
38 | /// order of the plugin, in the pluginListWidget and during authentication | 38 | /// order of the plugin, in the pluginListWidget and during authentication |
39 | int pos; | 39 | int pos; |
40 | }; | 40 | }; |
41 | 41 | ||
42 | /// list of available MultiauthPlugin objects | 42 | /// list of available MultiauthPlugin objects |
43 | static QValueList<MultiauthPlugin> pluginList; | 43 | static QValueList<MultiauthPlugin> pluginList; |
44 | 44 | ||
45 | 45 | ||
46 | /// extension of QToolButton that adds signals, icons and stuff (taken from todayconfig.cpp) | 46 | /// extension of QToolButton that adds signals, icons and stuff (taken from todayconfig.cpp) |
47 | class ToolButton : public QToolButton { | 47 | class ToolButton : public QToolButton { |
48 | 48 | ||
49 | public: | 49 | public: |
50 | ToolButton( QWidget *parent, const char *name, const QString& icon, QObject *handler, const QString& slot, bool t = FALSE ) | 50 | ToolButton( QWidget *parent, const char *name, const QString& icon, QObject *handler, const QString& slot, bool t = FALSE ) |
51 | : QToolButton( parent, name ) { | 51 | : QToolButton( parent, name ) { |
52 | setPixmap( Resource::loadPixmap( icon ) ); | 52 | setPixmap( Resource::loadPixmap( icon ) ); |
53 | setAutoRaise( TRUE ); | 53 | setAutoRaise( TRUE ); |
54 | setFocusPolicy( QWidget::NoFocus ); | 54 | setFocusPolicy( QWidget::NoFocus ); |
55 | setToggleButton( t ); | 55 | setToggleButton( t ); |
56 | connect( this, t ? SIGNAL( toggled(bool) ) : SIGNAL( clicked() ), handler, slot ); | 56 | connect( this, t ? SIGNAL( toggled(bool) ) : SIGNAL( clicked() ), handler, slot ); |
57 | } | 57 | } |
58 | }; | 58 | }; |
59 | 59 | ||
60 | MultiauthGeneralConfig::MultiauthGeneralConfig(MultiauthConfig * parentConfig, QWidget * parent, const char * name = "general Opie-multiauthentication config widget") | 60 | MultiauthGeneralConfig::MultiauthGeneralConfig(MultiauthConfig * parentConfig, QWidget * parent, const char * name = "general Opie-multiauthentication config widget") |
61 | : QWidget(parent, name), m_onStart(0), m_onResume(0), m_noProtectConfig(0), m_explanScreens(0), m_nbSuccessMin(0), m_tryButton(0) | 61 | : QWidget(parent, name), m_onStart(0), m_onResume(0), m_noProtectConfig(0), m_explanScreens(0), m_nbSuccessMin(0), m_tryButton(0) |
62 | { | 62 | { |
63 | // keep track of the MultiauthConfig parent in one of our attributes | 63 | // keep track of the MultiauthConfig parent in one of our attributes |
64 | m_parentConfig = parentConfig; | 64 | m_parentConfig = parentConfig; |
65 | QVBoxLayout *vb = new QVBoxLayout(this); | 65 | QVBoxLayout *vb = new QVBoxLayout(this); |
66 | vb->setSpacing(11); | 66 | vb->setSpacing(11); |
67 | vb->setMargin(11); | 67 | vb->setMargin(11); |
68 | vb->setAlignment( Qt::AlignTop ); | 68 | vb->setAlignment( Qt::AlignTop ); |
69 | 69 | ||
70 | QGroupBox *lockBox = new QGroupBox(0, Qt::Vertical, tr("When to lock Opie"), this, "lock box"); | 70 | QGroupBox *lockBox = new QGroupBox(0, Qt::Vertical, tr("When to lock Opie"), this, "lock box"); |
71 | vb->addWidget(lockBox); | 71 | vb->addWidget(lockBox); |
72 | QGridLayout *boxLayout = new QGridLayout( lockBox->layout() ); | 72 | QGridLayout *boxLayout = new QGridLayout( lockBox->layout() ); |
73 | m_onStart = new QCheckBox( tr( "on Opie start" ), lockBox, "lock on opie start"); | 73 | m_onStart = new QCheckBox( tr( "on Opie start" ), lockBox, "lock on opie start"); |
74 | m_onResume = new QCheckBox( tr( "on Opie resume" ), lockBox, "lock on opie resume"); | 74 | m_onResume = new QCheckBox( tr( "on Opie resume" ), lockBox, "lock on opie resume"); |
75 | boxLayout->addWidget(m_onStart, 0, 0); | 75 | boxLayout->addWidget(m_onStart, 0, 0); |
76 | boxLayout->addWidget(m_onResume, 0, 1); | 76 | boxLayout->addWidget(m_onResume, 0, 1); |
77 | 77 | ||
78 | QGroupBox *nbBox = new QGroupBox(0, Qt::Vertical, tr("Multiple plugins authentication"), this, "nb box"); | 78 | QGroupBox *nbBox = new QGroupBox(0, Qt::Vertical, tr("Multiple plugins authentication"), this, "nb box"); |
79 | vb->addWidget(nbBox); | 79 | vb->addWidget(nbBox); |
80 | QGridLayout *nbBoxLayout = new QGridLayout( nbBox->layout() ); | 80 | QGridLayout *nbBoxLayout = new QGridLayout( nbBox->layout() ); |
81 | m_nbSuccessMin = new QSpinBox(nbBox); | 81 | m_nbSuccessMin = new QSpinBox(nbBox); |
82 | QLabel *lNbSuccessMin = new QLabel( tr( "Required successes" ), nbBox); | 82 | QLabel *lNbSuccessMin = new QLabel( tr( "Required successes" ), nbBox); |
83 | nbBoxLayout->addWidget(m_nbSuccessMin, 0, 0); | 83 | nbBoxLayout->addWidget(m_nbSuccessMin, 0, 0); |
84 | nbBoxLayout->addWidget(lNbSuccessMin, 0, 1); | 84 | nbBoxLayout->addWidget(lNbSuccessMin, 0, 1); |
85 | m_nbSuccessMin->setMinValue(1); // the max value is defined in MultiauthConfig constructor | 85 | m_nbSuccessMin->setMinValue(1); // the max value is defined in MultiauthConfig constructor |
86 | 86 | ||
87 | QGroupBox *devBox = new QGroupBox(0, Qt::Vertical, tr("Options"), this, "dev box"); | 87 | QGroupBox *devBox = new QGroupBox(0, Qt::Vertical, tr("Options"), this, "dev box"); |
88 | vb->addWidget(devBox); | 88 | vb->addWidget(devBox); |
89 | QGridLayout *devBoxLayout = new QGridLayout( devBox->layout() ); | 89 | QGridLayout *devBoxLayout = new QGridLayout( devBox->layout() ); |
90 | m_noProtectConfig = new QCheckBox( tr("Don't protect this config screen"), devBox, "don't protect config"); | 90 | m_noProtectConfig = new QCheckBox( tr("Don't protect this config screen"), devBox, "don't protect config"); |
91 | m_explanScreens = new QCheckBox( tr("Show explanatory screens"), devBox, "Show explan. screens"); | 91 | m_explanScreens = new QCheckBox( tr("Show explanatory screens"), devBox, "Show explan. screens"); |
92 | devBoxLayout->addWidget(m_noProtectConfig, 0, 0); | 92 | devBoxLayout->addWidget(m_noProtectConfig, 0, 0); |
93 | devBoxLayout->addWidget(m_explanScreens, 1, 0); | 93 | devBoxLayout->addWidget(m_explanScreens, 1, 0); |
94 | 94 | ||
95 | QVGroupBox *tryBox = new QVGroupBox(tr("Testing"), this, "try box"); | 95 | QVGroupBox *tryBox = new QVGroupBox(tr("Testing"), this, "try box"); |
96 | vb->addWidget(tryBox); | 96 | vb->addWidget(tryBox); |
97 | m_tryButton = new QPushButton( tr("Test the authentication now"), tryBox, "try button"); | 97 | m_tryButton = new QPushButton( tr("Test the authentication now"), tryBox, "try button"); |
98 | connect( m_tryButton, SIGNAL(clicked()), this, SLOT(tryAuth()) ); | 98 | connect( m_tryButton, SIGNAL(clicked()), this, SLOT(tryAuth()) ); |
99 | 99 | ||
100 | } | 100 | } |
101 | 101 | ||
102 | /// nothing to do | 102 | /// nothing to do |
103 | MultiauthGeneralConfig::~MultiauthGeneralConfig() | 103 | MultiauthGeneralConfig::~MultiauthGeneralConfig() |
104 | {} | 104 | {} |
105 | 105 | ||
106 | /// launches the authentication process, as configured, with the option to bypass it | 106 | /// launches the authentication process, as configured, with the option to bypass it |
107 | void MultiauthGeneralConfig::tryAuth() | 107 | void MultiauthGeneralConfig::tryAuth() |
108 | { | 108 | { |
109 | QMessageBox confirmSave( | 109 | QMessageBox confirmSave( |
110 | tr("Attention"), | 110 | tr("Attention"), |
111 | "<p>" + tr("You must save your current settings before trying to authenticate. Press OK to accept and launch a simulated authentication process.") + "</p><p><em>" + | 111 | "<p>" + tr("You must save your current settings before trying to authenticate. Press OK to accept and launch a simulated authentication process.") + "</p><p><em>" + |
112 | tr("If you don't like the result of this test, don't forget to change your settings before you exit the configuration application!") + "</em></p>", | 112 | tr("If you don't like the result of this test, don't forget to change your settings before you exit the configuration application!") + "</em></p>", |
113 | QMessageBox::Warning, | 113 | QMessageBox::Warning, |
114 | QMessageBox::Cancel, QMessageBox::Yes, QMessageBox::NoButton, | 114 | QMessageBox::Cancel, QMessageBox::Yes, QMessageBox::NoButton, |
115 | 0, QString::null, TRUE, WStyle_StaysOnTop); | 115 | 0, QString::null, TRUE, WStyle_StaysOnTop); |
116 | confirmSave.setButtonText(QMessageBox::Cancel, tr("Cancel")); | 116 | confirmSave.setButtonText(QMessageBox::Cancel, tr("Cancel")); |
117 | confirmSave.setButtonText(QMessageBox::Yes, tr("OK")); | 117 | confirmSave.setButtonText(QMessageBox::Yes, tr("OK")); |
118 | 118 | ||
119 | if ( confirmSave.exec() == QMessageBox::Yes) | 119 | if ( confirmSave.exec() == QMessageBox::Yes) |
120 | { | 120 | { |
121 | owarn << "writing config as user accepted" << oendl; | 121 | owarn << "writing config as user accepted" << oendl; |
122 | m_parentConfig->writeConfigs(); | 122 | m_parentConfig->writeConfigs(); |
123 | owarn << "testing authentication" << oendl; | 123 | owarn << "testing authentication" << oendl; |
124 | 124 | // launch the authentication in testing mode | |
125 | /* launch the authentication in debug, aka "allowBypass == true", mode | 125 | Opie::Security::MultiauthPassword::authenticate(Opie::Security::TestNow); |
126 | */ | ||
127 | |||
128 | Opie::Security::MultiauthMainWindow win(true); | ||
129 | // resize the QDialog object so it fills all the screen | ||
130 | QRect desk = qApp->desktop()->geometry(); | ||
131 | win.setGeometry( 0, 0, desk.width(), desk.height() ); | ||
132 | |||
133 | // the authentication has already succeeded (without win interactions) | ||
134 | if ( win.isAlreadyDone() ) | ||
135 | return; | ||
136 | |||
137 | win.exec(); | ||
138 | |||
139 | } | ||
140 | 126 | ||
141 | } | 127 | } |
142 | 128 | ||
143 | 129 | ||
144 | /// Builds and displays the Opie multi-authentication configuration dialog | 130 | /// Builds and displays the Opie multi-authentication configuration dialog |
145 | static void test_and_start() { | 131 | static void test_and_start() { |
146 | Config pcfg("Security"); | 132 | Config pcfg("Security"); |
147 | pcfg.setGroup( "Misc" ); | 133 | pcfg.setGroup( "Misc" ); |
148 | bool protectConfigDialog = ! pcfg.readBoolEntry("noProtectConfig", true); | 134 | bool protectConfigDialog = ! pcfg.readBoolEntry("noProtectConfig", true); |
149 | 135 | ||
150 | if (protectConfigDialog && Opie::Security::Internal::runPlugins() != 0) { | 136 | if (protectConfigDialog && Opie::Security::Internal::runPlugins() != 0) { |
151 | owarn << "authentication failed, not showing opie-security" << oendl; | 137 | owarn << "authentication failed, not showing opie-security" << oendl; |
152 | exit( -1 ); | 138 | exit( -1 ); |
153 | } | 139 | } |
154 | } | 140 | } |
155 | 141 | ||
156 | 142 | ||
157 | 143 | ||
158 | MultiauthConfig::MultiauthConfig(QWidget* par, const char* w = "MultiauthConfig dialog", WFlags f = 0) | 144 | MultiauthConfig::MultiauthConfig(QWidget* par, const char* w = "MultiauthConfig dialog", WFlags f = 0) |
159 | : QDialog(par, w, TRUE, f), | 145 | : QDialog(par, w, TRUE, f), |
160 | m_mainTW(0), m_pluginListView(0), m_pluginListWidget(0), | 146 | m_mainTW(0), m_pluginListView(0), m_pluginListWidget(0), |
161 | m_generalConfig(0), m_loginWidget(0), m_syncWidget(0), | 147 | m_generalConfig(0), m_loginWidget(0), m_syncWidget(0), |
162 | m_nbSuccessReq(0), m_plugins_changed(false) | 148 | m_nbSuccessReq(0), m_plugins_changed(false) |
163 | { | 149 | { |
164 | /* Initializes the global configuration window | 150 | /* Initializes the global configuration window |
165 | */ | 151 | */ |
166 | test_and_start(); | 152 | test_and_start(); |
167 | 153 | ||
168 | /* Checks (and memorizes) if any authentication plugins are | 154 | /* Checks (and memorizes) if any authentication plugins are |
169 | * installed on the system | 155 | * installed on the system |
170 | */ | 156 | */ |
171 | QString path = QPEApplication::qpeDir() + "/plugins/security"; | 157 | QString path = QPEApplication::qpeDir() + "/plugins/security"; |
172 | QDir dir( path, "lib*.so" ); | 158 | QDir dir( path, "lib*.so" ); |
173 | QStringList list = dir.entryList(); | 159 | QStringList list = dir.entryList(); |
174 | 160 | ||
175 | m_pluginsInstalled = ! list.isEmpty(); | 161 | m_pluginsInstalled = ! list.isEmpty(); |
176 | if (m_pluginsInstalled == false) | 162 | if (m_pluginsInstalled == false) |
177 | owarn << "no authentication plugins installed! Talking about it in the last tab..." << oendl; | 163 | owarn << "no authentication plugins installed! Talking about it in the last tab..." << oendl; |
178 | 164 | ||
179 | setCaption( tr( "Security configuration" ) ); | 165 | setCaption( tr( "Security configuration" ) ); |
180 | QVBoxLayout *layout = new QVBoxLayout( this ); | 166 | QVBoxLayout *layout = new QVBoxLayout( this ); |
181 | m_mainTW = new Opie::Ui::OTabWidget( this, "main tab widget" ); | 167 | m_mainTW = new Opie::Ui::OTabWidget( this, "main tab widget" ); |
182 | layout->addWidget(m_mainTW); | 168 | layout->addWidget(m_mainTW); |
183 | 169 | ||
184 | if (m_pluginsInstalled) | 170 | if (m_pluginsInstalled) |
185 | { | 171 | { |
186 | m_pluginListWidget = new QWidget(m_mainTW, "plugin list widget"); | 172 | m_pluginListWidget = new QWidget(m_mainTW, "plugin list widget"); |
187 | QVBoxLayout * pluginListLayout = new QVBoxLayout(m_pluginListWidget); | 173 | QVBoxLayout * pluginListLayout = new QVBoxLayout(m_pluginListWidget); |
188 | pluginListLayout->setSpacing(6); | 174 | pluginListLayout->setSpacing(6); |
189 | pluginListLayout->setMargin(11); | 175 | pluginListLayout->setMargin(11); |
190 | QLabel * pluginListTitle = new QLabel( tr( "Load which plugins in what order:" ), m_pluginListWidget ); | 176 | QLabel * pluginListTitle = new QLabel( tr( "Load which plugins in what order:" ), m_pluginListWidget ); |
191 | pluginListLayout->addWidget(pluginListTitle); | 177 | pluginListLayout->addWidget(pluginListTitle); |
192 | QHBox * pluginListHB = new QHBox(m_pluginListWidget); | 178 | QHBox * pluginListHB = new QHBox(m_pluginListWidget); |
193 | pluginListLayout->addWidget(pluginListHB); | 179 | pluginListLayout->addWidget(pluginListHB); |
194 | 180 | ||
195 | m_pluginListView = new QListView(pluginListHB); | 181 | m_pluginListView = new QListView(pluginListHB); |
196 | m_pluginListView->addColumn("PluginList"); | 182 | m_pluginListView->addColumn("PluginList"); |
197 | m_pluginListView->header()->hide(); | 183 | m_pluginListView->header()->hide(); |
198 | m_pluginListView->setSorting(-1); | 184 | m_pluginListView->setSorting(-1); |
199 | QWhatsThis::add(m_pluginListView, tr( "Check a checkbox to activate/deactivate a plugin or use the arrow buttons on the right to change the order they will appear in" )); | 185 | QWhatsThis::add(m_pluginListView, tr( "Check a checkbox to activate/deactivate a plugin or use the arrow buttons on the right to change the order they will appear in" )); |
200 | 186 | ||
201 | QVBox * pluginListVB = new QVBox(pluginListHB); | 187 | QVBox * pluginListVB = new QVBox(pluginListHB); |
202 | new ToolButton( pluginListVB, tr( "Move Up" ), "up", this , SLOT( moveSelectedUp() ) ); | 188 | new ToolButton( pluginListVB, tr( "Move Up" ), "up", this , SLOT( moveSelectedUp() ) ); |
203 | new ToolButton( pluginListVB, tr( "Move Down" ), "down", this , SLOT( moveSelectedDown() ) ); | 189 | new ToolButton( pluginListVB, tr( "Move Down" ), "down", this , SLOT( moveSelectedDown() ) ); |
diff --git a/libopie2/opiesecurity/multiauthpassword.cpp b/libopie2/opiesecurity/multiauthpassword.cpp index 42341f7..8eda554 100644 --- a/libopie2/opiesecurity/multiauthpassword.cpp +++ b/libopie2/opiesecurity/multiauthpassword.cpp | |||
@@ -1,105 +1,138 @@ | |||
1 | /** | 1 | /** |
2 | * \file multiauthpassword.cpp | 2 | * \file multiauthpassword.cpp |
3 | * \brief Password Dialog dropin. | 3 | * \brief Password Dialog dropin. |
4 | * \author Clément Séveillac (clement . seveillac (at) via . ecp . fr) | 4 | * \author Clément Séveillac (clement . seveillac (at) via . ecp . fr) |
5 | */ | 5 | */ |
6 | /* | 6 | /* |
7 | =. This file is part of the Opie Project | 7 | =. This file is part of the Opie Project |
8 | .=l. Copyright (C) 2004 Opie Developer Team <opie-devel@handhelds.org> | 8 | .=l. Copyright (C) 2004 Opie Developer Team <opie-devel@handhelds.org> |
9 | .>+-= | 9 | .>+-= |
10 | _;:, .> :=|. This library is free software; you can | 10 | _;:, .> :=|. This library is free software; you can |
11 | .> <`_, > . <= redistribute it and/or modify it under | 11 | .> <`_, > . <= redistribute it and/or modify it under |
12 | :`=1 )Y*s>-.-- : the terms of the GNU Library General Public | 12 | :`=1 )Y*s>-.-- : the terms of the GNU Library General Public |
13 | .="- .-=="i, .._ License as published by the Free Software | 13 | .="- .-=="i, .._ License as published by the Free Software |
14 | - . .-<_> .<> Foundation; either version 2 of the License, | 14 | - . .-<_> .<> Foundation; either version 2 of the License, |
15 | ._= =} : or (at your option) any later version. | 15 | ._= =} : or (at your option) any later version. |
16 | .%`+i> _;_. | 16 | .%`+i> _;_. |
17 | .i_,=:_. -<s. This library is distributed in the hope that | 17 | .i_,=:_. -<s. This library is distributed in the hope that |
18 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; | 18 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; |
19 | : .. .:, . . . without even the implied warranty of | 19 | : .. .:, . . . without even the implied warranty of |
20 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A | 20 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A |
21 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU | 21 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU |
22 | ..}^=.= = ; Library General Public License for more | 22 | ..}^=.= = ; Library General Public License for more |
23 | ++= -. .` .: details. | 23 | ++= -. .` .: details. |
24 | : = ...= . :.=- | 24 | : = ...= . :.=- |
25 | -. .:....=;==+<; You should have received a copy of the GNU | 25 | -. .:....=;==+<; You should have received a copy of the GNU |
26 | -_. . . )=. = Library General Public License along with | 26 | -_. . . )=. = Library General Public License along with |
27 | -- :-=` this library; see the file COPYING.LIB. | 27 | -- :-=` this library; see the file COPYING.LIB. |
28 | If not, write to the Free Software Foundation, | 28 | If not, write to the Free Software Foundation, |
29 | Inc., 59 Temple Place - Suite 330, | 29 | Inc., 59 Temple Place - Suite 330, |
30 | Boston, MA 02111-1307, USA. | 30 | Boston, MA 02111-1307, USA. |
31 | 31 | ||
32 | */ | 32 | */ |
33 | 33 | ||
34 | 34 | ||
35 | /* OPIE */ | 35 | /* OPIE */ |
36 | #include <opie2/multiauthcommon.h> | 36 | #include <opie2/multiauthcommon.h> |
37 | #include <opie2/multiauthmainwindow.h> | 37 | #include <opie2/multiauthmainwindow.h> |
38 | #include <qpe/config.h> | 38 | #include <qpe/config.h> |
39 | #include <qpe/qlibrary.h> | 39 | #include <qpe/qlibrary.h> |
40 | #include <qpe/qcom.h> | 40 | #include <qpe/qcom.h> |
41 | 41 | ||
42 | /* QT */ | 42 | /* QT */ |
43 | #include <qapplication.h> | 43 | #include <qapplication.h> |
44 | #include <qvbox.h> | 44 | #include <qvbox.h> |
45 | #include <qpushbutton.h> | 45 | #include <qpushbutton.h> |
46 | #include <qlabel.h> | 46 | #include <qlabel.h> |
47 | #include <qdir.h> | 47 | #include <qdir.h> |
48 | 48 | ||
49 | #include "multiauthpassword.h" | 49 | #include "multiauthpassword.h" |
50 | 50 | ||
51 | namespace Opie { | 51 | namespace Opie { |
52 | namespace Security { | 52 | namespace Security { |
53 | 53 | ||
54 | 54 | ||
55 | /** | 55 | /** |
56 | * If the users requires authentication... #fixme | 56 | * Tells if the users requires authentication (used internally to |
57 | * know whether to repaint the screen on resume) | ||
57 | * | 58 | * |
58 | * @todo fix up at_poweron attribute | 59 | * \param at_poweron true if we are booting Opie, false if we are resuming it |
60 | * \return true if authenticate() launched right now would trigger an authentication | ||
59 | */ | 61 | */ |
60 | bool MultiauthPassword::needToAuthenticate(bool at_poweron) | 62 | bool MultiauthPassword::needToAuthenticate(bool at_poweron) |
61 | { | 63 | { |
62 | Config cfg("Security"); | 64 | Config cfg("Security"); |
63 | cfg.setGroup("Misc"); | 65 | cfg.setGroup("Misc"); |
64 | if ( !at_poweron && cfg.readBoolEntry("onStart", false) ) | 66 | if ( !at_poweron && cfg.readBoolEntry("onStart", false) ) |
65 | return true; | 67 | return true; |
66 | else if ( at_poweron && cfg.readBoolEntry("onResume", false) ) | 68 | else if ( at_poweron && cfg.readBoolEntry("onResume", false) ) |
67 | return true; | 69 | return true; |
68 | else | 70 | else |
69 | return false; | 71 | return false; |
70 | } | 72 | } |
71 | 73 | ||
72 | 74 | ||
75 | |||
73 | /** | 76 | /** |
74 | * \brief Require user authentication to unlock and continue | 77 | * \brief Require (if configured so) user authentication to unlock and continue |
75 | * | 78 | * |
76 | * This method will check if you require authentication | 79 | * This method will check if you require authentication |
77 | * and then will lock the screen and ask for a successful | 80 | * and then will lock the screen and ask for a successful |
78 | * authentication (explaining what it does or not, depending | 81 | * authentication (explaining what it does or not, depending |
79 | * on your local configuration). | 82 | * on your local configuration). |
80 | * It may go into an event loop, but anyhow it will only end | 83 | * It may go into an event loop, but anyhow it will only end |
81 | * when the user has successfully authenticated to the system. | 84 | * when the user has successfully authenticated to the system. |
82 | */ | 85 | */ |
83 | void MultiauthPassword::authenticate(bool at_poweron) | 86 | void MultiauthPassword::authenticate(int lockMode) |
84 | { | 87 | { |
85 | if ( ! needToAuthenticate(at_poweron) ) | 88 | /** |
86 | return; | 89 | * \par Conditions |
90 | * | ||
91 | * If lockMode is an If, it's conditional: | ||
92 | * \li IfPowerOn will not trigger an authentication if | ||
93 | * onStart is set to false in Security.conf, | ||
94 | * \li IfResume will not trigger an authentication if | ||
95 | * onResume is set to false in Security.conf. | ||
96 | */ | ||
97 | if ( (lockMode == IfPowerOn) || (lockMode == IfResume) ) | ||
98 | { | ||
99 | Config cfg("Security"); | ||
100 | cfg.setGroup("Misc"); | ||
101 | if ( ( | ||
102 | (lockMode == IfPowerOn) && cfg.readBoolEntry("onStart", false) | ||
103 | ) || ( | ||
104 | (lockMode == IfResume) && cfg.readBoolEntry("onResume", false) | ||
105 | ) ) | ||
106 | return; | ||
107 | } | ||
108 | |||
109 | /** | ||
110 | * \li TestNow will ensure that the authentication window will let | ||
111 | * people escape through the last screen (which they can reach skipping | ||
112 | * all the authentication steps) | ||
113 | * \li LockNow will always go on with the authentication, and won't let | ||
114 | * people escape. | ||
115 | */ | ||
116 | bool allowByPass = false; | ||
117 | |||
118 | if (lockMode == TestNow) | ||
119 | allowByPass = true; | ||
87 | 120 | ||
88 | /* Constructs the main window, which displays messages and blocks | 121 | /* Constructs the main window, which displays messages and blocks |
89 | * access to the desktop | 122 | * access to the desktop |
90 | */ | 123 | */ |
91 | MultiauthMainWindow win; | 124 | MultiauthMainWindow win(allowByPass); |
92 | 125 | ||
93 | // resize the QDialog object so it fills all the screen | 126 | // resize the QDialog object so it fills all the screen |
94 | QRect desk = qApp->desktop()->geometry(); | 127 | QRect desk = qApp->desktop()->geometry(); |
95 | win.setGeometry( 0, 0, desk.width(), desk.height() ); | 128 | win.setGeometry( 0, 0, desk.width(), desk.height() ); |
96 | 129 | ||
97 | // the authentication has already succeeded (without win interactions) | 130 | // the authentication has already succeeded (without win interactions) |
98 | if ( win.isAlreadyDone() ) | 131 | if ( win.isAlreadyDone() ) |
99 | return; | 132 | return; |
100 | 133 | ||
101 | win.exec(); | 134 | win.exec(); |
102 | } | 135 | } |
103 | 136 | ||
104 | } | 137 | } |
105 | } | 138 | } |
diff --git a/libopie2/opiesecurity/multiauthpassword.h b/libopie2/opiesecurity/multiauthpassword.h index fe276da..effdaa1 100644 --- a/libopie2/opiesecurity/multiauthpassword.h +++ b/libopie2/opiesecurity/multiauthpassword.h | |||
@@ -1,59 +1,65 @@ | |||
1 | /** | 1 | /** |
2 | * \file multiauthpassword.h | 2 | * \file multiauthpassword.h |
3 | * \brief Password Dialog dropin. | 3 | * \brief Password Dialog dropin. |
4 | * \author Clément Séveillac (clement . seveillac (at) via . ecp . fr) | 4 | * \author Clément Séveillac (clement . seveillac (at) via . ecp . fr) |
5 | */ | 5 | */ |
6 | /* | 6 | /* |
7 | =. This file is part of the Opie Project | 7 | =. This file is part of the Opie Project |
8 | .=l. Copyright (C) 2004 Opie Developer Team <opie-devel@handhelds.org> | 8 | .=l. Copyright (C) 2004 Opie Developer Team <opie-devel@handhelds.org> |
9 | .>+-= | 9 | .>+-= |
10 | _;:, .> :=|. This library is free software; you can | 10 | _;:, .> :=|. This library is free software; you can |
11 | .> <`_, > . <= redistribute it and/or modify it under | 11 | .> <`_, > . <= redistribute it and/or modify it under |
12 | :`=1 )Y*s>-.-- : the terms of the GNU Library General Public | 12 | :`=1 )Y*s>-.-- : the terms of the GNU Library General Public |
13 | .="- .-=="i, .._ License as published by the Free Software | 13 | .="- .-=="i, .._ License as published by the Free Software |
14 | - . .-<_> .<> Foundation; either version 2 of the License, | 14 | - . .-<_> .<> Foundation; either version 2 of the License, |
15 | ._= =} : or (at your option) any later version. | 15 | ._= =} : or (at your option) any later version. |
16 | .%`+i> _;_. | 16 | .%`+i> _;_. |
17 | .i_,=:_. -<s. This library is distributed in the hope that | 17 | .i_,=:_. -<s. This library is distributed in the hope that |
18 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; | 18 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; |
19 | : .. .:, . . . without even the implied warranty of | 19 | : .. .:, . . . without even the implied warranty of |
20 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A | 20 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A |
21 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU | 21 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU |
22 | ..}^=.= = ; Library General Public License for more | 22 | ..}^=.= = ; Library General Public License for more |
23 | ++= -. .` .: details. | 23 | ++= -. .` .: details. |
24 | : = ...= . :.=- | 24 | : = ...= . :.=- |
25 | -. .:....=;==+<; You should have received a copy of the GNU | 25 | -. .:....=;==+<; You should have received a copy of the GNU |
26 | -_. . . )=. = Library General Public License along with | 26 | -_. . . )=. = Library General Public License along with |
27 | -- :-=` this library; see the file COPYING.LIB. | 27 | -- :-=` this library; see the file COPYING.LIB. |
28 | If not, write to the Free Software Foundation, | 28 | If not, write to the Free Software Foundation, |
29 | Inc., 59 Temple Place - Suite 330, | 29 | Inc., 59 Temple Place - Suite 330, |
30 | Boston, MA 02111-1307, USA. | 30 | Boston, MA 02111-1307, USA. |
31 | 31 | ||
32 | */ | 32 | */ |
33 | 33 | ||
34 | 34 | ||
35 | #ifndef OPIE_SEC_MULTIAUTHPASSWORD_H | 35 | #ifndef OPIE_SEC_MULTIAUTHPASSWORD_H |
36 | #define OPIE_SEC_MULTIAUTHPASSWORD_H | 36 | #define OPIE_SEC_MULTIAUTHPASSWORD_H |
37 | 37 | ||
38 | namespace Opie { | 38 | namespace Opie { |
39 | namespace Security { | 39 | namespace Security { |
40 | 40 | ||
41 | enum lockMode { | ||
42 | IfPowerOn, | ||
43 | IfResume, | ||
44 | TestNow, | ||
45 | LockNow }; | ||
41 | /** | 46 | /** |
42 | * This is the dropin replacement for the libqpe Password class. | 47 | * This is the dropin replacement for the libqpe Password class. |
43 | * If you call authenticate() a widget will cover the whole screen | 48 | * If you call authenticate() a widget will cover the whole screen |
44 | * and only return if the user is able to authenticate with any of the | 49 | * and only return if the user is able to authenticate with any of the |
45 | * configured Authentication Plugins. | 50 | * configured Authentication Plugins. |
46 | * It uses the Opie::Security::MultiauthMainWindow QDialog internally. | 51 | * It uses the Opie::Security::MultiauthMainWindow QDialog internally. |
47 | * | 52 | * |
48 | * @author Clement Séveillac, Holger Freyther | 53 | * @author Clement Séveillac, Holger Freyther |
49 | */ | 54 | */ |
50 | class MultiauthPassword { | 55 | class MultiauthPassword { |
56 | |||
51 | public: | 57 | public: |
52 | static bool needToAuthenticate( bool atpoweron = false ); | 58 | static void authenticate(int authMode = LockNow); |
53 | static void authenticate(bool atpoweron = false); | 59 | static bool needToAuthenticate( bool atpoweron = false ); |
54 | }; | 60 | }; |
55 | 61 | ||
56 | 62 | ||
57 | } | 63 | } |
58 | } | 64 | } |
59 | #endif | 65 | #endif |
@@ -37,128 +37,129 @@ CONFIG_DECO_FLAT noncore/decorations/flat flat.pro | |||
37 | CONFIG_DECO_LIQUID noncore/decorations/liquidliquid.pro | 37 | CONFIG_DECO_LIQUID noncore/decorations/liquidliquid.pro |
38 | CONFIG_DECO_POLISHED noncore/decorations/polishedpolished.pro | 38 | CONFIG_DECO_POLISHED noncore/decorations/polishedpolished.pro |
39 | CONFIG_DICTIONARY noncore/apps/dictionarydictionary.pro | 39 | CONFIG_DICTIONARY noncore/apps/dictionarydictionary.pro |
40 | CONFIG_DOCTAB noncore/settings/doctab doctab.pro | 40 | CONFIG_DOCTAB noncore/settings/doctab doctab.pro |
41 | CONFIG_DRAWPAD noncore/graphics/drawpaddrawpad.pro | 41 | CONFIG_DRAWPAD noncore/graphics/drawpaddrawpad.pro |
42 | CONFIG_DVORAK inputmethods/dvorakdvorak.pro | 42 | CONFIG_DVORAK inputmethods/dvorakdvorak.pro |
43 | CONFIG_EMBEDDEDKONSOLE core/apps/embeddedkonsoleembeddedkonsole.pro | 43 | CONFIG_EMBEDDEDKONSOLE core/apps/embeddedkonsoleembeddedkonsole.pro |
44 | CONFIG_EUROCONV noncore/tools/euroconv/ euroconv.pro | 44 | CONFIG_EUROCONV noncore/tools/euroconv/ euroconv.pro |
45 | CONFIG_EXAMPLE_BOARD examples/inputmethod example.pro | 45 | CONFIG_EXAMPLE_BOARD examples/inputmethod example.pro |
46 | CONFIG_EXAMPLE_MENU examples/menuapplet menuapplet.pro | 46 | CONFIG_EXAMPLE_MENU examples/menuapplet menuapplet.pro |
47 | CONFIG_EXAMPLE_VPN examples/networksettings example.pro | 47 | CONFIG_EXAMPLE_VPN examples/networksettings example.pro |
48 | CONFIG_FIFTEEN noncore/games/fifteenfifteen.pro | 48 | CONFIG_FIFTEEN noncore/games/fifteenfifteen.pro |
49 | CONFIG_FILEBROWSER noncore/unsupported/filebrowserfilebrowser.pro | 49 | CONFIG_FILEBROWSER noncore/unsupported/filebrowserfilebrowser.pro |
50 | CONFIG_FLAT noncore/styles/flatflat.pro | 50 | CONFIG_FLAT noncore/styles/flatflat.pro |
51 | CONFIG_FORMATTER noncore/tools/formatterformatter.pro | 51 | CONFIG_FORMATTER noncore/tools/formatterformatter.pro |
52 | CONFIG_FREETYPE freetypefreetype.pro | 52 | CONFIG_FREETYPE freetypefreetype.pro |
53 | CONFIG_FRESH noncore/styles/freshfresh.pro | 53 | CONFIG_FRESH noncore/styles/freshfresh.pro |
54 | CONFIG_FTPLIB noncore/net/ftplibftplib.pro | 54 | CONFIG_FTPLIB noncore/net/ftplibftplib.pro |
55 | CONFIG_GO noncore/games/gogo.pro | 55 | CONFIG_GO noncore/games/gogo.pro |
56 | CONFIG_GSMTOOL noncore/unsupported/gsmtoolgsmtool.pro | 56 | CONFIG_GSMTOOL noncore/unsupported/gsmtoolgsmtool.pro |
57 | CONFIG_GUTENBROWSER noncore/apps/opie-gutenbrowseropie-gutenbrowser.pro | 57 | CONFIG_GUTENBROWSER noncore/apps/opie-gutenbrowseropie-gutenbrowser.pro |
58 | CONFIG_HANDWRITING inputmethods/handwritinghandwriting.pro | 58 | CONFIG_HANDWRITING inputmethods/handwritinghandwriting.pro |
59 | CONFIG_HELPBROWSER core/apps/helpbrowserhelpbrowser.pro | 59 | CONFIG_HELPBROWSER core/apps/helpbrowserhelpbrowser.pro |
60 | CONFIG_HOMEAPPLET core/applets/homeapplethomeapplet.pro | 60 | CONFIG_HOMEAPPLET core/applets/homeapplethomeapplet.pro |
61 | CONFIG_INTERFACES noncore/settings/networksettings/interfacesinterfaces.pro | 61 | CONFIG_INTERFACES noncore/settings/networksettings/interfacesinterfaces.pro |
62 | CONFIG_IRDAAPPLET core/applets/irdaappletirdaapplet.pro | 62 | CONFIG_IRDAAPPLET core/applets/irdaappletirdaapplet.pro |
63 | CONFIG_JUMPX inputmethods/jumpxjumpx.pro | 63 | CONFIG_JUMPX inputmethods/jumpxjumpx.pro |
64 | CONFIG_KBILL noncore/games/kbillkbill.pro | 64 | CONFIG_KBILL noncore/games/kbillkbill.pro |
65 | CONFIG_KCHECKERS noncore/games/kcheckerskcheckers.pro | 65 | CONFIG_KCHECKERS noncore/games/kcheckerskcheckers.pro |
66 | CONFIG_KEYBOARD inputmethods/keyboardkeyboard.pro | 66 | CONFIG_KEYBOARD inputmethods/keyboardkeyboard.pro |
67 | CONFIG_KEYPEBBLE noncore/comm/keypebblekeypebble.pro | 67 | CONFIG_KEYPEBBLE noncore/comm/keypebblekeypebble.pro |
68 | CONFIG_KEYVIEW development/keyviewkeyview.pro | 68 | CONFIG_KEYVIEW development/keyviewkeyview.pro |
69 | CONFIG_KJUMPX inputmethods/kjumpxkjumpx.pro | 69 | CONFIG_KJUMPX inputmethods/kjumpxkjumpx.pro |
70 | CONFIG_KPACMAN noncore/games/kpacmankpacman.pro | 70 | CONFIG_KPACMAN noncore/games/kpacmankpacman.pro |
71 | CONFIG_LANGUAGE noncore/settings/languagelanguage.pro | 71 | CONFIG_LANGUAGE noncore/settings/languagelanguage.pro |
72 | CONFIG_LAUNCHER core/launcherserver.pro | 72 | CONFIG_LAUNCHER core/launcherserver.pro |
73 | CONFIG_LAUNCHER-SETTINGS core/settings/launcherlauncher.pro | 73 | CONFIG_LAUNCHER-SETTINGS core/settings/launcherlauncher.pro |
74 | CONFIG_LIBFFMPEG core/multimedia/opieplayer/libffmpeglibffmpeg.pro | 74 | CONFIG_LIBFFMPEG core/multimedia/opieplayer/libffmpeglibffmpeg.pro |
75 | CONFIG_LIBFLASH core/multimedia/opieplayer/libflashlibflash.pro | 75 | CONFIG_LIBFLASH core/multimedia/opieplayer/libflashlibflash.pro |
76 | CONFIG_LIBMAD core/multimedia/opieplayer/libmadlibmad.pro | 76 | CONFIG_LIBMAD core/multimedia/opieplayer/libmadlibmad.pro |
77 | CONFIG_LIBMAIL noncore/unsupported/mail2/libmaillibmail.pro | 77 | CONFIG_LIBMAIL noncore/unsupported/mail2/libmaillibmail.pro |
78 | CONFIG_LIBMAILWRAPPER noncore/net/mail/libmailwrapper libmailwrapper.pro | 78 | CONFIG_LIBMAILWRAPPER noncore/net/mail/libmailwrapper libmailwrapper.pro |
79 | CONFIG_LIBMPEG3 core/multimedia/opieplayer/libmpeg3libmpeg3.pro | 79 | CONFIG_LIBMPEG3 core/multimedia/opieplayer/libmpeg3libmpeg3.pro |
80 | CONFIG_LIBOPIE2CORE libopie2/opiecoreopiecore.pro | 80 | CONFIG_LIBOPIE2CORE libopie2/opiecoreopiecore.pro |
81 | CONFIG_LIBOPIE2DB libopie2/opiedbopiedb.pro | 81 | CONFIG_LIBOPIE2DB libopie2/opiedbopiedb.pro |
82 | CONFIG_LIBOPIE2EXAMPLES libopie2/examplesexamples.pro | 82 | CONFIG_LIBOPIE2EXAMPLES libopie2/examplesexamples.pro |
83 | CONFIG_LIBOPIE2MM libopie2/opiemmopiemm.pro | 83 | CONFIG_LIBOPIE2MM libopie2/opiemmopiemm.pro |
84 | CONFIG_LIBOPIE2NET libopie2/opienetopienet.pro | 84 | CONFIG_LIBOPIE2NET libopie2/opienetopienet.pro |
85 | CONFIG_LIBOPIE2PIM libopie2/opiepimopiepim.pro | 85 | CONFIG_LIBOPIE2PIM libopie2/opiepimopiepim.pro |
86 | CONFIG_LIBOPIE2SECURITYlibopie2/opiesecurity opiesecurity.pro | 86 | CONFIG_LIBOPIE2SECURITYlibopie2/opiesecurity opiesecurity.pro |
87 | CONFIG_LIBOPIE2UI libopie2/opieuiopieui.pro | 87 | CONFIG_LIBOPIE2UI libopie2/opieuiopieui.pro |
88 | CONFIG_LIBOPIE libopielibopie.pro | 88 | CONFIG_LIBOPIE libopielibopie.pro |
89 | CONFIG_LIBOPIE_PIM libopie/pimpim.pro | 89 | CONFIG_LIBOPIE_PIM libopie/pimpim.pro |
90 | CONFIG_LIBOPIETOOTH noncore/net/opietooth/liblib.pro | 90 | CONFIG_LIBOPIETOOTH noncore/net/opietooth/liblib.pro |
91 | CONFIG_LIBQPE librarylibrary.pro | 91 | CONFIG_LIBQPE librarylibrary.pro |
92 | CONFIG_LIBQPE-X11 x11/libqpe-x11libqpe-x11.pro | 92 | CONFIG_LIBQPE-X11 x11/libqpe-x11libqpe-x11.pro |
93 | CONFIG_LIBQRSYNC rsync rsync.pro | 93 | CONFIG_LIBQRSYNC rsync rsync.pro |
94 | CONFIG_LIBQTAUX libqtauxlibqtaux.pro | 94 | CONFIG_LIBQTAUX libqtauxlibqtaux.pro |
95 | CONFIG_LIBSLCOMPAT libslcompatlibslcompat.pro | 95 | CONFIG_LIBSLCOMPAT libslcompatlibslcompat.pro |
96 | CONFIG_LIBSQL libsqllibsql.pro | 96 | CONFIG_LIBSQL libsqllibsql.pro |
97 | CONFIG_LIBTREMOR core/multimedia/opieplayer/vorbis/tremor tremor.pro | 97 | CONFIG_LIBTREMOR core/multimedia/opieplayer/vorbis/tremor tremor.pro |
98 | CONFIG_LIBTREMORPLUGIN core/multimedia/opieplayer/vorbis libtremor.pro | 98 | CONFIG_LIBTREMORPLUGIN core/multimedia/opieplayer/vorbis libtremor.pro |
99 | CONFIG_LIGHT-AND-POWER core/settings/light-and-powerlight-and-power.pro | 99 | CONFIG_LIGHT-AND-POWER core/settings/light-and-powerlight-and-power.pro |
100 | CONFIG_LIQUID noncore/styles/liquidliquid.pro | 100 | CONFIG_LIQUID noncore/styles/liquidliquid.pro |
101 | CONFIG_LOCKAPPLET core/applets/lockappletlockapplet.pro | ||
101 | CONFIG_LOGOUTAPPLET core/applets/logoutappletlogoutapplet.pro | 102 | CONFIG_LOGOUTAPPLET core/applets/logoutappletlogoutapplet.pro |
102 | CONFIG_MAIL3 noncore/net/mail mail.pro | 103 | CONFIG_MAIL3 noncore/net/mail mail.pro |
103 | CONFIG_MAILAPPLET noncore/net/mail/taskbarapplet taskbarapplet.pro | 104 | CONFIG_MAILAPPLET noncore/net/mail/taskbarapplet taskbarapplet.pro |
104 | CONFIG_MAILIT noncore/unsupported/mailit mailit.pro | 105 | CONFIG_MAILIT noncore/unsupported/mailit mailit.pro |
105 | CONFIG_MAIN_TAB_EXAMPLE examples/main-tab example.pro | 106 | CONFIG_MAIN_TAB_EXAMPLE examples/main-tab example.pro |
106 | CONFIG_MEDIUMMOUNT noncore/settings/mediummountmediummount.pro | 107 | CONFIG_MEDIUMMOUNT noncore/settings/mediummountmediummount.pro |
107 | CONFIG_MEMORYAPPLET noncore/applets/memoryappletmemoryapplet.pro | 108 | CONFIG_MEMORYAPPLET noncore/applets/memoryappletmemoryapplet.pro |
108 | CONFIG_METAL noncore/styles/metalmetal.pro | 109 | CONFIG_METAL noncore/styles/metalmetal.pro |
109 | CONFIG_MINDBREAKER noncore/games/mindbreakermindbreaker.pro | 110 | CONFIG_MINDBREAKER noncore/games/mindbreakermindbreaker.pro |
110 | CONFIG_MINESWEEP noncore/games/minesweepminesweep.pro | 111 | CONFIG_MINESWEEP noncore/games/minesweepminesweep.pro |
111 | CONFIG_MOBILEMSG noncore/comm/mobilemsgmobilemsg.pro | 112 | CONFIG_MOBILEMSG noncore/comm/mobilemsgmobilemsg.pro |
112 | CONFIG_MODPLUG core/multimedia/opieplayer/modplugmodplug.pro | 113 | CONFIG_MODPLUG core/multimedia/opieplayer/modplugmodplug.pro |
113 | CONFIG_MULTIAUTH_BLUEPING noncore/securityplugins/blueping bluepingplugin.pro | 114 | CONFIG_MULTIAUTH_BLUEPING noncore/securityplugins/blueping bluepingplugin.pro |
114 | CONFIG_MULTIAUTH_DUMMY noncore/securityplugins/dummy dummyplugin.pro | 115 | CONFIG_MULTIAUTH_DUMMY noncore/securityplugins/dummy dummyplugin.pro |
115 | CONFIG_MULTIAUTH_NOTICE noncore/securityplugins/notice noticeplugin.pro | 116 | CONFIG_MULTIAUTH_NOTICE noncore/securityplugins/notice noticeplugin.pro |
116 | CONFIG_MULTIAUTH_PIN noncore/securityplugins/pin pinplugin.pro | 117 | CONFIG_MULTIAUTH_PIN noncore/securityplugins/pin pinplugin.pro |
117 | CONFIG_MULTIKEYAPPLET core/applets/multikeyappletmultikeyapplet.pro | 118 | CONFIG_MULTIKEYAPPLET core/applets/multikeyappletmultikeyapplet.pro |
118 | CONFIG_MULTIKEY inputmethods/multikeymultikey.pro | 119 | CONFIG_MULTIKEY inputmethods/multikeymultikey.pro |
119 | CONFIG_NETSYSTEMTIME noncore/settings/netsystemtimenetsystemtime.pro | 120 | CONFIG_NETSYSTEMTIME noncore/settings/netsystemtimenetsystemtime.pro |
120 | CONFIG_NETWORKAPPLET noncore/applets/networkappletnetworkapplet.pro | 121 | CONFIG_NETWORKAPPLET noncore/applets/networkappletnetworkapplet.pro |
121 | CONFIG_NETWORKSETUP noncore/settings/networksettingsnetworksettings.pro | 122 | CONFIG_NETWORKSETUP noncore/settings/networksettingsnetworksettings.pro |
122 | CONFIG_NOTESAPPLET noncore/applets/notesappletnotesapplet.pro | 123 | CONFIG_NOTESAPPLET noncore/applets/notesappletnotesapplet.pro |
123 | CONFIG_NS2BT noncore/settings/networksettings2/bluetoothbluetooth.pro | 124 | CONFIG_NS2BT noncore/settings/networksettings2/bluetoothbluetooth.pro |
124 | CONFIG_NS2CABLE noncore/settings/networksettings2/cablecable.pro | 125 | CONFIG_NS2CABLE noncore/settings/networksettings2/cablecable.pro |
125 | CONFIG_NS2CORE noncore/settings/networksettings2/networksettings2networksettings2.pro | 126 | CONFIG_NS2CORE noncore/settings/networksettings2/networksettings2networksettings2.pro |
126 | CONFIG_NS2IRDA noncore/settings/networksettings2/irdairda.pro | 127 | CONFIG_NS2IRDA noncore/settings/networksettings2/irdairda.pro |
127 | CONFIG_NS2LANCARD noncore/settings/networksettings2/lancardlancard.pro | 128 | CONFIG_NS2LANCARD noncore/settings/networksettings2/lancardlancard.pro |
128 | CONFIG_NS2MODEM noncore/settings/networksettings2/modemmodem.pro | 129 | CONFIG_NS2MODEM noncore/settings/networksettings2/modemmodem.pro |
129 | CONFIG_NS2NETWORK noncore/settings/networksettings2/networknetwork.pro | 130 | CONFIG_NS2NETWORK noncore/settings/networksettings2/networknetwork.pro |
130 | CONFIG_NS2 noncore/settings/networksettings2networksettings.pro | 131 | CONFIG_NS2 noncore/settings/networksettings2networksettings.pro |
131 | CONFIG_NS2PPP noncore/settings/networksettings2/pppppp.pro | 132 | CONFIG_NS2PPP noncore/settings/networksettings2/pppppp.pro |
132 | CONFIG_NS2PROFILE noncore/settings/networksettings2/profileprofile.pro | 133 | CONFIG_NS2PROFILE noncore/settings/networksettings2/profileprofile.pro |
133 | CONFIG_NS2USB noncore/settings/networksettings2/usbusb.pro | 134 | CONFIG_NS2USB noncore/settings/networksettings2/usbusb.pro |
134 | CONFIG_NS2VPN noncore/settings/networksettings2/vpnvpn.pro | 135 | CONFIG_NS2VPN noncore/settings/networksettings2/vpnvpn.pro |
135 | CONFIG_NS2WLAN noncore/settings/networksettings2/wlanwlan.pro | 136 | CONFIG_NS2WLAN noncore/settings/networksettings2/wlanwlan.pro |
136 | CONFIG_OAPP core/apps/oappoapp.pro | 137 | CONFIG_OAPP core/apps/oappoapp.pro |
137 | CONFIG_OBEX core/obexobex.pro | 138 | CONFIG_OBEX core/obexobex.pro |
138 | CONFIG_ODICT noncore/apps/odictodict.pro | 139 | CONFIG_ODICT noncore/apps/odictodict.pro |
139 | CONFIG_OIPKG noncore/unsupported/oipkgoipkg.pro | 140 | CONFIG_OIPKG noncore/unsupported/oipkgoipkg.pro |
140 | CONFIG_OPIEALARM core/opiealarmopiealarm.pro | 141 | CONFIG_OPIEALARM core/opiealarmopiealarm.pro |
141 | CONFIG_OPIE-CONSOLE noncore/apps/opie-consoleopie-console.pro | 142 | CONFIG_OPIE-CONSOLE noncore/apps/opie-consoleopie-console.pro |
142 | CONFIG_OPIE_EYE noncore/graphics/opie-eyephunk_view.pro | 143 | CONFIG_OPIE_EYE noncore/graphics/opie-eyephunk_view.pro |
143 | CONFIG_OPIE_EYE_SLAVE noncore/graphics/opie-eye/slaveslave.pro | 144 | CONFIG_OPIE_EYE_SLAVE noncore/graphics/opie-eye/slaveslave.pro |
144 | CONFIG_OPIEFTP noncore/net/opieftpopieftp.pro | 145 | CONFIG_OPIEFTP noncore/net/opieftpopieftp.pro |
145 | CONFIG_OPIEIRC noncore/net/opieircopieirc.pro | 146 | CONFIG_OPIEIRC noncore/net/opieircopieirc.pro |
146 | CONFIG_OPIE-LOGIN core/opie-loginopie-login.pro | 147 | CONFIG_OPIE-LOGIN core/opie-loginopie-login.pro |
147 | CONFIG_OPIEMAIL2noncore/unsupported/mail2 mail.pro | 148 | CONFIG_OPIEMAIL2noncore/unsupported/mail2 mail.pro |
148 | CONFIG_OPIEPLAYER2 noncore/multimedia/opieplayer2opieplayer2.pro | 149 | CONFIG_OPIEPLAYER2 noncore/multimedia/opieplayer2opieplayer2.pro |
149 | CONFIG_OPIEPLAYER core/multimedia/opieplayeropieplayer.pro | 150 | CONFIG_OPIEPLAYER core/multimedia/opieplayeropieplayer.pro |
150 | CONFIG_OPIE-RDESKTOP noncore/net/opierdesktopopierdesktop.pro | 151 | CONFIG_OPIE-RDESKTOP noncore/net/opierdesktopopierdesktop.pro |
151 | CONFIG_OPIE-READER noncore/apps/opie-readeropie-reader.pro | 152 | CONFIG_OPIE-READER noncore/apps/opie-readeropie-reader.pro |
152 | CONFIG_OPIEREC noncore/multimedia/opierecopierec.pro | 153 | CONFIG_OPIEREC noncore/multimedia/opierecopierec.pro |
153 | CONFIG_OPIE-SHEET noncore/apps/opie-sheetopie-sheet.pro | 154 | CONFIG_OPIE-SHEET noncore/apps/opie-sheetopie-sheet.pro |
154 | CONFIG_OPIE-SH noncore/tools/opie-shopie-sh.pro | 155 | CONFIG_OPIE-SH noncore/tools/opie-shopie-sh.pro |
155 | CONFIG_OPIETOOTH-APPLET noncore/net/opietooth/appletapplet.pro | 156 | CONFIG_OPIETOOTH-APPLET noncore/net/opietooth/appletapplet.pro |
156 | CONFIG_OPIETOOTH-MANAGER noncore/net/opietooth/managermanager.pro | 157 | CONFIG_OPIETOOTH-MANAGER noncore/net/opietooth/managermanager.pro |
157 | CONFIG_OPIE-WRITE noncore/apps/opie-writeopie-write.pro | 158 | CONFIG_OPIE-WRITE noncore/apps/opie-writeopie-write.pro |
158 | CONFIG_OSEARCH core/pim/osearchosearch.pro | 159 | CONFIG_OSEARCH core/pim/osearchosearch.pro |
159 | CONFIG_OXYGEN noncore/apps/oxygenoxygen.pro | 160 | CONFIG_OXYGEN noncore/apps/oxygenoxygen.pro |
160 | CONFIG_PACKAGEMANAGER noncore/settings/packagemanagerpackagemanager.pro | 161 | CONFIG_PACKAGEMANAGER noncore/settings/packagemanagerpackagemanager.pro |
161 | CONFIG_PARASHOOT noncore/games/parashootparashoot.pro | 162 | CONFIG_PARASHOOT noncore/games/parashootparashoot.pro |
162 | CONFIG_PHASE noncore/styles/phasephase.pro | 163 | CONFIG_PHASE noncore/styles/phasephase.pro |
163 | CONFIG_PICKBOARD inputmethods/pickboardpickboard.pro | 164 | CONFIG_PICKBOARD inputmethods/pickboardpickboard.pro |
164 | CONFIG_PIMCONVERTER noncore/tools/pimconverter converter.pro | 165 | CONFIG_PIMCONVERTER noncore/tools/pimconverter converter.pro |
diff --git a/pics/security/lock.png b/pics/security/lock.png new file mode 100644 index 0000000..94d1dbc --- a/dev/null +++ b/pics/security/lock.png | |||
Binary files differ | |||