Remove duplicate CVoiceVatlib object.

Move the one in Client into its own thread instead

refs #226
This commit is contained in:
Roland Winklmeier
2014-05-02 14:06:45 +02:00
parent 132adc28b5
commit 732b6f5ae7
3 changed files with 13 additions and 14 deletions

View File

@@ -11,6 +11,7 @@
#include <QObject>
#include <functional>
#include <QMap>
#include <QThread>
class Client : public QObject
{
@@ -18,6 +19,7 @@ class Client : public QObject
public:
Client(QObject *parent = nullptr);
~Client() { if(m_voice) m_voice->deleteLater(); }
signals:
void quit();
@@ -56,6 +58,7 @@ private slots:
private:
QMap<QString, std::function<void(QTextStream &)>> m_commands;
BlackCore::IVoice *m_voice;
QThread m_threadVoice;
};