swift
Loading...
Searching...
No Matches
swift::misc::simulation::fsx::CSimConnectUtilities Class Reference

Utilities for SimConnect. More...

#include <simconnectutilities.h>

Inheritance diagram for swift::misc::simulation::fsx::CSimConnectUtilities:
[legend]

Public Types

enum  SIMCONNECT_SURFACE {
  Concrete , Grass , Water , Grass_bumpy ,
  Asphalt , Short_grass , Long_grass , Hard_turf ,
  Snow , Ice , Urban , Forest ,
  Dirt , Coral , Gravel , Oil_treated ,
  Steel_mats , Bituminus , Brick , Macadam ,
  Planks , Sand , Shale , Tarmac ,
  Wright_flyer_track
}
 SimConnect surfaces. More...
enum  SIMCONNECT_EXCEPTION {
  SIMCONNECT_EXCEPTION_NONE , SIMCONNECT_EXCEPTION_ERROR , SIMCONNECT_EXCEPTION_SIZE_MISMATCH , SIMCONNECT_EXCEPTION_UNRECOGNIZED_ID ,
  SIMCONNECT_EXCEPTION_UNOPENED , SIMCONNECT_EXCEPTION_VERSION_MISMATCH , SIMCONNECT_EXCEPTION_TOO_MANY_GROUPS , SIMCONNECT_EXCEPTION_NAME_UNRECOGNIZED ,
  SIMCONNECT_EXCEPTION_TOO_MANY_EVENT_NAMES , SIMCONNECT_EXCEPTION_EVENT_ID_DUPLICATE , SIMCONNECT_EXCEPTION_TOO_MANY_MAPS , SIMCONNECT_EXCEPTION_TOO_MANY_OBJECTS ,
  SIMCONNECT_EXCEPTION_TOO_MANY_REQUESTS , SIMCONNECT_EXCEPTION_WEATHER_INVALID_PORT , SIMCONNECT_EXCEPTION_WEATHER_INVALID_METAR , SIMCONNECT_EXCEPTION_WEATHER_UNABLE_TO_GET_OBSERVATION ,
  SIMCONNECT_EXCEPTION_WEATHER_UNABLE_TO_CREATE_STATION , SIMCONNECT_EXCEPTION_WEATHER_UNABLE_TO_REMOVE_STATION , SIMCONNECT_EXCEPTION_INVALID_DATA_TYPE , SIMCONNECT_EXCEPTION_INVALID_DATA_SIZE ,
  SIMCONNECT_EXCEPTION_DATA_ERROR , SIMCONNECT_EXCEPTION_INVALID_ARRAY , SIMCONNECT_EXCEPTION_CREATE_OBJECT_FAILED , SIMCONNECT_EXCEPTION_LOAD_FLIGHTPLAN_FAILED ,
  SIMCONNECT_EXCEPTION_OPERATION_INVALID_FOR_OBJECT_TYPE , SIMCONNECT_EXCEPTION_ILLEGAL_OPERATION , SIMCONNECT_EXCEPTION_ALREADY_SUBSCRIBED , SIMCONNECT_EXCEPTION_INVALID_ENUM ,
  SIMCONNECT_EXCEPTION_DEFINITION_ERROR , SIMCONNECT_EXCEPTION_DUPLICATE_ID , SIMCONNECT_EXCEPTION_DATUM_ID , SIMCONNECT_EXCEPTION_OUT_OF_BOUNDS ,
  SIMCONNECT_EXCEPTION_ALREADY_CREATED , SIMCONNECT_EXCEPTION_OBJECT_OUTSIDE_REALITY_BUBBLE , SIMCONNECT_EXCEPTION_OBJECT_CONTAINER , SIMCONNECT_EXCEPTION_OBJECT_AI ,
  SIMCONNECT_EXCEPTION_OBJECT_ATC , SIMCONNECT_EXCEPTION_OBJECT_SCHEDULE
}
 SimConnect exceptions. More...
enum  LIGHT_STATES {
  Nav = 0x0001 , Beacon = 0x0002 , Landing = 0x0004 , Taxi = 0x0008 ,
  Strobe = 0x0010 , Panel = 0x0020 , Recognition = 0x0040 , Wing = 0x0080 ,
  Logo = 0x0100 , Cabin = 0x0200
}
 Lights for FSX/P3D "LIGHT ON STATES". More...
