agsantos | 1e7736c | 2020-10-28 14:39:13 -0400 | [diff] [blame] | 1 | HEADER |
2 | |||||
3 | #pragma once | ||||
agsantos | 520da84 | 2020-12-01 16:39:06 -0500 | [diff] [blame^] | 4 | // Project |
agsantos | 1e7736c | 2020-10-28 14:39:13 -0400 | [diff] [blame] | 5 | #include "chatsubscriber.h" |
agsantos | 520da84 | 2020-12-01 16:39:06 -0500 | [diff] [blame^] | 6 | // Jami plugin |
agsantos | 1e7736c | 2020-10-28 14:39:13 -0400 | [diff] [blame] | 7 | #include "plugin/jamiplugin.h" |
agsantos | 520da84 | 2020-12-01 16:39:06 -0500 | [diff] [blame^] | 8 | #include "plugin/chathandler.h" |
agsantos | 1e7736c | 2020-10-28 14:39:13 -0400 | [diff] [blame] | 9 | |
agsantos | 520da84 | 2020-12-01 16:39:06 -0500 | [diff] [blame^] | 10 | class GENERICChatHandler : public jami::ChatHandler |
agsantos | 1e7736c | 2020-10-28 14:39:13 -0400 | [diff] [blame] | 11 | { |
12 | public: | ||||
agsantos | 520da84 | 2020-12-01 16:39:06 -0500 | [diff] [blame^] | 13 | GENERICChatHandler(const JAMI_PluginAPI* api, std::string&& dataPath); |
14 | ~GENERICChatHandler(); | ||||
agsantos | 1e7736c | 2020-10-28 14:39:13 -0400 | [diff] [blame] | 15 | void detach(); |
agsantos | 520da84 | 2020-12-01 16:39:06 -0500 | [diff] [blame^] | 16 | virtual void notifyStrMapSubject(const bool direction, jami::strMapSubjectPtr subject) override; |
agsantos | 1e7736c | 2020-10-28 14:39:13 -0400 | [diff] [blame] | 17 | |
18 | private: | ||||
19 | std::string dataPath_; | ||||
20 | std::shared_ptr<ChatSubscriber> css; | ||||
21 | }; |