mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-06 18:25:37 +08:00
Explicit template instantiations for mixins for value classes
To reduce compile time.
This commit is contained in:
@@ -17,6 +17,8 @@
|
||||
#include <QStringBuilder>
|
||||
#include <QtGlobal>
|
||||
|
||||
BLACK_DEFINE_VALUEOBJECT_MIXINS(BlackMisc::Network, CAuthenticatedUser)
|
||||
|
||||
namespace BlackMisc::Network
|
||||
{
|
||||
CAuthenticatedUser::CAuthenticatedUser()
|
||||
|
||||
@@ -25,11 +25,13 @@
|
||||
#include <QString>
|
||||
#include <QStringList>
|
||||
|
||||
BLACK_DECLARE_VALUEOBJECT_MIXINS(BlackMisc::Network, CAuthenticatedUser)
|
||||
|
||||
namespace BlackMisc::Network
|
||||
{
|
||||
/*!
|
||||
* Value object encapsulating information of an authentiated user.
|
||||
*/
|
||||
* Value object encapsulating information of an authentiated user.
|
||||
*/
|
||||
class BLACKMISC_EXPORT CAuthenticatedUser :
|
||||
public CValueObject<CAuthenticatedUser>,
|
||||
public BlackMisc::Db::IDatastoreObjectWithIntegerKey
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
#include "blackmisc/aviation/callsign.h"
|
||||
#include "blackmisc/mixin/mixincompare.h"
|
||||
#include "blackmisc/iconlist.h"
|
||||
#include "blackmisc/propertyindexvariantmap.h" // needed for Mixin::Index::apply
|
||||
|
||||
#include <QPixmap>
|
||||
#include <QString>
|
||||
@@ -17,6 +18,8 @@
|
||||
#include <QStringList>
|
||||
#include <tuple>
|
||||
|
||||
BLACK_DEFINE_VALUEOBJECT_MIXINS(BlackMisc::Network, CClient)
|
||||
|
||||
namespace BlackMisc::Network
|
||||
{
|
||||
QString CClient::convertToQString(bool i18n) const
|
||||
|
||||
@@ -22,6 +22,8 @@
|
||||
#include <QMetaType>
|
||||
#include <QString>
|
||||
|
||||
BLACK_DECLARE_VALUEOBJECT_MIXINS(BlackMisc::Network, CClient)
|
||||
|
||||
namespace BlackMisc::Network
|
||||
{
|
||||
//! Another client software.
|
||||
|
||||
@@ -8,6 +8,8 @@
|
||||
|
||||
#include "blackmisc/network/connectionstatus.h"
|
||||
|
||||
BLACK_DEFINE_VALUEOBJECT_MIXINS(BlackMisc::Network, CConnectionStatus)
|
||||
|
||||
namespace BlackMisc::Network
|
||||
{
|
||||
QString CConnectionStatus::convertToQString(bool i18n) const
|
||||
|
||||
@@ -14,6 +14,8 @@
|
||||
#include "blackmisc/blackmiscexport.h"
|
||||
#include "blackmisc/valueobject.h"
|
||||
|
||||
BLACK_DECLARE_VALUEOBJECT_MIXINS(BlackMisc::Network, CConnectionStatus)
|
||||
|
||||
namespace BlackMisc::Network
|
||||
{
|
||||
//! Value object encapsulating information about a connection status
|
||||
|
||||
@@ -11,6 +11,8 @@
|
||||
#include "blackmisc/verify.h"
|
||||
#include "blackmisc/comparefunctions.h"
|
||||
|
||||
BLACK_DEFINE_VALUEOBJECT_MIXINS(BlackMisc::Network, CEcosystem)
|
||||
|
||||
namespace BlackMisc::Network
|
||||
{
|
||||
QString CEcosystem::convertToQString(bool i18n) const
|
||||
|
||||
@@ -17,6 +17,8 @@
|
||||
#include <QMetaType>
|
||||
#include <QString>
|
||||
|
||||
BLACK_DECLARE_VALUEOBJECT_MIXINS(BlackMisc::Network, CEcosystem)
|
||||
|
||||
namespace BlackMisc::Network
|
||||
{
|
||||
//! Ecosystem of server belonging together.
|
||||
|
||||
@@ -8,6 +8,8 @@
|
||||
|
||||
#include "blackmisc/network/facilitytype.h"
|
||||
|
||||
BLACK_DEFINE_VALUEOBJECT_MIXINS(BlackMisc::Network, CFacilityType)
|
||||
|
||||
namespace BlackMisc::Network
|
||||
{
|
||||
QString CFacilityType::convertToQString(bool i18n) const
|
||||
|
||||
@@ -14,6 +14,8 @@
|
||||
#include "blackmisc/blackmiscexport.h"
|
||||
#include "blackmisc/valueobject.h"
|
||||
|
||||
BLACK_DECLARE_VALUEOBJECT_MIXINS(BlackMisc::Network, CFacilityType)
|
||||
|
||||
namespace BlackMisc::Network
|
||||
{
|
||||
//! Value object encapsulating the ATC facility type, e.g. TWR, DEP, APP
|
||||
|
||||
@@ -19,6 +19,8 @@
|
||||
|
||||
using namespace BlackMisc;
|
||||
|
||||
BLACK_DEFINE_VALUEOBJECT_MIXINS(BlackMisc::Network, CFsdSetup)
|
||||
|
||||
namespace BlackMisc::Network
|
||||
{
|
||||
CFsdSetup::CFsdSetup(SendReceiveDetails sendReceive) : m_sendReceive(sendReceive)
|
||||
|
||||
@@ -20,6 +20,8 @@
|
||||
#include <QMetaType>
|
||||
#include <QString>
|
||||
|
||||
BLACK_DECLARE_VALUEOBJECT_MIXINS(BlackMisc::Network, CFsdSetup)
|
||||
|
||||
namespace BlackMisc::Network
|
||||
{
|
||||
//! Value object for a FSD setup
|
||||
|
||||
@@ -8,6 +8,8 @@
|
||||
|
||||
#include "blackmisc/network/loginmode.h"
|
||||
|
||||
BLACK_DEFINE_VALUEOBJECT_MIXINS(BlackMisc::Network, CLoginMode)
|
||||
|
||||
namespace BlackMisc::Network
|
||||
{
|
||||
QString CLoginMode::convertToQString(bool i18n) const
|
||||
|
||||
@@ -14,6 +14,8 @@
|
||||
#include "blackmisc/blackmiscexport.h"
|
||||
#include "blackmisc/valueobject.h"
|
||||
|
||||
BLACK_DECLARE_VALUEOBJECT_MIXINS(BlackMisc::Network, CLoginMode)
|
||||
|
||||
namespace BlackMisc::Network
|
||||
{
|
||||
//! Value object encapsulating information about login mode
|
||||
|
||||
@@ -17,6 +17,8 @@
|
||||
|
||||
using namespace BlackMisc;
|
||||
|
||||
BLACK_DEFINE_VALUEOBJECT_MIXINS(BlackMisc::Network, CRawFsdMessage)
|
||||
|
||||
namespace BlackMisc::Network
|
||||
{
|
||||
CRawFsdMessage::CRawFsdMessage(const QString &rawMessage)
|
||||
|
||||
@@ -21,6 +21,8 @@
|
||||
#include <QMetaType>
|
||||
#include <QString>
|
||||
|
||||
BLACK_DECLARE_VALUEOBJECT_MIXINS(BlackMisc::Network, CRawFsdMessage)
|
||||
|
||||
namespace BlackMisc::Network
|
||||
{
|
||||
//! Value object for a raw FSD message
|
||||
|
||||
@@ -11,6 +11,8 @@
|
||||
#include <QJsonValue>
|
||||
#include <QtGlobal>
|
||||
|
||||
BLACK_DEFINE_VALUEOBJECT_MIXINS(BlackMisc::Network, CRemoteFile)
|
||||
|
||||
namespace BlackMisc::Network
|
||||
{
|
||||
CRemoteFile::CRemoteFile(const QString &name, const QString &description)
|
||||
|
||||
@@ -22,6 +22,8 @@
|
||||
#include <QMetaType>
|
||||
#include <QString>
|
||||
|
||||
BLACK_DECLARE_VALUEOBJECT_MIXINS(BlackMisc::Network, CRemoteFile)
|
||||
|
||||
namespace BlackMisc::Network
|
||||
{
|
||||
/*!
|
||||
|
||||
@@ -11,6 +11,8 @@
|
||||
#include <QtGlobal>
|
||||
#include <QStringBuilder>
|
||||
|
||||
BLACK_DEFINE_VALUEOBJECT_MIXINS(BlackMisc::Network, CRole)
|
||||
|
||||
namespace BlackMisc::Network
|
||||
{
|
||||
CRole::CRole(const QString &name, const QString &description)
|
||||
|
||||
@@ -21,6 +21,8 @@
|
||||
#include <QMetaType>
|
||||
#include <QString>
|
||||
|
||||
BLACK_DECLARE_VALUEOBJECT_MIXINS(BlackMisc::Network, CRole)
|
||||
|
||||
namespace BlackMisc::Network
|
||||
{
|
||||
/*!
|
||||
|
||||
@@ -20,6 +20,8 @@
|
||||
|
||||
using namespace BlackMisc::Audio;
|
||||
|
||||
BLACK_DEFINE_VALUEOBJECT_MIXINS(BlackMisc::Network, CServer)
|
||||
|
||||
namespace BlackMisc::Network
|
||||
{
|
||||
const QList<int> &CServer::allServerTypes()
|
||||
|
||||
@@ -26,6 +26,8 @@
|
||||
#include <QMetaType>
|
||||
#include <QString>
|
||||
|
||||
BLACK_DECLARE_VALUEOBJECT_MIXINS(BlackMisc::Network, CServer)
|
||||
|
||||
namespace BlackMisc::Network
|
||||
{
|
||||
//! Value object encapsulating information of a server
|
||||
|
||||
@@ -12,6 +12,8 @@
|
||||
#include <QtGlobal>
|
||||
#include <QStringBuilder>
|
||||
|
||||
BLACK_DEFINE_VALUEOBJECT_MIXINS(BlackMisc::Network::Settings, CNetworkSettings)
|
||||
|
||||
namespace BlackMisc::Network::Settings
|
||||
{
|
||||
QString CNetworkSettings::convertToQString(bool i18n) const
|
||||
|
||||
@@ -20,6 +20,8 @@
|
||||
#include <QMetaType>
|
||||
#include <QString>
|
||||
|
||||
BLACK_DECLARE_VALUEOBJECT_MIXINS(BlackMisc::Network::Settings, CNetworkSettings)
|
||||
|
||||
namespace BlackMisc::Network::Settings
|
||||
{
|
||||
//! Network settings
|
||||
|
||||
@@ -21,6 +21,8 @@
|
||||
using namespace BlackMisc::Aviation;
|
||||
using namespace BlackMisc::PhysicalQuantities;
|
||||
|
||||
BLACK_DEFINE_VALUEOBJECT_MIXINS(BlackMisc::Network, CTextMessage)
|
||||
|
||||
namespace BlackMisc::Network
|
||||
{
|
||||
CTextMessage::CTextMessage(const QString &message, const CFrequency &frequency, const CCallsign &senderCallsign)
|
||||
|
||||
@@ -25,6 +25,8 @@
|
||||
#include <QPixmap>
|
||||
#include <QString>
|
||||
|
||||
BLACK_DECLARE_VALUEOBJECT_MIXINS(BlackMisc::Network, CTextMessage)
|
||||
|
||||
namespace BlackMisc::Network
|
||||
{
|
||||
/*!
|
||||
|
||||
@@ -14,6 +14,8 @@
|
||||
#include <QPair>
|
||||
#include <QtGlobal>
|
||||
|
||||
BLACK_DEFINE_VALUEOBJECT_MIXINS(BlackMisc::Network, CUrl)
|
||||
|
||||
namespace BlackMisc::Network
|
||||
{
|
||||
CUrl::CUrl(const QString &fullUrl)
|
||||
|
||||
@@ -22,6 +22,8 @@
|
||||
#include <QString>
|
||||
#include <QUrl>
|
||||
|
||||
BLACK_DECLARE_VALUEOBJECT_MIXINS(BlackMisc::Network, CUrl)
|
||||
|
||||
namespace BlackMisc::Network
|
||||
{
|
||||
//! Value object encapsulating information of a location,
|
||||
|
||||
@@ -17,6 +17,8 @@
|
||||
|
||||
#include <atomic>
|
||||
|
||||
BLACK_DEFINE_VALUEOBJECT_MIXINS(BlackMisc::Network, CUrlLog)
|
||||
|
||||
namespace BlackMisc::Network
|
||||
{
|
||||
CUrlLog::CUrlLog(const CUrl &url) :
|
||||
|
||||
@@ -20,6 +20,8 @@
|
||||
#include <QJsonObject>
|
||||
#include <QString>
|
||||
|
||||
BLACK_DECLARE_VALUEOBJECT_MIXINS(BlackMisc::Network, CUrlLog)
|
||||
|
||||
namespace BlackMisc::Network
|
||||
{
|
||||
//! Information about accessing one URL over the network
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
#include "blackmisc/propertyindexref.h"
|
||||
#include "blackmisc/statusmessage.h"
|
||||
#include "blackmisc/stringutils.h"
|
||||
#include "blackmisc/propertyindexvariantmap.h" // needed for Mixin::Index::apply
|
||||
|
||||
#include <QChar>
|
||||
#include <QRegularExpression>
|
||||
@@ -21,6 +22,8 @@
|
||||
|
||||
using namespace BlackMisc::Aviation;
|
||||
|
||||
BLACK_DEFINE_VALUEOBJECT_MIXINS(BlackMisc::Network, CUser)
|
||||
|
||||
namespace BlackMisc::Network
|
||||
{
|
||||
CUser::CUser(const CCallsign &callsign)
|
||||
|
||||
@@ -23,6 +23,8 @@
|
||||
#include <QMetaType>
|
||||
#include <QString>
|
||||
|
||||
BLACK_DECLARE_VALUEOBJECT_MIXINS(BlackMisc::Network, CUser)
|
||||
|
||||
namespace BlackMisc::Network
|
||||
{
|
||||
/*!
|
||||
|
||||
@@ -15,6 +15,8 @@
|
||||
|
||||
using namespace BlackMisc;
|
||||
|
||||
BLACK_DEFINE_VALUEOBJECT_MIXINS(BlackMisc::Network, CVoiceCapabilities)
|
||||
|
||||
namespace BlackMisc::Network
|
||||
{
|
||||
CVoiceCapabilities::CVoiceCapabilities(const QString &flightPlanRemarks)
|
||||
|
||||
@@ -14,6 +14,8 @@
|
||||
#include "blackmisc/blackmiscexport.h"
|
||||
#include "blackmisc/valueobject.h"
|
||||
|
||||
BLACK_DECLARE_VALUEOBJECT_MIXINS(BlackMisc::Network, CVoiceCapabilities)
|
||||
|
||||
namespace BlackMisc::Network
|
||||
{
|
||||
//! Value object encapsulating information for voice capabilities.
|
||||
|
||||
Reference in New Issue
Block a user