summaryrefslogtreecommitdiff
path: root/core/applets/cardmon/cardmon.h
authorharlekin <harlekin>2002-05-27 23:48:06 (UTC)
committer harlekin <harlekin>2002-05-27 23:48:06 (UTC)
commitac5b5e7ecd8972f867aa4c3fa2b055f5789842c1 (patch) (side-by-side diff)
treeeee536a678c92265122f980d94ea5a0f5448d840 /core/applets/cardmon/cardmon.h
parenta184f648795a3fa27ad8ce1d1ac3cd4a30c7b8ba (diff)
downloadopie-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) (ignore whitespace changes)
-rw-r--r--core/applets/cardmon/cardmon.h52
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 @@
+/*
+ * cardmon.h
+ *
+ * ---------------------
+ *
+ * copyright : (c) 2002 by Maximilian Reiss
+ * email : max.reiss@gmx.de
+ * based on two apps by Devin Butterfield
+ */
+/***************************************************************************
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ ***************************************************************************/
+
+#ifndef CARDMON_H
+#define CARDMON_H
+
+#include <qwidget.h>
+#include <qpixmap.h>
+
+class CardMonitor : public QWidget {
+ Q_OBJECT
+public:
+ CardMonitor( QWidget *parent = 0 );
+ ~CardMonitor();
+ bool getStatusPcmcia( void );
+ bool getStatusSd( void );
+
+private slots:
+ void cardMessage( const QCString &msg, const QByteArray & );
+
+protected:
+ void paintEvent( QPaintEvent* );
+ void mousePressEvent( QMouseEvent * );
+private:
+ QPixmap pm;
+ // pcmcia socket 0
+ bool cardInPcmcia0;
+ QString cardInPcmcia0Name;
+ // pcmcia socket 1
+ bool cardInPcmcia1;
+ QString cardInPcmcia1Name;
+ bool cardInSd;
+
+};
+
+#endif
+