Cleanup the enabled modules in all sub projects

Most modules were just enabled to add include path for dependent headers
This commit is contained in:
Roland Winklmeier
2018-05-14 16:06:35 +02:00
committed by Klaus Basan
parent 8fad39fdaf
commit 4aaccb44c3
27 changed files with 30 additions and 40 deletions

View File

@@ -1,6 +1,6 @@
load(common_pre)
QT += core dbus network
QT += core dbus network
TARGET = sampleblackmisc
TEMPLATE = app

View File

@@ -1,6 +1,6 @@
load(common_pre)
QT += core dbus network
QT += core dbus network
TARGET = sampleblackmiscdbus
TEMPLATE = app

View File

@@ -1,6 +1,6 @@
load(common_pre)
QT += core dbus network xml
QT += core dbus network
TARGET = sampleblackmiscsim
TEMPLATE = app

View File

@@ -106,7 +106,7 @@ namespace BlackCore
CApplication::CApplication(const QString &applicationName, CApplicationInfo::Application application, bool init) :
m_accessManager(new QNetworkAccessManager(this)),
m_applicationInfo(application),
m_cookieManager({}, this), m_applicationName(applicationName), m_coreFacadeConfig(CCoreFacadeConfig::allEmpty())
m_applicationName(applicationName), m_coreFacadeConfig(CCoreFacadeConfig::allEmpty())
{
Q_ASSERT_X(!sApp, Q_FUNC_INFO, "already initialized");
Q_ASSERT_X(QCoreApplication::instance(), Q_FUNC_INFO, "no application object");
@@ -157,8 +157,9 @@ namespace BlackCore
sApp = this;
Q_ASSERT_X(m_accessManager, Q_FUNC_INFO, "Need QAM");
m_networkWatchDog.reset(new CNetworkWatchdog(this)); // not yet started
m_cookieManager.setParent(m_accessManager);
m_accessManager->setCookieJar(&m_cookieManager);
m_cookieManager = new CCookieManager({}, this);
m_cookieManager->setParent(m_accessManager);
m_accessManager->setCookieJar(m_cookieManager);
connect(m_accessManager, &QNetworkAccessManager::networkAccessibleChanged, this, &CApplication::changedInternetAccessibility, Qt::QueuedConnection);
connect(m_accessManager, &QNetworkAccessManager::networkAccessibleChanged, this, &CApplication::onChangedNetworkAccessibility, Qt::QueuedConnection);
connect(m_accessManager, &QNetworkAccessManager::networkAccessibleChanged, m_networkWatchDog.data(), &CNetworkWatchdog::onChangedNetworkAccessibility, Qt::QueuedConnection);
@@ -709,7 +710,7 @@ namespace BlackCore
void CApplication::deleteAllCookies()
{
m_cookieManager.deleteAllCookies();
m_cookieManager->deleteAllCookies();
}
CNetworkWatchdog *CApplication::getNetworkWatchdog() const

View File

@@ -13,7 +13,6 @@
#define BLACKCORE_APPLICATION_H
#include "blackcore/blackcoreexport.h"
#include "blackcore/cookiemanager.h"
#include "blackcore/corefacadeconfig.h"
#include "blackcore/db/databasereaderconfig.h"
#include "blackcore/data/globalsetup.h"
@@ -62,6 +61,7 @@ namespace crashpad
namespace BlackCore
{
class CCoreFacade;
class CCookieManager;
class CSetupReader;
class CWebDataServices;
class ISimulator;
@@ -616,7 +616,7 @@ namespace BlackCore
QScopedPointer<CWebDataServices> m_webDataServices; //!< web data services
QScopedPointer<Db::CNetworkWatchdog> m_networkWatchDog; //!< checking DB/internet access
QScopedPointer<BlackMisc::CFileLogger> m_fileLogger; //!< file logger
CCookieManager m_cookieManager; //!< single cookie manager for our access manager
QPointer<CCookieManager> m_cookieManager; //!< single cookie manager for our access manager
const QString m_applicationName; //!< application name
QReadWriteLock m_accessManagerLock; //!< lock to make access manager access threadsafe
CCoreFacadeConfig m_coreFacadeConfig; //!< Core facade config if any

View File

@@ -15,7 +15,6 @@
#include "blackcore/blackcoreexport.h"
#include "blackmisc/pq/time.h"
#include "blackmisc/network/entityflags.h"
#include "blackmisc/network/url.h"
#include "blackmisc/db/dbflags.h"
#include "blackmisc/sequence.h"
#include "blackmisc/valueobject.h"

View File

@@ -1,6 +1,6 @@
load(common_pre)
QT += network dbus gui svg widgets
QT += core dbus gui network svg widgets
TARGET = blackgui
TEMPLATE = lib

View File

@@ -1,6 +1,7 @@
load(common_pre)
QT += network dbus gui widgets multimedia
QT += core dbus
macx: QT += widgets
TARGET = blackinput
TEMPLATE = lib

View File

@@ -11,7 +11,7 @@
#include "blackmisc/logmessage.h"
#include <QHash>
#include <QtWidgets/QMessageBox>
#include <QMessageBox>
#include <CoreFoundation/CoreFoundation.h>
#include <AppKit/NSEvent.h>
#include <AppKit/NSAlert.h>

View File

@@ -7,7 +7,6 @@
* contained in the LICENSE file.
*/
#include "blackcore/db/databaseutils.h"
#include "blackmisc/simulation/aircraftmodelutils.h"
#include "blackmisc/simulation/fscommon/aircraftcfgentries.h"
#include "blackmisc/simulation/fscommon/aircraftcfgparser.h"
@@ -37,7 +36,6 @@ using namespace BlackMisc;
using namespace BlackMisc::Simulation;
using namespace BlackMisc::Simulation::FsCommon;
using namespace BlackMisc::Network;
using namespace BlackCore::Db;
namespace BlackMisc
{

View File

@@ -1,6 +1,6 @@
load(common_pre)
QT += network dbus gui multimedia
QT += dbus multimedia
TARGET = blacksound
TEMPLATE = lib

View File

@@ -1,6 +1,6 @@
load(common_pre)
QT += core dbus gui network xml widgets
QT += core dbus network widgets
TARGET = simulatorfs9
TEMPLATE = lib

View File

@@ -1,6 +1,6 @@
load(common_pre)
QT += core dbus xml network
QT += core dbus network
TARGET = simulatorfscommon
TEMPLATE = lib

View File

@@ -2,7 +2,7 @@ load(common_pre)
requires(equals(WORD_SIZE,32))
QT += core dbus xml network
QT += core
TARGET = fsuipc
TEMPLATE = lib

View File

@@ -2,7 +2,7 @@ load(common_pre)
requires(equals(WORD_SIZE,64))
QT += core dbus xml network
QT += core
TARGET = fsuipc
TEMPLATE = lib

View File

@@ -2,7 +2,7 @@ load(common_pre)
REQUIRES += contains(BLACK_CONFIG,FSX)
QT += core dbus gui network xml widgets
QT += core dbus widgets
TARGET = simulatorfsx
TEMPLATE = lib

View File

@@ -1,6 +1,6 @@
load(common_pre)
QT += core dbus xml network widgets
QT += core dbus network widgets
TARGET = simulatorfsxcommon
TEMPLATE = lib

View File

@@ -1,6 +1,6 @@
load(common_pre)
QT += core widgets dbus network
QT += core dbus network widgets
TARGET = simulatorfsxconfig
TEMPLATE = lib

View File

@@ -2,7 +2,7 @@ load(common_pre)
REQUIRES += contains(BLACK_CONFIG,P3D)
QT += core dbus gui network xml widgets
QT += core dbus widgets
TARGET = simulatorp3d
TEMPLATE = lib

View File

@@ -8,7 +8,6 @@
*/
#include "simulatorp3d.h"
#include "blackcore/application.h"
#include "blackmisc/threadutils.h"
#include "blackmisc/logmessage.h"
#include "blackconfig/buildconfig.h"

View File

@@ -1,6 +1,6 @@
load(common_pre)
QT += core widgets dbus network
QT += core dbus network widgets
TARGET = simulatorp3dconfig
TEMPLATE = lib

View File

@@ -1,6 +1,6 @@
load(common_pre)
QT += core dbus network widgets
QT += core dbus widgets
TARGET = simulatorxplane
TEMPLATE = lib

View File

@@ -1,6 +1,6 @@
load(common_pre)
QT += core dbus network widgets
QT += core dbus network widgets
TARGET = simulatorxplaneconfig
TEMPLATE = lib

View File

@@ -1,8 +1,6 @@
load(common_pre)
QT += core dbus network xml multimedia gui svg
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
QT += core dbus network widgets
TARGET = swiftcore
TEMPLATE = app

View File

@@ -1,8 +1,6 @@
load(common_pre)
QT += core dbus network xml multimedia gui svg
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
QT += core dbus network widgets
TARGET = swiftdata
TEMPLATE = app

View File

@@ -1,8 +1,6 @@
load(common_pre)
QT += core dbus gui svg network xml multimedia
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
QT += core dbus network widgets
TARGET = swiftguistd
TEMPLATE = app

View File

@@ -1,8 +1,6 @@
load(common_pre)
QT += core dbus gui svg network xml multimedia
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
QT += core dbus network widgets
TARGET = swiftlauncher
TEMPLATE = app