author | zecke <zecke> | 2004-07-17 20:33:12 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-07-17 20:33:12 (UTC) |
commit | be9bc01f6cec2a5a2316cfc8d4cbc0e0310141d6 (patch) (side-by-side diff) | |
tree | 14ec7c67ecab948642faa630cc5b3442c85cbe04 | |
parent | 872d24ff104d9ea9a7ea8ef68c8b3f98531ed677 (diff) | |
download | opie-be9bc01f6cec2a5a2316cfc8d4cbc0e0310141d6.zip opie-be9bc01f6cec2a5a2316cfc8d4cbc0e0310141d6.tar.gz opie-be9bc01f6cec2a5a2316cfc8d4cbc0e0310141d6.tar.bz2 |
Use the MultiauthPassword::authenticate method instead of the handcrafting
-rw-r--r-- | core/settings/security/demo/main.cpp | 21 |
1 files changed, 5 insertions, 16 deletions
diff --git a/core/settings/security/demo/main.cpp b/core/settings/security/demo/main.cpp index 4ae76e4..df91250 100644 --- a/core/settings/security/demo/main.cpp +++ b/core/settings/security/demo/main.cpp @@ -6,29 +6,18 @@ /// 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 ) +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 + /* + * Run authentication and retursn if successfull + * This uses the global settings */ - 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(); + Opie::Security::MultiauthPassword::authenticate(); } |