author | zecke <zecke> | 2004-07-17 16:46:58 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-07-17 16:46:58 (UTC) |
commit | e917f3763a0beb6d540adbfa5f59e478d3baec64 (patch) (unidiff) | |
tree | c2cf3f13559d9693a4f66cd3f65e419b571377bd /noncore/securityplugins/dummy | |
parent | d6a4bf47ef7dfaabd08fb8d514cde1832a055816 (diff) | |
download | opie-e917f3763a0beb6d540adbfa5f59e478d3baec64.zip opie-e917f3763a0beb6d540adbfa5f59e478d3baec64.tar.gz opie-e917f3763a0beb6d540adbfa5f59e478d3baec64.tar.bz2 |
Addjust to the namespace changes of OMAF
Diffstat (limited to 'noncore/securityplugins/dummy') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/securityplugins/dummy/dummyplugin.cpp | 11 | ||||
-rw-r--r-- | noncore/securityplugins/dummy/dummyplugin.h | 4 | ||||
-rw-r--r-- | noncore/securityplugins/dummy/dummypluginimpl.cpp | 3 | ||||
-rw-r--r-- | noncore/securityplugins/dummy/dummypluginimpl.h | 5 |
4 files changed, 14 insertions, 9 deletions
diff --git a/noncore/securityplugins/dummy/dummyplugin.cpp b/noncore/securityplugins/dummy/dummyplugin.cpp index 0d19e43..594825e 100644 --- a/noncore/securityplugins/dummy/dummyplugin.cpp +++ b/noncore/securityplugins/dummy/dummyplugin.cpp | |||
@@ -7,6 +7,9 @@ | |||
7 | #include <qlabel.h> | 7 | #include <qlabel.h> |
8 | #include <qpushbutton.h> | 8 | #include <qpushbutton.h> |
9 | 9 | ||
10 | using Opie::Security::MultiauthConfigWidget; | ||
11 | using Opie::Security::MultiauthPluginObject; | ||
12 | |||
10 | /// Simply return its name (Dummy plugin) | 13 | /// Simply return its name (Dummy plugin) |
11 | QString DummyPlugin::pluginName() const { | 14 | QString DummyPlugin::pluginName() const { |
12 | return "Dummy plugin"; | 15 | return "Dummy plugin"; |
@@ -54,7 +57,7 @@ int DummyPlugin::authenticate() { | |||
54 | 57 | ||
55 | QRect desk = oApp->desktop()->geometry(); | 58 | QRect desk = oApp->desktop()->geometry(); |
56 | dummyDialog.setGeometry( 0, 0, desk.width(), desk.height() ); | 59 | dummyDialog.setGeometry( 0, 0, desk.width(), desk.height() ); |
57 | 60 | ||
58 | /* Creation of the particular widgets of our Dummy user interface | 61 | /* Creation of the particular widgets of our Dummy user interface |
59 | * Note: we have to resize the VBox to the QDialog size, since it's not | 62 | * Note: we have to resize the VBox to the QDialog size, since it's not |
60 | * done automatically. | 63 | * done automatically. |
@@ -63,7 +66,7 @@ int DummyPlugin::authenticate() { | |||
63 | layout.setSpacing(11); | 66 | layout.setSpacing(11); |
64 | layout.setMargin(11); | 67 | layout.setMargin(11); |
65 | layout.setAlignment( Qt::AlignTop ); | 68 | layout.setAlignment( Qt::AlignTop ); |
66 | 69 | ||
67 | QLabel title("<center><h1>" + tr("\"Dummy\" <br />demonstration plugin") + "</h1></center>", &dummyDialog); | 70 | QLabel title("<center><h1>" + tr("\"Dummy\" <br />demonstration plugin") + "</h1></center>", &dummyDialog); |
68 | QLabel subTitle("<center><h2>" +tr("You can simulate the following outcomes:") + "</h2></center>", &dummyDialog); | 71 | QLabel subTitle("<center><h2>" +tr("You can simulate the following outcomes:") + "</h2></center>", &dummyDialog); |
69 | layout.addWidget(&title); | 72 | layout.addWidget(&title); |
@@ -76,14 +79,14 @@ int DummyPlugin::authenticate() { | |||
76 | hl.addWidget(&pbSuccess, 0, Qt::AlignHCenter); | 79 | hl.addWidget(&pbSuccess, 0, Qt::AlignHCenter); |
77 | hl.addWidget(&pbSkip, 0, Qt::AlignHCenter); | 80 | hl.addWidget(&pbSkip, 0, Qt::AlignHCenter); |
78 | hl.addWidget(&pbFailure, 0, Qt::AlignHCenter); | 81 | hl.addWidget(&pbFailure, 0, Qt::AlignHCenter); |
79 | 82 | ||
80 | /* Linking our pushbuttons to exit functions | 83 | /* Linking our pushbuttons to exit functions |
81 | * (each result button here has a corresponding slot) | 84 | * (each result button here has a corresponding slot) |
82 | */ | 85 | */ |
83 | QObject::connect(&pbSuccess, SIGNAL(clicked()), this, SLOT(success())); | 86 | QObject::connect(&pbSuccess, SIGNAL(clicked()), this, SLOT(success())); |
84 | QObject::connect(&pbFailure, SIGNAL(clicked()), this, SLOT(failure())); | 87 | QObject::connect(&pbFailure, SIGNAL(clicked()), this, SLOT(failure())); |
85 | QObject::connect(&pbSkip, SIGNAL(clicked()), this, SLOT(skip())); | 88 | QObject::connect(&pbSkip, SIGNAL(clicked()), this, SLOT(skip())); |
86 | 89 | ||
87 | /* The value of the signal these three slots will emit corresponds to | 90 | /* The value of the signal these three slots will emit corresponds to |
88 | * the different values we want to return | 91 | * the different values we want to return |
89 | */ | 92 | */ |
diff --git a/noncore/securityplugins/dummy/dummyplugin.h b/noncore/securityplugins/dummy/dummyplugin.h index 9680dff..3bfca98 100644 --- a/noncore/securityplugins/dummy/dummyplugin.h +++ b/noncore/securityplugins/dummy/dummyplugin.h | |||
@@ -42,13 +42,13 @@ | |||
42 | /** | 42 | /** |
43 | * The plugin itself, implementing the main authenticate() function. | 43 | * The plugin itself, implementing the main authenticate() function. |
44 | */ | 44 | */ |
45 | class DummyPlugin : public QObject, public MultiauthPluginObject { | 45 | class DummyPlugin : public QObject, public Opie::Security::MultiauthPluginObject { |
46 | 46 | ||
47 | Q_OBJECT | 47 | Q_OBJECT |
48 | 48 | ||
49 | public: | 49 | public: |
50 | int authenticate(); | 50 | int authenticate(); |
51 | MultiauthConfigWidget * configWidget(QWidget * parent); | 51 | Opie::Security::MultiauthConfigWidget * configWidget(QWidget * parent); |
52 | QString pixmapNameConfig() const; | 52 | QString pixmapNameConfig() const; |
53 | QString pixmapNameWidget() const; | 53 | QString pixmapNameWidget() const; |
54 | QString pluginName() const; | 54 | QString pluginName() const; |
diff --git a/noncore/securityplugins/dummy/dummypluginimpl.cpp b/noncore/securityplugins/dummy/dummypluginimpl.cpp index 518996c..54dbdd1 100644 --- a/noncore/securityplugins/dummy/dummypluginimpl.cpp +++ b/noncore/securityplugins/dummy/dummypluginimpl.cpp | |||
@@ -1,5 +1,8 @@ | |||
1 | #include "dummypluginimpl.h" | 1 | #include "dummypluginimpl.h" |
2 | 2 | ||
3 | using Opie::Security::MultiauthPluginInterface; | ||
4 | using Opie::Security::MultiauthPluginObject; | ||
5 | |||
3 | DummyPluginImpl::DummyPluginImpl() { | 6 | DummyPluginImpl::DummyPluginImpl() { |
4 | dummyPlugin = new DummyPlugin(); | 7 | dummyPlugin = new DummyPlugin(); |
5 | } | 8 | } |
diff --git a/noncore/securityplugins/dummy/dummypluginimpl.h b/noncore/securityplugins/dummy/dummypluginimpl.h index 49a18cd..ce8620d 100644 --- a/noncore/securityplugins/dummy/dummypluginimpl.h +++ b/noncore/securityplugins/dummy/dummypluginimpl.h | |||
@@ -37,7 +37,7 @@ | |||
37 | #include "dummyplugin.h" | 37 | #include "dummyplugin.h" |
38 | 38 | ||
39 | /// Standard multiauth plugin class | 39 | /// Standard multiauth plugin class |
40 | class DummyPluginImpl : public MultiauthPluginInterface{ | 40 | class DummyPluginImpl : public Opie::Security::MultiauthPluginInterface{ |
41 | 41 | ||
42 | public: | 42 | public: |
43 | DummyPluginImpl(); | 43 | DummyPluginImpl(); |
@@ -47,12 +47,11 @@ class DummyPluginImpl : public MultiauthPluginInterface{ | |||
47 | /// defines standard addRef() and release() functions | 47 | /// defines standard addRef() and release() functions |
48 | Q_REFCOUNT; | 48 | Q_REFCOUNT; |
49 | 49 | ||
50 | virtual MultiauthPluginObject *plugin(); | 50 | virtual Opie::Security::MultiauthPluginObject *plugin(); |
51 | 51 | ||
52 | private: | 52 | private: |
53 | /// the plugin itself | 53 | /// the plugin itself |
54 | DummyPlugin *dummyPlugin; | 54 | DummyPlugin *dummyPlugin; |
55 | ulong ref; | ||
56 | }; | 55 | }; |
57 | 56 | ||
58 | #endif | 57 | #endif |