|
QtPdCom
1.5.2
|
#include <MessageModelImpl.h>


Classes | |
| struct | MessageItem |
Public Member Functions | |
| Impl (MessageModel *) | |
| Constructor. | |
| ~Impl () | |
| Destructor. | |
| void | insertItem (MessageItem *) |
| Insert a message item. | |
| void | addProcessMessage (const PdCom::Message &) |
| Called from the PdCom interface, if a new message appears via processMessage() or in context of activeMessagesReply(). | |
| void | addHistoricMessage (const PdCom::Message &, const PdCom::Message &) |
| Called from the PdCom interface, if a historic message appears via getMessageReply(). | |
Static Public Member Functions | |
| static QString | wrapText (const QString &, unsigned int=78) |
| Returns a wrapped version of a string. | |
Private Types | |
| typedef QHash< int, Message * > | MessageHash |
| typedef QMap< QString, MessageHash > | MessageMap |
| typedef QList< MessageItem * > | MessageItemList |
| typedef QHash< Message::Type, QIcon > | IconHash |
| Icon hash type. | |
| typedef QHash< Message::Type, QString > | IconPathHash |
| Icon hash type (with path). | |
Private Slots | |
| void | stateChanged () |
| Reacts on process values changes of all messages to watch. | |
| void | processMessage (PdCom::Message message) |
| void | getMessageReply (PdCom::Message message) |
| void | activeMessagesReply (std::vector< PdCom::Message >) |
| void | processReset () |
| void | reloadActiveMessages () |
Private Member Functions | |
| void | getHistoryMessage () |
| Spin up a FutureWatcher and connect its signals. | |
| void | announce () |
| Announce next best message as current message. | |
Private Attributes | |
| MessageModel *const | parent |
| MessageMap | messageMap |
| MessageItemList | messageItemList |
| IconHash | iconHash |
| Icons for message types. | |
| IconPathHash | iconPathHash |
| Icons for message types (with path). | |
| MessageItem * | announcedMessageItem |
| Recently announced message. | |
| QString | lang |
| MessageManager * | messageManager |
| int | rowLimit |
| bool | canFetchMore |
| uint32_t | historicSeqNo |
| bool(* | lessThan )(const MessageItem *, const MessageItem *) |
| QList< PdCom::Message > | resetMessagesList |
| list of history messages that were reset | |
| Process * | process = nullptr |
Friends | |
| class | MessageModel |
| class | Message |
|
private |
Icon hash type.
|
private |
Icon hash type (with path).
|
private |
|
private |
|
private |
| MessageModel::Impl::Impl | ( | MessageModel * | model | ) |
Constructor.
References announcedMessageItem, canFetchMore, historicSeqNo, lessThan, messageManager, MessageModel, parent, and rowLimit.
| MessageModel::Impl::~Impl | ( | ) |
Destructor.
|
privateslot |
References addProcessMessage(), getHistoryMessage(), historicSeqNo, and resetMessagesList.
Referenced by reloadActiveMessages().
| void MessageModel::Impl::addHistoricMessage | ( | const PdCom::Message & | pdComMsg, |
| const PdCom::Message & | resetMsg ) |
Called from the PdCom interface, if a historic message appears via getMessageReply().
References QtPdCom::Message::impl, insertItem(), Message, and messageMap.
Referenced by getMessageReply().
| void MessageModel::Impl::addProcessMessage | ( | const PdCom::Message & | pdComMsg | ) |
Called from the PdCom interface, if a new message appears via processMessage() or in context of activeMessagesReply().
References announce(), announcedMessageItem, QtPdCom::Message::impl, insertItem(), Message, messageItemList, messageMap, and parent.
Referenced by activeMessagesReply(), and processMessage().
|
private |
Announce next best message as current message.
References announcedMessageItem, QtPdCom::MessageModel::Impl::MessageItem::levelNoLessThan(), messageItemList, and parent.
Referenced by addProcessMessage(), insertItem(), and stateChanged().
|
private |
Spin up a FutureWatcher and connect its signals.
References canFetchMore, getMessageReply(), historicSeqNo, and messageManager.
Referenced by activeMessagesReply(), and getMessageReply().
|
privateslot |
References addHistoricMessage(), canFetchMore, getHistoryMessage(), historicSeqNo, and resetMessagesList.
Referenced by getHistoryMessage().
| void MessageModel::Impl::insertItem | ( | MessageItem * | msgItem | ) |
Insert a message item.
References announce(), announcedMessageItem, QtPdCom::MessageModel::Impl::MessageItem::getType(), QtPdCom::MessageModel::Impl::MessageItem::isActive(), lessThan, QtPdCom::MessageModel::Impl::MessageItem::lessThan(), QtPdCom::MessageModel::Impl::MessageItem::message, messageItemList, parent, QtPdCom::MessageModel::Impl::MessageItem::resetTime, QtPdCom::MessageModel::Impl::MessageItem::seqNo, and QtPdCom::seqNoLessThan().
Referenced by addHistoricMessage(), addProcessMessage(), and stateChanged().
|
privateslot |
References addProcessMessage().
Referenced by QtPdCom::MessageModel::connect().
|
privateslot |
References announcedMessageItem, canFetchMore, historicSeqNo, messageItemList, messageMap, parent, and resetMessagesList.
Referenced by QtPdCom::MessageModel::connect().
|
privateslot |
References activeMessagesReply(), and messageManager.
Referenced by QtPdCom::MessageModel::connect().
|
privateslot |
Reacts on process values changes of all messages to watch.
References announce(), announcedMessageItem, QtPdCom::Message::getIndex(), QtPdCom::Message::getPath(), QtPdCom::ScalarVariable< T >::getValue(), QtPdCom::ScalarVariable< T >::hasData(), QtPdCom::Message::impl, insertItem(), Message, messageItemList, parent, and QtPdCom::MessageModel::Impl::MessageItem::resetTime.
|
static |
Returns a wrapped version of a string.
|
friend |
References Message, and MessageModel.
Referenced by addHistoricMessage(), addProcessMessage(), Message, QtPdCom::MessageModel::Impl::MessageItem::MessageItem(), QtPdCom::MessageModel::Impl::MessageItem::MessageItem(), and stateChanged().
|
friend |
References MessageModel.
Referenced by Impl(), Message, and MessageModel.
|
private |
Recently announced message.
Referenced by addProcessMessage(), announce(), Impl(), insertItem(), processReset(), and stateChanged().
|
private |
Referenced by getHistoryMessage(), getMessageReply(), Impl(), and processReset().
|
private |
Referenced by activeMessagesReply(), getHistoryMessage(), getMessageReply(), Impl(), and processReset().
|
private |
Icons for message types.
|
private |
Icons for message types (with path).
|
private |
|
private |
Referenced by Impl(), insertItem(), and QtPdCom::MessageModel::Impl::MessageItem::lessThan().
|
private |
Referenced by addProcessMessage(), announce(), insertItem(), processReset(), and stateChanged().
|
private |
Referenced by getHistoryMessage(), Impl(), and reloadActiveMessages().
|
private |
Referenced by addHistoricMessage(), addProcessMessage(), and processReset().
|
private |
Referenced by addProcessMessage(), announce(), Impl(), insertItem(), processReset(), and stateChanged().
|
private |
|
private |
list of history messages that were reset
Referenced by activeMessagesReply(), getMessageReply(), and processReset().
|
private |
Referenced by Impl().