File: cpp_qobject_pimpl_header.h

package info (click to toggle)
kdevelop 4%3A24.12.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 71,888 kB
  • sloc: cpp: 290,869; python: 3,626; javascript: 3,518; sh: 1,316; ansic: 703; xml: 401; php: 95; lisp: 66; makefile: 31; sed: 12
file content (87 lines) | stat: -rw-r--r-- 1,926 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
{% extends "cpp_header.h" %}

{% block includes %}
{{ block.super }}
{% if not base_classes %}
{% block qobject_default_include %}
{% endblock qobject_default_include %}
{% endif %}
{% endblock includes %}


{% block forward_declarations %}
class {{ name }}Private;
{% endblock forward_declarations %}


{% block class_declaration_open %}
{% if base_classes %}
{{ block.super }}
{% else %}
{% include "class_declaration_apidox_cpp.txt" %}
class {{ name }} : public {% block qobject_baseclass %}QObject{% endblock qobject_baseclass %}
{
{% endif %}
{% endblock class_declaration_open %}


{% block class_body %}
{% block qobject_body_header %}
    Q_OBJECT
    {% for property in members %}
    {% include "class_qproperty_declaration_cpp.txt" %}
    {% endfor %}
{% endblock qobject_body_header %}


{% if public_functions or members %}
public:
{% endif %}
    {% for method in public_functions %}

        {% include "class_method_declaration_apidox_cpp.txt" %}
        {% include "class_method_declaration_cpp.txt" %}

    {% endfor %}

    {% for property in members %}

    {% include "class_property_getter_declaration_apidox_cpp.txt" %}
    {% include "class_property_getter_declaration_cpp.txt" %}

    {% endfor %}


{% if members %}
public Q_SLOTS:
    {% for property in members %}

    {% include "class_property_setter_declaration_apidox_cpp.txt" %}
    {% include "class_property_setter_declaration_cpp.txt" %}

    {% endfor %}

Q_SIGNALS:
    {% for property in members %}

    {% include "class_property_signal_declaration_cpp.txt" %}

    {% endfor %}
{% endif %}


{% if protected_functions %}
protected:
    {% for method in protected_functions %}

        {% include "class_method_declaration_apidox_cpp.txt" %}
        {% include "class_method_declaration_cpp.txt" %}

    {% endfor %}
{% endif %}


private:
    {{ name }}Private* const d_ptr;
    Q_DECLARE_PRIVATE({{ name }})
{% endblock class_body %}