#include </home/clem/local/src/opie/noncore/securityplugins/blueping/bluepingplugin.h>
Inheritance diagram for BluepingPlugin:


Signals | |
| void | emitCode (int resultCode) |
| Signal carrying the result code of this plugin. | |
Public Member Functions | |
| BluepingPlugin () | |
| standard c'tor | |
| virtual | ~BluepingPlugin () |
| cleans m_ping and m_bluepingW if we need to | |
| int | authenticate () |
| Make one authentication attempt with this plugin. | |
| Opie::Security::MultiauthConfigWidget * | configWidget (QWidget *parent) |
| returns a BluepingConfigWidget | |
| QString | pixmapNameConfig () const |
| (optional) plugin configuration tab icon | |
| QString | pixmapNameWidget () const |
| Plugin icon, to be displayed in the plugin list configuration widget. | |
| QString | pluginName () const |
| Simply return its name (Blueping plugin). | |
Private Slots | |
| void | success () |
| Emit the MultiauthPluginObject::Success emitCode. | |
| void | failure () |
| Emit the MultiauthPluginObject::Failure emitCode. | |
| void | skip () |
| Emit the MultiauthPluginObject::Skip emitCode. | |
| void | ping () |
| do the actual ping | |
| void | pingFinished (Opie::Core::OProcess *ping) |
| Deals with m_ping result. | |
Private Member Functions | |
| void | killBluetoothIfNecessary () |
| If Bluetooth was off before the plugin ran, we switch it off again. | |
Private Attributes | |
| Opie::Core::OProcess * | m_ping |
| Config * | m_config |
| BluepingConfigWidget * | m_bluepingW |
| bool | bluetoothWasOff |
| QString | macToPing |
The plugin itself, implementing the main authenticate() function.
Definition at line 51 of file bluepingplugin.h.
|
|
standard c'tor
Definition at line 20 of file bluepingplugin.cpp. |
|
|
cleans m_ping and m_bluepingW if we need to
Definition at line 24 of file bluepingplugin.cpp. References killBluetoothIfNecessary(), m_bluepingW, m_ping, odebug, and oendl. |
|
|
Make one authentication attempt with this plugin. (very simple "success" / "failure" buttons in a dialog)
Implements Opie::Security::MultiauthPluginObject. Definition at line 120 of file bluepingplugin.cpp. References Qt::AlignHCenter, Qt::AlignTop, OProcess::Block, bluetoothWasOff, emitCode(), Opie::Core::OProcess::exitStatus(), Opie::Core::ODevice::inst(), QString::isEmpty(), macToPing, model, Opie::Core::Model_iPAQ_H39xx, Opie::Core::Model_iPAQ_H5xxx, Opie::Core::OProcess::normalExit(), oApp, odebug, oendl, oerr, owarn, ping(), Config::readEntry(), Config::setGroup(), skip(), Opie::Core::OProcess::start(), title, TRUE, Qt::WStyle_Customize, Qt::WStyle_NoBorder, and Qt::WStyle_StaysOnTop. |
|
|
returns a BluepingConfigWidget
Implements Opie::Security::MultiauthPluginObject. Definition at line 39 of file bluepingplugin.cpp. References m_bluepingW. |
|
|
Signal carrying the result code of this plugin.
Referenced by authenticate(), failure(), skip(), and success(). |
|
|
Emit the MultiauthPluginObject::Failure emitCode.
Definition at line 73 of file bluepingplugin.cpp. References emitCode(). Referenced by pingFinished(). |
|
|
If Bluetooth was off before the plugin ran, we switch it off again.
Definition at line 54 of file bluepingplugin.cpp. References OProcess::Block, bluetoothWasOff, odebug, oendl, oerr, and Opie::Core::OProcess::start(). Referenced by ~BluepingPlugin(). |
|
|
do the actual ping
Definition at line 83 of file bluepingplugin.cpp. References m_ping, macToPing, odebug, oendl, oerr, OProcess, pingFinished(), skip(), and Opie::Core::OProcess::start(). Referenced by authenticate(). |
|
|
Deals with m_ping result.
Definition at line 102 of file bluepingplugin.cpp. References Opie::Core::OProcess::exitStatus(), failure(), Opie::Core::OProcess::normalExit(), odebug, oendl, and success(). Referenced by ping(). |
|
|
(optional) plugin configuration tab icon
Implements Opie::Security::MultiauthPluginObject. Definition at line 49 of file bluepingplugin.cpp. |
|
|
Plugin icon, to be displayed in the plugin list configuration widget.
Implements Opie::Security::MultiauthPluginObject. Definition at line 45 of file bluepingplugin.cpp. |
|
|
Simply return its name (Blueping plugin).
Implements Opie::Security::MultiauthPluginObject. Definition at line 34 of file bluepingplugin.cpp. |
|
|
Emit the MultiauthPluginObject::Skip emitCode.
Definition at line 78 of file bluepingplugin.cpp. References emitCode(). Referenced by authenticate(), and ping(). |
|
|
Emit the MultiauthPluginObject::Success emitCode.
Definition at line 68 of file bluepingplugin.cpp. References emitCode(). Referenced by pingFinished(). |
|
|
Definition at line 80 of file bluepingplugin.h. Referenced by authenticate(), and killBluetoothIfNecessary(). |
|
|
Definition at line 79 of file bluepingplugin.h. Referenced by configWidget(), and ~BluepingPlugin(). |
|
|
Definition at line 78 of file bluepingplugin.h. |
|
|
Definition at line 77 of file bluepingplugin.h. Referenced by ping(), and ~BluepingPlugin(). |
|
|
Definition at line 81 of file bluepingplugin.h. Referenced by authenticate(), and ping(). |
1.4.2