Changeset View
Changeset View
Standalone View
Standalone View
file_templates/classes/qobject_pimpl/class_p.h
1 | {% extends "cpp_header.h" %} | 1 | {% extends "cpp_qobject_pimpl_p_header.h" %} | ||
---|---|---|---|---|---|
2 | {% load kdev_filters %} | | |||
3 | | ||||
4 | | ||||
5 | {% block include_guard_open %} | | |||
6 | {% with "_P_H" as include_guard_suffix %} | | |||
7 | #ifndef {% include "include_guard_cpp.txt" %} | | |||
8 | #define {% include "include_guard_cpp.txt" %} | | |||
9 | {% endwith %} | | |||
10 | {% endblock include_guard_open %} | | |||
11 | | ||||
12 | | ||||
13 | {% block includes %} | | |||
14 | {% endblock includes %} | | |||
15 | | ||||
16 | | ||||
17 | {% block class_declaration_open %} | | |||
18 | {% include "class_declaration_apidox_cpp.txt" %} | | |||
19 | class {{ name }}Private | | |||
20 | { | | |||
21 | {% endblock class_declaration_open %} | | |||
22 | | ||||
23 | {% block class_body %} | | |||
24 | {% if members or private_functions %} | | |||
25 | public: | | |||
26 | {% for method in private_functions %} | | |||
27 | | ||||
28 | {% include "class_method_declaration_apidox_cpp.txt" %} | | |||
29 | {% include "class_method_declaration_cpp.txt" %} | | |||
30 | | ||||
31 | {% endfor %} | | |||
32 | | ||||
33 | {% for property in members %} | | |||
34 | {{property.type}} {{property.name}}; | | |||
35 | {% endfor %} | | |||
36 | {% endif %} | | |||
37 | {% endblock class_body %} | | |||
38 | | ||||
39 | {% block include_guard_close %} | | |||
40 | {% with "_P_H" as include_guard_suffix %} | | |||
41 | #endif // {% include "include_guard_cpp.txt" %} | | |||
42 | {% endwith %} | | |||
43 | {% endblock include_guard_close %} | |