enum  SIMCONNECT_RECV_ID {
  SIMCONNECT_RECV_ID_NULL , SIMCONNECT_RECV_ID_EXCEPTION , SIMCONNECT_RECV_ID_OPEN , SIMCONNECT_RECV_ID_QUIT ,
  SIMCONNECT_RECV_ID_EVENT , SIMCONNECT_RECV_ID_EVENT_OBJECT_ADDREMOVE , SIMCONNECT_RECV_ID_EVENT_FILENAME , SIMCONNECT_RECV_ID_EVENT_FRAME ,
  SIMCONNECT_RECV_ID_SIMOBJECT_DATA , SIMCONNECT_RECV_ID_SIMOBJECT_DATA_BYTYPE , SIMCONNECT_RECV_ID_WEATHER_OBSERVATION , SIMCONNECT_RECV_ID_CLOUD_STATE ,
  SIMCONNECT_RECV_ID_ASSIGNED_OBJECT_ID , SIMCONNECT_RECV_ID_RESERVED_KEY , SIMCONNECT_RECV_ID_CUSTOM_ACTION , SIMCONNECT_RECV_ID_SYSTEM_STATE ,
  SIMCONNECT_RECV_ID_CLIENT_DATA , SIMCONNECT_RECV_ID_EVENT_WEATHER_MODE , SIMCONNECT_RECV_ID_AIRPORT_LIST , SIMCONNECT_RECV_ID_VOR_LIST ,
  SIMCONNECT_RECV_ID_NDB_LIST , SIMCONNECT_RECV_ID_WAYPOINT_LIST , SIMCONNECT_RECV_ID_EVENT_MULTIPLAYER_SERVER_STARTED , SIMCONNECT_RECV_ID_EVENT_MULTIPLAYER_CLIENT_STARTED ,
  SIMCONNECT_RECV_ID_EVENT_MULTIPLAYER_SESSION_ENDED , SIMCONNECT_RECV_ID_EVENT_RACE_END , SIMCONNECT_RECV_ID_EVENT_RACE_LAP
}
 Receive IDs for SimConnect. More...
Public Types inherited from QObject
enum  TimerId

Static Public Member Functions

static QString simConnectExceptionToString (const DWORD id)
 Resolve SimConnect exception (based on Qt metadata).
static QString simConnectSurfaceTypeToString (const DWORD type, bool beautify=true)
 Resolve SimConnect surface (based on Qt metadata).
static QString simConnectReceiveIdToString (DWORD type)
 Receive id to string.
static int lightsToLightStates (const aviation::CAircraftLights &lights)
 Lights to states.
static swift::misc::CWinDllUtils::DLLInfo simConnectDllInfo ()
 Get info about SimConnect DLL.
static void registerMetadata ()
 Register metadata.
Static Public Member Functions inherited from QObject
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, Functor functor)
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, const QObject *context, Functor functor, Qt::ConnectionType type)
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method, Qt::ConnectionType type)
QMetaObject::Connection connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type)
QMetaObject::Connection connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QString tr (const char *sourceText, const char *disambiguation, int n)
bool disconnect (const QMetaObject::Connection &connection)
bool disconnect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method)
bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method)
bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method)

Additional Inherited Members

Public Member Functions inherited from QObject
QBindable< QString > bindableObjectName ()
 QObject (QObject *parent)
 QT_NO_CONTEXTLESS_CONNECT QT_NO_CONTEXTLESS_CONNECT
 QT_NO_NARROWING_CONVERSIONS_IN_CONNECT QT_NO_NARROWING_CONVERSIONS_IN_CONNECT
 Q_CLASSINFO (Name, Value)
 Q_EMIT Q_EMIT
 Q_ENUM (...)
 Q_ENUMS (...)
 Q_ENUM_NS (...)
 Q_FLAG (...)
 Q_FLAGS (...)
 Q_FLAG_NS (...)
 Q_GADGET Q_GADGET
 Q_GADGET_EXPORT (EXPORT_MACRO)
 Q_INTERFACES (...)
 Q_INVOKABLE Q_INVOKABLE
 Q_MOC_INCLUDE Q_MOC_INCLUDE
 Q_NAMESPACE Q_NAMESPACE
 Q_NAMESPACE_EXPORT (EXPORT_MACRO)
 Q_OBJECT Q_OBJECT
 Q_PROPERTY (...)
 Q_REVISION Q_REVISION
 Q_SET_OBJECT_NAME (Object)
 Q_SIGNAL Q_SIGNAL
 Q_SIGNALS Q_SIGNALS
 Q_SLOT Q_SLOT
 Q_SLOTS Q_SLOTS
