File indexing completed on 2025-02-09 04:28:27

0001 { % include licence | append : ".h" % }
0002 #include "{{ className|lower }}.h"
0003 {
0004     % if pimpl %
0005 }
0006 #include "{{ className|lower }}_p.h"
0007 { % endif % }
0008 
0009 {% for property in properties %
0010 }
0011 {{property.type}} {
0012     {
0013         className
0014     }
0015 }
0016 ::{{property.name}}() const
0017 {
0018     {
0019         {
0020             % if pimpl %
0021         }
0022         Q_D(const {{className}});
0023         {
0024             % endif %
0025         }
0026         return
0027         {
0028             % if pimpl %
0029         }
0030         d->{ % endif % } m_{{property.name}};
0031     }
0032     {
0033         % if not property.readonly %
0034     }
0035 
0036     void
0037     {
0038         {
0039             className
0040         }
0041     }
0042     ::{{property.name | to_write}}({{property.type | to_arg}} {{property.name}})
0043     {
0044         {
0045             {
0046                 % if pimpl %
0047             }
0048             Q_D({{className}});
0049             { % endif % } {
0050                 % if pimpl %
0051             }
0052             d->{ % endif % } m_{{property.name}} = {{property.name}};
0053         }
0054         { % endif % }
0055 
0056         { % endfor % } {
0057 #Don't put default args in implementation methods. #} { % with false as default % }
0058             {% for method in methods %
0059             }
0060             { % ifnotequal method.accessType "signals" % } {{method.type}} {
0061                 {
0062                     className
0063                 }
0064             }
0065             ::{{method.name}}({ % include "args.h" % })
0066             {
0067                 % if method.const %
0068             }
0069             const { % endif % } {
0070 
0071             } { % endifnotequal % }
0072 
0073             { % endfor % }
0074             {
0075                 % endwith %
0076             }
0077 #include "{{ className|lower }}.moc"