summaryrefslogtreecommitdiff
path: root/src/tools/ivigenerator/templates_frontend/interface.h.tpl
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/ivigenerator/templates_frontend/interface.h.tpl')
-rw-r--r--src/tools/ivigenerator/templates_frontend/interface.h.tpl3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tools/ivigenerator/templates_frontend/interface.h.tpl b/src/tools/ivigenerator/templates_frontend/interface.h.tpl
index 4b07044..9786210 100644
--- a/src/tools/ivigenerator/templates_frontend/interface.h.tpl
+++ b/src/tools/ivigenerator/templates_frontend/interface.h.tpl
@@ -55,6 +55,7 @@
{% else %}
#include <QtIviCore/QIviAbstractFeature>
{% endif %}
+#include <QtIviCore/QIviPendingReply>
QT_BEGIN_NAMESPACE
@@ -90,7 +91,7 @@ public:
public Q_SLOTS:
{% for operation in interface.operations %}
- {{operation|return_type}} {{operation}}({{operation.parameters|map('parameter_type')|join(', ')}}){% if operation.const %} const{% endif %};
+ QIviPendingReply<{{operation|return_type}}> {{operation}}({{operation.parameters|map('parameter_type')|join(', ')}}){% if operation.const %} const{% endif %};
{% endfor %}
{% for property in interface.properties %}
{% if not property.readonly and not property.const %}