summaryrefslogtreecommitdiffstats
path: root/src/devices/mem24/mem24/mem24_group.h
blob: f39bf5f935381d8b44fdcb5d11ba1c085af93a62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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 MEM24_GROUP_H
#define MEM24_GROUP_H

#include "common/global/global.h"
#include "devices/base/device_group.h"
#include "devices/mem24/base/mem24.h"

namespace Mem24
{
extern const uint DATA_SIZE;
extern const char *DATA_STREAM;

class Group : public Device::Group<Data>
{
public:
  virtual TQString name() const { return "mem24"; }
  virtual TQString label() const { return i18n("Serial Memory 24"); }
  virtual Device::Memory *createMemory(const Device::Data &data) const;
  virtual TQString informationHtml(const Device::Data &data) const;
#if !defined(NO_KDE)
  virtual TQPixmap 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