mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 16:56:53 +08:00
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:
committed by
Mathew Sutcliffe
parent
98b86b6f27
commit
dda64d0879
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user