[SCM] kdeconnect packaging branch, master, updated. debian/0.9g-1-1183-g9d69498

Maximiliano Curia maxy at moszumanska.debian.org
Fri Oct 14 14:27:11 UTC 2016


Gitweb-URL: http://git.debian.org/?p=pkg-kde/kde-extras/kdeconnect.git;a=commitdiff;h=39190a4

The following commit has been merged in the master branch:
commit 39190a4a1bf5940d90bcd6e9207bca85b2964528
Author: Albert Vaca <albertvaka at gmail.com>
Date:   Sat Nov 23 01:39:10 2013 +0100

    Share plugin changed name! Please run make uninstall before make install
    
    Sharereceiver is now called share plugin (soon it will not only receive ;)
    Added a config dialog to be able to select a directory for incoming files
    Changed  Messages.sh to translate config new .ui files too
    Fixed typo in pausemusicplugin.cpp
    Fixed multiple file transfer notifications bug
    Added minimal error checking to share plugin.
---
 kded/Messages.sh                                   |  5 ++
 kded/filetransferjob.cpp                           |  3 +-
 kded/plugins/CMakeLists.txt                        |  2 +-
 kded/plugins/pausemusic/pausemusicplugin.cpp       |  4 +-
 kded/plugins/share/CMakeLists.txt                  | 54 +++++++++++++++
 kded/plugins/{sharereceiver => share}/README       |  0
 .../{sharereceiver => share}/autoclosingqfile.cpp  |  0
 .../{sharereceiver => share}/autoclosingqfile.h    |  0
 kded/plugins/share/kdeconnect_share.desktop        | 17 +++++
 kded/plugins/share/kdeconnect_share_config.desktop | 10 +++
 .../share_config.cpp}                              | 43 ++++++------
 .../pausemusic_config.h => share/share_config.h}   | 14 ++--
 kded/plugins/share/share_config.ui                 | 77 ++++++++++++++++++++++
 .../shareplugin.cpp}                               | 50 +++++++++-----
 .../sharereceiverplugin.h => share/shareplugin.h}  | 10 +--
 kded/plugins/sharereceiver/CMakeLists.txt          | 37 -----------
 .../sharereceiver/kdeconnect_sharereceiver.desktop | 37 -----------
 17 files changed, 236 insertions(+), 127 deletions(-)

diff --git a/kded/Messages.sh b/kded/Messages.sh
index c316709..59b4b10 100755
--- a/kded/Messages.sh
+++ b/kded/Messages.sh
@@ -1,5 +1,10 @@
 #!/usr/bin/env bash
 
+$EXTRACTRC `find -name '*.ui' -o -name '*.rc'` >> rc.cpp
+$XGETTEXT rc.cpp -o $podir/kdeconnect-kded.pot
+rm -f rc.cpp
+
+#.cpp (-j passed to merge into existing file)
 $XGETTEXT `find . -name '*.cpp'` -o $podir/kdeconnect-kded.pot
 
 #.desktop and .notifyrc files doesn't need to be included here
diff --git a/kded/filetransferjob.cpp b/kded/filetransferjob.cpp
index cbc068a..e1748f9 100644
--- a/kded/filetransferjob.cpp
+++ b/kded/filetransferjob.cpp
@@ -102,10 +102,9 @@ void FileTransferJob::sourceFinished()
 
     //TODO: MD5 check the file
     if (mSize > -1 && mWritten != mSize) {
-        kDebug(kdeconnect_kded()) << "Received incomplete file";
+        kDebug(kdeconnect_kded()) << "Received incomplete file (" << mWritten << " of " << mSize << " bytes)";
         setError(1);
         setErrorText(i18n("Received incomplete file"));
-        emitResult();
     } else {
         kDebug(kdeconnect_kded()) << "Finished transfer" << mDestination->url();
     }
diff --git a/kded/plugins/CMakeLists.txt b/kded/plugins/CMakeLists.txt
index f0385af..3ad10ec 100644
--- a/kded/plugins/CMakeLists.txt
+++ b/kded/plugins/CMakeLists.txt
@@ -7,6 +7,6 @@ add_subdirectory(mpriscontrol)
 add_subdirectory(clipboard)
 add_subdirectory(telephony)
 add_subdirectory(battery)
