mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-24 09:54:16 +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
@@ -35,6 +35,19 @@ namespace BlackMisc
|
||||
SeverityError
|
||||
};
|
||||
|
||||
/*!
|
||||
* \brief Properties by index
|
||||
*/
|
||||
enum ColumnIndex
|
||||
{
|
||||
IndexType,
|
||||
IndexTypeAsString,
|
||||
IndexSeverity,
|
||||
IndexSeverityAsString,
|
||||
IndexMessage,
|
||||
IndexTimestamp
|
||||
};
|
||||
|
||||
private:
|
||||
StatusType m_type;
|
||||
StatusSeverity m_severity;
|
||||
@@ -98,6 +111,21 @@ namespace BlackMisc
|
||||
return QVariant::fromValue(*this);
|
||||
}
|
||||
|
||||
//! \brief Type as string
|
||||
const QString &getTypeAsString() const;
|
||||
|
||||
//! \brief Type as string
|
||||
const QString &getSeverityAsString() const;
|
||||
|
||||
//! \copydoc CValueObject::propertyByIndex(int)
|
||||
QVariant propertyByIndex(int index) const;
|
||||
|
||||
//! \copydoc CValueObject::propertyByIndex(const QVariant, int)
|
||||
void propertyByIndex(const QVariant &variant, int index);
|
||||
|
||||
//! \copydoc CValueObject::propertyByIndexAsString
|
||||
QString propertyByIndexAsString(int index, bool i18n) const;
|
||||
|
||||
/*!
|
||||
* \brief Equal operator ==
|
||||
* \param other
|
||||
|
||||
Reference in New Issue
Block a user