FaviconFromBlob::FaviconFromBlob(const QString &profileName, BuildQuery *buildQuery, const QString &blobColumn, FetchSqlite *fetchSqlite, QObject *parent) : Favicon(parent), m_buildQuery(buildQuery), m_blobcolumn(blobColumn), m_fetchsqlite(fetchSqlite) { m_profileCacheDirectory = QString("%1/KRunner-Favicons-%2") .arg(QStandardPaths::writableLocation(QStandardPaths::CacheLocation)) .arg(profileName); //qDebug() << "got cache directory: " << m_profileCacheDirectory; cleanCacheDirectory(); QDir().mkpath(m_profileCacheDirectory); }
FaviconFromBlob::FaviconFromBlob(const QString &profileName, BuildQuery *buildQuery, const QString &blobColumn, FetchSqlite *fetchSqlite, QObject *parent) : Favicon(parent), m_buildQuery(buildQuery), m_blobcolumn(blobColumn), m_fetchsqlite(fetchSqlite) { m_profileCacheDirectory = QString("%1/KRunner-Favicons-%2") .arg(KStandardDirs::locateLocal("cache", "")) .arg(profileName); kDebug(kdbg_code) << "got cache directory: " << m_profileCacheDirectory; cleanCacheDirectory(); QDir().mkpath(m_profileCacheDirectory); }
FaviconFromBlob::~FaviconFromBlob() { cleanCacheDirectory(); delete m_buildQuery; }