refs #316 Swiftcore, swiftgui, and samples use CLogHandler to display subscribed messages.

This commit is contained in:
Mathew Sutcliffe
2014-09-25 21:53:23 +01:00
parent aef7135e28
commit dc4de279d0
10 changed files with 91 additions and 96 deletions

View File

@@ -3,6 +3,7 @@
#include "guimodeenums.h"
#include "blackcore/blackcorefreefunctions.h"
#include "blackmisc/blackmiscfreefunctions.h"
#include "blackmisc/loghandler.h"
#include <QtGlobal>
#include <QApplication>
#include <QMessageBox>
@@ -33,6 +34,7 @@ int main(int argc, char *argv[])
// app
QApplication a(argc, argv);
BlackMisc::CLogHandler::instance()->install();
a.installTranslator(&translator);
// modes

View File

@@ -4,6 +4,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "blackcore/network_vatlib.h"
#include "blackmisc/loghandler.h"
#include "client.h"
#include "reader.h"
#include <QCoreApplication>
@@ -12,6 +13,7 @@
int main(int argc, char *argv[])
{
QCoreApplication app (argc, argv);
BlackMisc::CLogHandler::instance()->install();
Client client(&app);
LineReader reader;

View File

@@ -6,6 +6,7 @@
#include "blackcore/voice_vatlib.h"
#include "blackcore/blackcorefreefunctions.h"
#include "blackmisc/blackmiscfreefunctions.h"
#include "blackmisc/loghandler.h"
#include "client.h"
#include "reader.h"
@@ -19,6 +20,7 @@ using namespace BlackMisc::Audio;
int main(int argc, char *argv[])
{
QCoreApplication app (argc, argv);
BlackMisc::CLogHandler::instance()->install();
Client client(&app);
BlackMisc::registerMetadata();
BlackCore::registerMetadata();