
#include <qapplication.h>
#include "rsscommanderdialog.h"




int main( int argc, char** argv )
{
	
	QApplication app( argc, argv );
	
	
	
	
	RSSCommanderDialog dialog( 0, 0, TRUE );  //allow dialog access to the BroadCaster

	

	LoggingMgr *logger = new LoggingMgr( dialog.ServerStatusView );
	LoggingMgr *logger2 = new LoggingMgr( dialog.ServerStatusView,dialog.ClientReplyView );
	
	ClientReceiverThread crt( logger2 );
	BroadCastThread bct( logger );

	dialog.setBroadCastRef( bct.get_thread_core() );  //get the BroadCaster within the thread
	dialog.setClientRecvRef( crt.get_thread_core() ); //get the ClientReceiver within the thread
	

	app.setMainWidget(&dialog);
	crt.start();
	bct.start();
	//crt.start();
	
	dialog.exec();

	return 0;
}

