00001 00006 /* 00007 =. This file is part of the Opie Project 00008 .=l. Copyright (C) 2004 Opie Developer Team <opie-devel@handhelds.org> 00009 .>+-= 00010 _;:, .> :=|. This library is free software; you can 00011 .> <`_, > . <= redistribute it and/or modify it under 00012 :`=1 )Y*s>-.-- : the terms of the GNU Library General Public 00013 .="- .-=="i, .._ License as published by the Free Software 00014 - . .-<_> .<> Foundation; either version 2 of the License, 00015 ._= =} : or (at your option) any later version. 00016 .%`+i> _;_. 00017 .i_,=:_. -<s. This library is distributed in the hope that 00018 + . -:. = it will be useful, but WITHOUT ANY WARRANTY; 00019 : .. .:, . . . without even the implied warranty of 00020 =_ + =;=|` MERCHANTABILITY or FITNESS FOR A 00021 _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU 00022 ..}^=.= = ; Library General Public License for more 00023 ++= -. .` .: details. 00024 : = ...= . :.=- 00025 -. .:....=;==+<; You should have received a copy of the GNU 00026 -_. . . )=. = Library General Public License along with 00027 -- :-=` this library; see the file COPYING.LIB. 00028 If not, write to the Free Software Foundation, 00029 Inc., 59 Temple Place - Suite 330, 00030 Boston, MA 02111-1307, USA. 00031 00032 */ 00033 00034 #ifndef BLUEPING_PLUGIN_H 00035 #define BLUEPING_PLUGIN_H 00036 00037 #include "bluepingConfigWidget.h" 00038 00039 #include <opie2/multiauthplugininterface.h> 00040 00041 #include <opie2/oprocess.h> 00042 00043 #include <qobject.h> 00044 #include <qstring.h> 00045 #include <qpe/config.h> 00046 00048 00051 class BluepingPlugin : public QObject, public Opie::Security::MultiauthPluginObject { 00052 00053 Q_OBJECT 00054 00055 public: 00056 BluepingPlugin(); 00057 virtual ~BluepingPlugin(); 00058 int authenticate(); 00059 Opie::Security::MultiauthConfigWidget * configWidget(QWidget * parent); 00060 QString pixmapNameConfig() const; 00061 QString pixmapNameWidget() const; 00062 QString pluginName() const; 00063 00064 signals: 00066 void emitCode(int resultCode); 00067 00068 private slots: 00069 void success(); 00070 void failure(); 00071 void skip(); 00072 void ping(); 00073 void pingFinished(Opie::Core::OProcess * ping); 00074 00075 private: 00076 void killBluetoothIfNecessary(); 00077 Opie::Core::OProcess * m_ping; 00078 Config * m_config; 00079 BluepingConfigWidget * m_bluepingW; 00080 bool bluetoothWasOff; 00081 QString macToPing; 00082 }; 00083 00084 #endif
1.4.2