mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-14 16:55:36 +08:00
refs #320 change output format of sample_voice_client
* Add a timestamp for output lines * Changing output to QTextStream(stdout)
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
#include <functional>
|
||||
#include <QMap>
|
||||
#include <QThread>
|
||||
#include <QTextStream>
|
||||
|
||||
class Client : public QObject
|
||||
{
|
||||
@@ -54,11 +55,15 @@ private slots:
|
||||
void userLeftRoom(const BlackMisc::Aviation::CCallsign &callsign);
|
||||
|
||||
private:
|
||||
|
||||
QString getCurrentTimeStamp() const;
|
||||
|
||||
QMap<QString, std::function<void(QTextStream &)>> m_commands;
|
||||
BlackCore::IVoice *m_voice;
|
||||
std::unique_ptr<BlackCore::IAudioInputDevice> m_inputDevice;
|
||||
std::unique_ptr<BlackCore::IAudioOutputDevice> m_outputDevice;
|
||||
std::unique_ptr<BlackCore::IVoiceChannel> m_channelCom1;
|
||||
QTextStream m_stdout;
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user