author | harlekin <harlekin> | 2004-06-04 17:46:18 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2004-06-04 17:46:18 (UTC) |
commit | 1989c6f43aecffc9ec1a7b677e98435beff54886 (patch) (side-by-side diff) | |
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 @@ #include <qpixmap.h> #include <qpopupmenu.h> +namespace Opie { + namespace Core { + class OProcess; + } +} + class CardMonitor : public QWidget { Q_OBJECT public: @@ -33,12 +39,16 @@ public: static int position(); private slots: void cardMessage( const QCString &msg, const QByteArray & ); + void slotExited( Opie::Core::OProcess* proc ); void popupTimeout(); protected: void paintEvent( QPaintEvent* ); void mousePressEvent( QMouseEvent * ); + private: + void execCommand( const QString &command ); + int m_commandOrig; QPixmap pm; // pcmcia socket 0 bool cardInPcmcia0; @@ -52,7 +62,8 @@ private: void iconShow(); QPopupMenu *popupMenu; void popUp(QString message, QString icon = QString::null ); - }; + Opie::Core::OProcess* m_process; +}; #endif |