add_definitions(-DUSE_NEPOMUKCORE)
include_directories(${NEPOMUK_CORE_INCLUDE_DIR})
target_link_libraries(kdenlive ${NEPOMUK_CORE_LIBRARY})
-else(NepomukWidgets_FOUND)
+else()
if(Nepomuk_FOUND)
add_definitions(-DUSE_NEPOMUK)
include_directories(${NEPOMUK_INCLUDES})
#include <KRun>
#ifdef USE_NEPOMUK
-#if KDE_IS_VERSION(4,6,0)
-#include <Nepomuk/Variant>
-#include <Nepomuk/Resource>
-#include <Nepomuk/ResourceManager>
-#include <Nepomuk/Vocabulary/NIE>
-#endif
+ #if KDE_IS_VERSION(4,6,0)
+ #include <Nepomuk/Variant>
+ #include <Nepomuk/Resource>
+ #include <Nepomuk/ResourceManager>
+ #include <Nepomuk/Vocabulary/NIE>
+ #endif
#endif
#ifdef USE_NEPOMUKCORE
-#include <Nepomuk2/Variant>
-#include <Nepomuk2/Resource>
-#include <Nepomuk2/ResourceManager>
-#include <Nepomuk2/Vocabulary/NIE>
+ #include <Nepomuk2/Variant>
+ #include <Nepomuk2/Resource>
+ #include <Nepomuk2/ResourceManager>
+ #include <Nepomuk2/Vocabulary/NIE>
#endif
// Check for Nepomuk metadata
#ifdef USE_NEPOMUK
-
-#if KDE_IS_VERSION(4,6,0)
+ #if KDE_IS_VERSION(4,6,0)
if (!url.isEmpty()) {
Nepomuk::ResourceManager::instance()->init();
Nepomuk::Resource res( url.path() );
else m_view.clip_license->setHidden(true);
}
else m_view.clip_license->setHidden(true);
-#else
+ #else
m_view.clip_license->setHidden(true);
-#endif
-
+ #endif
#else
-
-#ifdef USE_NEPOMUKCORE
+ #ifdef USE_NEPOMUKCORE
if (!url.isEmpty()) {
Nepomuk2::ResourceManager::instance()->init();
else m_view.clip_license->setHidden(true);
}
else m_view.clip_license->setHidden(true);
-#else
+ #else
m_view.clip_license->setHidden(true);
-#endif
-
+ #endif
#endif
slotFillMarkersList(m_clip);
#include <KHBox>
#ifdef USE_NEPOMUK
-#include <nepomuk/global.h>
-#include <nepomuk/resourcemanager.h>
-#include <Nepomuk/Resource>
-//#include <nepomuk/tag.h>
+ #include <nepomuk/global.h>
+ #include <nepomuk/resourcemanager.h>
+ #include <Nepomuk/Resource>
+ //#include <nepomuk/tag.h>
#endif
#ifdef USE_NEPOMUKCORE
-#include <nepomuk2/resourcemanager.h>
-#include <Nepomuk2/Resource>
+ #include <nepomuk2/resourcemanager.h>
+ #include <Nepomuk2/Resource>
#endif
#include <QMouseEvent>
#include <KFileItem>
#ifdef USE_NEPOMUK
-#if KDE_IS_VERSION(4,6,0)
-#include <Nepomuk/Variant>
-#include <Nepomuk/Resource>
-#include <Nepomuk/ResourceManager>
-#include <Nepomuk/Vocabulary/NIE>
-#include <Nepomuk/Vocabulary/NCO>
-#include <Nepomuk/Vocabulary/NDO>
-#endif
+ #if KDE_IS_VERSION(4,6,0)
+ #include <Nepomuk/Variant>
+ #include <Nepomuk/Resource>
+ #include <Nepomuk/ResourceManager>
+ #include <Nepomuk/Vocabulary/NIE>
+ #include <Nepomuk/Vocabulary/NCO>
+ #include <Nepomuk/Vocabulary/NDO>
+ #endif
#endif
#ifdef USE_NEPOMUKCORE
-#include <Nepomuk2/Variant>
-#include <Nepomuk2/Resource>
-#include <Nepomuk2/ResourceManager>
-#include <Nepomuk2/Vocabulary/NIE>
-#include <Nepomuk2/Vocabulary/NCO>
-#include <Nepomuk2/Vocabulary/NDO>
+ #include <Nepomuk2/Variant>
+ #include <Nepomuk2/Resource>
+ #include <Nepomuk2/ResourceManager>
+ #include <Nepomuk2/Vocabulary/NIE>
+ #include <Nepomuk2/Vocabulary/NCO>
+ #include <Nepomuk2/Vocabulary/NDO>
#endif
ResourceWidget::ResourceWidget(const QString & folder, QWidget * parent) :
sound_box->setEnabled(false);
search_text->setFocus();
#ifdef USE_NEPOMUK
-#if KDE_IS_VERSION(4,6,0)
+ #if KDE_IS_VERSION(4,6,0)
Nepomuk::ResourceManager::instance()->init();
-#endif
+ #endif
#endif
slotChangeService();
loadConfig();
KIO::FileCopyJob* copyJob = static_cast<KIO::FileCopyJob*>( job );
const KUrl filePath = copyJob->destUrl();
#ifdef USE_NEPOMUK
-#if KDE_IS_VERSION(4,6,0)
+ #if KDE_IS_VERSION(4,6,0)
Nepomuk::Resource res( filePath );
res.setProperty( Nepomuk::Vocabulary::NIE::license(), (Nepomuk::Variant) job->property("license") );
res.setProperty( Nepomuk::Vocabulary::NIE::licenseType(), (Nepomuk::Variant) job->property("licenseurl") );
res.setProperty( Nepomuk::Vocabulary::NCO::creator(), (Nepomuk::Variant) job->property("author") );
//res.setDescription(item_description->toPlainText());
//res.setProperty( Soprano::Vocabulary::NAO::description(),
-#endif
+ #endif
#endif
#ifdef USE_NEPOMUKCORE