mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-27 02:55:44 +08:00
Status message list model (so they can displayed as table view in GUI),
and the corresponding property methods in CStatusMessage
This commit is contained in:
committed by
Mathew Sutcliffe
parent
5731bd3dd1
commit
f476388f8b
30
src/blackgui/statusmessagelistmodel.h
Normal file
30
src/blackgui/statusmessagelistmodel.h
Normal file
@@ -0,0 +1,30 @@
|
||||
#ifndef BLACKGUI_STATUSMESSAGELISTMODEL_H
|
||||
#define BLACKGUI_STATUSMESSAGELISTMODEL_H
|
||||
|
||||
#include <QAbstractItemModel>
|
||||
#include <QDBusConnection>
|
||||
#include "blackmisc/statusmessagelist.h"
|
||||
#include "blackgui/listmodelbase.h"
|
||||
|
||||
namespace BlackGui
|
||||
{
|
||||
/*!
|
||||
* \brief Server list model
|
||||
*/
|
||||
class CStatusMessageListModel : public CListModelBase<BlackMisc::CStatusMessage, BlackMisc::CStatusMessageList>
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
//! \brief Constructor
|
||||
explicit CStatusMessageListModel(QObject *parent = nullptr);
|
||||
|
||||
//! \brief Destructor
|
||||
virtual ~CStatusMessageListModel() {}
|
||||
|
||||
//! \copydoc CListModelBase::data
|
||||
QVariant data(const QModelIndex &modelIndex, int role = Qt::DisplayRole) const;
|
||||
|
||||
};
|
||||
}
|
||||
#endif // guard
|
||||
Reference in New Issue
Block a user