/* * Copyright (C) 2008-2009 J-P Nurmi jpnurmi@gmail.com * * This example is free, and not covered by LGPL license. There is no * restriction applied to their modification, redistribution, using and so on. * You can study them, modify them, use them in your own program - either * completely or partially. By using it you may give me some credits in your * program, but you don't have to. */#include"transport/config.h"#include"transport/networkplugin.h"#include"transport/logging.h"#include"session.h"#include<QtCore>#include<QtNetwork>#include"Swiften/EventLoop/Qt/QtEventLoop.h"#include"ircnetworkplugin.h"usingnamespaceboost::program_options;usingnamespaceTransport;NetworkPlugin*np=NULL;intmain(intargc,char*argv[]){std::stringhost;intport;std::stringerror;Config*cfg=Config::createFromArgs(argc,argv,error,host,port);if(cfg==NULL){std::cerr<<error;return1;}QCoreApplicationapp(argc,argv);Logging::initBackendLogging(cfg);Swift::QtEventLoopeventLoop;np=newIRCNetworkPlugin(cfg,&eventLoop,host,port);returnapp.exec();}