rosmon_model.h
Go to the documentation of this file.
1 // List of all rosmon instances on the server
2 // Author: Max Schwarz <max.schwarz@uni-bonn.de>
3 
4 #ifndef ROSMON_NODE_MODEL_H
5 #define ROSMON_NODE_MODEL_H
6 
7 #include <QAbstractListModel>
8 #include <QStringList>
9 
10 namespace rqt_rosmon
11 {
12 
13 class ROSMonModel : public QAbstractListModel
14 {
15 Q_OBJECT
16 public:
17  explicit ROSMonModel(QObject* parent = nullptr);
18  ~ROSMonModel() override = default;
19 
20  int rowCount(const QModelIndex & parent) const override;
21  QVariant data(const QModelIndex & index, int role) const override;
22 private Q_SLOTS:
23  void updateData();
24 private:
25  QStringList m_data;
26 };
27 
28 }
29 
30 #endif
~ROSMonModel() override=default
QVariant data(const QModelIndex &index, int role) const override
ROSMonModel(QObject *parent=nullptr)
int rowCount(const QModelIndex &parent) const override


rqt_rosmon
Author(s): Max Schwarz
autogenerated on Sat Jan 9 2021 03:35:46