author | harlekin <harlekin> | 2004-06-04 17:46:18 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2004-06-04 17:46:18 (UTC) |
commit | 1989c6f43aecffc9ec1a7b677e98435beff54886 (patch) (unidiff) | |
tree | 798d1255e59c120fda9b853c5b31a29bcbe07edf /core/applets/cardmon/cardmon.h | |
parent | e3982ce0959fe630709aeba25f4c6d93df150ff5 (diff) | |
download | opie-1989c6f43aecffc9ec1a7b677e98435beff54886.zip opie-1989c6f43aecffc9ec1a7b677e98435beff54886.tar.gz opie-1989c6f43aecffc9ec1a7b677e98435beff54886.tar.bz2 |
using oprocess to trigger some unix commands instead of primitiv system(), hopefully fixes bug 218
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 | |||
@@ -23,6 +23,12 @@ | |||
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: |
@@ -33,12 +39,16 @@ public: | |||
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; |
@@ -52,7 +62,8 @@ private: | |||
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 | ||