author | mickeyl <mickeyl> | 2005-08-21 22:29:07 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2005-08-21 22:29:07 (UTC) |
commit | 4def5629dc68465b1dc8bb23c115e2f5f7513804 (patch) (unidiff) | |
tree | c2a31fb9e46a3a3e7f797ef3fe0ea66b2f0b69df /noncore/net/opietooth/applet/bluezapplet.h | |
parent | 7f931999d32be3fc90b451347dfec52643d8eeb8 (diff) | |
download | opie-4def5629dc68465b1dc8bb23c115e2f5f7513804.zip opie-4def5629dc68465b1dc8bb23c115e2f5f7513804.tar.gz opie-4def5629dc68465b1dc8bb23c115e2f5f7513804.tar.bz2 |
Add some simple interfaces for device scanning (scanning for
discoverable receivers) to support OBEX Send, and requests for
taking BT up or down. Patch courtesy Michael Haynie - thanks!
Diffstat (limited to 'noncore/net/opietooth/applet/bluezapplet.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/opietooth/applet/bluezapplet.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/noncore/net/opietooth/applet/bluezapplet.h b/noncore/net/opietooth/applet/bluezapplet.h index a394e38..3b99c0f 100644 --- a/noncore/net/opietooth/applet/bluezapplet.h +++ b/noncore/net/opietooth/applet/bluezapplet.h | |||
@@ -11,64 +11,69 @@ | |||
11 | .%+i> _;_. | 11 | .%+i> _;_. |
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 | 36 | ||
36 | namespace OpieTooth { | 37 | namespace OpieTooth { |
37 | class Device; | 38 | class Device; |
38 | 39 | ||
39 | class BluezApplet : public QWidget { | 40 | class BluezApplet : public QWidget { |
40 | Q_OBJECT | 41 | Q_OBJECT |
41 | public: | 42 | public: |
42 | BluezApplet( QWidget *parent = 0, const char *name=0 ); | 43 | BluezApplet( QWidget *parent = 0, const char *name=0 ); |
43 | ~BluezApplet(); | 44 | ~BluezApplet(); |
44 | static int position(); | 45 | static int position(); |
45 | protected: | 46 | protected: |
46 | void timerEvent(QTimerEvent *te ); | 47 | void timerEvent(QTimerEvent *te ); |
47 | 48 | ||
48 | public slots: | 49 | public slots: |
50 | void fillList( const QString& device, RemoteDevice::ValueList list ); | ||
51 | |||
49 | private: | 52 | private: |
50 | void mousePressEvent( QMouseEvent * ); | 53 | void mousePressEvent( QMouseEvent * ); |
51 | void paintEvent( QPaintEvent* ); | 54 | void paintEvent( QPaintEvent* ); |
52 | void launchManager(); | 55 | void launchManager(); |
53 | bool checkBluezStatus(); | 56 | bool checkBluezStatus(); |
54 | int setBluezStatus(int); | 57 | int setBluezStatus(int); |
55 | int checkBluezDiscoveryStatus(); | 58 | int checkBluezDiscoveryStatus(); |
56 | int setBluezDiscoveryStatus(int); | 59 | int setBluezDiscoveryStatus(int); |
57 | 60 | ||
58 | private: | 61 | private: |
59 | Device* btDevice; | 62 | Device* btDevice; |
63 | Manager *btManager; | ||
60 | QPixmap bluezOnPixmap; | 64 | QPixmap bluezOnPixmap; |
61 | QPixmap bluezOffPixmap; | 65 | QPixmap bluezOffPixmap; |
62 | QPixmap bluezDiscoveryOnPixmap; | 66 | QPixmap bluezDiscoveryOnPixmap; |
63 | bool bluezactive; | 67 | bool bluezactive; |
64 | bool bluezDiscoveryActive; | 68 | bool bluezDiscoveryActive; |
65 | 69 | ||
66 | private slots: | 70 | private slots: |
71 | void slotMessage( const QCString& , const QByteArray& ); | ||
67 | 72 | ||
68 | 73 | ||
69 | }; | 74 | }; |
70 | }; | 75 | }; |
71 | 76 | ||
72 | 77 | ||
73 | #endif | 78 | #endif |
74 | 79 | ||