diff options
author | deva <deva> | 2006-03-07 10:37:59 +0000 |
---|---|---|
committer | deva <deva> | 2006-03-07 10:37:59 +0000 |
commit | 1390ddfe6afe41dba141f8170f9b277573ebe8cd (patch) | |
tree | fd6861f3eab3a4721f2445540279a8223d7cd1a3 /client/miav_client.cc | |
parent | 19ade36987f86c9b4cd4c5ec3fc6c499205c61ec (diff) |
*** empty log message ***
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(); } |