Commit 42f46288 authored by Don Gagne's avatar Don Gagne

Mimic pending param support

Mimic pending param support by just calling through to setParameter.
parent cf404a8e
......@@ -49,6 +49,10 @@ public:
public slots:
// Implemented QGCSUASParamManager overrides
void setParameter(int component, QString parameterName, QVariant value);
virtual void setPendingParam(int componentId, const QString& key, const QVariant& value, bool forceSend = false)
{ Q_UNUSED(forceSend); setParameter(componentId, key, value); }
virtual void sendPendingParameters(bool persistAfterSend = false, bool forceSend = false)
{ Q_UNUSED(persistAfterSend); Q_UNUSED(forceSend); }
public:
// MockQGCUASParamManager methods
......@@ -74,12 +78,8 @@ public:
public slots:
// Unimplemented QGCUASParamManagerInterface overrides
virtual void sendPendingParameters(bool persistAfterSend = false, bool forceSend = false)
{ Q_ASSERT(false); Q_UNUSED(persistAfterSend); Q_UNUSED(forceSend); }
virtual void requestParameterList() { Q_ASSERT(false); }
virtual void requestParameterListIfEmpty() { Q_ASSERT(false); }
virtual void setPendingParam(int componentId, const QString& key, const QVariant& value, bool forceSend = false)
{ Q_ASSERT(false); Q_UNUSED(componentId); Q_UNUSED(key); Q_UNUSED(value); Q_UNUSED(forceSend); }
virtual void clearAllPendingParams() { Q_ASSERT(false); }
virtual void requestParameterUpdate(int component, const QString& parameter)
{ Q_ASSERT(false); Q_UNUSED(component); Q_UNUSED(parameter); }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment