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:
Mathew Sutcliffe
2014-01-08 00:08:29 +00:00
parent f3758e5609
commit b475d7eff1
6 changed files with 35 additions and 5 deletions

View File

@@ -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