author | harlekin <harlekin> | 2002-05-27 23:48:06 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-05-27 23:48:06 (UTC) |
commit | ac5b5e7ecd8972f867aa4c3fa2b055f5789842c1 (patch) (unidiff) | |
tree | eee536a678c92265122f980d94ea5a0f5448d840 /core/applets/cardmon/cardmon.h | |
parent | a184f648795a3fa27ad8ce1d1ac3cd4a30c7b8ba (diff) | |
download | opie-ac5b5e7ecd8972f867aa4c3fa2b055f5789842c1.zip opie-ac5b5e7ecd8972f867aa4c3fa2b055f5789842c1.tar.gz opie-ac5b5e7ecd8972f867aa4c3fa2b055f5789842c1.tar.bz2 |
new cf/pcmcia/sd/mmc applet, not finished yet, but working (kind off ,-) ) , will replace the old cardmon and sdmon when ready
Diffstat (limited to 'core/applets/cardmon/cardmon.h') (more/less context) (show whitespace changes)
-rw-r--r-- | core/applets/cardmon/cardmon.h | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/core/applets/cardmon/cardmon.h b/core/applets/cardmon/cardmon.h new file mode 100644 index 0000000..2a90c90 --- a/dev/null +++ b/core/applets/cardmon/cardmon.h | |||
@@ -0,0 +1,52 @@ | |||
1 | /* | ||
2 | * cardmon.h | ||
3 | * | ||
4 | * --------------------- | ||
5 | * | ||
6 | * copyright : (c) 2002 by Maximilian Reiss | ||
7 | * email : max.reiss@gmx.de | ||
8 | * based on two apps by Devin Butterfield | ||
9 | */ | ||
10 | /*************************************************************************** | ||
11 | * * | ||
12 | * This program is free software; you can redistribute it and/or modify * | ||
13 | * it under the terms of the GNU General Public License as published by * | ||
14 | * the Free Software Foundation; either version 2 of the License, or * | ||
15 | * (at your option) any later version. * | ||
16 | * * | ||
17 | ***************************************************************************/ | ||
18 | |||
19 | #ifndef CARDMON_H | ||
20 | #define CARDMON_H | ||
21 | |||
22 | #include <qwidget.h> | ||
23 | #include <qpixmap.h> | ||
24 | |||
25 | class CardMonitor : public QWidget { | ||
26 | Q_OBJECT | ||
27 | public: | ||
28 | CardMonitor( QWidget *parent = 0 ); | ||
29 | ~CardMonitor(); | ||
30 | bool getStatusPcmcia( void ); | ||
31 | bool getStatusSd( void ); | ||
32 | |||
33 | private slots: | ||
34 | void cardMessage( const QCString &msg, const QByteArray & ); | ||
35 | |||
36 | protected: | ||
37 | void paintEvent( QPaintEvent* ); | ||
38 | void mousePressEvent( QMouseEvent * ); | ||
39 | private: | ||
40 | QPixmap pm; | ||
41 | // pcmcia socket 0 | ||
42 | bool cardInPcmcia0; | ||
43 | QString cardInPcmcia0Name; | ||
44 | // pcmcia socket 1 | ||
45 | bool cardInPcmcia1; | ||
46 | QString cardInPcmcia1Name; | ||
47 | bool cardInSd; | ||
48 | |||
49 | }; | ||
50 | |||
51 | #endif | ||
52 | |||