author | harlekin <harlekin> | 2002-06-22 22:25:56 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-06-22 22:25:56 (UTC) |
commit | b6f6bab5e56f352a4f71dadb40530d6cdcaea3cc (patch) (unidiff) | |
tree | b58cfac35b73d8a85944b42aad3344dee0a979a2 /core/applets/cardmon/cardmon.h | |
parent | dc0bab1611d87c39d3729aa05d8b01f639120052 (diff) | |
download | opie-b6f6bab5e56f352a4f71dadb40530d6cdcaea3cc.zip opie-b6f6bab5e56f352a4f71dadb40530d6cdcaea3cc.tar.gz opie-b6f6bab5e56f352a4f71dadb40530d6cdcaea3cc.tar.bz2 |
nicer card inserted popup + cleanups
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 | |||
@@ -20,8 +20,10 @@ | |||
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: |
@@ -31,23 +33,26 @@ public: | |||
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 | ||