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 | |||
@@ -24,24 +24,25 @@ | |||
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 ); |
@@ -57,23 +58,26 @@ public slots: | |||
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 | ||