mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-08-08 18:55:36 +08:00
committed by
Mathew Sutcliffe
parent
229d7c6068
commit
978f3c88e5
@@ -27,37 +27,37 @@ public slots:
|
||||
void command(QString line);
|
||||
|
||||
private: //commands
|
||||
void help(QTextStream& args);
|
||||
void echo(QTextStream& args);
|
||||
void exit(QTextStream& args);
|
||||
void setServerDetailsCmd(QTextStream& args);
|
||||
void setUserCredentialsCmd(QTextStream& args);
|
||||
void setCallsignCmd(QTextStream& args);
|
||||
void setRealNameCmd(QTextStream& args);
|
||||
void initiateConnectionCmd(QTextStream& args);
|
||||
void terminateConnectionCmd(QTextStream& args);
|
||||
void sendPrivateTextMessageCmd(QTextStream& args);
|
||||
void sendRadioTextMessageCmd(QTextStream& args);
|
||||
void sendIpQueryCmd(QTextStream& args);
|
||||
void sendFreqQueryCmd(QTextStream& args);
|
||||
void sendServerQueryCmd(QTextStream& args);
|
||||
void sendAtcQueryCmd(QTextStream& args);
|
||||
void sendAtisQueryCmd(QTextStream& args);
|
||||
void sendNameQueryCmd(QTextStream& args);
|
||||
void sendCapabilitiesQueryCmd(QTextStream& args);
|
||||
void replyToFreqQueryCmd(QTextStream& args);
|
||||
void replyToNameQueryCmd(QTextStream& args);
|
||||
void requestPlaneInfoCmd(QTextStream& args);
|
||||
void sendPlaneInfoCmd(QTextStream& args);
|
||||
void pingCmd(QTextStream& args);
|
||||
void requestMetarCmd(QTextStream& args);
|
||||
void requestWeatherDataCmd(QTextStream& args);
|
||||
void help(QTextStream &args);
|
||||
void echo(QTextStream &args);
|
||||
void exit(QTextStream &args);
|
||||
void setServerDetailsCmd(QTextStream &args);
|
||||
void setUserCredentialsCmd(QTextStream &args);
|
||||
void setCallsignCmd(QTextStream &args);
|
||||
void setRealNameCmd(QTextStream &args);
|
||||
void initiateConnectionCmd(QTextStream &args);
|
||||
void terminateConnectionCmd(QTextStream &args);
|
||||
void sendPrivateTextMessageCmd(QTextStream &args);
|
||||
void sendRadioTextMessageCmd(QTextStream &args);
|
||||
void sendIpQueryCmd(QTextStream &args);
|
||||
void sendFreqQueryCmd(QTextStream &args);
|
||||
void sendServerQueryCmd(QTextStream &args);
|
||||
void sendAtcQueryCmd(QTextStream &args);
|
||||
void sendAtisQueryCmd(QTextStream &args);
|
||||
void sendNameQueryCmd(QTextStream &args);
|
||||
void sendCapabilitiesQueryCmd(QTextStream &args);
|
||||
void replyToFreqQueryCmd(QTextStream &args);
|
||||
void replyToNameQueryCmd(QTextStream &args);
|
||||
void pingCmd(QTextStream &args);
|
||||
void requestMetarCmd(QTextStream &args);
|
||||
void requestWeatherDataCmd(QTextStream &args);
|
||||
|
||||
signals: //to send to INetwork
|
||||
void setServerDetails(const QString& hostname, quint16 port);
|
||||
void setUserCredentials(const QString& username, const QString& password);
|
||||
void setCallsign(const QString& callsign);
|
||||
void setRealName(const QString& name);
|
||||
void setServerDetails(const QString &hostname, quint16 port);
|
||||
void setUserCredentials(const QString &username, const QString &password);
|
||||
void setRealName(const QString &name);
|
||||
void initiateConnection();
|
||||
void terminateConnection();
|
||||
void sendPrivateTextMessage(const QString& callsign, const QString& msg);
|
||||
@@ -86,7 +86,6 @@ public slots: //to receive from INetwork
|
||||
void connectionStatusConnected();
|
||||
void connectionStatusDisconnected();
|
||||
void connectionStatusError();
|
||||
void ipQueryReplyReceived(const QString& ip);
|
||||
void freqQueryReplyReceived(const QString& callsign, const BlackMisc::PhysicalQuantities::CFrequency& freq);
|
||||
void serverQueryReplyReceived(const QString& callsign, const QString& hostname);
|
||||
void atcQueryReplyReceived(const QString& callsign, bool isATC);
|
||||
@@ -95,18 +94,19 @@ public slots: //to receive from INetwork
|
||||
void capabilitiesQueryReplyReceived(const QString& callsign, quint32 flags);
|
||||
void freqQueryRequestReceived(const QString& callsign);
|
||||
void nameQueryRequestReceived(const QString& callsign);
|
||||
void kicked(const QString& msg);
|
||||
void metarReceived(const QString& data);
|
||||
void pilotDisconnected(const QString& callsign);
|
||||
void planeInfoReceived(const QString& callsign, const QString& acTypeICAO, const QString& airlineICAO, const QString& livery);
|
||||
void planeInfoRequestReceived(const QString& callsign);
|
||||
void pong(const QString& callsign, const BlackMisc::PhysicalQuantities::CTime& elapsedTime);
|
||||
void radioTextMessageReceived(const QString& callsign, const QString& msg, const QVector<BlackMisc::PhysicalQuantities::CFrequency>& freqs);
|
||||
void privateTextMessageReceived(const QString& fromCallsign, const QString& toCallsign, const QString& msg);
|
||||
void ipQueryReplyReceived(const QString &ip);
|
||||
void kicked(const QString &msg);
|
||||
void metarReceived(const QString &data);
|
||||
|
||||
private:
|
||||
QMap<QString, std::function<void(QTextStream&)>> m_commands;
|
||||
BlackCore::INetwork* m_net;
|
||||
QMap<QString, std::function<void(QTextStream &)>> m_commands;
|
||||
BlackCore::INetwork *m_net;
|
||||
};
|
||||
|
||||
#endif //__BLACKSAMPLE_CLI_CLIENT_H__
|
||||
|
||||
Reference in New Issue
Block a user