Skip to content

Core

NameDescription
BuildInfoExposes build-time SDK and target metadata compiled into the core module.
ConfigStores the normalized values returned after successful schema validation.
ConfigErrorDescribes one parser or validation failure produced by ConfigSchema.
ConfigMigrationRunnerOrchestrates an ordered sequence of ConfigMigrationStep instances.
ConfigMigrationStepBase class representing a single migration operation in a configuration pipeline.
ConfigResultRepresents either a validated Config or the complete list of validation errors.
ConfigSchemaDeclares and validates a typed application configuration schema.
ConfigStoreProvides thread-safe read/write access to a single INI-format QSettings file.
DeviceInfoProvides static information about the device the application runs on.
SingletonInterfaceProvides lazy singleton construction for service-style classes.
ReturnNameDescription
boolenumToStr staticConvert an enum value into its case-sensitive Qt meta-object key.
boolstrToEnum staticConvert a case-sensitive Qt meta-object key into an enum value.
booltoObjList staticCast a list of QObject-derived pointers into a QList<QObject*>.

static
Source locationmrx/core/qthelpers.hpp
template<typename T> static bool enumToStr(T enumeration, QString* str)

Convert an enum value into its case-sensitive Qt meta-object key.

This helper uses QMetaEnum::fromType<T>() to resolve the registered key name for enumeration. If the enum type is not registered with Qt’s meta-object system, or if the provided value does not map to a known key, the output string is cleared and the function returns false.

true when the enum value was resolved to a key name; otherwise false.

NameTypeDescription
enumerationTEnum value to convert into its string key.
strQString*Output parameter that receives the enum key when conversion succeeds, or an empty string when conversion fails.

static
Source locationmrx/core/qthelpers.hpp
template<typename T> static bool strToEnum(const QString& str, T* enumeration)

Convert a case-sensitive Qt meta-object key into an enum value.

This helper uses QMetaEnum::fromType<T>() to look up an enum value by its registered key name. The conversion is case-sensitive and only succeeds when str exactly matches a known key for the enum type.

true when str maps to a valid enum key; otherwise false.

NameTypeDescription
strconst QString&Case-sensitive enum key to parse.
enumerationT*Output parameter that receives the parsed enum value when conversion succeeds.

static
Source locationmrx/core/qthelpers.hpp
template<typename T> static bool toObjList(const QList<T*>& in, QList<QObject*>* out)

Cast a list of QObject-derived pointers into a QList<QObject*>.

This helper is primarily intended for APIs such as Q_PROPERTY declarations that expose heterogeneous QObject collections through a common base type. The conversion fails if any item cannot be cast to QObject.

true when every item was cast successfully; otherwise false.

NameTypeDescription
inconst QList<T*>&Input list containing pointers to cast.
outQList<QObject*>*Output parameter intended to receive the casted QObject list when every item converts successfully.