author | harlekin <harlekin> | 2002-06-01 23:07:22 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-06-01 23:07:22 (UTC) |
commit | 4a8e6f982a1033b7f2b0406a238503f9acb9a7c5 (patch) (unidiff) | |
tree | c85b839b6650ccfd8d63fe3a6ec75425e3a76bd9 /noncore/net/opietooth/applet/bluezapplet.h | |
parent | 4f5fdda25657f079b5937cbd4b588466c2298304 (diff) | |
download | opie-4a8e6f982a1033b7f2b0406a238503f9acb9a7c5.zip opie-4a8e6f982a1033b7f2b0406a238503f9acb9a7c5.tar.gz opie-4a8e6f982a1033b7f2b0406a238503f9acb9a7c5.tar.bz2 |
bluetooth applet for the taskbar
Diffstat (limited to 'noncore/net/opietooth/applet/bluezapplet.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/opietooth/applet/bluezapplet.h | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/noncore/net/opietooth/applet/bluezapplet.h b/noncore/net/opietooth/applet/bluezapplet.h new file mode 100644 index 0000000..da05a18 --- a/dev/null +++ b/noncore/net/opietooth/applet/bluezapplet.h | |||
@@ -0,0 +1,75 @@ | |||
1 | /* | ||
2 | =. This file is part of the OPIE Project | ||
3 | .=l. Copyright (c) 2002 Maximilian Reiss <max.reiss@gmx.de> | ||
4 | .>+-= | ||
5 | _;:, .> :=|. This library is free software; you can | ||
6 | .> <, > . <= redistribute it and/or modify it under | ||
7 | :=1 )Y*s>-.-- : the terms of the GNU Library General Public | ||
8 | .="- .-=="i, .._ License as published by the Free Software | ||
9 | - . .-<_> .<> Foundation; either version 2 of the License, | ||
10 | ._= =} : or (at your option) any later version. | ||
11 | .%+i> _;_. | ||
12 | .i_,=:_. -<s. This library is distributed in the hope that | ||
13 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; | ||
14 | : .. .:, . . . without even the implied warranty of | ||
15 | =_ + =;=| MERCHANTABILITY or FITNESS FOR A | ||
16 | _.=:. : :=>: PARTICULAR PURPOSE. See the GNU | ||
17 | ..}^=.= = ; Library General Public License for more | ||
18 | ++= -. . .: details. | ||
19 | : = ...= . :.=- | ||
20 | -. .:....=;==+<; You should have received a copy of the GNU | ||
21 | -_. . . )=. = Library General Public License along with | ||
22 | -- :-= this library; see the file COPYING.LIB. | ||
23 | If not, write to the Free Software Foundation, | ||
24 | Inc., 59 Temple Place - Suite 330, | ||
25 | Boston, MA 02111-1307, USA. | ||
26 | |||
27 | */ | ||
28 | |||
29 | #ifndef __BLUEZAPPLET_H__ | ||
30 | #define __BLUEZAPPLET_H__ | ||
31 | |||
32 | #include <qwidget.h> | ||
33 | #include <qpixmap.h> | ||
34 | #include <qtimer.h> | ||
35 | |||
36 | namespace OpieTooth { | ||
37 | class Device; | ||
38 | |||
39 | class BluezApplet : public QWidget { | ||
40 | Q_OBJECT | ||
41 | public: | ||
42 | BluezApplet( QWidget *parent = 0, const char *name=0 ); | ||
43 | ~BluezApplet(); | ||
44 | |||
45 | protected: | ||
46 | void timerEvent(QTimerEvent *te ); | ||
47 | |||
48 | public slots: | ||
49 | private: | ||
50 | void mousePressEvent( QMouseEvent * ); | ||
51 | void paintEvent( QPaintEvent* ); | ||
52 | void launchManager(); | ||
53 | int checkBluezStatus(); | ||
54 | int setBluezStatus(int); | ||
55 | int checkBluezDiscoveryStatus(); | ||
56 | int setBluezDiscoveryStatus(int); | ||
57 | int sockfd; | ||
58 | |||
59 | private: | ||
60 | Device* btDevice; | ||
61 | QPixmap bluezOnPixmap; | ||
62 | QPixmap bluezOffPixmap; | ||
63 | QPixmap bluezDiscoveryOnPixmap; | ||
64 | int bluezactive; | ||
65 | int bluezDiscoveryActive; | ||
66 | |||
67 | private slots: | ||
68 | |||
69 | |||
70 | }; | ||
71 | }; | ||
72 | |||
73 | |||
74 | #endif | ||
75 | |||