<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="http://svn.reviewboard.kde.org/r/6207/">http://svn.reviewboard.kde.org/r/6207/</a>
     </td>
    </tr>
   </table>
   <br />





 <pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">I&#39;ll rewrite the patch for git.reviewboard.kde.org but I&#39;d like some more feedback first.. I&#39;ve got some positive feedback from SaroEngels and negative from Pino on IRC.. This protocol is intended to have functionality similar to &quot;desktop:&quot;... I&#39;m not sure if it would be better to enhance &quot;file:&quot; protocol instead (it&#39;d maybe be harder to integrate)... I&#39;ve checked some browsers (IE, Chrome, Opera) and only opera seems to implement correctly the &quot;root&quot; of &quot;file:&quot; protocol on Windows (Opera shows drive letters, IE and Chrome gives &quot;not found&quot; for &quot;file:///&quot;; KDE points &quot;file:///&quot;, &quot;file:&quot; etc.. to &quot;C:&quot;, &quot;file:/localhost/C:&quot; fails and &quot;file://c:&quot; points to &quot;smb:/c/&quot;, so some behaviors need to be fixed and/or more compliant to RFC 1630 and RFC 1738) . Please note Solid is still not much stable on windows so imo, we cannot use it to query the drives yet.</pre>
 <br />







<p>- Andrius</p>


<br />
<p>On January 1st, 2011, 2:04 p.m., Andrius Ribas wrote:</p>






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

<div>Review request for kde-windows, kdelibs, Peter Penz, Pino Toscano, Fredrik Höglund, David Faure, and Patrick Spendrin.</div>
<div>By Andrius Ribas.</div>


<p style="color: grey;"><i>Updated Jan. 1, 2011, 2:04 p.m.</i></p>




<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;">A simple &quot;computer&quot; kioslave, showing the drive letters on &quot;/&quot;, and redirecting to &quot;file&quot; otherwise.
Additionaly this patch substitutes &quot;root&quot; on Konqueror sidebar, by &quot;computer&quot;, also this changes the &quot;places&quot; panel (see below).


(as reviewboard only supports single patches) additional patch for the &quot;places&quot; panel on trunk/KDE/kdelibs:

Index: kfile/kfileplacesmodel.cpp
===================================================================
--- kfile/kfileplacesmodel.cpp        (revision 1209174)
+++ kfile/kfileplacesmodel.cpp        (working copy)
@@ -120,40 +120,9 @@
                                               &quot;Network&quot;, I18N_NOOP2(&quot;KFile System Bookmarks&quot;, &quot;Network&quot;),
                                               KUrl(&quot;remote:/&quot;), &quot;network-workgroup&quot;);
 #ifdef Q_OS_WIN
-        // adding drives
-        foreach ( const QFileInfo&amp; info, QDir::drives() ) {
-#ifndef _WIN32_WCE
-            uint type = DRIVE_UNKNOWN;
-#endif
-            QString driveIcon = &quot;drive-harddisk&quot;;
-#ifndef _WIN32_WCE
-            QT_WA({ type = GetDriveTypeW((wchar_t *)info.absoluteFilePath().utf16()); },
-                  { type = GetDriveTypeA(info.absoluteFilePath().toLocal8Bit()); });
-            // qDebug() &lt;&lt; &quot;drive &quot; &lt;&lt; info.absoluteFilePath() &lt;&lt; &quot; type: &quot; &lt;&lt; type;
-            switch (type) {
-                case DRIVE_REMOVABLE:
-                    driveIcon = &quot;drive-removable-media&quot;;
-                    break;
-                case DRIVE_FIXED:
-                    driveIcon = &quot;drive-harddisk&quot;;
-                    break;
-                case DRIVE_REMOTE:
-                    driveIcon = &quot;network-server&quot;;
-                    break;
-                case DRIVE_CDROM:
-                    driveIcon = &quot;drive-optical&quot;;
-                    break;
-                case DRIVE_RAMDISK:
-                case DRIVE_UNKNOWN:
-                case DRIVE_NO_ROOT_DIR:
-                default:
-                    driveIcon = &quot;drive-harddisk&quot;;
-            }
-#endif
-            KFilePlacesItem::createSystemBookmark(d-&gt;bookmarkManager,
-                                                  info.absoluteFilePath(), info.absoluteFilePath(),
-                                                  KUrl(info.absoluteFilePath()), driveIcon);
-        }
+        KFilePlacesItem::createSystemBookmark(d-&gt;bookmarkManager,
+                                              &quot;Computer&quot;, I18N_NOOP2(&quot;KFile System Bookmarks&quot;, &quot;Computer&quot;),
+                                              KUrl(&quot;computer:&quot;), &quot;Computer&quot;);
 #else
         KFilePlacesItem::createSystemBookmark(d-&gt;bookmarkManager,
                                               &quot;Root&quot;, I18N_NOOP2(&quot;KFile System Bookmarks&quot;, &quot;Root&quot;),
</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;">Tested using MSVC 2008 on a windows 7 machine</pre>
  </td>
 </tr>
</table>



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


 <a href="https://bugs.kde.org/show_bug.cgi?id=163448">163448</a>, 

 <a href="https://bugs.kde.org/show_bug.cgi?id=169628">169628</a>


</div>


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

 <li>trunk/KDE/kdebase/apps/konqueror/sidebar/default_entries/CMakeLists.txt <span style="color: grey">(1209179)</span></li>

 <li>trunk/KDE/kdebase/apps/konqueror/sidebar/default_entries/computer.desktop <span style="color: grey">(PRE-CREATION)</span></li>

 <li>trunk/KDE/kdebase/runtime/kioslave/CMakeLists.txt <span style="color: grey">(1209179)</span></li>

 <li>trunk/KDE/kdebase/runtime/kioslave/computer/CMakeLists.txt <span style="color: grey">(PRE-CREATION)</span></li>

 <li>trunk/KDE/kdebase/runtime/kioslave/computer/Messages.sh <span style="color: grey">(PRE-CREATION)</span></li>

 <li>trunk/KDE/kdebase/runtime/kioslave/computer/computer.protocol <span style="color: grey">(PRE-CREATION)</span></li>

 <li>trunk/KDE/kdebase/runtime/kioslave/computer/kio_computer.h <span style="color: grey">(PRE-CREATION)</span></li>

 <li>trunk/KDE/kdebase/runtime/kioslave/computer/kio_computer.cpp <span style="color: grey">(PRE-CREATION)</span></li>

</ul>

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



<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Screenshots </h1>

<div>

 <a href="http://svn.reviewboard.kde.org/r/6207/s/589/"><img src="http://svn.reviewboard.kde.org/media/uploaded/images/2010/12/26/DriveLetter2_400x100.png" style="border: 1px black solid;" alt="Konqueror with sidebar" /></a>

 <a href="http://svn.reviewboard.kde.org/r/6207/s/590/"><img src="http://svn.reviewboard.kde.org/media/uploaded/images/2010/12/26/DriveLetter3_400x100.png" style="border: 1px black solid;" alt="Dolphin" /></a>

</div>


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








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