refs #502, cookie manager

* use authenticated user data objects in databaseauthentication
* shared threadsafe cookie manager across the QNetworkAccessManagers
* use cookie manager in existing readers
This commit is contained in:
Klaus Basan
2015-11-04 03:06:55 +01:00
committed by Mathew Sutcliffe
parent 98b86b6f27
commit dda64d0879
7 changed files with 212 additions and 22 deletions

View File

@@ -9,6 +9,7 @@
#include "guiutility.h"
#include "blackcore/context_runtime.h"
#include "blackcore/cookiemanager.h"
#include "blackmisc/filelogger.h"
#include "blackmisc/logmessage.h"
#include "blackmisc/project.h"
@@ -70,6 +71,8 @@ namespace BlackGui
void CGuiUtility::initSwiftGuiApplication(QApplication &a, const QString &applicationName, const QPixmap &icon)
{
CRuntime::registerMetadata(); // register metadata
CCookieManager::instance(); // init cookie manager if ever needed
CLogHandler::instance()->install(); // make sure we have a log handler!
QApplication::setApplicationName(applicationName);