Files
@ d6cad830d224
Branch filter:
Location: libtransport.git/backends/libcommuni/singleircnetworkplugin.h - annotation
d6cad830d224
1.2 KiB
text/plain
Added Swiften backend
5424e5c686e6 5424e5c686e6 5424e5c686e6 5424e5c686e6 5424e5c686e6 5424e5c686e6 5424e5c686e6 5424e5c686e6 5424e5c686e6 5424e5c686e6 5424e5c686e6 5424e5c686e6 5424e5c686e6 5424e5c686e6 5424e5c686e6 5424e5c686e6 5424e5c686e6 5424e5c686e6 5424e5c686e6 5424e5c686e6 5424e5c686e6 5424e5c686e6 5424e5c686e6 5424e5c686e6 5424e5c686e6 5424e5c686e6 5424e5c686e6 5424e5c686e6 5424e5c686e6 5424e5c686e6 5424e5c686e6 5424e5c686e6 5424e5c686e6 5424e5c686e6 5424e5c686e6 5424e5c686e6 5424e5c686e6 5424e5c686e6 ff3adaa3f33f 5424e5c686e6 |
#pragma once
#include "transport/config.h"
#include "transport/networkplugin.h"
#include "session.h"
#include <QtCore>
#include <QtNetwork>
#include "Swiften/EventLoop/Qt/QtEventLoop.h"
#include "ircnetworkplugin.h"
class SingleIRCNetworkPlugin : public QObject, public NetworkPlugin {
Q_OBJECT
public:
SingleIRCNetworkPlugin(Config *config, Swift::QtEventLoop *loop, const std::string &host, int port);
void handleLoginRequest(const std::string &user, const std::string &legacyName, const std::string &password);
void handleLogoutRequest(const std::string &user, const std::string &legacyName);
void handleMessageSendRequest(const std::string &user, const std::string &legacyName, const std::string &message, const std::string &/*xhtml*/);
void handleJoinRoomRequest(const std::string &user, const std::string &room, const std::string &nickname, const std::string &password);
void handleLeaveRoomRequest(const std::string &user, const std::string &room);
std::map<std::string, MyIrcSession *> m_sessions;
public slots:
void readData();
void sendData(const std::string &string);
private:
Config *config;
QTcpSocket *m_socket;
std::string m_server;
std::string m_identify;
};
|