diff options
Diffstat (limited to 'client/miav_client.cc')
-rw-r--r-- | client/miav_client.cc | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/client/miav_client.cc b/client/miav_client.cc index f8ea6d2..29826ef 100644 --- a/client/miav_client.cc +++ b/client/miav_client.cc @@ -1,6 +1,6 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** - * miav.cc + * miav_client.cc * * Sat Aug 21 17:32:24 2004 * Copyright 2004 deva @@ -26,35 +26,37 @@ */ #include <config.h> -#include "miav_client.h" - #include <QApplication> -#include <stdio.h> #include "mainwindow.h" #include "miav_config.h" #include "info_gui.h" +// The threads +#include "decoder.h" +#include "player.h" +#include "networksender.h" -QApplication *miav_app; - -/** - * This function starts the MIaV gui. - */ int main(int argc, char *argv[]) { QApplication miav_grab( argc, argv ); - miav_app = &miav_grab; MiavConfig cfg(ETC"/miav.conf", NULL); - InfoGui info(&miav_grab, NULL, &cfg); + + InfoGui info(&cfg); + gInfo::initInfo(&info); + config = new MiavConfig(ETC"/miav.conf", &info); - InfoEventHandler *eventhandler = new InfoEventHandler( ); - miav_grab.installEventFilter( eventhandler ); - MainWindow mainwindow; - info.setParent(&mainwindow); + Decoder decoder; + Player player; + NetworkSender sender; + + decoder.start(); + player.start(); + sender.start(); + return miav_grab.exec(); } |