<body>
+ <p>Next: <a href="pswgen05.html">05 - Building Generator Module</a>, Previous: <a href="pswgen03.html">03 - Generator Module</a></p>
+
<h1>eVaf Tutorial</h1>
<h2>04 - Generator Module</h2>
<span class="hl kwd">VER_EXPORT_VERSION_INFO</span><span class="hl opt">()</span></pre>
+ <p>To make the <tt>Module</tt> class a proper Qt plugin, we use the <tt>Q_EXPORT_PLUGIN2</tt> macro. The name of the module is already
+ defined in the <tt>version.h</tt> header file as <tt>VER_MODULE_NAME_STR</tt>.
+
+ <pre class="hl"><span class="hl kwd">Q_EXPORT_PLUGIN2</span><span class="hl opt">(</span>VER_MODULE_NAME_STR<span class="hl opt">,</span> eVaf<span class="hl opt">::</span>PswGen<span class="hl opt">::</span>Generator<span class="hl opt">::</span>Module<span class="hl opt">)</span></pre>
+
<p>We make our life easier with several <tt>using namespace</tt> keywords:</p>
<pre class="hl"><span class="hl kwa">using namespace</span> eVaf<span class="hl opt">;</span>