diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2017-07-15 13:07:53 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-15 13:07:53 +0900 |
commit | 3dfb74af71fe0cceaeb14d1ef0ade846f3a659f9 (patch) | |
tree | 40482bd167f1e086541ad71cdf634324b40383c6 /room.h | |
parent | 47c2015beb75693c7181fb7359a4aa166e926fe7 (diff) | |
parent | 749def2b983d2338272c0891d15de20df22e2eea (diff) | |
download | libquotient-3dfb74af71fe0cceaeb14d1ef0ade846f3a659f9.tar.gz libquotient-3dfb74af71fe0cceaeb14d1ef0ade846f3a659f9.zip |
Merge pull request #72 from QMatrixClient/kitsune-send-events
Events creation and sending
Diffstat (limited to 'room.h')
-rw-r--r-- | room.h | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -27,6 +27,7 @@ #include <QtCore/QJsonObject> #include "jobs/syncjob.h" +#include "events/roommessageevent.h" #include "joinstate.h" namespace QMatrixClient @@ -142,9 +143,12 @@ namespace QMatrixClient MemberSorter memberSorter() const; public slots: + void postMessage(const QString& plainText, + MessageEventType type = MessageEventType::Text); + void postMessage(RoomMessageEvent* event); + /** @deprecated */ void postMessage(const QString& type, const QString& plainText); - void postMessage(const QString& type, const QString& plainText, - const QString& richText); + void getPreviousContent(int limit = 10); void leaveRoom() const; |