author | harlekin <harlekin> | 2002-06-23 21:59:16 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-06-23 21:59:16 (UTC) |
commit | 64f2b33735d6df230820af5aa0f47d8db29e6e35 (patch) (unidiff) | |
tree | f6b6e62a3a2153c96c18df7055367049600192aa /core/applets/cardmon/cardmon.h | |
parent | 8e6c9f9b93d5c95fe1a40689817e86d478a8c944 (diff) | |
download | opie-64f2b33735d6df230820af5aa0f47d8db29e6e35.zip opie-64f2b33735d6df230820af5aa0f47d8db29e6e35.tar.gz opie-64f2b33735d6df230820af5aa0f47d8db29e6e35.tar.bz2 |
fixed first start and cleanups
Diffstat (limited to 'core/applets/cardmon/cardmon.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/applets/cardmon/cardmon.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/core/applets/cardmon/cardmon.h b/core/applets/cardmon/cardmon.h index 34b8d95..e424192 100644 --- a/core/applets/cardmon/cardmon.h +++ b/core/applets/cardmon/cardmon.h | |||
@@ -13,46 +13,47 @@ | |||
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> | 24 | #include <qpopupmenu.h> |
25 | #include <qtimer.h> | ||
26 | 25 | ||
27 | class CardMonitor : public QWidget { | 26 | class CardMonitor : public QWidget { |
28 | Q_OBJECT | 27 | Q_OBJECT |
29 | public: | 28 | public: |
30 | CardMonitor( QWidget *parent = 0 ); | 29 | CardMonitor( QWidget *parent = 0 ); |
31 | ~CardMonitor(); | 30 | ~CardMonitor(); |
32 | bool getStatusPcmcia( int showPopUp = FALSE ); | 31 | bool getStatusPcmcia( int showPopUp = FALSE ); |
33 | bool getStatusSd( int showPopUp = FALSE ); | 32 | bool getStatusSd( int showPopUp = FALSE ); |
34 | 33 | ||
35 | private slots: | 34 | private slots: |
36 | void cardMessage( const QCString &msg, const QByteArray & ); | 35 | void cardMessage( const QCString &msg, const QByteArray & ); |
37 | void popUpTimeout(); | 36 | void popupTimeout(); |
38 | 37 | ||
39 | protected: | 38 | protected: |
40 | void paintEvent( QPaintEvent* ); | 39 | void paintEvent( QPaintEvent* ); |
41 | void mousePressEvent( QMouseEvent * ); | 40 | void mousePressEvent( QMouseEvent * ); |
42 | private: | 41 | private: |
43 | QPixmap pm; | 42 | QPixmap pm; |
44 | QPopupMenu *popUpMenu; | ||
45 | QTimer *popUpMenuTimer; | ||
46 | // pcmcia socket 0 | 43 | // pcmcia socket 0 |
47 | bool cardInPcmcia0; | 44 | bool cardInPcmcia0; |
48 | QString cardInPcmcia0Name; | 45 | QString cardInPcmcia0Name; |
46 | QString cardInPcmcia0Type; | ||
49 | // pcmcia socket 1 | 47 | // pcmcia socket 1 |
50 | bool cardInPcmcia1; | 48 | bool cardInPcmcia1; |
51 | QString cardInPcmcia1Name; | 49 | QString cardInPcmcia1Name; |
50 | QString cardInPcmcia1Type; | ||
52 | bool cardInSd; | 51 | bool cardInSd; |
53 | void iconShow(); | 52 | void iconShow(); |
54 | void popUp(QString message); | 53 | QPopupMenu *popupMenu; |
54 | void popup(QString message, QString icon=""); | ||
55 | QString getIconName(QString type); | ||
55 | }; | 56 | }; |
56 | 57 | ||
57 | #endif | 58 | #endif |
58 | 59 | ||