aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/notifications.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/csapi/notifications.h')
-rw-r--r--lib/csapi/notifications.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/csapi/notifications.h b/lib/csapi/notifications.h
index 2180c658..3a603364 100644
--- a/lib/csapi/notifications.h
+++ b/lib/csapi/notifications.h
@@ -6,10 +6,10 @@
#include "jobs/basejob.h"
+#include "converters.h"
+#include <QtCore/QVector>
#include <QtCore/QJsonObject>
#include "events/event.h"
-#include <QtCore/QVector>
-#include "converters.h"
namespace QMatrixClient
{
@@ -32,14 +32,14 @@ namespace QMatrixClient
// Construction/destruction
- explicit GetNotificationsJob(const QString& from = {}, int limit = {}, const QString& only = {});
+ explicit GetNotificationsJob(const QString& from = {}, Omittable<int> limit = none, const QString& only = {});
/** Construct a URL out of baseUrl and usual parameters passed to
* GetNotificationsJob. This function can be used when
* a URL for GetNotificationsJob is necessary but the job
* itself isn't.
*/
- static QUrl makeRequestUrl(QUrl baseUrl, const QString& from = {}, int limit = {}, const QString& only = {});
+ static QUrl makeRequestUrl(QUrl baseUrl, const QString& from = {}, Omittable<int> limit = none, const QString& only = {});
~GetNotificationsJob() override;