mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-08-06 17:53:23 +08:00
style and consistency:
* rename CStatusMessages to CStatusMessageList * rename NetworkVatlib to CNetworkVatlib * replace all occurrences of Realname with RealName (correct camel case) * CSequence method corresponding to CList::append is push_back * don't compile the qdbuscpp2xml metadata plugin by default * CAircraftIcao string members always trimmed and capitalized * added CComSystem::roundTo25KHz * using epsilon comparison in a couple of places refs #81
This commit is contained in:
committed by
Mathew Sutcliffe
parent
b5c3a5543f
commit
bb61654a29
@@ -30,7 +30,7 @@ Client::Client(QObject *parent) :
|
||||
m_commands["termconnect"] = std::bind(&Client::terminateConnectionCmd, this, _1);
|
||||
m_commands["inputdevices"] = std::bind(&Client::inputDevicesCmd, this, _1);
|
||||
m_commands["outputdevices"] = std::bind(&Client::outputDevicesCmd, this, _1);
|
||||
m_commands["users"] = std::bind(&Client::listUsersCmd, this, _1);
|
||||
m_commands["users"] = std::bind(&Client::listCallsignsCmd, this, _1);
|
||||
|
||||
}
|
||||
|
||||
@@ -103,7 +103,7 @@ void Client::setCallsignCmd(QTextStream &args)
|
||||
{
|
||||
QString callsign;
|
||||
args >> callsign;
|
||||
m_voiceClient->setCallsign(BlackMisc::Aviation::CCallsign(callsign));
|
||||
m_voiceClient->setMyAircraftCallsign(BlackMisc::Aviation::CCallsign(callsign));
|
||||
}
|
||||
|
||||
void Client::initiateConnectionCmd(QTextStream &args)
|
||||
@@ -143,7 +143,10 @@ void Client::outputDevicesCmd(QTextStream & /** args **/)
|
||||
printLinePrefix();
|
||||
}
|
||||
|
||||
void Client::listUsersCmd(QTextStream &args)
|
||||
/*
|
||||
* Input devices
|
||||
*/
|
||||
void Client::listCallsignsCmd(QTextStream &args)
|
||||
{
|
||||
Q_UNUSED(args)
|
||||
QSet<QString> users = m_voiceClient->roomUserList(BlackCore::IVoiceClient::COM1);
|
||||
|
||||
Reference in New Issue
Block a user