T qobject_cast (QObject *object)
T qobject_cast (const QObject *object)
bool blockSignals (bool block)
virtual bool event (QEvent *e)
virtual bool eventFilter (QObject *watched, QEvent *event)
bool moveToThread (QThread *targetThread)
bool setProperty (const char *name, QVariant &&value)
bool setProperty (const char *name, const QVariant &value)
int startTimer (int interval, Qt::TimerType timerType)
int startTimer (std::chrono::nanoseconds interval, Qt::TimerType timerType)
void deleteLater ()
void destroyed (QObject *obj)
void installEventFilter (QObject *filterObj)
void killTimer (Qt::TimerId id)
void killTimer (int id)
void objectNameChanged (const QString &objectName)
void removeEventFilter (QObject *obj)
void setObjectName (QAnyStringView name)
void setObjectName (const QString &name)
void setParent (QObject *parent)
QList< QByteArray > dynamicPropertyNames () const const
QList< T > findChildren (QAnyStringView name, Qt::FindChildOptions options) const const
QList< T > findChildren (Qt::FindChildOptions options) const const
QList< T > findChildren (const QRegularExpression &re, Qt::FindChildOptions options) const const
QMetaObject::Connection connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const const
QObject * parent () const const
QString objectName () const const
QThread * thread () const const
QVariant property (const char *name) const const
T findChild (QAnyStringView name, Qt::FindChildOptions options) const const
T findChild (Qt::FindChildOptions options) const const
bool disconnect (const QObject *receiver, const char *method) const const
bool disconnect (const char *signal, const QObject *receiver, const char *method) const const
bool inherits (const char *className) const const
bool isQmlExposed () const const
bool isQuickItemType () const const
bool isWidgetType () const const
bool isWindowType () const const
bool signalsBlocked () const const
virtual const QMetaObject * metaObject () const const
const QObjectList & children () const const
void dumpObjectInfo () const const
void dumpObjectTree () const const
Public Attributes inherited from QObject
typedef QObjectList
 Invalid
Protected Member Functions inherited from QObject
virtual void childEvent (QChildEvent *event)
virtual void connectNotify (const QMetaMethod &signal)
virtual void customEvent (QEvent *event)
virtual void disconnectNotify (const QMetaMethod &signal)
virtual void timerEvent (QTimerEvent *event)
QObject * sender () const const
bool isSignalConnected (const QMetaMethod &signal) const const
int receivers (const char *signal) const const
int senderSignalIndex () const const
Properties inherited from QObject
 objectName

Detailed Description

Utilities for SimConnect.

Remarks
not using the simconnect.h headers as Misc classes are not driver aware

Definition at line 35 of file simconnectutilities.h.

Member Enumeration Documentation

◆ LIGHT_STATES

◆ SIMCONNECT_EXCEPTION

◆ SIMCONNECT_RECV_ID

Receive IDs for SimConnect.

Definition at line 143 of file simconnectutilities.h.

◆ SIMCONNECT_SURFACE

Member Function Documentation

◆ lightsToLightStates()

int swift::misc::simulation::fsx::CSimConnectUtilities::lightsToLightStates ( const aviation::CAircraftLights & lights)
static

Lights to states.

Definition at line 47 of file simconnectutilities.cpp.

◆ registerMetadata()

void swift::misc::simulation::fsx::CSimConnectUtilities::registerMetadata ( )
static

Register metadata.

Definition at line 77 of file simconnectutilities.cpp.

◆ simConnectDllInfo()

CWinDllUtils::DLLInfo swift::misc::simulation::fsx::CSimConnectUtilities::simConnectDllInfo ( )
static

Get info about SimConnect DLL.

Definition at line 83 of file simconnectutilities.cpp.

◆ simConnectExceptionToString()

QString swift::misc::simulation::fsx::CSimConnectUtilities::simConnectExceptionToString ( const DWORD id)
static

Resolve SimConnect exception (based on Qt metadata).

Parameters
idenum element
Returns
enum element's name

Definition at line 30 of file simconnectutilities.cpp.

◆ simConnectReceiveIdToString()

QString swift::misc::simulation::fsx::CSimConnectUtilities::simConnectReceiveIdToString ( DWORD type)
static

Receive id to string.

Definition at line 41 of file simconnectutilities.cpp.

◆ simConnectSurfaceTypeToString()

QString swift::misc::simulation::fsx::CSimConnectUtilities::simConnectSurfaceTypeToString ( const DWORD type,
bool beautify = true )
static

Resolve SimConnect surface (based on Qt metadata).

Parameters
typeenum element
beautifyremove "_"

Definition at line 35 of file simconnectutilities.cpp.


The documentation for this class was generated from the following files: