Safely close database connections and delete backends

Also fix NewClosure leak caused by disconnected object signals
This commit is contained in:
Jonas Kvinge
2019-07-24 19:16:51 +02:00
parent bd78e8c275
commit b5eb13449b
47 changed files with 490 additions and 53 deletions

View File

@@ -40,6 +40,7 @@
#include "internet/internetsearch.h"
#include "settings/qobuzsettingspage.h"
class QThread;
class Application;
class NetworkAccessManager;
class QobuzUrlHandler;
@@ -60,6 +61,7 @@ class QobuzService : public InternetService {
static const Song::Source kSource;
void Exit();
void ReloadSettings();
void Logout();
@@ -123,6 +125,7 @@ class QobuzService : public InternetService {
void ResetSongsRequest();
private slots:
void ExitReceived();
void SendLogin();
void HandleLoginSSLErrors(QList<QSslError> ssl_errors);
void HandleAuthReply(QNetworkReply *reply);
@@ -217,6 +220,8 @@ class QobuzService : public InternetService {
QStringList login_errors_;
QList<QObject*> wait_for_exit_;
};
#endif // QOBUZSERVICE_H