Skip to content

OtaManager

#include <mrx/spoke-zone/ota/OtaManager.hpp>
class mrx::spokezone::OtaManager

Inherits: QObject

Queries OTA files using the module and active-status filters documented by Spoke.Zone.

The OtaFilesApi is caller-owned and must outlive this manager. Requests are delegated to that API, retaining its shared client configuration, typed result, callback-context, and cancellation behavior.

ReturnNameDescription
OtaManager explicit
OpenApiRequestHandlegetOtaFilesFetches OTA files matching the supplied filters.
OpenApiRequestHandlegetOtaFiles inlineUses this manager as the callback context.
OpenApiRequestHandlegetOtaFiles inlineFetches OTA files without filters, using this manager as the callback context.

explicit
explicit OtaManager(OtaFilesApi& api, QObject* parent = nullptr)

OpenApiRequestHandle getOtaFiles(const Filters& filters, QObject* callbackContext, const Callback& callback)

Fetches OTA files matching the supplied filters.

The shared client’s cancellable request handle.

NameTypeDescription
filtersconst Filters&Optional module and active-status filters.
callbackContextQObject*QObject that owns the callback’s lifetime.
callbackconst Callback&Receives the generated API’s typed result.

inline
inline OpenApiRequestHandle getOtaFiles(const Filters& filters, const Callback& callback)

Uses this manager as the callback context.


inline
inline OpenApiRequestHandle getOtaFiles(const Callback& callback)

Fetches OTA files without filters, using this manager as the callback context.

NameDescription
Result
Callback

using Result = OtaFilesApi::getOtaFilesResult

using Callback = OtaFilesApi::getOtaFilesCallback