aboutsummaryrefslogtreecommitdiff
path: root/room.h
diff options
context:
space:
mode:
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;