#ifndef KFILEITEMMODELROLESUPDATER_H
#define KFILEITEMMODELROLESUPDATER_H
-#include <config-nepomuk.h>
+#include <config-baloo.h>
#include <KFileItem>
#include <kitemviews/kitemmodelbase.h>
-#include <libdolphin_export.h>
+#include "libdolphin_export.h"
#include <QObject>
#include <QSet>
class KDirectoryContentsCounter;
class KFileItemModel;
-class KJob;
class QPixmap;
class QTimer;
-#ifdef HAVE_NEPOMUK
- namespace Nepomuk2
- {
- class ResourceWatcher;
- class Resource;
- namespace Types
- {
- class Property;
- }
- }
-#else
- // Required for the slot applyChangedNepomukRoles() that
- // cannot be ifdefined due to moc.
- namespace Nepomuk2
+namespace KIO {
+ class PreviewJob;
+}
+
+#ifdef HAVE_BALOO
+ namespace Baloo
{
- class Resource;
- namespace Types
- {
- class Property;
- }
+ class FileMonitor;
}
#endif
*/
void resolveRecentlyChangedItems();
- void applyChangedNepomukRoles(const Nepomuk2::Resource& resource, const Nepomuk2::Types::Property& property);
+ void applyChangedBalooRoles(const QString& file);
void slotDirectoryContentsCountReceived(const QString& path, int count);
ResolveFast,
ResolveAll
};
- bool applyResolvedRoles(const KFileItem& item, ResolveHint hint);
+ bool applyResolvedRoles(int index, ResolveHint hint);
QHash<QByteArray, QVariant> rolesData(const KFileItem& item);
/**
// A new preview job will be started from them once the first one finishes.
KFileItemList m_pendingPreviewItems;
- KJob* m_previewJob;
+ KIO::PreviewJob* m_previewJob;
// When downloading or copying large files, the slot slotItemsChanged()
// will be called periodically within a quite short delay. To prevent
KDirectoryContentsCounter* m_directoryContentsCounter;
-#ifdef HAVE_NEPOMUK
- Nepomuk2::ResourceWatcher* m_nepomukResourceWatcher;
- mutable QHash<QUrl, KUrl> m_nepomukUriItems;
+#ifdef HAVE_BALOO
+ Baloo::FileMonitor* m_balooFileMonitor;
#endif
};