blob: 1906ce6d01c4ba2281efe780481d497bee630246 [file] [log] [blame]
agsantos1e7736c2020-10-28 14:39:13 -04001HEADER
2
3#pragma once
4//Project
5#include "chatsubscriber.h"
6//Jami plugin
7#include "plugin/jamiplugin.h"
8#include "plugin/conversationhandler.h"
9
10class GENERICConversationHandler : public jami::ConversationHandler
11{
12public:
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
20private:
21 std::string dataPath_;
22 std::shared_ptr<ChatSubscriber> css;
23};