mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-18 11:25:33 +08:00
Ref T730, callsign set used for received callsigns
This commit is contained in:
committed by
Mat Sutcliffe
parent
5a19bbdb5e
commit
7c89234f8c
@@ -21,6 +21,16 @@ namespace BlackMisc
|
||||
{
|
||||
CCallsignSet::CCallsignSet() { }
|
||||
|
||||
CCallsignSet::CCallsignSet(const QStringList &callsigns)
|
||||
{
|
||||
for (const QString &c : callsigns)
|
||||
{
|
||||
if (c.isEmpty()) { continue; }
|
||||
const CCallsign cs(c);
|
||||
this->push_back(cs);
|
||||
}
|
||||
}
|
||||
|
||||
CCallsignSet::CCallsignSet(const CCallsign &callsign)
|
||||
{
|
||||
if (callsign.isEmpty()) { return; }
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
#include "blackmisc/sequence.h"
|
||||
|
||||
#include <QMetaType>
|
||||
#include <QStringList>
|
||||
#include <tuple>
|
||||
|
||||
namespace BlackMisc
|
||||
@@ -30,9 +31,12 @@ namespace BlackMisc
|
||||
using CCollection::CCollection;
|
||||
|
||||
public:
|
||||
//! Default constructor.
|
||||
//! Default constructor
|
||||
CCallsignSet();
|
||||
|
||||
//! By string list
|
||||
CCallsignSet(const QStringList &callsigns);
|
||||
|
||||
//! Construct from single callsign
|
||||
CCallsignSet(const CCallsign &callsign);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user