File indexing completed on 2025-02-16 13:03:32
0001 #include "docbookxslt.h" 0002 #ifndef MEINPROC_NO_KARCHIVE 0003 #include <KCompressionDevice> 0004 #else 0005 #include "loggingcategory.h" 0006 #endif 0007 0008 bool KDocTools::saveToCache(const QString &contents, const QString &filename) 0009 { 0010 #ifndef MEINPROC_NO_KARCHIVE 0011 KCompressionDevice fd(filename); 0012 0013 if (!fd.open(QIODevice::WriteOnly)) { 0014 return false; 0015 } 0016 0017 fd.write(contents.toUtf8()); 0018 fd.close(); 0019 #else 0020 qCWarning(KDocToolsLog) << "This function is dummy because KArchive support has been disabled. " 0021 "This mode should be enabled only for specific usage on KDE infrastructure."; 0022 Q_UNUSED(contents) 0023 Q_UNUSED(filename) 0024 #endif 0025 return true; 0026 }