Files
@ e0ea6762c78c
Branch filter:
Location: libtransport.git/backends/libcommuni/main.cpp - annotation
e0ea6762c78c
1.5 KiB
text/x-c++hdr
Rename SlackInstallation to SlackSession. Allow SlackUser to move SlackSession from SlackUserManager once the SlackUser is created.
addac0040c4a addac0040c4a d2502858d6c0 addac0040c4a addac0040c4a addac0040c4a addac0040c4a addac0040c4a addac0040c4a addac0040c4a addac0040c4a addac0040c4a addac0040c4a addac0040c4a addac0040c4a addac0040c4a addac0040c4a addac0040c4a d2502858d6c0 d2502858d6c0 78e71f9345c7 78e71f9345c7 78e71f9345c7 1ebe5535c4f3 d2502858d6c0 bc3971f7d258 d2502858d6c0 bc3971f7d258 5424e5c686e6 d2502858d6c0 d2502858d6c0 d2502858d6c0 5424e5c686e6 d2502858d6c0 d2502858d6c0 d2502858d6c0 d2502858d6c0 d2502858d6c0 060510d6958e 060510d6958e 060510d6958e 060510d6958e d2502858d6c0 d2502858d6c0 d2502858d6c0 060510d6958e 5424e5c686e6 ff6448bcd32f ff6448bcd32f d2502858d6c0 5424e5c686e6 d2502858d6c0 05e06dd845ae d2502858d6c0 d2502858d6c0 | /**
* XMPP - libpurple transport
*
* Copyright (C) 2013, 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
*/
#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"
using namespace boost::program_options;
using namespace Transport;
NetworkPlugin * np = NULL;
int main (int argc, char* argv[]) {
std::string host;
int port;
std::string error;
Config *cfg = Config::createFromArgs(argc, argv, error, host, port);
if (cfg == NULL) {
std::cerr << error;
return 1;
}
Logging::initBackendLogging(cfg);
QCoreApplication app(argc, argv);
Swift::QtEventLoop eventLoop;
np = new IRCNetworkPlugin(cfg, &eventLoop, host, port);
return app.exec();
}
|