mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-23 13:55:36 +08:00
Formatting
This commit is contained in:
committed by
Mathew Sutcliffe
parent
420e80a437
commit
6ebbf58f79
@@ -1229,7 +1229,7 @@ namespace BlackCore
|
|||||||
{
|
{
|
||||||
// Called when finished!
|
// Called when finished!
|
||||||
// QNetworkRequest::FollowRedirectsAttribute would allow auto redirect, but we use our approach as it gives us better control
|
// QNetworkRequest::FollowRedirectsAttribute would allow auto redirect, but we use our approach as it gives us better control
|
||||||
// \fixme: Check again on Qt 5.9: Added redirects policy to QNetworkAccessManager (ManulRedirectsPolicy, NoLessSafeRedirectsPolicy, SameOriginRedirectsPolicy, UserVerifiedRedirectsPolicy)
|
// \fixme: Check again on Qt 5.9: Added redirects policy to QNetworkAccessManager (ManualRedirectsPolicy, NoLessSafeRedirectsPolicy, SameOriginRedirectsPolicy, UserVerifiedRedirectsPolicy)
|
||||||
const bool isRedirect = CNetworkUtils::isHttpStatusRedirect(reply);
|
const bool isRedirect = CNetworkUtils::isHttpStatusRedirect(reply);
|
||||||
if (isRedirect && maxRedirects > 0)
|
if (isRedirect && maxRedirects > 0)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -153,7 +153,7 @@ namespace BlackCore
|
|||||||
//! \threadsafe
|
//! \threadsafe
|
||||||
BlackMisc::Db::CDistributionList getDistributionInfo() const;
|
BlackMisc::Db::CDistributionList getDistributionInfo() const;
|
||||||
|
|
||||||
//! Delete all cookies from cookier manager
|
//! Delete all cookies from cookie manager
|
||||||
void deleteAllCookies();
|
void deleteAllCookies();
|
||||||
|
|
||||||
//! Network accessible?
|
//! Network accessible?
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
#include "application.h"
|
#include "application.h"
|
||||||
#include "modelsetbuilder.h"
|
#include "modelsetbuilder.h"
|
||||||
#include "webdataservices.h"
|
#include "webdataservices.h"
|
||||||
#include "db/databaseutils.h"
|
#include "blackcore/db/databaseutils.h"
|
||||||
#include "blackmisc/aviation/aircrafticaocodelist.h"
|
#include "blackmisc/aviation/aircrafticaocodelist.h"
|
||||||
#include "blackmisc/simulation/aircraftmodel.h"
|
#include "blackmisc/simulation/aircraftmodel.h"
|
||||||
|
|
||||||
|
|||||||
@@ -22,9 +22,7 @@ namespace BlackGui
|
|||||||
{
|
{
|
||||||
Q_UNUSED(i18n);
|
Q_UNUSED(i18n);
|
||||||
static const QString s("In range only: %1");
|
static const QString s("In range only: %1");
|
||||||
return s.arg(
|
return s.arg(boolToOnOff(this->showOnlyInRange()));
|
||||||
boolToOnOff(this->showOnlyInRange())
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
CVariant CAtcStationsSettings::propertyByIndex(const CPropertyIndex &index) const
|
CVariant CAtcStationsSettings::propertyByIndex(const CPropertyIndex &index) const
|
||||||
|
|||||||
@@ -22,13 +22,11 @@
|
|||||||
#include <QUrl>
|
#include <QUrl>
|
||||||
#include <QByteArray>
|
#include <QByteArray>
|
||||||
#include <QNetworkReply>
|
#include <QNetworkReply>
|
||||||
|
#include <QNetworkAccessManager>
|
||||||
#include <QPointer>
|
#include <QPointer>
|
||||||
#include <array>
|
#include <array>
|
||||||
|
|
||||||
class QNetworkAccessManager;
|
|
||||||
|
|
||||||
namespace BlackMisc { namespace PhysicalQuantities { class CTemperature; }}
|
namespace BlackMisc { namespace PhysicalQuantities { class CTemperature; }}
|
||||||
|
|
||||||
namespace BlackWxPlugin
|
namespace BlackWxPlugin
|
||||||
{
|
{
|
||||||
namespace Gfs
|
namespace Gfs
|
||||||
@@ -45,7 +43,7 @@ namespace BlackWxPlugin
|
|||||||
CWeatherDataGfs(QObject *parent = nullptr);
|
CWeatherDataGfs(QObject *parent = nullptr);
|
||||||
|
|
||||||
//! Destructor
|
//! Destructor
|
||||||
~CWeatherDataGfs();
|
virtual ~CWeatherDataGfs();
|
||||||
|
|
||||||
//! \copydoc BlackCore::IWeatherData::fetchWeatherData
|
//! \copydoc BlackCore::IWeatherData::fetchWeatherData
|
||||||
virtual void fetchWeatherData(const BlackMisc::Weather::CWeatherGrid &grid,
|
virtual void fetchWeatherData(const BlackMisc::Weather::CWeatherGrid &grid,
|
||||||
@@ -59,6 +57,7 @@ namespace BlackWxPlugin
|
|||||||
//! \threadsafe
|
//! \threadsafe
|
||||||
void ps_fetchingWeatherDataFinished();
|
void ps_fetchingWeatherDataFinished();
|
||||||
|
|
||||||
|
//! Parsing
|
||||||
void ps_parseGfsFile(QNetworkReply *reply);
|
void ps_parseGfsFile(QNetworkReply *reply);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|||||||
Reference in New Issue
Block a user