aboutsummaryrefslogtreecommitdiff
path: root/room.h
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2017-07-15 13:07:53 +0900
committerGitHub <noreply@github.com>2017-07-15 13:07:53 +0900
commit3dfb74af71fe0cceaeb14d1ef0ade846f3a659f9 (patch)
tree40482bd167f1e086541ad71cdf634324b40383c6 /room.h
parent47c2015beb75693c7181fb7359a4aa166e926fe7 (diff)
parent749def2b983d2338272c0891d15de20df22e2eea (diff)
downloadlibquotient-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.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/room.h b/room.h
index 60278107..03827a55 100644
--- a/room.h
+++ b/room.h
@@ -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;