author | mickeyl <mickeyl> | 2005-05-19 14:25:34 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2005-05-19 14:25:34 (UTC) |
commit | 7fcfce8388df1805327f21d4cc41d7f5f54c6e6a (patch) (unidiff) | |
tree | 80409a535f74f4d5c5131f2eeb9f064a492f0cb8 /core/applets/cardmon/pcmcia.h | |
parent | 77134583c00446fc74515889514571924e7471ed (diff) | |
download | opie-7fcfce8388df1805327f21d4cc41d7f5f54c6e6a.zip opie-7fcfce8388df1805327f21d4cc41d7f5f54c6e6a.tar.gz opie-7fcfce8388df1805327f21d4cc41d7f5f54c6e6a.tar.bz2 |
write card log
Diffstat (limited to 'core/applets/cardmon/pcmcia.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/applets/cardmon/pcmcia.h | 35 |
1 files changed, 10 insertions, 25 deletions
diff --git a/core/applets/cardmon/pcmcia.h b/core/applets/cardmon/pcmcia.h index 58a2d42..5c20433 100644 --- a/core/applets/cardmon/pcmcia.h +++ b/core/applets/cardmon/pcmcia.h | |||
@@ -37,43 +37,28 @@ | |||
37 | class PcmciaManager : public QWidget | 37 | class PcmciaManager : public QWidget |
38 | { | 38 | { |
39 | Q_OBJECT | 39 | Q_OBJECT |
40 | public: | 40 | public: |
41 | enum { | ||
42 | PCMCIA_Socket1, | ||
43 | PCMCIA_Socket2, | ||
44 | MMC_Socket | ||
45 | }; | ||
46 | |||
47 | PcmciaManager( QWidget *parent = 0 ); | 41 | PcmciaManager( QWidget *parent = 0 ); |
48 | ~PcmciaManager(); | 42 | ~PcmciaManager(); |
49 | bool getStatusPcmcia( int showPopUp = FALSE ); | ||
50 | bool getStatusSd( int showPopUp = FALSE ); | ||
51 | static int position(); | 43 | static int position(); |
52 | private slots: | 44 | |
53 | void cardMessage( const QCString &msg, const QByteArray & ); | 45 | private slots: |
46 | void cardMessage( const QCString& msg, const QByteArray& ); | ||
54 | void popupTimeout(); | 47 | void popupTimeout(); |
55 | 48 | ||
56 | protected: | 49 | protected: |
57 | void paintEvent( QPaintEvent* ); | 50 | void paintEvent( QPaintEvent* ); |
58 | void mousePressEvent( QMouseEvent * ); | 51 | void mousePressEvent( QMouseEvent * ); |
59 | 52 | ||
60 | private: | 53 | private: |
61 | void execCommand( const QStringList &command ); | 54 | void execCommand( const QStringList &command ); |
55 | void popUp(QString message, QString icon = QString::null ); | ||
56 | |||
57 | private: | ||
62 | int m_commandOrig; | 58 | int m_commandOrig; |
63 | QPixmap pm; | 59 | QPixmap pm; |
64 | // pcmcia socket 0 | ||
65 | bool cardInPcmcia0; | ||
66 | QString cardInPcmcia0Name; | ||
67 | QString cardInPcmcia0Type; | ||
68 | // pcmcia socket 1 | ||
69 | bool cardInPcmcia1; | ||
70 | QString cardInPcmcia1Name; | ||
71 | QString cardInPcmcia1Type; | ||
72 | bool cardInSd; | ||
73 | QString cardSdName; // the device which is mounted | ||
74 | void iconShow(); | ||
75 | QPopupMenu *popupMenu; | 60 | QPopupMenu *popupMenu; |
76 | void popUp(QString message, QString icon = QString::null ); | 61 | |
77 | }; | 62 | }; |
78 | 63 | ||
79 | #endif | 64 | #endif |