mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-05-06 18:36:01 +08:00
[AFV] Ref T739, unified callsign functions in CAfvClient
* improved CallsignSet from QStringList * renamed the functions which just return a string * added functions for CCallsignSet
This commit is contained in:
@@ -62,8 +62,10 @@ namespace BlackCore
|
||||
//! Clean
|
||||
void clear();
|
||||
|
||||
//! Add samples @{
|
||||
void addOpusSamples(const IAudioDto &audioDto, float distanceRatio);
|
||||
void addSilentSamples(const IAudioDto &audioDto);
|
||||
//! @}
|
||||
|
||||
//! Callsign in use
|
||||
bool inUse() const;
|
||||
|
||||
@@ -32,8 +32,8 @@ namespace BlackCore
|
||||
//! Arguments
|
||||
struct TransceiverReceivingCallsignsChangedArgs
|
||||
{
|
||||
quint16 transceiverID;
|
||||
QStringList receivingCallsigns;
|
||||
quint16 transceiverID; //!< transceiver id
|
||||
QStringList receivingCallsigns; //!< callsigns
|
||||
};
|
||||
|
||||
//! A sample provider
|
||||
|
||||
@@ -169,11 +169,16 @@ namespace BlackCore
|
||||
}
|
||||
}
|
||||
|
||||
QString CSoundcardSampleProvider::getReceivingCallsigns(quint16 transceiverID) const
|
||||
QString CSoundcardSampleProvider::getReceivingCallsignsString(quint16 transceiverID) const
|
||||
{
|
||||
return m_receiverInputs.at(transceiverID)->getReceivingCallsignsString();
|
||||
}
|
||||
|
||||
BlackMisc::Aviation::CCallsignSet CSoundcardSampleProvider::getReceivingCallsigns(quint16 transceiverID) const
|
||||
{
|
||||
return m_receiverInputs.at(transceiverID)->getReceivingCallsigns();
|
||||
}
|
||||
|
||||
} // ns
|
||||
} // ns
|
||||
} // ns
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
#include "blacksound/sampleprovider/sampleprovider.h"
|
||||
#include "blacksound/sampleprovider/mixingsampleprovider.h"
|
||||
#include "blackcore/afv/audio/receiversampleprovider.h"
|
||||
#include "blackmisc/aviation/callsignset.h"
|
||||
|
||||
#include <QAudioFormat>
|
||||
#include <QObject>
|
||||
@@ -52,7 +53,10 @@ namespace BlackCore
|
||||
void updateRadioTransceivers(const QVector<TransceiverDto> &radioTransceivers);
|
||||
|
||||
//! Receiving callsign as single string
|
||||
QString getReceivingCallsigns(quint16 transceiverID) const;
|
||||
QString getReceivingCallsignsString(quint16 transceiverID) const;
|
||||
|
||||
//! Receiving callsign as single string
|
||||
BlackMisc::Aviation::CCallsignSet getReceivingCallsigns(quint16 transceiverID) const;
|
||||
|
||||
signals:
|
||||
//! Changed callsigns
|
||||
|
||||
Reference in New Issue
Block a user