Diffstat (limited to 'core/applets/irdaapplet/irda.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/applets/irdaapplet/irda.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/core/applets/irdaapplet/irda.h b/core/applets/irdaapplet/irda.h index 5822afe..7b37847 100644 --- a/core/applets/irdaapplet/irda.h +++ b/core/applets/irdaapplet/irda.h | |||
@@ -2,64 +2,67 @@ | |||
2 | ** Copyright (C) 2002 L.J. Potter ljp@llornkcor.com | 2 | ** Copyright (C) 2002 L.J. Potter ljp@llornkcor.com |
3 | ** All rights reserved. | 3 | ** All rights reserved. |
4 | ** | 4 | ** |
5 | ** This file may be distributed and/or modified under the terms of the | 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 | 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 | 7 | ** Foundation and appearing in the file LICENSE.GPL included in the |
8 | ** packaging of this file. | 8 | ** packaging of this file. |
9 | ** | 9 | ** |
10 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | 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. | 11 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
12 | ** | 12 | ** |
13 | **********************************************************************/ | 13 | **********************************************************************/ |
14 | 14 | ||
15 | #ifndef SCREENSHOT_APPLET_H__ | 15 | #ifndef SCREENSHOT_APPLET_H__ |
16 | #define SCREENSHOT_APPLET_H__ | 16 | #define SCREENSHOT_APPLET_H__ |
17 | 17 | ||
18 | 18 | ||
19 | 19 | ||
20 | #include <qwidget.h> | 20 | #include <qwidget.h> |
21 | #include <qframe.h> | 21 | #include <qframe.h> |
22 | #include <qpixmap.h> | 22 | #include <qpixmap.h> |
23 | #include <qguardedptr.h> | 23 | #include <qguardedptr.h> |
24 | #include <qtimer.h> | 24 | #include <qtimer.h> |
25 | #include <qfile.h> | 25 | #include <qfile.h> |
26 | 26 | #include <qpopupmenu.h> | |
27 | #include <qdict.h> | ||
27 | 28 | ||
28 | class IrdaApplet : public QWidget | 29 | class IrdaApplet : public QWidget |
29 | { | 30 | { |
30 | Q_OBJECT | 31 | Q_OBJECT |
31 | public: | 32 | public: |
32 | IrdaApplet( QWidget *parent = 0, const char *name=0 ); | 33 | IrdaApplet( QWidget *parent = 0, const char *name=0 ); |
33 | ~IrdaApplet(); | 34 | ~IrdaApplet(); |
34 | 35 | ||
35 | protected: | 36 | protected: |
36 | void timerEvent(QTimerEvent *te ); | 37 | void timerEvent(QTimerEvent *te ); |
37 | 38 | ||
38 | private: | 39 | private: |
39 | void mousePressEvent( QMouseEvent * ); | 40 | void mousePressEvent( QMouseEvent * ); |
40 | void paintEvent( QPaintEvent* ); | 41 | void paintEvent( QPaintEvent* ); |
41 | int checkIrdaStatus(); | 42 | int checkIrdaStatus(); |
42 | int setIrdaStatus(int); | 43 | int setIrdaStatus(int); |
43 | int checkIrdaDiscoveryStatus(); | 44 | int checkIrdaDiscoveryStatus(); |
44 | int setIrdaDiscoveryStatus(int); | 45 | int setIrdaDiscoveryStatus(int); |
46 | int setIrdaReceiveStatus(int); | ||
45 | void showDiscovered(); | 47 | void showDiscovered(); |
46 | int sockfd; | 48 | int sockfd; |
47 | 49 | ||
50 | private slots: | ||
51 | void popupTimeout(); | ||
52 | |||
48 | private: | 53 | private: |
49 | QPixmap irdaOnPixmap; | 54 | QPixmap irdaOnPixmap; |
50 | QPixmap irdaOffPixmap; | 55 | QPixmap irdaOffPixmap; |
51 | QPixmap irdaDiscoveryOnPixmap; | 56 | QPixmap irdaDiscoveryOnPixmap; |
52 | QPixmap receiveActivePixmap; | 57 | QPixmap receiveActivePixmap; |
53 | QString discoveredDevice; | ||
54 | int irdaactive; // bool and bitfields later bool irdaactive :1 ; | 58 | int irdaactive; // bool and bitfields later bool irdaactive :1 ; |
55 | int irdaDiscoveryActive; | 59 | int irdaDiscoveryActive; |
56 | bool receiveActive : 1; | 60 | bool receiveActive : 1; |
57 | bool receiveStateChanged; | 61 | bool receiveStateChanged; |
58 | private slots: | 62 | QPopupMenu *popupMenu; |
59 | 63 | void popup(QString message, QString icon=""); | |
60 | 64 | QDict<QString> devicesAvailable; | |
61 | }; | 65 | }; |
62 | 66 | ||
63 | 67 | ||
64 | #endif // __SCREENSHOT_APPLET_H__ | 68 | #endif // __SCREENSHOT_APPLET_H__ |
65 | |||