Hello community, here is the log from the commit of package kio-extras5 for openSUSE:Factory checked in at 2016-11-12 13:37:57 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/kio-extras5 (Old) and /work/SRC/openSUSE:Factory/.kio-extras5.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "kio-extras5" Changes: -------- --- /work/SRC/openSUSE:Factory/kio-extras5/kio-extras5.changes 2016-10-18 10:19:04.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.kio-extras5.new/kio-extras5.changes 2016-11-12 13:37:59.000000000 +0100 @@ -1,0 +2,7 @@ +Wed Nov 9 06:18:41 UTC 2016 - lbeltr...@kde.org + +- Update to KDE Applications 16.08.3 + * KDE Applications 16.08.3 + * https://www.kde.org/announcements/announce-applications-16.08.3.php + +------------------------------------------------------------------- Old: ---- kio-extras-16.08.2.tar.xz New: ---- kio-extras-16.08.3.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ kio-extras5.spec ++++++ --- /var/tmp/diff_new_pack.A2pOfc/_old 2016-11-12 13:37:59.000000000 +0100 +++ /var/tmp/diff_new_pack.A2pOfc/_new 2016-11-12 13:37:59.000000000 +0100 @@ -17,7 +17,7 @@ Name: kio-extras5 -Version: 16.08.2 +Version: 16.08.3 Release: 0 Summary: Additional KIO-slaves for KDE applications License: GPL-2.0+ ++++++ kio-extras-16.08.2.tar.xz -> kio-extras-16.08.3.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kio-extras-16.08.2/activities/fileitemplugin/kactivitymanagerd_fileitem_linking_plugin.desktop new/kio-extras-16.08.3/activities/fileitemplugin/kactivitymanagerd_fileitem_linking_plugin.desktop --- old/kio-extras-16.08.2/activities/fileitemplugin/kactivitymanagerd_fileitem_linking_plugin.desktop 2016-09-09 13:57:08.000000000 +0200 +++ new/kio-extras-16.08.3/activities/fileitemplugin/kactivitymanagerd_fileitem_linking_plugin.desktop 2016-11-07 13:21:48.000000000 +0100 @@ -18,7 +18,7 @@ Name[is]=Tengiviðbót fyrir skrá-í-virkni Name[it]=Estensione di collegamento tra file e attività Name[km]=ឯកសារទៅកម្មវិធីជំនួយកំណត់ជួរសកម្មភាព -Name[ko]=활동 연결 플러그인 파일 +Name[ko]=파일 대 활동 연결 플러그인 Name[lt]=Failo pririšimo prie veiklos papildinys Name[nb]=Programtillegg som binder fil til aktivitet Name[nl]=Plug-in voor koppelen van bestand aan activiteit diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kio-extras-16.08.2/filenamesearch/CMakeLists.txt new/kio-extras-16.08.3/filenamesearch/CMakeLists.txt --- old/kio-extras-16.08.2/filenamesearch/CMakeLists.txt 2016-09-09 13:57:08.000000000 +0200 +++ new/kio-extras-16.08.3/filenamesearch/CMakeLists.txt 2016-11-07 13:21:48.000000000 +0100 @@ -1,6 +1,8 @@ add_library(kio_filenamesearch MODULE kio_filenamesearch.cpp) -target_link_libraries(kio_filenamesearch KF5::KIOCore) +target_link_libraries(kio_filenamesearch KF5::KIOCore KF5::DBusAddons) set_target_properties(kio_filenamesearch PROPERTIES OUTPUT_NAME "filenamesearch") install(TARGETS kio_filenamesearch DESTINATION ${PLUGIN_INSTALL_DIR}/kf5/kio) install(FILES filenamesearch.protocol DESTINATION ${SERVICES_INSTALL_DIR}) + +add_subdirectory(kded) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kio-extras-16.08.2/filenamesearch/kded/CMakeLists.txt new/kio-extras-16.08.3/filenamesearch/kded/CMakeLists.txt --- old/kio-extras-16.08.2/filenamesearch/kded/CMakeLists.txt 1970-01-01 01:00:00.000000000 +0100 +++ new/kio-extras-16.08.3/filenamesearch/kded/CMakeLists.txt 2016-11-07 13:21:48.000000000 +0100 @@ -0,0 +1,13 @@ +set (KDED_FILENAMESEARCH_SRCS + filenamesearchmodule.cpp +) + +add_library(filenamesearchmodule MODULE ${KDED_FILENAMESEARCH_SRCS}) +kcoreaddons_desktop_to_json(filenamesearchmodule filenamesearchmodule.desktop) + +target_link_libraries(filenamesearchmodule + KF5::DBusAddons + KF5::KIOCore +) + +install(TARGETS filenamesearchmodule DESTINATION ${PLUGIN_INSTALL_DIR}/kf5/kded) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kio-extras-16.08.2/filenamesearch/kded/filenamesearchmodule.cpp new/kio-extras-16.08.3/filenamesearch/kded/filenamesearchmodule.cpp --- old/kio-extras-16.08.2/filenamesearch/kded/filenamesearchmodule.cpp 1970-01-01 01:00:00.000000000 +0100 +++ new/kio-extras-16.08.3/filenamesearch/kded/filenamesearchmodule.cpp 2016-11-07 13:21:48.000000000 +0100 @@ -0,0 +1,109 @@ +/* + * This file is part of the KDE KIO-extras Project + * Copyright (C) 2016 Anthony Fieroni <bvb...@abv.bg> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) version 3, or any + * later version accepted by the membership of KDE e.V. (or its + * successor approved by the membership of KDE e.V.), which shall + * act as a proxy defined in Section 6 of version 3 of the license. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see <http://www.gnu.org/licenses/>. + * + */ + +#include "filenamesearchmodule.h" + +#include <QDBusConnection> +#include <QUrl> + +#include <KPluginFactory> + +FileNameSearchModule::FileNameSearchModule(QObject* parent, const QVariantList&) + : KDEDModule(parent) + , m_dirNotify(QString(), QString(), QDBusConnection::sessionBus()) +{ + connect(&m_dirNotify, &OrgKdeKDirNotifyInterface::enteredDirectory, + this, &FileNameSearchModule::registerSearchUrl); + connect(&m_dirNotify, &OrgKdeKDirNotifyInterface::leftDirectory, + this, &FileNameSearchModule::unregisterSearchUrl); + connect(&m_dirNotify, &OrgKdeKDirNotifyInterface::FilesAdded, + this, &FileNameSearchModule::slotFilesAdded); + connect(&m_dirNotify, &OrgKdeKDirNotifyInterface::FilesChanged, + this, &FileNameSearchModule::slotFilesChanged); + connect(&m_dirNotify, &OrgKdeKDirNotifyInterface::FilesRemoved, + this, &FileNameSearchModule::slotFilesRemoved); +} + +void FileNameSearchModule::registerSearchUrl(const QString &urlString) +{ + if (urlString.startsWith(QStringLiteral("filenamesearch"))) { + m_searchUrls << QUrl(urlString); + } +} + +void FileNameSearchModule::unregisterSearchUrl(const QString &urlString) +{ + if (urlString.startsWith(QStringLiteral("filenamesearch"))) { + m_searchUrls.removeAll(QUrl(urlString)); + } +} + +void FileNameSearchModule::slotFilesAdded(const QString &urlString) +{ + for (const QUrl &dirUrl : m_searchUrls) { + if (urlString.startsWith(dirUrl.path())) { + org::kde::KDirNotify::emitFilesAdded(dirUrl); + } + } +} + +void FileNameSearchModule::slotFilesChanged(const QStringList &files) +{ + QList<QUrl> fileList; + fileList.reserve(files.count()); + for (const QUrl &dirUrl : m_searchUrls) { + for (const QString &file : files) { + if (file.startsWith(dirUrl.path())) { + QUrl url(file); + url.setScheme(QStringLiteral("filenamesearch")); + fileList << url; + } + } + } + if (!fileList.isEmpty()) { + org::kde::KDirNotify::emitFilesChanged(fileList); + } +} + +void FileNameSearchModule::slotFilesRemoved(const QStringList &files) +{ + QList<QUrl> fileList; + fileList.reserve(files.count()); + for (const QUrl &dirUrl : m_searchUrls) { + for (const QString &file : files) { + if (file.startsWith(dirUrl.path())) { + QUrl url(file); + url.setScheme(QStringLiteral("filenamesearch")); + fileList << url; + } + } + } + if (!fileList.isEmpty()) { + org::kde::KDirNotify::emitFilesRemoved(fileList); + } +} + +K_PLUGIN_FACTORY_WITH_JSON(Factory, + "filenamesearchmodule.json", + registerPlugin<FileNameSearchModule>();) + +#include "filenamesearchmodule.moc" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kio-extras-16.08.2/filenamesearch/kded/filenamesearchmodule.desktop new/kio-extras-16.08.3/filenamesearch/kded/filenamesearchmodule.desktop --- old/kio-extras-16.08.2/filenamesearch/kded/filenamesearchmodule.desktop 1970-01-01 01:00:00.000000000 +0100 +++ new/kio-extras-16.08.3/filenamesearch/kded/filenamesearchmodule.desktop 2016-11-07 13:21:48.000000000 +0100 @@ -0,0 +1,13 @@ +[Desktop Entry] +Type=Service +Icon=edit-find +ServiceTypes=KDEDModule +X-KDE-ServiceTypes=KDEDModule +X-KDE-Library=filenamesearchmodule +X-KDE-FactoryName=filenamesearchmodule +X-KDE-DBus-ModuleName=filenamesearchmodule +X-KDE-Kded-load-on-demand=true +X-KDE-Kded-autoload=false + +Name=Search Folder Updater +Comment=Allows automatic updates of Search Folders diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kio-extras-16.08.2/filenamesearch/kded/filenamesearchmodule.h new/kio-extras-16.08.3/filenamesearch/kded/filenamesearchmodule.h --- old/kio-extras-16.08.2/filenamesearch/kded/filenamesearchmodule.h 1970-01-01 01:00:00.000000000 +0100 +++ new/kio-extras-16.08.3/filenamesearch/kded/filenamesearchmodule.h 2016-11-07 13:21:48.000000000 +0100 @@ -0,0 +1,49 @@ +/* + * This file is part of the KDE KIO-extras Project + * Copyright (C) 2016 Anthony Fieroni <bvb...@abv.bg> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) version 3, or any + * later version accepted by the membership of KDE e.V. (or its + * successor approved by the membership of KDE e.V.), which shall + * act as a proxy defined in Section 6 of version 3 of the license. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see <http://www.gnu.org/licenses/>. + * + */ + +#ifndef FILENAME_SEARCH_KDED_MODULE_H_ +#define FILENAME_SEARCH_KDED_MODULE_H_ + +#include <KDEDModule> +#include <kdirnotify.h> +#include <QUrl> + +class FileNameSearchModule : public KDEDModule +{ + Q_OBJECT + +public: + FileNameSearchModule(QObject *parent, const QVariantList&); + +private Q_SLOTS: + void registerSearchUrl(const QString &urlString); + void unregisterSearchUrl(const QString &urlString); + void slotFilesAdded(const QString &urlString); + void slotFilesChanged(const QStringList &files); + void slotFilesRemoved(const QStringList &files); + +private: + QList<QUrl> m_searchUrls; + org::kde::KDirNotify m_dirNotify; +}; + +#endif diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kio-extras-16.08.2/filenamesearch/kio_filenamesearch.cpp new/kio-extras-16.08.3/filenamesearch/kio_filenamesearch.cpp --- old/kio-extras-16.08.2/filenamesearch/kio_filenamesearch.cpp 2016-09-09 13:57:08.000000000 +0200 +++ new/kio-extras-16.08.3/filenamesearch/kio_filenamesearch.cpp 2016-11-07 13:21:48.000000000 +0100 @@ -29,12 +29,15 @@ #include <QRegularExpression> #include <QUrl> #include <QUrlQuery> +#include <QtDBus/QDBusInterface> Q_LOGGING_CATEGORY(KIO_FILENAMESEARCH, "kio_filenamesearch") FileNameSearchProtocol::FileNameSearchProtocol(const QByteArray &pool, const QByteArray &app) : SlaveBase("search", pool, app) { + QDBusInterface kded(QStringLiteral("org.kde.kded5"), QStringLiteral("/kded"), QStringLiteral("org.kde.kded5")); + kded.call(QStringLiteral("loadModule"), QStringLiteral("filenamesearchmodule")); } FileNameSearchProtocol::~FileNameSearchProtocol()