Port away from QNetworkConfigurationManager

QNetworkConfigurationManager was removed from Qt6 and it's better to
check the status of the sync job anyway. Only two issues:

* The timeout in quotient is quite high so it might take up to one
  minute before the message appear.
* Only sync job are listened but since they are continuously done, this
  is not a big issue and other job are affected by the same issue of an
  high timeout anyway.

Fix #414
This commit is contained in:
Carl Schwan
2021-12-25 18:20:08 +01:00
parent b0a1de7572
commit 924a1fed21
2 changed files with 19 additions and 8 deletions

View File

@@ -10,7 +10,6 @@
#include <KFormat>
class QKeySequences;
class QNetworkConfigurationManager;
#include "connection.h"
#include "csapi/list_public_rooms.h"
@@ -107,6 +106,7 @@ private:
void loadSettings();
void saveSettings() const;
bool m_isOnline = true;
KAboutData m_aboutData;
bool hasWindowSystem() const;
@@ -143,9 +143,6 @@ public Q_SLOTS:
static void markAllMessagesAsRead(Quotient::Connection *conn);
void restoreWindowGeometry(QQuickWindow *);
void saveWindowGeometry(QQuickWindow *);
private:
QNetworkConfigurationManager *m_mgr;
};
// TODO libQuotient 0.7: Drop