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
rqt_rosmon::ROSMonModel::ROSMonModel
ROSMonModel(QObject *parent=nullptr)
Definition: rosmon_model.cpp:18
rqt_rosmon::ROSMonModel::updateData
void updateData()
Definition: rosmon_model.cpp:50
rqt_rosmon::ROSMonModel::data
QVariant data(const QModelIndex &index, int role) const override
Definition: rosmon_model.cpp:36
rqt_rosmon::ROSMonModel
Definition: rosmon_model.h:13
rqt_rosmon
Definition: bar_delegate.cpp:8
rqt_rosmon::ROSMonModel::~ROSMonModel
~ROSMonModel() override=default
rqt_rosmon::ROSMonModel::m_data
QStringList m_data
Definition: rosmon_model.h:25
rqt_rosmon::ROSMonModel::rowCount
int rowCount(const QModelIndex &parent) const override
Definition: rosmon_model.cpp:28


rqt_rosmon
Author(s): Max Schwarz
autogenerated on Wed Feb 21 2024 04:01:19