22 #ifndef QTPDCOM_MESSAGEMODEL_H 23 #define QTPDCOM_MESSAGEMODEL_H 27 #include <QAbstractTableModel> 43 public QAbstractTableModel
46 Q_PROPERTY(
int rowLimit READ getRowLimit WRITE setRowLimit)
55 void load(const QString &, const QString & = QString(),
56 const QString & = QString());
57 Q_INVOKABLE
void clear();
59 void setRowLimit(
int);
60 int getRowLimit() const;
64 Q_INVOKABLE
void translate(const QString &);
66 void setIcon(
Message::Type, const QIcon &);
67 const QIcon &getIcon(
Message::Type) const;
68 void setIconPath(
Message::Type, const QString &);
71 DecorationPathRole = Qt::UserRole + 1,
72 TimeStringRole = Qt::UserRole + 2,
73 ResetTimeStringRole = Qt::UserRole + 3,
74 MessageTypeRole = Qt::UserRole + 4,
79 virtual int rowCount(
const QModelIndex &)
const override;
80 virtual int columnCount(
const QModelIndex &)
const override;
81 virtual QVariant data(
const QModelIndex &,
int)
const override;
82 virtual QVariant headerData(
int, Qt::Orientation,
int)
const override;
83 virtual Qt::ItemFlags flags(
const QModelIndex &)
const override;
84 virtual QHash<int, QByteArray> roleNames()
const override;
85 virtual bool canFetchMore(
const QModelIndex &)
const override;
86 virtual void fetchMore(
const QModelIndex &)
override;
119 bool event(QEvent *)
override;
Roles
Definition: MessageModel.h:70
List of Messages.
Definition: MessageModel.h:42
PdCom::Process implementation for Qt.
Definition: Process.h:70
Definition: BroadcastModel.h:32
Exception(const QString &msg)
Constructor.
Definition: MessageModel.h:93
Exception type.
Definition: MessageModel.h:90
Process message.
Definition: Message.h:37
std::unique_ptr< Impl > impl
Definition: MessageModel.h:123
QString msg
Exception message.
Definition: MessageModel.h:94
#define QTPDCOM_PUBLIC
Definition: Export.h:30
Definition: MessageModelImpl.h:41