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 | |||