Changeset View
Changeset View
Standalone View
Standalone View
file_templates/classes/qt_interface/interface.h
Show All 14 Lines | 14 | {% if not base_classes %} | |||
---|---|---|---|---|---|
15 | virtual ~{{ name }}(); | 15 | virtual ~{{ name }}(); | ||
16 | {% else %}{# Assumption: subclassing only other interfaces #} | 16 | {% else %}{# Assumption: subclassing only other interfaces #} | ||
17 | ~{{ name }}() override; | 17 | ~{{ name }}() override; | ||
18 | {% endif %} | 18 | {% endif %} | ||
19 | 19 | | |||
20 | {% for method in public_functions %} | 20 | {% for method in public_functions %} | ||
21 | {# skipping any defined destructor #} | 21 | {# skipping any defined destructor #} | ||
22 | {% if not method.isDestructor %} | 22 | {% if not method.isDestructor %} | ||
23 | {% include "method_declaration_cpp.txt" %} | 23 | {% include "class_method_declaration_apidox_cpp.txt" %} | ||
24 | {% include "class_method_declaration_cpp.txt" %} | ||||
24 | {% endif %} | 25 | {% endif %} | ||
25 | {% endfor %} | 26 | {% endfor %} | ||
26 | 27 | | |||
27 | {% for property in members %} | 28 | {% for property in members %} | ||
28 | 29 | | |||
30 | {% include "class_property_getter_declaration_apidox_cpp.txt" %} | ||||
29 | virtual {{ property.type }} {{ property.name }}() const = 0; | 31 | virtual {{ property.type }} {{ property.name }}() const = 0; | ||
32 | {% include "class_property_setter_declaration_apidox_cpp.txt" %} | ||||
30 | virtual void set{{ property.name|upper_first }}({{ property.type|arg_type }} {{ property.name }}) = 0; | 33 | virtual void set{{ property.name|upper_first }}({{ property.type|arg_type }} {{ property.name }}) = 0; | ||
31 | 34 | | |||
32 | {% endfor %} | 35 | {% endfor %} | ||
33 | {% if protected_functions %} | 36 | {% if protected_functions %} | ||
34 | 37 | | |||
35 | protected: | 38 | protected: | ||
36 | {% for method in protected_functions %} | 39 | {% for method in protected_functions %} | ||
37 | {# skipping any defined destructor #} | 40 | {# skipping any defined destructor #} | ||
38 | {% if not method.isDestructor %} | 41 | {% if not method.isDestructor %} | ||
39 | {% include "method_declaration_cpp.txt" %} | 42 | {% include "class_method_declaration_apidox_cpp.txt" %} | ||
43 | {% include "class_method_declaration_cpp.txt" %} | ||||
40 | {% endif %} | 44 | {% endif %} | ||
41 | {% endfor %} | 45 | {% endfor %} | ||
42 | {% endif %} | 46 | {% endif %} | ||
43 | {% if private_functions %} | 47 | {% if private_functions %} | ||
44 | 48 | | |||
45 | private: | 49 | private: | ||
46 | {% for method in private_functions %} | 50 | {% for method in private_functions %} | ||
47 | {# skipping any defined destructor #} | 51 | {# skipping any defined destructor #} | ||
48 | {% if not method.isDestructor %} | 52 | {% if not method.isDestructor %} | ||
49 | {% include "method_declaration.txt" %} | 53 | {% include "class_method_declaration_apidox_cpp.txt" %} | ||
54 | {% include "class_method_declaration_cpp.txt" %} | ||||
50 | {% endif %} | 55 | {% endif %} | ||
51 | {% endfor %} | 56 | {% endfor %} | ||
52 | {% endif %} | 57 | {% endif %} | ||
53 | {% endblock class_body %} | 58 | {% endblock class_body %} | ||
54 | 59 | | |||
55 | {% block outside_namespace %} | 60 | {% block outside_namespace %} | ||
56 | {{ block.super }} | 61 | {{ block.super }} | ||
57 | Q_DECLARE_INTERFACE({% if namespaces %}{{ namespaces|join:"::" }}::{% endif %}{{ name }}, "{{ interfaceid }}") | 62 | Q_DECLARE_INTERFACE({% if namespaces %}{{ namespaces|join:"::" }}::{% endif %}{{ name }}, "{{ interfaceid }}") | ||
58 | {% endblock %} | 63 | {% endblock %} |