# HG changeset patch
# User insilmaril
# Date 1147678330 0
# Node ID 7758f3ceb98a77c6d01b483293b04e76f59ac250
# Parent  58eadc221cafb1f2d5939dfbbefc71df1ebb1246
1.7.17

diff -r 58eadc221caf -r 7758f3ceb98a imports.cpp
--- a/imports.cpp	Mon May 15 07:32:10 2006 +0000
+++ b/imports.cpp	Mon May 15 07:32:10 2006 +0000
@@ -68,11 +68,17 @@
 {
 	transformedFile=tmpDir.path()+"/bookmarks.xml";
 
-	XSLTProc p;
-	p.setInputFile (tmpDir.home().path()+"/.kde/share/apps/konqueror/bookmarks.xml");
-	p.setOutputFile (transformedFile);
-	p.setXSLFile (vymBaseDir.path()+"/styles/firefoxbookmarks2vym.xsl");
-	p.process();
+	QStringList lines;
+	QFile file( inputFile );
+	if ( file.open( IO_ReadOnly ) ) 
+	{
+		QTextStream stream( &file );
+		while ( !stream.atEnd() ) 
+			lines += stream.readLine(); // line of text excluding '\n'
+		file.close();
+	}
+	// FIXME
+	// Generate vym from broken bookmarks above...
 
 	return true;
 }