mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-05-05 01:35:45 +08:00
refs #897, set timestamp for sent message and default "all messages"
This commit is contained in:
committed by
Mathew Sutcliffe
parent
a7393b04e1
commit
8cc683386f
@@ -82,7 +82,7 @@ namespace BlackGui
|
|||||||
|
|
||||||
BlackMisc::Network::CTextMessageList m_messages;
|
BlackMisc::Network::CTextMessageList m_messages;
|
||||||
QTextDocument *m_textDocument = nullptr;
|
QTextDocument *m_textDocument = nullptr;
|
||||||
int m_keepMaxMessages = 10;
|
int m_keepMaxMessages = -1; //!< max number of messages to keep, or -1 to keep all messages
|
||||||
bool m_withSender = true;
|
bool m_withSender = true;
|
||||||
bool m_withRecipient = false;
|
bool m_withRecipient = false;
|
||||||
bool m_wordWrap = true;
|
bool m_wordWrap = true;
|
||||||
|
|||||||
@@ -59,6 +59,10 @@ namespace BlackMisc
|
|||||||
void CTextMessage::markAsSent()
|
void CTextMessage::markAsSent()
|
||||||
{
|
{
|
||||||
m_wasSent = true;
|
m_wasSent = true;
|
||||||
|
if (!this->hasValidTimestamp())
|
||||||
|
{
|
||||||
|
this->setCurrentUtcTime();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
QString CTextMessage::getRecipientCallsignOrFrequency() const
|
QString CTextMessage::getRecipientCallsignOrFrequency() const
|
||||||
|
|||||||
@@ -150,6 +150,7 @@ namespace BlackMisc
|
|||||||
bool wasSent() const;
|
bool wasSent() const;
|
||||||
|
|
||||||
//! Mark as sent
|
//! Mark as sent
|
||||||
|
//! \remark also sets current timestamp if there is no valid timestamp
|
||||||
void markAsSent();
|
void markAsSent();
|
||||||
|
|
||||||
//! Get SELCAL code (if applicable, e.g. ABCD), otherwise ""
|
//! Get SELCAL code (if applicable, e.g. ABCD), otherwise ""
|
||||||
|
|||||||
Reference in New Issue
Block a user