1.7.17
authorinsilmaril
Mon May 15 07:32:10 2006 +0000 (2006-05-15)
changeset 3267758f3ceb98a
parent 325 58eadc221caf
child 327 40c4806dfef2
1.7.17
imports.cpp
     1.1 --- a/imports.cpp	Mon May 15 07:32:10 2006 +0000
     1.2 +++ b/imports.cpp	Mon May 15 07:32:10 2006 +0000
     1.3 @@ -68,11 +68,17 @@
     1.4  {
     1.5  	transformedFile=tmpDir.path()+"/bookmarks.xml";
     1.6  
     1.7 -	XSLTProc p;
     1.8 -	p.setInputFile (tmpDir.home().path()+"/.kde/share/apps/konqueror/bookmarks.xml");
     1.9 -	p.setOutputFile (transformedFile);
    1.10 -	p.setXSLFile (vymBaseDir.path()+"/styles/firefoxbookmarks2vym.xsl");
    1.11 -	p.process();
    1.12 +	QStringList lines;
    1.13 +	QFile file( inputFile );
    1.14 +	if ( file.open( IO_ReadOnly ) ) 
    1.15 +	{
    1.16 +		QTextStream stream( &file );
    1.17 +		while ( !stream.atEnd() ) 
    1.18 +			lines += stream.readLine(); // line of text excluding '\n'
    1.19 +		file.close();
    1.20 +	}
    1.21 +	// FIXME
    1.22 +	// Generate vym from broken bookmarks above...
    1.23  
    1.24  	return true;
    1.25  }