mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-06 18:25:37 +08:00
refs #246 renamed host to server to avoid ambiguity
This commit is contained in:
@@ -481,9 +481,9 @@ void Client::freqReplyReceived(const BlackMisc::Aviation::CCallsign &callsign, c
|
|||||||
std::cout << "FREQ_REPLY " << callsign << " " << freq << std::endl;
|
std::cout << "FREQ_REPLY " << callsign << " " << freq << std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Client::serverReplyReceived(const BlackMisc::Aviation::CCallsign &callsign, const QString &hostname)
|
void Client::serverReplyReceived(const BlackMisc::Aviation::CCallsign &callsign, const QString &server)
|
||||||
{
|
{
|
||||||
std::cout << "SERVER_REPLY " << callsign << " " << hostname.toStdString() << std::endl;
|
std::cout << "SERVER_REPLY " << callsign << " " << server.toStdString() << std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Client::atcReplyReceived(const BlackMisc::Aviation::CCallsign &callsign, bool isATC)
|
void Client::atcReplyReceived(const BlackMisc::Aviation::CCallsign &callsign, bool isATC)
|
||||||
|
|||||||
@@ -96,7 +96,7 @@ public slots: //to receive from INetwork
|
|||||||
const QString &errorMessage);
|
const QString &errorMessage);
|
||||||
void ipReplyReceived(const QString &ip);
|
void ipReplyReceived(const QString &ip);
|
||||||
void freqReplyReceived(const BlackMisc::Aviation::CCallsign &callsign, const BlackMisc::PhysicalQuantities::CFrequency &freq);
|
void freqReplyReceived(const BlackMisc::Aviation::CCallsign &callsign, const BlackMisc::PhysicalQuantities::CFrequency &freq);
|
||||||
void serverReplyReceived(const BlackMisc::Aviation::CCallsign &callsign, const QString &hostname);
|
void serverReplyReceived(const BlackMisc::Aviation::CCallsign &callsign, const QString &server);
|
||||||
void atcReplyReceived(const BlackMisc::Aviation::CCallsign &callsign, bool isATC);
|
void atcReplyReceived(const BlackMisc::Aviation::CCallsign &callsign, bool isATC);
|
||||||
void atisReplyReceived(const BlackMisc::Aviation::CCallsign &callsign, const BlackMisc::Aviation::CInformationMessage &atis);
|
void atisReplyReceived(const BlackMisc::Aviation::CCallsign &callsign, const BlackMisc::Aviation::CInformationMessage &atis);
|
||||||
void realNameReplyReceived(const BlackMisc::Aviation::CCallsign &callsign, const QString &realname);
|
void realNameReplyReceived(const BlackMisc::Aviation::CCallsign &callsign, const QString &realname);
|
||||||
|
|||||||
@@ -438,10 +438,10 @@ namespace BlackCore
|
|||||||
/*
|
/*
|
||||||
* Host
|
* Host
|
||||||
*/
|
*/
|
||||||
void CContextNetwork::psFsdServerReplyReceived(const CCallsign &callsign, const QString &host)
|
void CContextNetwork::psFsdServerReplyReceived(const CCallsign &callsign, const QString &server)
|
||||||
{
|
{
|
||||||
if (callsign.isEmpty() || host.isEmpty()) return;
|
if (callsign.isEmpty() || server.isEmpty()) return;
|
||||||
CIndexVariantMap vm(CClient::IndexHost, QVariant(host));
|
CIndexVariantMap vm(CClient::IndexServer, QVariant(server));
|
||||||
this->m_otherClients.applyIf(&CClient::getCallsign, callsign, vm);
|
this->m_otherClients.applyIf(&CClient::getCallsign, callsign, vm);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -232,7 +232,7 @@ namespace BlackCore
|
|||||||
void psFsdCustomPacketReceived(const BlackMisc::Aviation::CCallsign &callsign, const QString &package, const QStringList &data);
|
void psFsdCustomPacketReceived(const BlackMisc::Aviation::CCallsign &callsign, const QString &package, const QStringList &data);
|
||||||
|
|
||||||
//! Server reply received
|
//! Server reply received
|
||||||
void psFsdServerReplyReceived(const BlackMisc::Aviation::CCallsign &callsign, const QString &host);
|
void psFsdServerReplyReceived(const BlackMisc::Aviation::CCallsign &callsign, const QString &server);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -457,7 +457,7 @@ namespace BlackCore
|
|||||||
* We received a reply to one of our queries.
|
* We received a reply to one of our queries.
|
||||||
* \sa sendServerQuery
|
* \sa sendServerQuery
|
||||||
*/
|
*/
|
||||||
void serverReplyReceived(const BlackMisc::Aviation::CCallsign &callsign, const QString &hostname);
|
void serverReplyReceived(const BlackMisc::Aviation::CCallsign &callsign, const QString &server);
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* We received a reply to one of our queries.
|
* We received a reply to one of our queries.
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ namespace BlackGui
|
|||||||
this->m_columns.addColumn(CColumn("", CClient::IndexVoiceCapabilitiesIcon));
|
this->m_columns.addColumn(CColumn("", CClient::IndexVoiceCapabilitiesIcon));
|
||||||
this->m_columns.addColumn(CColumn("capabilities", CClient::IndexCapabilitiesString));
|
this->m_columns.addColumn(CColumn("capabilities", CClient::IndexCapabilitiesString));
|
||||||
this->m_columns.addColumn(CColumn("model", CClient::IndexQueriedModelString));
|
this->m_columns.addColumn(CColumn("model", CClient::IndexQueriedModelString));
|
||||||
this->m_columns.addColumn(CColumn("host", CClient::IndexHost));
|
this->m_columns.addColumn(CColumn("server", CClient::IndexServer));
|
||||||
|
|
||||||
// force strings for translation in resource files
|
// force strings for translation in resource files
|
||||||
// force strings for translation in resource files
|
// force strings for translation in resource files
|
||||||
@@ -27,7 +27,7 @@ namespace BlackGui
|
|||||||
(void)QT_TRANSLATE_NOOP("ViewClientList", "realname");
|
(void)QT_TRANSLATE_NOOP("ViewClientList", "realname");
|
||||||
(void)QT_TRANSLATE_NOOP("ViewClientList", "userid");
|
(void)QT_TRANSLATE_NOOP("ViewClientList", "userid");
|
||||||
(void)QT_TRANSLATE_NOOP("ViewClientList", "model");
|
(void)QT_TRANSLATE_NOOP("ViewClientList", "model");
|
||||||
(void)QT_TRANSLATE_NOOP("ViewClientList", "host");
|
(void)QT_TRANSLATE_NOOP("ViewClientList", "server");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -179,8 +179,8 @@ namespace BlackMisc
|
|||||||
case IndexModel:
|
case IndexModel:
|
||||||
return QVariant(this->m_model.toQVariant());
|
return QVariant(this->m_model.toQVariant());
|
||||||
break;
|
break;
|
||||||
case IndexHost:
|
case IndexServer:
|
||||||
return QVariant(this->m_host);
|
return QVariant(this->m_server);
|
||||||
break;
|
break;
|
||||||
case IndexVoiceCapabilities:
|
case IndexVoiceCapabilities:
|
||||||
return this->m_voiceCapabilities.toQVariant();
|
return this->m_voiceCapabilities.toQVariant();
|
||||||
@@ -223,8 +223,8 @@ namespace BlackMisc
|
|||||||
case IndexModel:
|
case IndexModel:
|
||||||
this->m_model = variant.value<CAircraftModel>();
|
this->m_model = variant.value<CAircraftModel>();
|
||||||
break;
|
break;
|
||||||
case IndexHost:
|
case IndexServer:
|
||||||
this->m_host = variant.toString();
|
this->m_server = variant.toString();
|
||||||
break;
|
break;
|
||||||
case IndexVoiceCapabilities:
|
case IndexVoiceCapabilities:
|
||||||
this->m_voiceCapabilities = variant.value<CVoiceCapabilities>();
|
this->m_voiceCapabilities = variant.value<CVoiceCapabilities>();
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ namespace BlackMisc
|
|||||||
IndexCapabilities = 1000,
|
IndexCapabilities = 1000,
|
||||||
IndexCapabilitiesString,
|
IndexCapabilitiesString,
|
||||||
IndexModel,
|
IndexModel,
|
||||||
IndexHost,
|
IndexServer,
|
||||||
IndexVoiceCapabilities,
|
IndexVoiceCapabilities,
|
||||||
IndexVoiceCapabilitiesString,
|
IndexVoiceCapabilitiesString,
|
||||||
IndexVoiceCapabilitiesIcon
|
IndexVoiceCapabilitiesIcon
|
||||||
@@ -106,11 +106,11 @@ namespace BlackMisc
|
|||||||
//! Set voice capabilities
|
//! Set voice capabilities
|
||||||
void setVoiceCapabilities(const QString &flightPlanRemarks) { m_voiceCapabilities = CVoiceCapabilities(flightPlanRemarks);}
|
void setVoiceCapabilities(const QString &flightPlanRemarks) { m_voiceCapabilities = CVoiceCapabilities(flightPlanRemarks);}
|
||||||
|
|
||||||
//! Host
|
//! Server
|
||||||
const QString &getHost() const { return this->m_host; }
|
const QString &getServer() const { return this->m_server; }
|
||||||
|
|
||||||
//! Host
|
//! Server
|
||||||
void setHost(const QString &host) { this->m_host = host;}
|
void setServer(const QString &server) { this->m_server = server;}
|
||||||
|
|
||||||
//! Model
|
//! Model
|
||||||
const CAircraftModel &getAircraftModel() const { return this->m_model; }
|
const CAircraftModel &getAircraftModel() const { return this->m_model; }
|
||||||
@@ -157,7 +157,7 @@ namespace BlackMisc
|
|||||||
CUser m_user;
|
CUser m_user;
|
||||||
CAircraftModel m_model;
|
CAircraftModel m_model;
|
||||||
CIndexVariantMap m_capabilities;
|
CIndexVariantMap m_capabilities;
|
||||||
QString m_host;
|
QString m_server;
|
||||||
CVoiceCapabilities m_voiceCapabilities;
|
CVoiceCapabilities m_voiceCapabilities;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user