<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -22,7 +22,8 @@
 #include &lt;qdir.h&gt;
 #include &lt;qfile.h&gt;
 #include &lt;qfileinfo.h&gt;
-#include &lt;q3textstream.h&gt;
+#include &lt;QTextStream&gt;
+#include &lt;QTextCodec&gt;
 #include &lt;ktempdir.h&gt;
 
 #include &quot;basketthumbcreator.h&quot;
@@ -31,16 +32,16 @@ bool BasketThumbCreator::create(const QString &amp;path, int /*width*/, int /*height
 {
 	// Create the temporar folder:
 	KTempDir tempDir;
-	tempDir.setAutoDelete(true);
+	tempDir.setAutoRemove(true);
 	QString tempFolder = tempDir.name();
 	QDir dir;
 	dir.mkdir(tempFolder);
-	const Q_ULONG BUFFER_SIZE = 1024;
+	const unsigned long int BUFFER_SIZE = 1024;
 
 	QFile file(path);
 	if (file.open(QIODevice::ReadOnly)) {
-		Q3TextStream stream(&amp;file);
-		stream.setEncoding(Q3TextStream::Latin1);
+		QTextStream stream(&amp;file);
+		stream.setCodec(QTextCodec::codecForName(&quot;UTF-8&quot;));
 		QString line = stream.readLine();
 		if (line != &quot;BasKetNP:archive&quot; &amp;&amp; line != &quot;BasKetNP:template&quot;) {
 			file.close();
@@ -49,7 +50,7 @@ bool BasketThumbCreator::create(const QString &amp;path, int /*width*/, int /*height
 		while (!stream.atEnd()) {
 			// Get Key/Value Pair From the Line to Read:
 			line = stream.readLine();
-			int index = line.find(':');
+			int index = line.indexOf(':');
 			QString key;
 			QString value;
 			if (index &gt;= 0) {
@@ -70,7 +71,7 @@ bool BasketThumbCreator::create(const QString &amp;path, int /*width*/, int /*height
 				QFile previewFile(tempFolder + &quot;preview.png&quot;);
 				if (previewFile.open(QIODevice::WriteOnly)) {
 					char *buffer = new char[BUFFER_SIZE];
-					Q_LONG sizeRead;
+					long int sizeRead;
 					while ((sizeRead = file.read(buffer, qMin(BUFFER_SIZE, size))) &gt; 0) {
 						previewFile.write(buffer, sizeRead);
 						size -= sizeRead;
@@ -91,7 +92,7 @@ bool BasketThumbCreator::create(const QString &amp;path, int /*width*/, int /*height
 				}
 				// Get the archive file:
 				char *buffer = new char[BUFFER_SIZE];
-				Q_LONG sizeRead;
+				long int sizeRead;
 				while ((sizeRead = file.read(buffer, qMin(BUFFER_SIZE, size))) &gt; 0) {
 					size -= sizeRead;
 				}
@@ -110,7 +111,7 @@ ThumbCreator::Flags BasketThumbCreator::flags() const
 
 extern &quot;C&quot;
 {
-	ThumbCreator *new_creator()
+	KDE_EXPORT ThumbCreator *new_creator()
 	{
 		return new BasketThumbCreator();
 	}</diff>
      <filename>file-integration/basketthumbcreator.cpp</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>c37d6b67d8e1e7108b028a1f641bb13a959bb31c</id>
    </parent>
  </parents>
  <author>
    <name>Dr. Robert Marmorstein</name>
    <email>robert@narnia.homeunix.com</email>
  </author>
  <url>http://github.com/kelvie/basket/commit/3f2ca5cab915346598cbd82ad868b8bc2519d479</url>
  <id>3f2ca5cab915346598cbd82ad868b8bc2519d479</id>
  <committed-date>2009-07-31T02:04:58-07:00</committed-date>
  <authored-date>2009-07-30T23:37:34-07:00</authored-date>
  <message>Port file-integration to Qt4 classes.

I think (*cough cough*) that this enables basket previews in dolphin and
so forth.  There may be more work necessary to get it to actually
function correctly.   And I'm not sure how file associations should be
set up to get it to go.  But at least it's a start.</message>
  <tree>b7eaf70d92151aa9f466d0f2d9b0b9e89e9f0edd</tree>
  <committer>
    <name>Dr. Robert Marmorstein</name>
    <email>robert@narnia.homeunix.com</email>
  </committer>
</commit>
