summaryrefslogtreecommitdiff
path: root/core/applets/cardmon/cardmon.h
Unidiff
Diffstat (limited to 'core/applets/cardmon/cardmon.h') (more/less context) (show whitespace changes)
-rw-r--r--core/applets/cardmon/cardmon.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/core/applets/cardmon/cardmon.h b/core/applets/cardmon/cardmon.h
index b02c8b1..400f5ae 100644
--- a/core/applets/cardmon/cardmon.h
+++ b/core/applets/cardmon/cardmon.h
@@ -23,40 +23,46 @@
23#include <qpixmap.h> 23#include <qpixmap.h>
24#include <qpopupmenu.h> 24#include <qpopupmenu.h>
25 25
26namespace Opie { 26namespace Opie {
27 namespace Core { 27 namespace Core {
28 class OProcess; 28 class OProcess;
29 } 29 }
30} 30}
31 31
32class CardMonitor : public QWidget { 32class CardMonitor : public QWidget {
33 Q_OBJECT 33 Q_OBJECT
34public: 34public:
35 enum {
36 PCMCIA_Socket1,
37 PCMCIA_Socket2,
38 MMC_Socket
39 };
40
35 CardMonitor( QWidget *parent = 0 ); 41 CardMonitor( QWidget *parent = 0 );
36 ~CardMonitor(); 42 ~CardMonitor();
37 bool getStatusPcmcia( int showPopUp = FALSE ); 43 bool getStatusPcmcia( int showPopUp = FALSE );
38 bool getStatusSd( int showPopUp = FALSE ); 44 bool getStatusSd( int showPopUp = FALSE );
39 static int position(); 45 static int position();
40private slots: 46private slots:
41 void cardMessage( const QCString &msg, const QByteArray & ); 47 void cardMessage( const QCString &msg, const QByteArray & );
42 void slotExited( Opie::Core::OProcess* proc ); 48 void slotExited( Opie::Core::OProcess* proc );
43 void popupTimeout(); 49 void popupTimeout();
44 50
45protected: 51protected:
46 void paintEvent( QPaintEvent* ); 52 void paintEvent( QPaintEvent* );
47 void mousePressEvent( QMouseEvent * ); 53 void mousePressEvent( QMouseEvent * );
48 54
49private: 55private:
50 void execCommand( const QString &command ); 56 void execCommand( const QStringList &command );
51 int m_commandOrig; 57 int m_commandOrig;
52 QPixmap pm; 58 QPixmap pm;
53 // pcmcia socket 0 59 // pcmcia socket 0
54 bool cardInPcmcia0; 60 bool cardInPcmcia0;
55 QString cardInPcmcia0Name; 61 QString cardInPcmcia0Name;
56 QString cardInPcmcia0Type; 62 QString cardInPcmcia0Type;
57 // pcmcia socket 1 63 // pcmcia socket 1
58 bool cardInPcmcia1; 64 bool cardInPcmcia1;
59 QString cardInPcmcia1Name; 65 QString cardInPcmcia1Name;
60 QString cardInPcmcia1Type; 66 QString cardInPcmcia1Type;
61 bool cardInSd; 67 bool cardInSd;
62 QString cardSdName; // the device which is mounted 68 QString cardSdName; // the device which is mounted