#include <KDebug>
#include "kdenlivesettings.h"
-#include <KGlobalSettings>
-#include <KMessageBox>
-#include <KFileDialog>
#include <kio/job.h>
-#include <KIO/NetAccess>
-#include <Solid/Networking>
-#include <KRun>
-
-#ifdef USE_NEPOMUK
-#include <Nepomuk/Variant>
-#include <Nepomuk/Resource>
-#include <Nepomuk/ResourceManager>
-#include <Soprano/Vocabulary/NAO>
-#include <Nepomuk/Vocabulary/NIE>
-#include <Nepomuk/Vocabulary/NDO>
-#endif
+#include <KLocale>
#ifdef USE_QJSON
#include <qjson/parser.h>
#include <Solid/Networking>
#include <KRun>
-#ifdef USE_NEPOMUK
+#ifdef USE_NEPOMUK AND KDE_IS_VERSION(4,6,0)
#include <Nepomuk/Variant>
#include <Nepomuk/Resource>
#include <Nepomuk/ResourceManager>
#include <Nepomuk/Vocabulary/NDO>
#endif
-
ResourceWidget::ResourceWidget(const QString & folder, QWidget * parent) :
QDialog(parent),
m_folder(folder),
connect(page_number, SIGNAL(valueChanged(int)), this, SLOT(slotStartSearch(int)));
sound_box->setEnabled(false);
search_text->setFocus();
+#ifdef USE_NEPOMUK AND KDE_IS_VERSION(4,6,0)
Nepomuk::ResourceManager::instance()->init();
+#endif
slotChangeService();
}
if (saveUrl.isEmpty()) return;
if (KIO::NetAccess::download(KUrl(m_currentInfo.itemDownload), saveUrl, this)) {
const KUrl filePath = KUrl(saveUrl);
-#ifdef USE_NEPOMUK
+#ifdef USE_NEPOMUK AND KDE_IS_VERSION(4,6,0)
Nepomuk::Resource res( filePath );
res.setProperty( Nepomuk::Vocabulary::NIE::license(), (Nepomuk::Variant) item_license->text() );
res.setProperty( Nepomuk::Vocabulary::NIE::licenseType(), (Nepomuk::Variant) item_license->url() );