|
swift
|
Bundle of caches for model sets of all simulators. More...
Public Member Functions | |
| CModelSetCaches (bool synchronizeCache, QObject *parent=nullptr) | |
| Construtor. | |
Interface implementations | |
| CAircraftModelList | getCachedModels (const CSimulatorInfo &simulator) const |
| Models for simulator. More... | |
| CStatusMessage | setCachedModels (const CAircraftModelList &models, const CSimulatorInfo &simulator) |
| Set cached models. More... | |
| QDateTime | getCacheTimestamp (const CSimulatorInfo &simulator) const |
| Cache timestamp. More... | |
| CStatusMessage | setCacheTimestamp (const QDateTime &ts, const CSimulatorInfo &simulator) |
| Set cache timestamp. More... | |
| void | synchronizeCache (const CSimulatorInfo &simulator) |
| Synchronize for given simulator. More... | |
| void | admitCache (const CSimulatorInfo &simulator) |
| Admit the cache for given simulator. More... | |
| QString | getFilename (const CSimulatorInfo &simulator) const |
| Get filename for simulator cache file. | |
| bool | isSaved (const CSimulatorInfo &simulator) const |
| Cache saved? More... | |
| QString | getDescription () const |
| Descriptive text. | |
Public Member Functions inherited from swift::misc::simulation::data::IMultiSimulatorModelCaches | |
| void | setModelsForSimulator (const CAircraftModelList &models, const CSimulatorInfo &simulator) |
| Set models. More... | |
| int | updateModelsForSimulator (const CAircraftModelList &models, const CSimulatorInfo &simulator) |
| Set models. More... | |
| CAircraftModelList | getSynchronizedCachedModels (const CSimulatorInfo &simulator) |
| Models. | |
| int | getCachedModelsCount (const CSimulatorInfo &simulator) const |
| Count of models for simulator. | |
| bool | hasOtherVersionFile (const swift::misc::CApplicationInfo &info, const CSimulatorInfo &simulator) const |
| Has the other version the file? | |
| CSimulatorInfo | otherVersionSimulatorsWithFile (const swift::misc::CApplicationInfo &info) const |
| Simulators of given other versionwhich have a cache file. | |
| virtual QStringList | getAllFilenames () const |
| All file names. | |
| CSimulatorInfo | getSimulatorForFilename (const QString &filename) const |
| Simulator which uses cache with filename. | |
| CSimulatorInfo | simulatorsWithInitializedCache () const |
| Initialized caches for which simulator? More... | |
| CSimulatorInfo | simulatorsWithModels () const |
| Simulators which have models. More... | |
| QDateTime | getSynchronizedTimestamp (const CSimulatorInfo &simulator) |
| Timestamp. More... | |
| virtual CStatusMessage | clearCachedModels (const CSimulatorInfo &simulator) |
| Clear cached models. More... | |
| bool | isCacheAlreadySynchronized (const CSimulatorInfo &simulator) const |
| Is the cache already synchronized? More... | |
| virtual void | synchronizeMultiCaches (const CSimulatorInfo &simulator) |
| Synchronize multiple simulators. More... | |
| virtual void | admitMultiCaches (const CSimulatorInfo &simulator) |
| Synchronize multiple simulators. More... | |
| QString | getInfoString () const |
| Info string about models in cache. More... | |
| QString | getInfoStringFsFamily () const |
| Info string without XPlane (FSX,P3D, FS9) More... | |
| QString | getCacheCountAndTimestamp (const CSimulatorInfo &simulator) const |
| Cache count and timestamp. More... | |
| virtual void | gracefulShutdown () |
| Graceful shutdown. | |
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 | 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 Member Functions inherited from swift::misc::simulation::IModelsForSimulatorSetable | |
| IModelsForSimulatorSetable ()=default | |
| Ctor, dtor, copy operators (CLANG warnings) | |
| virtual | ~IModelsForSimulatorSetable ()=default |
| Ctor, dtor, copy operators (CLANG warnings) | |
| IModelsForSimulatorSetable (const IModelsForSimulatorSetable &)=default | |
| Ctor, dtor, copy operators (CLANG warnings) | |
| IModelsForSimulatorSetable & | operator= (const IModelsForSimulatorSetable &)=default |
| Ctor, dtor, copy operators (CLANG warnings) | |
Public Member Functions inherited from swift::misc::simulation::IModelsForSimulatorUpdatable | |
| IModelsForSimulatorUpdatable ()=default | |
| Ctor, dtor, copy operators (CLANG warnings) | |
| virtual | ~IModelsForSimulatorUpdatable ()=default |
| Ctor, dtor, copy operators (CLANG warnings) | |
| IModelsForSimulatorUpdatable (const IModelsForSimulatorUpdatable &)=default | |
| Ctor, dtor, copy operators (CLANG warnings) | |
| IModelsForSimulatorUpdatable & | operator= (const IModelsForSimulatorUpdatable &)=default |
| Ctor, dtor, copy operators (CLANG warnings) | |
Static Public Member Functions | |
| static const QStringList & | getLogCategories () |
| Log categories. | |
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 Types inherited from QObject | |
| enum | TimerId |
Signals inherited from swift::misc::simulation::data::IMultiSimulatorModelCaches | |
| void | cacheChanged (const swift::misc::simulation::CSimulatorInfo &simulator) |
| Cache has been changed. More... | |
Public Attributes inherited from QObject | |
| typedef | QObjectList |
| Invalid | |
Protected Member Functions inherited from swift::misc::simulation::data::IMultiSimulatorModelCaches | |
| IMultiSimulatorModelCaches (QObject *parent=nullptr) | |
| Construtor. | |
| void | markCacheAsAlreadySynchronized (const CSimulatorInfo &simulator, bool synchronized) |
| Is the cache already synchronized? More... | |
| void | emitCacheChanged (const CSimulatorInfo &simulator) |
| Emit cacheChanged() utility function (allows breakpoint) | |
| void | changedFsx () |
| Cache has been changed. This will only detect changes elsewhere, owned caches will not signal local changes. | |
| void | changedFs9 () |
| Cache has been changed. This will only detect changes elsewhere, owned caches will not signal local changes. | |
| void | changedP3D () |
| Cache has been changed. This will only detect changes elsewhere, owned caches will not signal local changes. | |
| void | changedXP () |
| Cache has been changed. This will only detect changes elsewhere, owned caches will not signal local changes. | |
| void | changedFG () |
| Cache has been changed. This will only detect changes elsewhere, owned caches will not signal local changes. | |
| void | changedMsfs () |
| Cache has been changed. This will only detect changes elsewhere, owned caches will not signal local changes. | |
| void | changedMsfs2024 () |
| Cache has been changed. This will only detect changes elsewhere, owned caches will not signal local changes. | |
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 | |
Bundle of caches for model sets of all simulators.
Definition at line 381 of file modelcaches.h.
|
virtual |
Admit the cache for given simulator.
Implements swift::misc::simulation::data::IMultiSimulatorModelCaches.
Definition at line 512 of file modelcaches.cpp.
|
virtual |
Models for simulator.
Implements swift::misc::simulation::data::IMultiSimulatorModelCaches.
Definition at line 423 of file modelcaches.cpp.
|
virtual |
Cache timestamp.
Implements swift::misc::simulation::data::IMultiSimulatorModelCaches.
Definition at line 472 of file modelcaches.cpp.
|
virtual |
Cache saved?
Implements swift::misc::simulation::data::IMultiSimulatorModelCaches.
Definition at line 531 of file modelcaches.cpp.
|
virtual |
Set cached models.
Implements swift::misc::simulation::data::IMultiSimulatorModelCaches.
Definition at line 439 of file modelcaches.cpp.
|
virtual |
Set cache timestamp.
Implements swift::misc::simulation::data::IMultiSimulatorModelCaches.
Definition at line 488 of file modelcaches.cpp.
|
virtual |
Synchronize for given simulator.
Implements swift::misc::simulation::data::IMultiSimulatorModelCaches.
Definition at line 510 of file modelcaches.cpp.