<html>
 <body>
  <div style="font-family: Verdana, Arial, Helvetica, Sans-Serif;">
   <table bgcolor="#f9f3c9" width="100%" cellpadding="8" style="border: 1px #c9c399 solid;">
    <tr>
     <td>
      This is an automatically generated e-mail. To reply, visit:
      <a href="https://git.reviewboard.kde.org/r/115343/">https://git.reviewboard.kde.org/r/115343/</a>
     </td>
    </tr>
   </table>
   <br />










<blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: 10px;">
 <p style="margin-top: 0;">On January 31st, 2014, 7:41 p.m. UTC, <b>Alex Merry</b> wrote:</p>
 <blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: 10px;">
  



<table width="100%" border="0" bgcolor="white" style="border: 1px solid #C0C0C0; border-collapse: collapse; margin: 2px padding: 2px;">
 <thead>
  <tr>
   <th colspan="4" bgcolor="#F0F0F0" style="border-bottom: 1px solid #C0C0C0; font-size: 9pt; padding: 4px 8px; text-align: left;">
    <a href="https://git.reviewboard.kde.org/r/115343/diff/1/?file=240767#file240767line116" style="color: black; font-weight: bold; text-decoration: underline;">src/solid/networking_win.cpp</a>
    <span style="font-weight: normal;">

     (Diff revision 1)

    </span>
   </th>
  </tr>
 </thead>

 <tbody style="background-color: #e4d9cb; padding: 4px 8px; text-align: center;">
  <tr>

   <td colspan="4"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">Solid::Networking::ManagementPolicy Solid::Networking::disconnectPolicy()</pre></td>

  </tr>
 </tbody>



 
 

 <tbody>

  <tr>
    <th bgcolor="#b1ebb0" style="border-right: 1px solid #C0C0C0;" align="right"><font size="2"></font></th>
    <td bgcolor="#c5ffc4" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; "></pre></td>
    <th bgcolor="#b1ebb0" style="border-left: 1px solid #C0C0C0; border-right: 1px solid #C0C0C0;" align="right"><font size="2">116</font></th>
    <td bgcolor="#c5ffc4" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; "><span class="cp">#include "moc_networking.cpp"</span></pre></td>
  </tr>

  <tr>
    <th bgcolor="#b1ebb0" style="border-right: 1px solid #C0C0C0;" align="right"><font size="2"></font></th>
    <td bgcolor="#c5ffc4" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; "></pre></td>
    <th bgcolor="#b1ebb0" style="border-left: 1px solid #C0C0C0; border-right: 1px solid #C0C0C0;" align="right"><font size="2">117</font></th>
    <td bgcolor="#c5ffc4" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; "><span class="cp">#include "moc_networking_p.cpp"</span></pre></td>
  </tr>

 </tbody>

</table>

  <pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">It's odd that this should be needed.  Do you have any way of getting verbose output?  (http://www.cmake.org/Wiki/CMake_FAQ#Is_there_an_option_to_produce_more_.27verbose.27_compiling.3F)

I get a bunch of "AUTOMOC: Checking [path to file]" messages when I do that, and this list includes networking.cpp and (later on) networking.h and networking_p.h</pre>
 </blockquote>



 <p>On February 3rd, 2014, 8:28 p.m. UTC, <b>Alexander Richardson</b> wrote:</p>
 <blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: 10px;">
  <pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">Here it gives me:

AUTOGEN: Checking C:/kf5/source/frameworks/solid/src/solid/networking_win.cpp

but no mention of networking.h or networking_p.h unless I add the moc include.
These headers are included by networking_win.cpp, so I guess they should also be checked by automoc.
Not sure if this is intended behaviour or a cmake bug</pre>
 </blockquote>







</blockquote>
<pre style="margin-left: 1em; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">So... CMake doesn't actually check "all header files" as the documentation claims.  For every source file, <file>.cpp, it checks <file>.h and <file>_p.h.  The upshot is that these includes are needed.  Can you put a comment to that effect above the includes?  I've sent a patch to the cmake-developers list with a suggested CMake documentation fix.</pre>
<br />




<p>- Alex</p>


<br />
<p>On January 27th, 2014, 9:29 p.m. UTC, Alexander Richardson wrote:</p>








<table bgcolor="#fefadf" width="100%" cellspacing="0" cellpadding="8" style="background-image: url('https://git.reviewboard.kde.org/static/rb/images/review_request_box_top_bg.ab6f3b1072c9.png'); background-position: left top; background-repeat: repeat-x; border: 1px black solid;">
 <tr>
  <td>

<div>Review request for KDE Frameworks.</div>
<div>By Alexander Richardson.</div>


<p style="color: grey;"><i>Updated Jan. 27, 2014, 9:29 p.m.</i></p>









<div style="margin-top: 1.5em;">
 <b style="color: #575012; font-size: 10pt;">Repository: </b>
solid
</div>


<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Description </h1>
 <table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: 1px solid #b8b5a0">
 <tr>
  <td>
   <pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">1) Fix linking on windows

For some reason automoc does not pick up these files, have to explicitly
include moc_networking(_p).cpp

-------------------------------------------------------------------------------

2) Fix compilation on windows by including qt_windows.h

This file makes sure that NOMINMAX is defined so the build can succeed</pre>
  </td>
 </tr>
</table>


<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Testing </h1>
<table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: 1px solid #b8b5a0">
 <tr>
  <td>
   <pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">compiles now, didn't before</pre>
  </td>
 </tr>
</table>


<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Diffs</b> </h1>
<ul style="margin-left: 3em; padding-left: 0;">

 <li>autotests/solidhwtest.cpp <span style="color: grey">(0e3fa05351f27165eb443e90324abacf911a8b0d)</span></li>

 <li>src/solid/backends/win/windevicemanager.h <span style="color: grey">(b73ccfcd0588fe39e2a32cde501119ca3877f552)</span></li>

 <li>src/solid/backends/win/winstoragedrive.cpp <span style="color: grey">(357699fc1d0f7cca1d7e68e0a2a9f875288e5453)</span></li>

 <li>src/solid/backends/win/winstoragevolume.cpp <span style="color: grey">(eae68af57dca253d962d9802d6a9a876cb563b72)</span></li>

 <li>src/solid/backends/wmi/wmiquery.h <span style="color: grey">(8f3f0a458ad517153a0a76a812175346e84452fa)</span></li>

 <li>src/solid/networking_win.cpp <span style="color: grey">(62ebacbe8b3ee421bf8e404d72dba4619c2a7e73)</span></li>

</ul>

<p><a href="https://git.reviewboard.kde.org/r/115343/diff/" style="margin-left: 3em;">View Diff</a></p>







  </td>
 </tr>
</table>








  </div>
 </body>
</html>