Diffstat (limited to 'core/applets/cardmon/cardmon.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/applets/cardmon/cardmon.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/core/applets/cardmon/cardmon.h b/core/applets/cardmon/cardmon.h index 37de366..19d0394 100644 --- a/core/applets/cardmon/cardmon.h +++ b/core/applets/cardmon/cardmon.h | |||
@@ -20,28 +20,38 @@ | |||
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 | 25 | ||
26 | namespace Opie { | ||
27 | namespace Core { | ||
28 | class OProcess; | ||
29 | } | ||
30 | } | ||
31 | |||
26 | class CardMonitor : public QWidget { | 32 | class CardMonitor : public QWidget { |
27 | Q_OBJECT | 33 | Q_OBJECT |
28 | public: | 34 | public: |
29 | CardMonitor( QWidget *parent = 0 ); | 35 | CardMonitor( QWidget *parent = 0 ); |
30 | ~CardMonitor(); | 36 | ~CardMonitor(); |
31 | bool getStatusPcmcia( int showPopUp = FALSE ); | 37 | bool getStatusPcmcia( int showPopUp = FALSE ); |
32 | bool getStatusSd( int showPopUp = FALSE ); | 38 | bool getStatusSd( int showPopUp = FALSE ); |
33 | static int position(); | 39 | static int position(); |
34 | private slots: | 40 | private slots: |
35 | void cardMessage( const QCString &msg, const QByteArray & ); | 41 | void cardMessage( const QCString &msg, const QByteArray & ); |
42 | void slotExited( Opie::Core::OProcess* proc ); | ||
36 | void popupTimeout(); | 43 | void popupTimeout(); |
37 | 44 | ||
38 | protected: | 45 | protected: |
39 | void paintEvent( QPaintEvent* ); | 46 | void paintEvent( QPaintEvent* ); |
40 | void mousePressEvent( QMouseEvent * ); | 47 | void mousePressEvent( QMouseEvent * ); |
48 | |||
41 | private: | 49 | private: |
50 | void execCommand( const QString &command ); | ||
51 | int m_commandOrig; | ||
42 | QPixmap pm; | 52 | QPixmap pm; |
43 | // pcmcia socket 0 | 53 | // pcmcia socket 0 |
44 | bool cardInPcmcia0; | 54 | bool cardInPcmcia0; |
45 | QString cardInPcmcia0Name; | 55 | QString cardInPcmcia0Name; |
46 | QString cardInPcmcia0Type; | 56 | QString cardInPcmcia0Type; |
47 | // pcmcia socket 1 | 57 | // pcmcia socket 1 |
@@ -49,10 +59,11 @@ private: | |||
49 | QString cardInPcmcia1Name; | 59 | QString cardInPcmcia1Name; |
50 | QString cardInPcmcia1Type; | 60 | QString cardInPcmcia1Type; |
51 | bool cardInSd; | 61 | bool cardInSd; |
52 | void iconShow(); | 62 | void iconShow(); |
53 | QPopupMenu *popupMenu; | 63 | QPopupMenu *popupMenu; |
54 | void popUp(QString message, QString icon = QString::null ); | 64 | void popUp(QString message, QString icon = QString::null ); |
55 | }; | 65 | Opie::Core::OProcess* m_process; |
66 | }; | ||
56 | 67 | ||
57 | #endif | 68 | #endif |
58 | 69 | ||