void parseXml()
{
+ // kDebug() << content;
KDecompressor kdecompressor;
- if (!kdecompressor.setType(KDecompressor::TypeGZip)
- || !kdecompressor.process(content.toAscii())) {
+ if (!kdecompressor.setType(KDecompressor::TypeGZip)) {
+ kWarning() << "Could not set decompressor type" << kdecompressor.errorString();
+ return;
+ }
+
+ QFile contentFile(content);
+ if (!contentFile.open(QFile::ReadOnly)) {
+ kWarning() << "Could open content file" << content << contentFile.errorString();
+ return;
+ }
+
+ if (!kdecompressor.process(contentFile.readAll())) {
kWarning() << "Could not decompress content" << kdecompressor.errorString();
return;
}
}
}
- //kDebug() << groups;
+ // kDebug() << groups;
}
};