mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-16 10:25:36 +08:00
style and consistency:
* rename CStatusMessages to CStatusMessageList * rename NetworkVatlib to CNetworkVatlib * replace all occurrences of Realname with RealName (correct camel case) * CSequence method corresponding to CList::append is push_back * don't compile the qdbuscpp2xml metadata plugin by default * CAircraftIcao string members always trimmed and capitalized * added CComSystem::roundTo25KHz * using epsilon comparison in a couple of places refs #81
This commit is contained in:
committed by
Mathew Sutcliffe
parent
b5c3a5543f
commit
bb61654a29
@@ -87,18 +87,15 @@ namespace BlackMisc
|
||||
*/
|
||||
bool hasMessage() const { return !m_message.isEmpty(); }
|
||||
|
||||
/*!
|
||||
* \brief Add message
|
||||
* \remarks ATIS message come in as parts, this here features some logic, to either append or reset the message
|
||||
* \param message
|
||||
*/
|
||||
void addMessage(const QString &message);
|
||||
|
||||
/*!
|
||||
* \brief Set message
|
||||
* \param message
|
||||
*/
|
||||
void setMessage(const QString &message) { m_message = message; }
|
||||
void setMessage(const QString &message)
|
||||
{
|
||||
this->m_receivedTimestamp = QDateTime::currentDateTimeUtc();
|
||||
this->m_message = message;
|
||||
}
|
||||
|
||||
/*!
|
||||
* \brief Type as string
|
||||
@@ -167,12 +164,6 @@ namespace BlackMisc
|
||||
InformationType m_type;
|
||||
QString m_message;
|
||||
QDateTime m_receivedTimestamp;
|
||||
|
||||
/*!
|
||||
* \brief Outdated timestamp?
|
||||
* \return
|
||||
*/
|
||||
bool isOutdated() const;
|
||||
};
|
||||
} // namespace
|
||||
} // namespace
|
||||
|
||||
Reference in New Issue
Block a user