-add_subdirectory(sharereceiver)
+add_subdirectory(share)
 add_subdirectory(notifications)
 
diff --git a/kded/plugins/pausemusic/pausemusicplugin.cpp b/kded/plugins/pausemusic/pausemusicplugin.cpp
index a0e8b16..f902560 100644
--- a/kded/plugins/pausemusic/pausemusicplugin.cpp
+++ b/kded/plugins/pausemusic/pausemusicplugin.cpp
@@ -43,16 +43,14 @@ PauseMusicPlugin::PauseMusicPlugin(QObject* parent, const QVariantList& args)
 bool PauseMusicPlugin::receivePackage(const NetworkPackage& np)
 {
     //FIXME: There should be a better way to listen to changes in the config file instead of reading the value each time
-    KSharedConfigPtr config = KSharedConfig::openConfig("kdeconnect/plugins/kdeconnect_pausemusic");
+    KSharedConfigPtr config = KSharedConfig::openConfig("kdeconnect/plugins/pausemusic");
     bool pauseOnlyWhenTalking = config->group("pause_condition").readEntry("talking_only", false);
 
     if (pauseOnlyWhenTalking) {
-        qDebug() << "pause when talking";
         if (np.get<QString>("event") != "talking") {
             return true;
         }
     } else { //Pause as soon as it rings
-        qDebug() << "pause when ringing";
         if (np.get<QString>("event") != "ringing" && np.get<QString>("event") != "talking") {
             return true;
         }
diff --git a/kded/plugins/share/CMakeLists.txt b/kded/plugins/share/CMakeLists.txt
new file mode 100644
index 0000000..ae4e18f
--- /dev/null
+++ b/kded/plugins/share/CMakeLists.txt
@@ -0,0 +1,54 @@
+find_package(KDE4 REQUIRED)
+find_package(QJSON REQUIRED)
+find_package(QCA2 REQUIRED)
+
+include(KDE4Defaults)
+
+include_directories(
+    ${QJSON_INCLUDE_DIR}
+    ${QCA2_INCLUDE_DIR}
+    ${KDE4_INCLUDES}
+    ${CMAKE_SOURCE_DIR}
+)
+
+set(kdeconnect_share_SRCS
+    shareplugin.cpp
+    autoclosingqfile.cpp
+    ../kdeconnectplugin.cpp
+    ../pluginloader.cpp
+    ../../filetransferjob.cpp
+    ../../networkpackage.cpp
+    ../../device.cpp
+    ../../kdebugnamespace.cpp
+)
+
+kde4_add_plugin(kdeconnect_share ${kdeconnect_share_SRCS})
+
+target_link_libraries(kdeconnect_share
+    ${KDE4_KDECORE_LIBS}
+    ${KDE4_KDEUI_LIBS}
+    ${KDE4_KIO_LIBS}
+    ${QT_QTNETWORK_LIBRARY}
+    ${QJSON_LIBRARIES}
+    ${QCA2_LIBRARIES}
+)
+
+install(TARGETS kdeconnect_share DESTINATION ${PLUGIN_INSTALL_DIR} )
+install(FILES kdeconnect_share.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
+
+
+#######################################
+# Config
+
+set( kdeconnect_share_config_SRCS share_config.cpp )
+kde4_add_ui_files( kdeconnect_share_config_SRCS share_config.ui )
+
+kde4_add_plugin( kdeconnect_share_config ${kdeconnect_share_config_SRCS} )
+target_link_libraries( kdeconnect_share_config
+    ${KDE4_KDECORE_LIBS}
+    ${KDE4_KDEUI_LIBS}
+    ${KDE4_KIO_LIBS}
+)
+
+install(TARGETS kdeconnect_share_config DESTINATION ${PLUGIN_INSTALL_DIR} )
+install(FILES kdeconnect_share_config.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
diff --git a/kded/plugins/sharereceiver/README b/kded/plugins/share/README
similarity index 100%
rename from kded/plugins/sharereceiver/README
rename to kded/plugins/share/README
diff --git a/kded/plugins/sharereceiver/autoclosingqfile.cpp b/kded/plugins/share/autoclosingqfile.cpp
similarity index 100%
rename from kded/plugins/sharereceiver/autoclosingqfile.cpp
rename to kded/plugins/share/autoclosingqfile.cpp
diff --git a/kded/plugins/sharereceiver/autoclosingqfile.h b/kded/plugins/share/autoclosingqfile.h
similarity index 100%
rename from kded/plugins/sharereceiver/autoclosingqfile.h
rename to kded/plugins/share/autoclosingqfile.h
diff --git a/kded/plugins/share/kdeconnect_share.desktop b/kded/plugins/share/kdeconnect_share.desktop
new file mode 100644
index 0000000..242afd9
--- /dev/null
+++ b/kded/plugins/share/kdeconnect_share.desktop
@@ -0,0 +1,17 @@
+[Desktop Entry]
+Encoding=UTF-8
+Type=Service
+ServiceTypes=KdeConnect/Plugin
+X-KDE-Library=kdeconnect_share
+X-KDE-PluginInfo-Author=Albert Vaca
+X-KDE-PluginInfo-Email=albertvaka at gmail.com
+X-KDE-PluginInfo-Name=kdeconnect_share
+X-KDE-PluginInfo-Version=0.1
+X-KDE-PluginInfo-Website=http://albertvaka.wordpress.com
+X-KDE-PluginInfo-License=GPL
+X-KDE-PluginInfo-EnabledByDefault=true
+Icon=folder-downloads
+Name=Share and receive
+Comment=Receive and send files, URLs or plain text easily
+
+X-KdeConnect-SupportedPackageType=kdeconnect.share
diff --git a/kded/plugins/share/kdeconnect_share_config.desktop b/kded/plugins/share/kdeconnect_share_config.desktop
new file mode 100644
index 0000000..fc7336b
--- /dev/null
+++ b/kded/plugins/share/kdeconnect_share_config.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Type=Service
+X-KDE-ServiceTypes=KCModule
+
+X-KDE-Library=kdeconnect_share_config
+X-KDE-ParentComponents=kdeconnect_share
+
+Name=Share plugin settings
+
+Categories=Qt;KDE;X-KDE-settings-kdeconnect;
diff --git a/kded/plugins/pausemusic/pausemusic_config.cpp b/kded/plugins/share/share_config.cpp
similarity index 52%
copy from kded/plugins/pausemusic/pausemusic_config.cpp
copy to kded/plugins/share/share_config.cpp
index 9d470ea..45a90df 100644
--- a/kded/plugins/pausemusic/pausemusic_config.cpp
+++ b/kded/plugins/share/share_config.cpp
@@ -18,59 +18,62 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#include "pausemusic_config.h"
+#include "share_config.h"
+
+#include <QDesktopServices>
 
 #include <KPluginFactory>
 #include <KSharedConfig>
 #include <KConfigGroup>
+#include <KUrlRequester>
 
 #include "../../kdebugnamespace.h"
 
-#include "ui_pausemusic_config.h"
+#include "ui_share_config.h"
 
-K_PLUGIN_FACTORY(PauseMusicConfigFactory, registerPlugin<PauseMusicConfig>();)
-K_EXPORT_PLUGIN(PauseMusicConfigFactory("kdeconnect_pausemusic_config", "kdeconnect_pausemusic_config"))
+K_PLUGIN_FACTORY(ShareConfigFactory, registerPlugin<ShareConfig>();)
+K_EXPORT_PLUGIN(ShareConfigFactory("kdeconnect_share_config", "kdeconnect_share_config"))
 
-PauseMusicConfig::PauseMusicConfig(QWidget *parent, const QVariantList& )
-    : KCModule(PauseMusicConfigFactory::componentData(), parent)
-    , m_ui(new Ui::PauseMusicConfigUi())
-    , m_cfg(KSharedConfig::openConfig("kdeconnect/plugins/pausemusic"))
+ShareConfig::ShareConfig(QWidget *parent, const QVariantList& )
+    : KCModule(ShareConfigFactory::componentData(), parent)
+    , m_ui(new Ui::ShareConfigUi())
+    , m_cfg(KSharedConfig::openConfig("kdeconnect/plugins/share"))
 {
     m_ui->setupUi(this);
 
-    connect(m_ui->rad_ringing, SIGNAL(toggled(bool)), this, SLOT(changed()));
-    connect(m_ui->rad_talking, SIGNAL(toggled(bool)), this, SLOT(changed()));
+    connect(m_ui->kurlrequester, SIGNAL(textChanged(QString)), this, SLOT(changed()));
 }
 
-PauseMusicConfig::~PauseMusicConfig()
+ShareConfig::~ShareConfig()
 {
     delete m_ui;
 }
 
-void PauseMusicConfig::defaults()
+void ShareConfig::defaults()
 {
     KCModule::defaults();
-    m_ui->rad_talking->setChecked(false);
-    m_ui->rad_ringing->setChecked(true);
+
+    //TODO: Set this to the user's xdg download dir
+    m_ui->kurlrequester->setUrl(KUrl(QDesktopServices::storageLocation(QDesktopServices::DesktopLocation)));
 
     Q_EMIT changed(true);
 }
 
 
-void PauseMusicConfig::load()
+void ShareConfig::load()
 {
     KCModule::load();
-    bool talking = m_cfg->group("pause_condition").readEntry("talking_only", false);
-    m_ui->rad_talking->setChecked(talking);
-    m_ui->rad_ringing->setChecked(!talking);
+
+    m_ui->kurlrequester->setUrl(m_cfg->group("receive").readEntry("path", QDesktopServices::storageLocation(QDesktopServices::DesktopLocation)));
 
     Q_EMIT changed(false);
 }
 
 
-void PauseMusicConfig::save()
+void ShareConfig::save()
 {
-    m_cfg->group("pause_condition").writeEntry("talking_only", m_ui->rad_talking->isChecked());
+    m_cfg->group("receive").writeEntry("path", m_ui->kurlrequester->url());
+
     KCModule::save();
 
     Q_EMIT changed(false);
diff --git a/kded/plugins/pausemusic/pausemusic_config.h b/kded/plugins/share/share_config.h
similarity index 83%
copy from kded/plugins/pausemusic/pausemusic_config.h
copy to kded/plugins/share/share_config.h
index 075e295..7743fcc 100644
--- a/kded/plugins/pausemusic/pausemusic_config.h
+++ b/kded/plugins/share/share_config.h
@@ -18,23 +18,23 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifndef PAUSEMUSIC_CONFIG_H
-#define PAUSEMUSIC_CONFIG_H
+#ifndef SHARE_CONFIG_H
+#define SHARE_CONFIG_H
 
 #include <kcmodule.h>
 #include <ksharedconfig.h>
 
 namespace Ui {
-    class PauseMusicConfigUi;
+    class ShareConfigUi;
 }
 
-class PauseMusicConfig
+class ShareConfig
     : public KCModule
 {
     Q_OBJECT
 public:
-    PauseMusicConfig(QWidget *parent, const QVariantList&);
-    virtual ~PauseMusicConfig();
+    ShareConfig(QWidget *parent, const QVariantList&);
+    virtual ~ShareConfig();
 
 public Q_SLOTS:
     virtual void save();
@@ -42,7 +42,7 @@ public Q_SLOTS:
     virtual void defaults();
 
 private:
-    Ui::PauseMusicConfigUi* m_ui;
+    Ui::ShareConfigUi* m_ui;
     KSharedConfigPtr m_cfg;
 
 };
diff --git a/kded/plugins/share/share_config.ui b/kded/plugins/share/share_config.ui
new file mode 100644
index 0000000..5f355e4
--- /dev/null
+++ b/kded/plugins/share/share_config.ui
@@ -0,0 +1,77 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ui version="4.0">
+ <class>ShareConfigUi</class>
+ <widget class="QWidget" name="ShareConfigUi">
+  <property name="windowModality">
+   <enum>Qt::WindowModal</enum>
+  </property>
+  <property name="geometry">
+   <rect>
+    <x>0</x>
+    <y>0</y>
+    <width>411</width>
+    <height>165</height>
+   </rect>
+  </property>
+  <property name="windowTitle">
+   <string>Share plugin settings</string>
+  </property>
+  <layout class="QVBoxLayout" name="verticalLayout_2">
+   <item>
+    <widget class="QGroupBox" name="groupBox">
+     <property name="title">
+      <string>Receiving</string>
+     </property>
+     <layout class="QVBoxLayout" name="verticalLayout">
+      <item>
+       <layout class="QHBoxLayout" name="horizontalLayout">
+        <item>
+         <widget class="QLabel" name="label">
+          <property name="text">
+           <string>Save files in:</string>
+          </property>
+         </widget>
+        </item>
+        <item>
+         <widget class="KUrlRequester" name="kurlrequester">
+          <property name="acceptDrops">
+           <bool>false</bool>
+          </property>
+          <property name="mode">
+           <set>KFile::Directory|KFile::ExistingOnly|KFile::LocalOnly</set>
+          </property>
+          <property name="text">
+           <string/>
+          </property>
+         </widget>
+        </item>
+       </layout>
+      </item>
+     </layout>
+    </widget>
+   </item>
+   <item>
+    <spacer name="verticalSpacer">
+     <property name="orientation">
+      <enum>Qt::Vertical</enum>
+     </property>
+     <property name="sizeHint" stdset="0">
+      <size>
+       <width>20</width>
+       <height>40</height>
+      </size>
+     </property>
+    </spacer>
+   </item>
+  </layout>
+ </widget>
+ <customwidgets>
+  <customwidget>
+   <class>KUrlRequester</class>
+   <extends>QFrame</extends>
+   <header>kurlrequester.h</header>
+  </customwidget>
+ </customwidgets>
+ <resources/>
+ <connections/>
+</ui>
diff --git a/kded/plugins/sharereceiver/sharereceiverplugin.cpp b/kded/plugins/share/shareplugin.cpp
similarity index 73%
rename from kded/plugins/sharereceiver/sharereceiverplugin.cpp
rename to kded/plugins/share/shareplugin.cpp
index 3577531..1cf29c9 100644
--- a/kded/plugins/sharereceiver/sharereceiverplugin.cpp
+++ b/kded/plugins/share/shareplugin.cpp
@@ -18,36 +18,54 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#include "sharereceiverplugin.h"
+#include "shareplugin.h"
 
 #include <KIcon>
 #include <KLocalizedString>
 #include <KStandardDirs>
+#include <KSharedConfig>
+#include <KConfigGroup>
 
 #include <QFile>
 #include <qprocess.h>
+#include <QDir>
 #include <QDesktopServices>
 
 #include "../../kdebugnamespace.h"
 #include "../../filetransferjob.h"
 #include "autoclosingqfile.h"
 
-K_PLUGIN_FACTORY( KdeConnectPluginFactory, registerPlugin< ShareReceiverPlugin >(); )
-K_EXPORT_PLUGIN( KdeConnectPluginFactory("kdeconnect_sharereceiver", "kdeconnect_sharereceiver") )
+K_PLUGIN_FACTORY( KdeConnectPluginFactory, registerPlugin< SharePlugin >(); )
+K_EXPORT_PLUGIN( KdeConnectPluginFactory("kdeconnect_share", "kdeconnect_share") )
 
-ShareReceiverPlugin::ShareReceiverPlugin(QObject* parent, const QVariantList& args)
+SharePlugin::SharePlugin(QObject* parent, const QVariantList& args)
     : KdeConnectPlugin(parent, args)
 {
-    //TODO: Use downloads user path
-    //TODO: Be able to change this from config
-    mDestinationDir = QDesktopServices::storageLocation(QDesktopServices::DesktopLocation);
-    if (!mDestinationDir.endsWith('/')) mDestinationDir.append('/');
+
+}
+
+QString SharePlugin::destinationDir()
+{
+    //TODO: Change this for the xdg download user dir
+    QString defaultPath = QDesktopServices::storageLocation(QDesktopServices::DesktopLocation);
+
+    //FIXME: There should be a better way to listen to changes in the config file instead of reading the value each time
+    KSharedConfigPtr config = KSharedConfig::openConfig("kdeconnect/plugins/share");
+    QString dir = config->group("receive").readEntry("path", defaultPath);
+
+    if (!dir.endsWith('/')) dir.append('/');
+
+    QDir().mkpath(KUrl(dir).path()); //Using KUrl to remove file:/// protocol, wich seems to confuse QDir.mkpath
+
+    kDebug(kdeconnect_kded()) << dir;
+
+    return dir;
 }
 
-bool ShareReceiverPlugin::receivePackage(const NetworkPackage& np)
+bool SharePlugin::receivePackage(const NetworkPackage& np)
 {
 /*
-    //TODO: Move this code to a test and add a diff between files
+    //TODO: Use this code to write a test
     if (np.type() == PACKAGE_TYPE_PING) {
 
         kDebug(kdeconnect_kded()) << "sending file" << (QDesktopServices::storageLocation(QDesktopServices::HomeLocation) + "/.bashrc");
@@ -72,7 +90,7 @@ bool ShareReceiverPlugin::receivePackage(const NetworkPackage& np)
         //kDebug(kdeconnect_kded()) << "receiving file";
         QString filename = np.get<QString>("filename", QString::number(QDateTime::currentMSecsSinceEpoch()));
         //TODO: Ask before overwritting or rename file if it already exists
-        FileTransferJob* job = np.createPayloadTransferJob(mDestinationDir + filename);
+        FileTransferJob* job = np.createPayloadTransferJob(destinationDir() + filename);
         connect(job, SIGNAL(result(KJob*)), this, SLOT(finished(KJob*)));
         job->start();
     } else if (np.has("text")) {
@@ -102,13 +120,15 @@ bool ShareReceiverPlugin::receivePackage(const NetworkPackage& np)
 
 }
 
-void ShareReceiverPlugin::finished(KJob* job)
+void SharePlugin::finished(KJob* job)
 {
     kDebug(kdeconnect_kded()) << "File transfer finished";
 
+    bool error = (job->error() != 0);
+
     FileTransferJob* transferJob = (FileTransferJob*)job;
     KNotification* notification = new KNotification("pingReceived"); //KNotification::Persistent
-    notification->setPixmap(KIcon("dialog-ok").pixmap(48, 48));
+    notification->setPixmap(KIcon(error? "edit-delete" : "dialog-ok").pixmap(48, 48));
     notification->setComponentData(KComponentData("kdeconnect", "kdeconnect"));
     notification->setTitle(i18n("Transfer finished"));
     notification->setText(transferJob->destination().fileName());
@@ -117,7 +137,7 @@ void ShareReceiverPlugin::finished(KJob* job)
     notification->sendEvent();
 }
 
-void ShareReceiverPlugin::openDestinationFolder()
+void SharePlugin::openDestinationFolder()
 {
-    QDesktopServices::openUrl(mDestinationDir);
+    QDesktopServices::openUrl(destinationDir());
 }
diff --git a/kded/plugins/sharereceiver/sharereceiverplugin.h b/kded/plugins/share/shareplugin.h
similarity index 87%
rename from kded/plugins/sharereceiver/sharereceiverplugin.h
rename to kded/plugins/share/shareplugin.h
index 1658013..119658f 100644
--- a/kded/plugins/sharereceiver/sharereceiverplugin.h
+++ b/kded/plugins/share/shareplugin.h
@@ -18,8 +18,8 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifndef SHARERECEIVERPLUGIN_H
-#define SHARERECEIVERPLUGIN_H
+#ifndef SHAREPLUGIN_H
+#define SHAREPLUGIN_H
 
 #include <KNotification>
 #include <KIO/Job>
@@ -28,13 +28,13 @@
 
 #define PACKAGE_TYPE_SHARE QLatin1String("kdeconnect.share")
 
-class ShareReceiverPlugin
+class SharePlugin
     : public KdeConnectPlugin
 {
     Q_OBJECT
 
 public:
-    explicit ShareReceiverPlugin(QObject *parent, const QVariantList &args);
+    explicit SharePlugin(QObject *parent, const QVariantList &args);
 
 public Q_SLOTS:
     virtual bool receivePackage(const NetworkPackage& np);
@@ -45,7 +45,7 @@ private Q_SLOTS:
     void openDestinationFolder();
 
 private:
-    QString mDestinationDir;
+    QString destinationDir();
 
 };
 #endif
diff --git a/kded/plugins/sharereceiver/CMakeLists.txt b/kded/plugins/sharereceiver/CMakeLists.txt
deleted file mode 100644
index aca6c00..0000000
--- a/kded/plugins/sharereceiver/CMakeLists.txt
+++ /dev/null
@@ -1,37 +0,0 @@
-find_package(KDE4 REQUIRED)
-find_package(QJSON REQUIRED)
-find_package(QCA2 REQUIRED)
-
-include(KDE4Defaults)
-
-include_directories(
-    ${QJSON_INCLUDE_DIR}
-    ${QCA2_INCLUDE_DIR}
-    ${KDE4_INCLUDES}
-    ${CMAKE_SOURCE_DIR}
-)
-
-set(kdeconnect_sharereceiver_SRCS
-    sharereceiverplugin.cpp
-    autoclosingqfile.cpp
-    ../kdeconnectplugin.cpp
-    ../pluginloader.cpp
-    ../../filetransferjob.cpp
-    ../../networkpackage.cpp
-    ../../device.cpp
-    ../../kdebugnamespace.cpp
-)
-
-kde4_add_plugin(kdeconnect_sharereceiver ${kdeconnect_sharereceiver_SRCS})
-
-target_link_libraries(kdeconnect_sharereceiver
-    ${KDE4_KDECORE_LIBS}
-    ${KDE4_KDEUI_LIBS}
-    ${KDE4_KIO_LIBS}
-    ${QT_QTNETWORK_LIBRARY}
-    ${QJSON_LIBRARIES}
-    ${QCA2_LIBRARIES}
-)
-
-install(TARGETS kdeconnect_sharereceiver DESTINATION ${PLUGIN_INSTALL_DIR} )
-install(FILES kdeconnect_sharereceiver.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
diff --git a/kded/plugins/sharereceiver/kdeconnect_sharereceiver.desktop b/kded/plugins/sharereceiver/kdeconnect_sharereceiver.desktop
deleted file mode 100644
index 74624ba..0000000
--- a/kded/plugins/sharereceiver/kdeconnect_sharereceiver.desktop
+++ /dev/null
@@ -1,37 +0,0 @@
-[Desktop Entry]
-Encoding=UTF-8
-Type=Service
-ServiceTypes=KdeConnect/Plugin
-X-KDE-Library=kdeconnect_sharereceiver
-X-KDE-PluginInfo-Author=Albert Vaca
-X-KDE-PluginInfo-Email=albertvaka at gmail.com
-X-KDE-PluginInfo-Name=kdeconnect_sharereceiver
-X-KDE-PluginInfo-Version=0.1
-X-KDE-PluginInfo-Website=http://albertvaka.wordpress.com
-X-KDE-PluginInfo-License=GPL
-X-KDE-PluginInfo-EnabledByDefault=true
-Icon=folder-downloads
-Name=Share receiver
-Name[hu]=Megosztás vevő
-Name[it]=Ricezione condivisioni
-Name[nl]=Ontvanger delen
-Name[pt]=Destinatário da partilha
-Name[pt_BR]=Destinatário do compartilhamento
-Name[ru]=Сделать ресивер общим
-Name[sv]=Dela mottagare
-Name[tr]=Paylaşım alıcı
-Name[uk]=Отримання спільних даних
-Name[x-test]=xxShare receiverxx
-Comment=Receive files and URLs shared from your phone
-Comment[hu]=A telefonról megosztott fájlok és URL-ek fogadása
-Comment[it]=Ricevi file e URL condivisi dal tuo telefono
-Comment[nl]=Ontvangen bestanden en URL's gedeeld met uw telefoon
-Comment[pt]=Receber os ficheiros e URL's partilhados a partir do seu telefone
-Comment[pt_BR]=Recebe os arquivos e URLs compartilhados a partir do seu telefone
-Comment[ru]=Получать общие файлы и адреса URL с телефона
-Comment[sv]=Ta emot filer och webbadresser att dela från din telefon
-Comment[tr]=Telefonunuzdan paylaşılan dosya ve adresleri alın
-Comment[uk]=Отримання файлів та адрес, наданих у спільне користування з вашого телефону
-Comment[x-test]=xxReceive files and URLs shared from your phonexx
-
-X-KdeConnect-SupportedPackageType=kdeconnect.share

-- 
kdeconnect packaging



More information about the pkg-kde-commits mailing list