┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinmodel.cpp
diff options
context:
space:
mode:
authorSebastian Trueg <[email protected]>2007-12-10 12:34:56 +0000
committerSebastian Trueg <[email protected]>2007-12-10 12:34:56 +0000
commit929931b060435686d8d7a0d9a745f045a28b445b (patch)
tree19bb0e3b07b6e371a1e2d0570556d70b6a08c145 /src/dolphinmodel.cpp
parentdb5fcb7f76a08a213800c5bf23dbefcab8ed715a (diff)
Use Xesam ontology instead of NIE. Since Strigi uses Xesam and we have no mapping yet this does make much more sense.
svn path=/trunk/KDE/kdebase/apps/; revision=746846
Diffstat (limited to 'src/dolphinmodel.cpp')
-rw-r--r--src/dolphinmodel.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/dolphinmodel.cpp b/src/dolphinmodel.cpp
index 8a5b6c732..1b94e0339 100644
--- a/src/dolphinmodel.cpp
+++ b/src/dolphinmodel.cpp
@@ -29,6 +29,7 @@
#include <nepomuk/global.h>
#include <nepomuk/resource.h>
#include <nepomuk/tag.h>
+#include <Soprano/Vocabulary/Xesam>
#endif
#include <kdatetime.h>
@@ -331,7 +332,7 @@ quint32 DolphinModel::ratingForIndex(const QModelIndex& index)
const DolphinModel* dolphinModel = static_cast<const DolphinModel*>(index.model());
KFileItem item = dolphinModel->itemForIndex(index);
if (!item.isNull()) {
- const Nepomuk::Resource resource(item.url().url(), Nepomuk::NFO::File());
+ const Nepomuk::Resource resource(item.url().url(), Soprano::Vocabulary::Xesam::File());
rating = resource.rating();
}
return rating;
@@ -349,7 +350,7 @@ QString DolphinModel::tagsForIndex(const QModelIndex& index)
const DolphinModel* dolphinModel = static_cast<const DolphinModel*>(index.model());
KFileItem item = dolphinModel->itemForIndex(index);
if (!item.isNull()) {
- const Nepomuk::Resource resource(item.url().url(), Nepomuk::NFO::File());
+ const Nepomuk::Resource resource(item.url().url(), Soprano::Vocabulary::Xesam::File());
const QList<Nepomuk::Tag> tags = resource.tags();
QStringList stringList;
foreach (const Nepomuk::Tag& tag, tags) {