Register for push notifications

This sets it up so the homeserver will give us push notifications, but
we aren't handling them yet.
This commit is contained in:
Joshua Goins
2023-11-09 20:15:34 -05:00
parent f7bd24db34
commit 99f6778df4
2 changed files with 64 additions and 0 deletions

View File

@@ -11,6 +11,7 @@
#include <Quotient/accountregistry.h>
#include <Quotient/jobs/basejob.h>
#include <Quotient/settings.h>
#include <qcorotask.h>
class NeoChatRoom;
class TrayIcon;
@@ -124,6 +125,10 @@ public:
private:
explicit Controller(QObject *parent = nullptr);
// note: this is intentionally a copied QString because
// the reference could be destroyed before the task is finished
QCoro::Task<void> setupPushNotifications(QString endpoint);
QPointer<NeoChatConnection> m_connection;
TrayIcon *m_trayIcon = nullptr;