mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-30 20:15:35 +08:00
INetwork builds up the ATIS as it is received, line-by-line, keeping this implementation detail more encapsulated
refs #81
This commit is contained in:
@@ -97,6 +97,16 @@ namespace BlackMisc
|
||||
this->m_message = message;
|
||||
}
|
||||
|
||||
/*!
|
||||
* \brief Append message part
|
||||
* \param messagePart
|
||||
*/
|
||||
void appendMessage(const QString &messagePart)
|
||||
{
|
||||
this->m_receivedTimestamp = QDateTime::currentDateTimeUtc();
|
||||
this->m_message.append(messagePart);
|
||||
}
|
||||
|
||||
/*!
|
||||
* \brief Type as string
|
||||
* \return
|
||||
@@ -109,6 +119,12 @@ namespace BlackMisc
|
||||
*/
|
||||
InformationType getType() const { return this->m_type; }
|
||||
|
||||
/*!
|
||||
* \brief Set type
|
||||
* \param type
|
||||
*/
|
||||
void setType(InformationType type) { this->m_type = type; }
|
||||
|
||||
/*!
|
||||
* \brief Timestamp
|
||||
* \return
|
||||
|
||||
Reference in New Issue
Block a user