summaryrefslogtreecommitdiff
path: root/core/settings/security/demo/main.cpp
authorzecke <zecke>2004-07-17 20:03:12 (UTC)
committer zecke <zecke>2004-07-17 20:03:12 (UTC)
commitd68baedc489a7ab4ab1419144608d28d5336a884 (patch) (unidiff)
tree487ee1528b6696a7bd1954eeae0d6b600cd57e9f /core/settings/security/demo/main.cpp
parent658ea4b6442d26b4ef0cbde5e9f98433b01dff57 (diff)
downloadopie-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
Diffstat (limited to 'core/settings/security/demo/main.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/settings/security/demo/main.cpp34
1 files changed, 34 insertions, 0 deletions
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 @@
1#include <opie2/multiauthmainwindow.h>
2#include <opie2/multiauthcommon.h>
3
4#include <opie2/oapplication.h>
5
6/// main() function of the opie-multiauth-standalone demonstration application
7/**
8 * Calls each plugin one after the other, and asks them to perform one authentication.
9 * It loads the plugins one after another through the MultiauthPluginInterface,
10 * then calls MultiauthPluginObject::authenticate().
11 * \em Note: calls are not parsed by doxygen since they are done via a QInterfacePtr:
12 * \see http://dudu.dyn.2-h.org/nist/doxydoc/allOpie//classQInterfacePtr.html
13 */
14int main( int argc, char ** argv )
15{
16 Opie::Core::OApplication app(argc, argv, "Multi-authentication demo");
17
18 /* Constructs the main window, which displays messages and blocks
19 * access to the desktop
20 */
21 Opie::Security::MultiauthMainWindow win;
22
23 app.showMainWidget(&win);
24
25 // resize the QDialog object so it fills all the screen
26 QRect desk = qApp->desktop()->geometry();
27 win.setGeometry( 0, 0, desk.width(), desk.height() );
28
29 // the authentication has already succeeded (without win interactions)
30 if ( win.isAlreadyDone() )
31 return 0;
32
33 return app.exec();
34}