Move IVoice enum registration into static method

refs #183
This commit is contained in:
Roland Winklmeier
2014-05-02 14:01:25 +02:00
parent e56eeb4ef9
commit 68e9cc2c3e
8 changed files with 57 additions and 5 deletions

View File

@@ -4,6 +4,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "blackcore/voice_vatlib.h"
#include "blackcore/blackcorefreefunctions.h"
#include "blackmisc/blackmiscfreefunctions.h"
#include "client.h"
@@ -20,6 +21,7 @@ int main(int argc, char *argv[])
QCoreApplication app (argc, argv);
Client client(&app);
BlackMisc::registerMetadata();
BlackCore::registerMetadata();
BlackCore::IVoice *m_voice = new BlackCore::CVoiceVatlib();
QThread m_voiceThread;
m_voice->moveToThread(&m_voiceThread);