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