mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-13 07:35:41 +08:00
Ref T775, special handling for "broadcast" messages
* identify broadcast messages * do NOT play sound * use "own" tab for text messages (group together)
This commit is contained in:
committed by
Mat Sutcliffe
parent
4de544a991
commit
00ed15f111
@@ -134,6 +134,17 @@ namespace BlackMisc
|
||||
return m_callsign.endsWith("SUP");
|
||||
}
|
||||
|
||||
bool CCallsign::isBroadcastCallsign() const
|
||||
{
|
||||
return m_callsignAsSet == "*" || m_callsign == "*" || m_callsignAsSet == "BROADCAST";
|
||||
}
|
||||
|
||||
void CCallsign::markAsBroadcastCallsign()
|
||||
{
|
||||
m_callsignAsSet = "BROADCAST";
|
||||
m_callsign = "BROADCAST";
|
||||
}
|
||||
|
||||
bool CCallsign::isMaybeCopilotCallsign(const CCallsign &pilotCallsign) const
|
||||
{
|
||||
return m_callsign.startsWith(pilotCallsign.asString()) &&
|
||||
|
||||
@@ -78,6 +78,14 @@ namespace BlackMisc
|
||||
//! Supervisor?
|
||||
bool isSupervisorCallsign() const;
|
||||
|
||||
//! Pseudo callsing for broadcast messages
|
||||
//! \remark hack, workaround for VATSIM using "*" as callsign for text messages
|
||||
bool isBroadcastCallsign() const;
|
||||
|
||||
//! Set a human readable name as "broadcast" callsign
|
||||
//! \remark hack, workaround for VATSIM using "*" as callsign for text messages
|
||||
void markAsBroadcastCallsign();
|
||||
|
||||
//! Returns true if this is a co-pilot callsign of pilot. The logic is that the callsign is the same as the pilot one
|
||||
//! but with a single character as suffix.
|
||||
//! e.g Pilot logged in as DLH123, observer logged in as DLH123A
|
||||
|
||||
Reference in New Issue
Block a user