blob: dd434f6479d9caa7e02457e617ed2eb282521344 [file] [log] [blame]
agsantos1e7736c2020-10-28 14:39:13 -04001HEADER
2
3#pragma once
agsantos520da842020-12-01 16:39:06 -05004// Project
agsantos1e7736c2020-10-28 14:39:13 -04005#include "chatsubscriber.h"
agsantos520da842020-12-01 16:39:06 -05006// Jami plugin
agsantos1e7736c2020-10-28 14:39:13 -04007#include "plugin/jamiplugin.h"
agsantos520da842020-12-01 16:39:06 -05008#include "plugin/chathandler.h"
agsantos1e7736c2020-10-28 14:39:13 -04009
agsantos520da842020-12-01 16:39:06 -050010class GENERICChatHandler : public jami::ChatHandler
agsantos1e7736c2020-10-28 14:39:13 -040011{
12public:
agsantos520da842020-12-01 16:39:06 -050013 GENERICChatHandler(const JAMI_PluginAPI* api, std::string&& dataPath);
14 ~GENERICChatHandler();
agsantos1e7736c2020-10-28 14:39:13 -040015 void detach();
agsantos520da842020-12-01 16:39:06 -050016 virtual void notifyStrMapSubject(const bool direction, jami::strMapSubjectPtr subject) override;
agsantos1e7736c2020-10-28 14:39:13 -040017
18private:
19 std::string dataPath_;
20 std::shared_ptr<ChatSubscriber> css;
21};