mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-14 00:25:35 +08:00
Ref T231, Ref T232 utility functions
This commit is contained in:
@@ -199,6 +199,16 @@ namespace BlackSimPlugin
|
||||
return CCallsignSet(this->keys());
|
||||
}
|
||||
|
||||
QStringList CSimConnectObjects::getAllCallsignStrings(bool sorted) const
|
||||
{
|
||||
return this->getAllCallsigns().getCallsignStrings(sorted);
|
||||
}
|
||||
|
||||
QString CSimConnectObjects::getAllCallsignStringsAsString(bool sorted, const QString &separator) const
|
||||
{
|
||||
return this->getAllCallsignStrings(sorted).join(separator);
|
||||
}
|
||||
|
||||
CSimConnectObject CSimConnectObjects::getSimObjectForObjectId(DWORD objectId) const
|
||||
{
|
||||
for (const CSimConnectObject &simObject : this->values())
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
#include "blackmisc/simulation/interpolatormulti.h"
|
||||
#include "simconnectdatadefinition.h"
|
||||
#include <QSharedPointer>
|
||||
#include <QStringList>
|
||||
|
||||
namespace BlackSimPlugin
|
||||
{
|
||||
@@ -225,6 +226,12 @@ namespace BlackSimPlugin
|
||||
//! Get all callsigns
|
||||
BlackMisc::Aviation::CCallsignSet getAllCallsigns() const;
|
||||
|
||||
//! Get all callsign strings
|
||||
QStringList getAllCallsignStrings(bool sorted = false) const;
|
||||
|
||||
//! Get all callsign strings as string
|
||||
QString getAllCallsignStringsAsString(bool sorted = false, const QString &separator = ", ") const;
|
||||
|
||||
//! Callsigns of pending added callsigns
|
||||
BlackMisc::Aviation::CCallsignSet getPendingAddedCallsigns() const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user