Diffstat (limited to 'noncore/net/opietooth/applet/bluezapplet.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/opietooth/applet/bluezapplet.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/noncore/net/opietooth/applet/bluezapplet.h b/noncore/net/opietooth/applet/bluezapplet.h index c096e29..85022bb 100644 --- a/noncore/net/opietooth/applet/bluezapplet.h +++ b/noncore/net/opietooth/applet/bluezapplet.h | |||
@@ -12,68 +12,72 @@ | |||
12 | .i_,=:_. -<s. This library is distributed in the hope that | 12 | .i_,=:_. -<s. This library is distributed in the hope that |
13 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; | 13 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; |
14 | : .. .:, . . . without even the implied warranty of | 14 | : .. .:, . . . without even the implied warranty of |
15 | =_ + =;=| MERCHANTABILITY or FITNESS FOR A | 15 | =_ + =;=| MERCHANTABILITY or FITNESS FOR A |
16 | _.=:. : :=>: PARTICULAR PURPOSE. See the GNU | 16 | _.=:. : :=>: PARTICULAR PURPOSE. See the GNU |
17 | ..}^=.= = ; Library General Public License for more | 17 | ..}^=.= = ; Library General Public License for more |
18 | ++= -. . .: details. | 18 | ++= -. . .: details. |
19 | : = ...= . :.=- | 19 | : = ...= . :.=- |
20 | -. .:....=;==+<; You should have received a copy of the GNU | 20 | -. .:....=;==+<; You should have received a copy of the GNU |
21 | -_. . . )=. = Library General Public License along with | 21 | -_. . . )=. = Library General Public License along with |
22 | -- :-= this library; see the file COPYING.LIB. | 22 | -- :-= this library; see the file COPYING.LIB. |
23 | If not, write to the Free Software Foundation, | 23 | If not, write to the Free Software Foundation, |
24 | Inc., 59 Temple Place - Suite 330, | 24 | Inc., 59 Temple Place - Suite 330, |
25 | Boston, MA 02111-1307, USA. | 25 | Boston, MA 02111-1307, USA. |
26 | 26 | ||
27 | */ | 27 | */ |
28 | 28 | ||
29 | #ifndef __BLUEZAPPLET_H__ | 29 | #ifndef __BLUEZAPPLET_H__ |
30 | #define __BLUEZAPPLET_H__ | 30 | #define __BLUEZAPPLET_H__ |
31 | 31 | ||
32 | #include <qwidget.h> | 32 | #include <qwidget.h> |
33 | #include <qpixmap.h> | 33 | #include <qpixmap.h> |
34 | #include <qtimer.h> | 34 | #include <qtimer.h> |
35 | #include <manager.h> | 35 | #include <manager.h> |
36 | #include <opie2/oprocess.h> | ||
36 | 37 | ||
37 | namespace OpieTooth { | 38 | namespace OpieTooth { |
38 | class Device; | 39 | class Device; |
39 | 40 | ||
40 | class BluezApplet : public QWidget { | 41 | class BluezApplet : public QWidget { |
41 | Q_OBJECT | 42 | Q_OBJECT |
42 | public: | 43 | public: |
43 | BluezApplet( QWidget *parent = 0, const char *name=0 ); | 44 | BluezApplet( QWidget *parent = 0, const char *name=0 ); |
44 | ~BluezApplet(); | 45 | ~BluezApplet(); |
45 | static int position(); | 46 | static int position(); |
46 | protected: | 47 | protected: |
47 | void timerEvent(QTimerEvent *te ); | 48 | void timerEvent(QTimerEvent *te ); |
48 | 49 | ||
49 | public slots: | 50 | public slots: |
50 | void fillList( const QString& device, RemoteDevice::ValueList list ); | 51 | void fillList( const QString& device, RemoteDevice::ValueList list ); |
51 | 52 | ||
52 | private: | 53 | private: |
53 | void mousePressEvent( QMouseEvent * ); | 54 | void mousePressEvent( QMouseEvent * ); |
54 | void paintEvent( QPaintEvent* ); | 55 | void paintEvent( QPaintEvent* ); |
55 | void launchManager(); | 56 | void launchManager(); |
56 | bool checkBluezStatus(); | 57 | bool checkBluezStatus(); |
57 | int setBluezStatus(int); | 58 | int setBluezStatus(int); |
58 | int checkBluezDiscoveryStatus(); | 59 | int checkBluezDiscoveryStatus(); |
59 | int setBluezDiscoveryStatus(int); | 60 | int setBluezDiscoveryStatus(int); |
60 | 61 | ||
61 | private: | 62 | private: |
62 | Device* btDevice; | 63 | Device* btDevice; |
63 | Manager *btManager; | 64 | Manager *btManager; |
64 | QPixmap bluezOnPixmap; | 65 | QPixmap bluezOnPixmap; |
65 | QPixmap bluezOffPixmap; | 66 | QPixmap bluezOffPixmap; |
66 | QPixmap bluezDiscoveryOnPixmap; | 67 | QPixmap bluezDiscoveryOnPixmap; |
67 | bool bluezactive; | 68 | bool bluezactive; |
68 | bool bluezDiscoveryActive; | 69 | bool bluezDiscoveryActive; |
70 | bool doListDevice; //If I have to list devices after bringing BT up? | ||
71 | bool isScanning; //If I'm scanning devices | ||
72 | bool m_wasOn; //If BT was started by menu? | ||
69 | 73 | ||
70 | private slots: | 74 | private slots: |
71 | void slotMessage( const QCString& , const QByteArray& ); | 75 | void slotMessage( const QCString& , const QByteArray& ); |
72 | 76 | void slotProcessExited(Opie::Core::OProcess* proc); | |
73 | 77 | ||
74 | }; | 78 | }; |
75 | }; | 79 | }; |
76 | 80 | ||
77 | 81 | ||
78 | #endif | 82 | #endif |
79 | 83 | ||