diff options
Diffstat (limited to 'lib/csapi/message_pagination.h')
-rw-r--r-- | lib/csapi/message_pagination.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/csapi/message_pagination.h b/lib/csapi/message_pagination.h index c9ede1f1..92b258ea 100644 --- a/lib/csapi/message_pagination.h +++ b/lib/csapi/message_pagination.h @@ -7,6 +7,7 @@ #include "jobs/basejob.h" #include "events/event.h" +#include "converters.h" namespace QMatrixClient { @@ -15,14 +16,14 @@ namespace QMatrixClient class GetRoomEventsJob : public BaseJob { public: - explicit GetRoomEventsJob(const QString& roomId, const QString& from, const QString& dir, const QString& to = {}, int limit = {}, const QString& filter = {}); + explicit GetRoomEventsJob(const QString& roomId, const QString& from, const QString& dir, const QString& to = {}, Omittable<int> limit = none, const QString& filter = {}); /** Construct a URL out of baseUrl and usual parameters passed to * GetRoomEventsJob. This function can be used when * a URL for GetRoomEventsJob is necessary but the job * itself isn't. */ - static QUrl makeRequestUrl(QUrl baseUrl, const QString& roomId, const QString& from, const QString& dir, const QString& to = {}, int limit = {}, const QString& filter = {}); + static QUrl makeRequestUrl(QUrl baseUrl, const QString& roomId, const QString& from, const QString& dir, const QString& to = {}, Omittable<int> limit = none, const QString& filter = {}); ~GetRoomEventsJob() override; |