/** * libtransport -- C++ library for easy XMPP Transports development * * Copyright (C) 2011, Jan Kaluza <hanzz.k@gmail.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA */#pragma once#include<boost/program_options.hpp>#include<boost/foreach.hpp>#include<boost/format.hpp>#include<boost/algorithm/string.hpp>#include<boost/assign.hpp>#include<boost/bind.hpp>#include<boost/signal.hpp>#include"managerconfig.h"#include"transport/config.h"#include"transport/protocol.pb.h"#include"Swiften/Swiften.h"#include"Swiften/EventLoop/SimpleEventLoop.h"std::stringsearchForBinary(conststd::string&binary);// Executes new backendunsignedlongexec_(std::stringpath,std::stringconfig,std::stringjid="");intgetPort(conststd::string&portfile);intisRunning(conststd::string&pidfile);intstart_instances(ManagerConfig*config,conststd::string&_jid="");intrestart_instances(ManagerConfig*config,conststd::string&_jid="");voidstop_instances(ManagerConfig*config,conststd::string&_jid="");intshow_status(ManagerConfig*config);voidask_local_server(ManagerConfig*config,Swift::BoostNetworkFactories&networkFactories,conststd::string&jid,conststd::string&message);std::vector<std::string>show_list(ManagerConfig*config,boolshow=true);std::stringget_response();