Files
@ 7f13a2909063
Branch filter:
Location: libtransport.git/backends/libcommuni/ircnetworkplugin.h - annotation
7f13a2909063
1.1 KiB
text/plain
Removed auto-transaction postgres handlers in lieu of our own transaction calls. Updated config file to mention postgres.
bc3971f7d258 bc3971f7d258 bc3971f7d258 bc3971f7d258 bc3971f7d258 bc3971f7d258 bc3971f7d258 bc3971f7d258 bc3971f7d258 bc3971f7d258 bc3971f7d258 bc3971f7d258 bc3971f7d258 bc3971f7d258 bc3971f7d258 bc3971f7d258 bc3971f7d258 bc3971f7d258 bc3971f7d258 bc3971f7d258 bc3971f7d258 bc3971f7d258 bc3971f7d258 bc3971f7d258 bc3971f7d258 bc3971f7d258 bc3971f7d258 bc3971f7d258 bc3971f7d258 bc3971f7d258 bc3971f7d258 bc3971f7d258 bc3971f7d258 bc3971f7d258 bc3971f7d258 bc3971f7d258 bc3971f7d258 bc3971f7d258 |
#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 IRCNetworkPlugin : public QObject, public NetworkPlugin {
Q_OBJECT
public:
IRCNetworkPlugin(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;
};
|