Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/SpectrumIM/spectrum2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'backends/template/plugin.h')
-rw-r--r--backends/template/plugin.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/backends/template/plugin.h b/backends/template/plugin.h
index 0b4d86a5..b949c52c 100644
--- a/backends/template/plugin.h
+++ b/backends/template/plugin.h
@@ -1,13 +1,11 @@
#pragma once
-#include "Swiften/Swiften.h"
-
#include "transport/Config.h"
#include "transport/NetworkPlugin.h"
class Plugin : public Transport::NetworkPlugin {
public:
- Plugin(Transport::Config *config, Swift::SimpleEventLoop *loop, const std::string &host, int port);
+ Plugin(Transport::Config *config, const std::string &host, int port);
// NetworkPlugin uses this method to send the data to networkplugin server
void sendData(const std::string &string);
@@ -23,12 +21,5 @@ class Plugin : public Transport::NetworkPlugin {
void handleBuddyRemovedRequest(const std::string &user, const std::string &buddyName, const std::vector<std::string> &groups);
private:
- // This method has to call handleDataRead with all received data from network plugin server
- void _handleDataRead(std::shared_ptr<Swift::SafeByteArray> data);
-
- private:
- Swift::BoostNetworkFactories *m_factories;
- Swift::BoostIOServiceThread m_boostIOServiceThread;
- std::shared_ptr<Swift::Connection> m_conn;
Transport::Config *config;
};