author | dwmw2 <dwmw2> | 2002-04-01 21:41:04 (UTC) |
---|---|---|
committer | dwmw2 <dwmw2> | 2002-04-01 21:41:04 (UTC) |
commit | 22183e22f3d1776c6c73219bd1a07ddf6bb8d670 (patch) (unidiff) | |
tree | 82712ae6199ba31dbf826d2ded63e866a05373e6 /core/applets/irdaapplet/irda.h | |
parent | 5c8abf28f5c839d1af9565b58b9f01aa54378eab (diff) | |
download | opie-22183e22f3d1776c6c73219bd1a07ddf6bb8d670.zip opie-22183e22f3d1776c6c73219bd1a07ddf6bb8d670.tar.gz opie-22183e22f3d1776c6c73219bd1a07ddf6bb8d670.tar.bz2 |
Import basic applet to allow switching IrDA on and off.
Diffstat (limited to 'core/applets/irdaapplet/irda.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/applets/irdaapplet/irda.h | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/core/applets/irdaapplet/irda.h b/core/applets/irdaapplet/irda.h new file mode 100644 index 0000000..d762ff3 --- a/dev/null +++ b/core/applets/irdaapplet/irda.h | |||
@@ -0,0 +1,57 @@ | |||
1 | /********************************************************************** | ||
2 | ** Copyright (C) 2002 L.J. Potter ljp@llornkcor.com | ||
3 | ** All rights reserved. | ||
4 | ** | ||
5 | ** This file may be distributed and/or modified under the terms of the | ||
6 | ** GNU General Public License version 2 as published by the Free Software | ||
7 | ** Foundation and appearing in the file LICENSE.GPL included in the | ||
8 | ** packaging of this file. | ||
9 | ** | ||
10 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | ||
11 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | ||
12 | ** | ||
13 | **********************************************************************/ | ||
14 | |||
15 | #ifndef __SCREENSHOT_APPLET_H__ | ||
16 | #define __SCREENSHOT_APPLET_H__ | ||
17 | |||
18 | |||
19 | |||
20 | #include <qwidget.h> | ||
21 | #include <qframe.h> | ||
22 | #include <qpixmap.h> | ||
23 | #include <qguardedptr.h> | ||
24 | #include <qtimer.h> | ||
25 | |||
26 | |||
27 | class IrdaApplet : public QWidget | ||
28 | { | ||
29 | Q_OBJECT | ||
30 | public: | ||
31 | IrdaApplet( QWidget *parent = 0, const char *name=0 ); | ||
32 | ~IrdaApplet(); | ||
33 | |||
34 | protected: | ||
35 | void timerEvent(QTimerEvent *te ); | ||
36 | |||
37 | public slots: | ||
38 | private: | ||
39 | void mousePressEvent( QMouseEvent * ); | ||
40 | void paintEvent( QPaintEvent* ); | ||
41 | int checkIrdaStatus(); | ||
42 | int setIrdaStatus(int); | ||
43 | int sockfd; | ||
44 | |||
45 | private: | ||
46 | QPixmap irdaOnPixmap; | ||
47 | QPixmap irdaOffPixmap; | ||
48 | int irdaactive; | ||
49 | |||
50 | private slots: | ||
51 | |||
52 | |||
53 | }; | ||
54 | |||
55 | |||
56 | #endif // __SCREENSHOT_APPLET_H__ | ||
57 | |||