summaryrefslogtreecommitdiffstats
path: root/src/devices/pic/pic/pic_group.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/pic/pic/pic_group.h')
-rw-r--r--src/devices/pic/pic/pic_group.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/src/devices/pic/pic/pic_group.h b/src/devices/pic/pic/pic_group.h
new file mode 100644
index 0000000..1b95e09
--- /dev/null
+++ b/src/devices/pic/pic/pic_group.h
@@ -0,0 +1,39 @@
+/***************************************************************************
+ * Copyright (C) 2006 Nicolas Hadacek <hadacek@kde.org> *
+ * *
+ * 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 PIC_GROUP_H
+#define PIC_GROUP_H
+
+#include "common/global/global.h"
+#include "devices/base/device_group.h"
+#include "devices/pic/base/pic.h"
+
+namespace Pic
+{
+extern const uint DATA_SIZE;
+extern const char *DATA_STREAM;
+
+class Group : public Device::Group<Data>
+{
+public:
+ virtual QString name() const { return "pic"; }
+ virtual QString label() const { return i18n("PIC"); }
+ virtual Device::Memory *createMemory(const Device::Data &data) const;
+ virtual QString informationHtml(const Device::Data &data) const;
+#if !defined(NO_KDE)
+ virtual QPixmap memoryGraph(const Device::Data &data) const;
+#endif
+
+private:
+ virtual uint dataSize() const { return DATA_SIZE; }
+ virtual const char *dataStream() const { return DATA_STREAM; }
+};
+
+} // namespace
+
+#endif