[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/4.4/kdebase/runtime/nepomuk/services/filewatch
From: Sebastian Trueg <sebastian () trueg ! de>
Date: 2010-05-23 14:44:16
Message-ID: 20100523144416.BB0CEAC8BD () svn ! kde ! org
[Download RAW message or body]
SVN commit 1129726 by trueg:
Backport: Also update the filename property when moving a file resource.
M +5 -0 CMakeLists.txt
M +3 -0 metadatamover.cpp
--- branches/KDE/4.4/kdebase/runtime/nepomuk/services/filewatch/CMakeLists.txt #1129725:1129726
@@ -23,6 +23,11 @@
"NIE"
"Nepomuk::Vocabulary"
"trig")
+soprano_add_ontology(SRCS
+ ${SHAREDDESKTOPONTOLOGIES_ROOT_DIR}/nie/nfo.trig
+ "NFO"
+ "Nepomuk::Vocabulary"
+ "trig")
kde4_add_plugin(nepomukfilewatch ${SRCS})
--- branches/KDE/4.4/kdebase/runtime/nepomuk/services/filewatch/metadatamover.cpp #1129725:1129726
@@ -18,6 +18,7 @@
#include "metadatamover.h"
#include "nie.h"
+#include "nfo.h"
#include <QtCore/QDir>
#include <QtCore/QRegExp>
@@ -222,6 +223,8 @@
//
Resource newResource( newResourceUri );
newResource.setProperty( Nepomuk::Vocabulary::NIE::url(), to );
+ if ( newResource.hasProperty( Nepomuk::Vocabulary::NFO::fileName() ) )
+ newResource.setProperty( Nepomuk::Vocabulary::NFO::fileName(), to.fileName() );
Resource newParent( to.directory( KUrl::IgnoreTrailingSlash ) );
if ( newParent.exists() ) {
newResource.setProperty( Nepomuk::Vocabulary::NIE::isPartOf(), newParent );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic