summaryrefslogtreecommitdiff
path: root/noncore/securityplugins/blueping/bluepingplugin.h
authorclem <clem>2004-08-05 22:55:35 (UTC)
committer clem <clem>2004-08-05 22:55:35 (UTC)
commit90ca457fbf420e31eed99c828a23e451bf8dc30c (patch) (side-by-side diff)
treebb538c99c6157a3e431818594fea92584783fc90 /noncore/securityplugins/blueping/bluepingplugin.h
parent75286b93291026578a6352797c830787a9401055 (diff)
downloadopie-90ca457fbf420e31eed99c828a23e451bf8dc30c.zip
opie-90ca457fbf420e31eed99c828a23e451bf8dc30c.tar.gz
opie-90ca457fbf420e31eed99c828a23e451bf8dc30c.tar.bz2
Don't bother with killing bluetooth anymore, since our
/etc/suspend-scripts/S50bluetooth new script does that just when we need it. Also, don't forget to shut down Bluetooth when we started it ourselves and when the authentication is finished (skipped or successfull). Finally, there's more info in the debug output now.
Diffstat (limited to 'noncore/securityplugins/blueping/bluepingplugin.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/securityplugins/blueping/bluepingplugin.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/noncore/securityplugins/blueping/bluepingplugin.h b/noncore/securityplugins/blueping/bluepingplugin.h
index b8d6734..56ff22d 100644
--- a/noncore/securityplugins/blueping/bluepingplugin.h
+++ b/noncore/securityplugins/blueping/bluepingplugin.h
@@ -28,56 +28,57 @@
If not, write to the Free Software Foundation,
Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
*/
#ifndef BLUEPING_PLUGIN_H
#define BLUEPING_PLUGIN_H
#include "bluepingConfigWidget.h"
#include <opie2/multiauthplugininterface.h>
#include <opie2/oprocess.h>
#include <qobject.h>
#include <qstring.h>
#include <qpe/config.h>
/// Multi-authentication bluetooth plugin, which tries to ping a specific MAC address.
/**
* The plugin itself, implementing the main authenticate() function.
*/
class BluepingPlugin : public QObject, public Opie::Security::MultiauthPluginObject {
Q_OBJECT
public:
BluepingPlugin();
virtual ~BluepingPlugin();
int authenticate();
Opie::Security::MultiauthConfigWidget * configWidget(QWidget * parent);
QString pixmapNameConfig() const;
QString pixmapNameWidget() const;
QString pluginName() const;
signals:
/// Signal carrying the result code of this plugin
void emitCode(int resultCode);
private slots:
void success();
void failure();
void skip();
void ping();
void pingFinished(Opie::Core::OProcess * ping);
private:
- Opie::Core::OProcess *m_ping;
+ void killBluetoothIfNecessary();
+ Opie::Core::OProcess * m_ping;
+ Config * m_config;
BluepingConfigWidget * m_bluepingW;
- bool bluetoothAlreadyRestarted;
+ bool bluetoothWasOff;
QString macToPing;
-
};
#endif