Diffstat (limited to 'core/applets/cardmon/cardmon.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/applets/cardmon/cardmon.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/core/applets/cardmon/cardmon.h b/core/applets/cardmon/cardmon.h index f9e3819..34b8d95 100644 --- a/core/applets/cardmon/cardmon.h +++ b/core/applets/cardmon/cardmon.h | |||
@@ -12,42 +12,47 @@ | |||
12 | * This program is free software; you can redistribute it and/or modify * | 12 | * This program is free software; you can redistribute it and/or modify * |
13 | * it under the terms of the GNU General Public License as published by * | 13 | * it under the terms of the GNU General Public License as published by * |
14 | * the Free Software Foundation; either version 2 of the License, or * | 14 | * the Free Software Foundation; either version 2 of the License, or * |
15 | * (at your option) any later version. * | 15 | * (at your option) any later version. * |
16 | * * | 16 | * * |
17 | ***************************************************************************/ | 17 | ***************************************************************************/ |
18 | 18 | ||
19 | #ifndef CARDMON_H | 19 | #ifndef CARDMON_H |
20 | #define CARDMON_H | 20 | #define CARDMON_H |
21 | 21 | ||
22 | #include <qwidget.h> | 22 | #include <qwidget.h> |
23 | #include <qpixmap.h> | 23 | #include <qpixmap.h> |
24 | #include <qpopupmenu.h> | ||
25 | #include <qtimer.h> | ||
24 | 26 | ||
25 | class CardMonitor : public QWidget { | 27 | class CardMonitor : public QWidget { |
26 | Q_OBJECT | 28 | Q_OBJECT |
27 | public: | 29 | public: |
28 | CardMonitor( QWidget *parent = 0 ); | 30 | CardMonitor( QWidget *parent = 0 ); |
29 | ~CardMonitor(); | 31 | ~CardMonitor(); |
30 | bool getStatusPcmcia( int showPopUp = FALSE ); | 32 | bool getStatusPcmcia( int showPopUp = FALSE ); |
31 | bool getStatusSd( int showPopUp = FALSE ); | 33 | bool getStatusSd( int showPopUp = FALSE ); |
32 | 34 | ||
33 | private slots: | 35 | private slots: |
34 | void cardMessage( const QCString &msg, const QByteArray & ); | 36 | void cardMessage( const QCString &msg, const QByteArray & ); |
37 | void popUpTimeout(); | ||
35 | 38 | ||
36 | protected: | 39 | protected: |
37 | void paintEvent( QPaintEvent* ); | 40 | void paintEvent( QPaintEvent* ); |
38 | void mousePressEvent( QMouseEvent * ); | 41 | void mousePressEvent( QMouseEvent * ); |
39 | private: | 42 | private: |
40 | QPixmap pm; | 43 | QPixmap pm; |
44 | QPopupMenu *popUpMenu; | ||
45 | QTimer *popUpMenuTimer; | ||
41 | // pcmcia socket 0 | 46 | // pcmcia socket 0 |
42 | bool cardInPcmcia0; | 47 | bool cardInPcmcia0; |
43 | QString cardInPcmcia0Name; | 48 | QString cardInPcmcia0Name; |
44 | // pcmcia socket 1 | 49 | // pcmcia socket 1 |
45 | bool cardInPcmcia1; | 50 | bool cardInPcmcia1; |
46 | QString cardInPcmcia1Name; | 51 | QString cardInPcmcia1Name; |
47 | bool cardInSd; | 52 | bool cardInSd; |
48 | void iconShow(); | 53 | void iconShow(); |
49 | 54 | void popUp(QString message); | |
50 | }; | 55 | }; |
51 | 56 | ||
52 | #endif | 57 | #endif |
53 | 58 | ||