]> vaikene.ee Git - evaf/blobdiff - www/pswgen04.html
Warning fixes and copyright update.
[evaf] / www / pswgen04.html
index df82cb0b946a970ac9d1335fee64c395576e05c1..63a9df2bd7f5df650f249a70ad9882933d008dbd 100644 (file)
@@ -13,6 +13,8 @@
 
     <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>