summaryrefslogtreecommitdiff
path: root/core/settings/security/demo/main.cpp
blob: df91250268f1ea4608b4205cd28846e96cf7036f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#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");

    /*
     * Run authentication and retursn if successfull
     * This uses the global settings
     */
    Opie::Security::MultiauthPassword::authenticate();
}