author | zecke <zecke> | 2004-07-17 20:03:12 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-07-17 20:03:12 (UTC) |
commit | d68baedc489a7ab4ab1419144608d28d5336a884 (patch) (side-by-side diff) | |
tree | 487ee1528b6696a7bd1954eeae0d6b600cd57e9f /core/settings/security/demo | |
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-- | core/settings/security/demo/config.in | 4 | ||||
-rw-r--r-- | core/settings/security/demo/main.cpp | 34 | ||||
-rw-r--r-- | core/settings/security/demo/multiauth.control | 13 | ||||
-rw-r--r-- | core/settings/security/demo/multiauth.pro | 17 |
4 files changed, 68 insertions, 0 deletions
diff --git a/core/settings/security/demo/config.in b/core/settings/security/demo/config.in new file mode 100644 index 0000000..d867014 --- a/dev/null +++ b/core/settings/security/demo/config.in @@ -0,0 +1,4 @@ + config MULTIAUTH_DEMO + boolean "opie-security multiauth demo (provides several ways to lock and unlock the device)" + default "y" + depends SECURITY diff --git a/core/settings/security/demo/main.cpp b/core/settings/security/demo/main.cpp new file mode 100644 index 0000000..4ae76e4 --- a/dev/null +++ b/core/settings/security/demo/main.cpp @@ -0,0 +1,34 @@ +#include <opie2/multiauthmainwindow.h> +#include <opie2/multiauthcommon.h> + +#include <opie2/oapplication.h> + +/// main() function of the opie-multiauth-standalone demonstration application +/** + * Calls each plugin one after the other, and asks them to perform one authentication. + * It loads the plugins one after another through the MultiauthPluginInterface, + * then calls MultiauthPluginObject::authenticate(). + * \em Note: calls are not parsed by doxygen since they are done via a QInterfacePtr: + * \see http://dudu.dyn.2-h.org/nist/doxydoc/allOpie//classQInterfacePtr.html + */ +int main( int argc, char ** argv ) +{ + Opie::Core::OApplication app(argc, argv, "Multi-authentication demo"); + + /* Constructs the main window, which displays messages and blocks + * access to the desktop + */ + Opie::Security::MultiauthMainWindow win; + + app.showMainWidget(&win); + + // resize the QDialog object so it fills all the screen + QRect desk = qApp->desktop()->geometry(); + win.setGeometry( 0, 0, desk.width(), desk.height() ); + + // the authentication has already succeeded (without win interactions) + if ( win.isAlreadyDone() ) + return 0; + + return app.exec(); +} diff --git a/core/settings/security/demo/multiauth.control b/core/settings/security/demo/multiauth.control new file mode 100644 index 0000000..9b4d554 --- a/dev/null +++ b/core/settings/security/demo/multiauth.control @@ -0,0 +1,13 @@ +Package: opie-multiauth +Files: bin/multiauth apps/Applications/multiauth.desktop pics/security/multiauth.png +Priority: optional +Section: opie/settings +Maintainer: Clement Seveillac <clement@nist.gov> +Architecture: arm +Version: 0.0.1.13 +Depends: opie-security +Description: multi-plugin authentication demonstrator for Opie. + This demonstration application allows us to use one or several + ways to lock and unlock our device. + You must install some opie-multiauth-* plugins, and configure + them through opie-security, to really see its possibilities. diff --git a/core/settings/security/demo/multiauth.pro b/core/settings/security/demo/multiauth.pro new file mode 100644 index 0000000..ef931a5 --- a/dev/null +++ b/core/settings/security/demo/multiauth.pro @@ -0,0 +1,17 @@ +TEMPLATE = app +CONFIG += qt warn_on + +HEADERS = +SOURCES = main.cpp + +INCLUDEPATH += $(OPIEDIR)/include +DEPENDPATH += + +LIBS += -lqpe -lopiecore2 -lopieui2 -lopiesecurity2 + +DESTDIR = $(OPIEDIR)/bin +TARGET = multiauth + +include ( $(OPIEDIR)/include.pro ) + + |