diff --git a/CMakeLists.txt b/CMakeLists.txt index 4f6a9e16f..42170b3cb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,195 +1,195 @@ cmake_minimum_required(VERSION 3.0) project(plasma-workspace) set(PROJECT_VERSION "5.16.80") set(PROJECT_VERSION_MAJOR 5) set(QT_MIN_VERSION "5.12.0") set(KF5_MIN_VERSION "5.58.0") set(INSTALL_SDDM_THEME TRUE) find_package(Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS Widgets Quick QuickWidgets Concurrent Test Network) find_package(ECM ${KF5_MIN_VERSION} REQUIRED NO_MODULE) set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH}) include(KDEInstallDirs) include(KDECMakeSettings) include(KDECompilerSettings NO_POLICY_SCOPE) include(ECMMarkNonGuiExecutable) include(CMakePackageConfigHelpers) include(WriteBasicConfigVersionFile) include(CheckIncludeFiles) include(FeatureSummary) include(ECMOptionalAddSubdirectory) include(ECMQtDeclareLoggingCategory) include(KDEPackageAppTemplates) find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS - Plasma DocTools Runner JsEmbed NotifyConfig Su NewStuff Wallet + Plasma DocTools Runner NotifyConfig Su NewStuff Wallet IdleTime Declarative I18n KCMUtils TextWidgets KDELibs4Support Crash GlobalAccel DBusAddons Wayland CoreAddons) find_package(KDED CONFIG REQUIRED) find_package(KF5NetworkManagerQt ${KF5_MIN_VERSION}) set_package_properties(KF5NetworkManagerQt PROPERTIES DESCRIPTION "Qt wrapper for NetworkManager API" TYPE OPTIONAL PURPOSE "Needed by geolocation data engine." ) find_package(KF5Kirigami2 ${KF5_MIN_VERSION} CONFIG) set_package_properties(KF5Kirigami2 PROPERTIES DESCRIPTION "A QtQuick based components set" TYPE RUNTIME ) # WARNING PlasmaQuick provides unversioned CMake config find_package(KF5 REQUIRED COMPONENTS PlasmaQuick) find_package(KF5 REQUIRED COMPONENTS SysGuard) find_package(KF5 REQUIRED COMPONENTS Package) find_package(KF5Baloo) set_package_properties(KF5Baloo PROPERTIES DESCRIPTION "File Searching" TYPE RECOMMENDED PURPOSE "Needed for the File Search runner." ) find_package(KF5TextEditor) find_package(KWinDBusInterface CONFIG REQUIRED) find_package(KScreenLocker 5.13.80 REQUIRED) find_package(ScreenSaverDBusInterface CONFIG REQUIRED) find_package(KF5Holidays) set_package_properties(KF5Holidays PROPERTIES DESCRIPTION "Holidays provider for Plasma calendar" TYPE OPTIONAL PURPOSE "Needed to for holidays plugin for Plasma Calendar." ) find_package(Phonon4Qt5 4.6.60 REQUIRED NO_MODULE) set_package_properties(Phonon4Qt5 PROPERTIES DESCRIPTION "Qt-based audio library" TYPE REQUIRED) find_package(KF5Activities ${KF5_MIN_VERSION}) set_package_properties(KF5Activities PROPERTIES DESCRIPTION "management of Plasma activities" TYPE OPTIONAL PURPOSE "Needed by activity related plasmoids." ) find_package(ZLIB) set_package_properties(ZLIB PROPERTIES DESCRIPTION "Support for gzip compressed files and data streams" URL "http://www.zlib.net" TYPE REQUIRED ) find_package(X11) set_package_properties(X11 PROPERTIES DESCRIPTION "X11 libraries" URL "http://www.x.org" TYPE OPTIONAL PURPOSE "Required for building the X11 based workspace") if(X11_FOUND) find_package(XCB MODULE REQUIRED COMPONENTS XCB RANDR) set_package_properties(XCB PROPERTIES TYPE REQUIRED) if(NOT X11_SM_FOUND) message(FATAL_ERROR "\nThe X11 Session Management (SM) development package could not be found.\nPlease install libSM.\n") endif(NOT X11_SM_FOUND) find_package(Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS X11Extras) endif() if(X11_FOUND AND XCB_XCB_FOUND) set(HAVE_X11 1) endif() find_package(AppStreamQt 0.10.6) set_package_properties(AppStreamQt PROPERTIES DESCRIPTION "Access metadata for listing available software" URL "https://www.freedesktop.org/wiki/Distributions/AppStream/" TYPE OPTIONAL ) include(ConfigureChecks.cmake) include_directories("${CMAKE_CURRENT_BINARY_DIR}") configure_file(config-workspace.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-workspace.h) configure_file(config-unix.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-unix.h ) configure_file(config-X11.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-X11.h) add_subdirectory(login-sessions) plasma_install_package(lookandfeel org.kde.breeze.desktop look-and-feel lookandfeel) if (INSTALL_SDDM_THEME) configure_file(sddm-theme/theme.conf.cmake ${CMAKE_CURRENT_BINARY_DIR}/sddm-theme/theme.conf) # Install the login theme into the SDDM directory # Longer term we need to look at making SDDM load from look and feel somehow.. and allow copying at runtime #NOTE this trailing slash is important to rename the directory install(DIRECTORY sddm-theme/ DESTINATION ${KDE_INSTALL_FULL_DATADIR}/sddm/themes/breeze PATTERN "README.txt" EXCLUDE PATTERN "components" EXCLUDE PATTERN "dummydata" EXCLUDE PATTERN "theme.conf.cmake" EXCLUDE) install(FILES ${CMAKE_CURRENT_BINARY_DIR}/sddm-theme/theme.conf DESTINATION ${KDE_INSTALL_FULL_DATADIR}/sddm/themes/breeze) install(DIRECTORY lookandfeel/contents/components DESTINATION ${KDE_INSTALL_FULL_DATADIR}/sddm/themes/breeze PATTERN "README.txt" EXCLUDE) endif() add_definitions(-DQT_NO_URL_CAST_FROM_STRING) add_subdirectory(doc) add_subdirectory(libkworkspace) add_subdirectory(libdbusmenuqt) add_subdirectory(appmenu) add_subdirectory(libtaskmanager) add_subdirectory(libnotificationmanager) add_subdirectory(libcolorcorrect) add_subdirectory(components) add_subdirectory(plasma-windowed) add_subdirectory(shell) add_subdirectory(freespacenotifier) add_subdirectory(klipper) add_subdirectory(krunner) add_subdirectory(ksmserver) add_subdirectory(logout-greeter) add_subdirectory(ksplash) add_subdirectory(systemmonitor) add_subdirectory(statusnotifierwatcher) add_subdirectory(startkde) add_subdirectory(themes) add_subdirectory(kcms) add_subdirectory(containmentactions) add_subdirectory(runners) add_subdirectory(applets) add_subdirectory(dataengines) add_subdirectory(wallpapers) add_subdirectory(kioslave) add_subdirectory(ktimezoned) add_subdirectory(menu) add_subdirectory(phonon) # This ensures pressing the eject button on a CD drive ejects the disc # It listens to the Solid::OpticalDrive::ejectPressed signal that is only # supported by Solid in the HAL backend and does nothing with UDev if(CMAKE_SYSTEM_NAME MATCHES FreeBSD) add_subdirectory(solidautoeject) endif() ecm_optional_add_subdirectory(xembed-sni-proxy) ecm_optional_add_subdirectory(gmenu-dbusmenu-proxy) add_subdirectory(soliduiserver) if(KF5Holidays_FOUND) add_subdirectory(plasmacalendarintegration) endif() add_subdirectory(templates) if (${ECM_VERSION} STRGREATER "5.58.0") install(FILES plasma-workspace.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR}) else() install(FILES plasma-workspace.categories DESTINATION ${KDE_INSTALL_CONFDIR}) endif() feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES) diff --git a/dataengines/CMakeLists.txt b/dataengines/CMakeLists.txt index 4452f6ac2..74a05eca1 100644 --- a/dataengines/CMakeLists.txt +++ b/dataengines/CMakeLists.txt @@ -1,32 +1,31 @@ add_subdirectory(applicationjobs) if (KF5Activities_FOUND) add_subdirectory(activities) endif () add_subdirectory(apps) add_subdirectory(devicenotifications) add_subdirectory(dict) add_subdirectory(executable) add_subdirectory(favicons) add_subdirectory(filebrowser) if (KF5NetworkManagerQt_FOUND) add_subdirectory(geolocation) endif () add_subdirectory(hotplug) add_subdirectory(keystate) add_subdirectory(mpris2) add_subdirectory(notifications) add_subdirectory(packagekit) add_subdirectory(places) add_subdirectory(powermanagement) add_subdirectory(soliddevice) add_subdirectory(time) add_subdirectory(weather) add_subdirectory(statusnotifieritem) -add_subdirectory(share) if(NOT WIN32) add_subdirectory(mouse) add_subdirectory(systemmonitor) endif() diff --git a/dataengines/share/CMakeLists.txt b/dataengines/share/CMakeLists.txt deleted file mode 100644 index bcf151c68..000000000 --- a/dataengines/share/CMakeLists.txt +++ /dev/null @@ -1,29 +0,0 @@ -add_definitions(-DTRANSLATION_DOMAIN=\"plasma_engine_share\") - -set(share_engine_SRCS - shareprovider.cpp - shareengine.cpp - shareservice.cpp) - -add_library(plasma_engine_share MODULE ${share_engine_SRCS}) -target_link_libraries(plasma_engine_share - KF5::Plasma - KF5::KIOCore - KF5::JsEmbed -) -kcoreaddons_desktop_to_json(plasma_engine_share plasma-dataengine-share.desktop) - -install(TARGETS plasma_engine_share - DESTINATION ${KDE_INSTALL_PLUGINDIR}/plasma/dataengine) - -install(FILES plasma-dataengine-share.desktop - DESTINATION ${KDE_INSTALL_KSERVICES5DIR}) - -install(FILES data/plasma_shareprovider.desktop - DESTINATION ${KDE_INSTALL_KSERVICETYPES5DIR}) - -install(FILES share.operations - DESTINATION ${PLASMA_DATA_INSTALL_DIR}/services) - -add_subdirectory(packagestructure) -add_subdirectory(backends) diff --git a/dataengines/share/Messages.sh b/dataengines/share/Messages.sh deleted file mode 100755 index 96beed368..000000000 --- a/dataengines/share/Messages.sh +++ /dev/null @@ -1,2 +0,0 @@ -#! /usr/bin/env bash -$XGETTEXT *.cpp -o $podir/plasma_engine_share.pot diff --git a/dataengines/share/backends/CMakeLists.txt b/dataengines/share/backends/CMakeLists.txt deleted file mode 100644 index 9f1f7d087..000000000 --- a/dataengines/share/backends/CMakeLists.txt +++ /dev/null @@ -1,11 +0,0 @@ -add_subdirectory(kde) -add_subdirectory(imgur) -add_subdirectory(pastebincom) -add_subdirectory(pasteubuntucom) -add_subdirectory(simplestimagehosting) -add_subdirectory(wklej) -add_subdirectory(wstaw) -add_subdirectory(pasteopensuseorg) -add_subdirectory(imgsusepasteorg) -add_subdirectory(privatepaste) -add_subdirectory(im9) diff --git a/dataengines/share/backends/im9/CMakeLists.txt b/dataengines/share/backends/im9/CMakeLists.txt deleted file mode 100644 index e455c2d83..000000000 --- a/dataengines/share/backends/im9/CMakeLists.txt +++ /dev/null @@ -1,7 +0,0 @@ -configure_file(${CMAKE_CURRENT_SOURCE_DIR}/metadata.desktop ${CMAKE_CURRENT_BINARY_DIR}/plasma-dataengine-share-addon-im9.desktop COPYONLY) -install(FILES ${CMAKE_CURRENT_BINARY_DIR}/plasma-dataengine-share-addon-im9.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR}) -install(FILES metadata.desktop - DESTINATION ${PLASMA_DATA_INSTALL_DIR}/shareprovider/im9/) - -install(DIRECTORY contents - DESTINATION ${PLASMA_DATA_INSTALL_DIR}/shareprovider/im9) diff --git a/dataengines/share/backends/im9/contents/code/main.js b/dataengines/share/backends/im9/contents/code/main.js deleted file mode 100644 index 4ba04d47c..000000000 --- a/dataengines/share/backends/im9/contents/code/main.js +++ /dev/null @@ -1,47 +0,0 @@ -/********************************************************************************** -* im9.eu backend for Plasma. -* Copyright (C) 2012 Michal Dutkiewicz -* -* This program is free software; you can redistribute it and/or -* modify it under the terms of the GNU General Public License -* as published by the Free Software Foundation; either version 2 -* of the License, or (at your option) any later version. -* -* This program 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 General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; if not, write to the Free Software -* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -* -**********************************************************************************/ - -function url() -{ - return 'http://api.im9.eu/kde-pastebin/'; -} - -function contentKey() -{ - return 'image'; -} - -function setup() -{ -} - -function handleResultData(data) -{ - var result = data.match('800\n(http://.+)\n'); - - if (result == '') - { - provider.error(data); - - return; - } - - provider.success(data.replace('800', '').replace('\n', '')); -} diff --git a/dataengines/share/backends/im9/metadata.desktop b/dataengines/share/backends/im9/metadata.desktop deleted file mode 100644 index a5b01a9bc..000000000 --- a/dataengines/share/backends/im9/metadata.desktop +++ /dev/null @@ -1,108 +0,0 @@ -[Desktop Entry] -Name=im9.eu -Name[bs]=im9.eu -Name[ca]=im9.eu -Name[ca@valencia]=im9.eu -Name[cs]=im9.eu -Name[da]=im9.eu -Name[de]=im9.eu -Name[el]=im9.eu -Name[en_GB]=im9.eu -Name[es]=im9.eu -Name[et]=im9.eu -Name[eu]=im9.eu -Name[fi]=im9.eu -Name[fr]=im9.eu -Name[gl]=im9.eu -Name[he]=im9.eu -Name[hu]=im9.eu -Name[ia]=im9.eu -Name[id]=im9.eu -Name[is]=im9.eu -Name[it]=im9.eu -Name[ja]=im9.eu -Name[kk]=im9.eu -Name[ko]=im9.eu -Name[lt]=im9.eu -Name[nb]=im9.eu -Name[nds]=im9.eu -Name[nl]=im9.eu -Name[nn]=im9.eu -Name[pa]=im9.eu -Name[pl]=im9.eu -Name[pt]=im9.eu -Name[pt_BR]=im9.eu -Name[ro]=im9.eu -Name[ru]=im9.eu -Name[sk]=im9.eu -Name[sl]=im9.eu -Name[sr]=им9 -Name[sr@ijekavian]=им9 -Name[sr@ijekavianlatin]=im9 -Name[sr@latin]=im9 -Name[sv]=im9.eu -Name[tr]=im9.eu -Name[uk]=im9.eu -Name[x-test]=xxim9.euxx -Name[zh_CN]=im9.eu -Name[zh_TW]=im9.eu -Comment=Allows images to be shared using the im9.eu service -Comment[ar]=يسمح بمشاركة الصور عبر خدمة im9.eu -Comment[bs]=Dopušta dijeljenje slika preko servisa im9.eu -Comment[ca]=Permet la compartició d'imatges utilitzant el servei im9.eu -Comment[ca@valencia]=Permet la compartició d'imatges utilitzant el servei im9.eu -Comment[cs]=Povolí sdílení obrázků pomocí služby im9.eu -Comment[da]=Muliggør deling af billeder med tjenesten im9.eu -Comment[de]=Ermöglicht die Veröffentlichung von Bildern über den im9.eu-Dienst -Comment[el]=Επιτρέπει το μοίρασμα των εικόνων με την υπηρεσία im9.eu -Comment[en_GB]=Allows images to be shared using the im9.eu service -Comment[es]=Permite compartir imágenes a través del servicio im9.eu -Comment[et]=Piltide jagamine im9.eu teenuse kaudu -Comment[eu]=Irudiak im9.eu zerbitzuaren bidez partekatzeko aukera ematen du -Comment[fi]=Mahdollistaa kuvien jakamisen im9.eu-palvelussa -Comment[fr]=Permet le partage d'images à l'aide du service « im9.eu » -Comment[gl]=Permite compartir imaxes mediante o servizo im9.eu -Comment[he]=מאפשר שיתוף תמונות באמצעות השירות im9.eu -Comment[hu]=Képek megosztása az im9.eu szolgáltatás használatával -Comment[ia]=Il permitte imagines de esser compartite per usage de servicio im9.eu -Comment[id]=Memungkinkan berbagi gambar menggunakan layanan im9.eu -Comment[is]=Gerir kleift að deila myndum með im9.eu þjónustunni -Comment[it]=Abilita la condivisione di immagini con il servizio img9.eu -Comment[ja]=imgur のサービスを用いた画像の共有を有効にする -Comment[kk]=im9.eu қызметі көмегімен кескіндерді ортақ қылуды рұқсат ету -Comment[ko]=im9.eu로 그림을 공유합니다 -Comment[lt]=Įjungia dalinimąsi nuotraukomis naudojant im9.eu tarnybą -Comment[nb]=Gjør det mulig å dele bilder via tjenesten im9.eu -Comment[nds]=Lett Di Biller över den Deenst "im9.eu" praatstellen -Comment[nl]=Staat het delen van afbeeldingen toe met gebruik van de service im9.eu -Comment[nn]=Gjer det mogleg å dela bilete via tenesta im9.eu -Comment[pa]=im9.eu ਸਰਵਿਸ ਦੀ ਵਰਤੋਂ ਕਰਕੇ ਚਿੱਤਰ ਸਾਂਝੇ ਕਰਨ ਲਈ ਸਹਾਇਕ -Comment[pl]=Udostępniania obrazy przy użyciu usługi im9.eu -Comment[pt]=Permite a partilha de imagens com o serviço do 'im9.eu' -Comment[pt_BR]=Permite o compartilhamento de imagens usando o serviço do im9.eu -Comment[ro]=Permite partajarea imaginilor cu serviciul im9.eu -Comment[ru]=Позволяет публиковать изображения на сервере im9.eu -Comment[sk]=Povolí zdieľanie obrázkov pomocou služby im9.eu -Comment[sl]=Omogoča deljenje slik prek storitve im9.eu -Comment[sr]=Дељење слика преко сервиса им9 -Comment[sr@ijekavian]=Дијељење слика преко сервиса им9 -Comment[sr@ijekavianlatin]=Dijeljenje slika preko servisa im9 -Comment[sr@latin]=Deljenje slika preko servisa im9 -Comment[sv]=Tillåter att bilder delas genom att använda tjänsten im9.eu -Comment[tr]=im9.eu hizmetini kullanarak resimleri paylaşmayı sağlar -Comment[uk]=Уможливлює оприлюднення зображень за допомогою служби im9.eu -Comment[x-test]=xxAllows images to be shared using the im9.eu servicexx -Comment[zh_CN]=用 im9.eu 服务共享图片 -Comment[zh_TW]=允許使用 im9.eu 服務分享影像 -Type=Service - -X-KDE-ServiceTypes=Plasma/ShareProvider -X-KDE-Library=plasma_engine_share -X-KDE-PlasmaShareProvider-MimeType=image/* - -X-KDE-PluginInfo-Name=im9 -X-KDE-PluginInfo-Author=Michał Dutkiewicz -X-KDE-PluginInfo-Email=emdeck@gmail.com -X-KDE-PluginInfo-Version=0.1 -X-KDE-PluginInfo-Website=https://www.kde.org/plasma-desktop - diff --git a/dataengines/share/backends/imgsusepasteorg/CMakeLists.txt b/dataengines/share/backends/imgsusepasteorg/CMakeLists.txt deleted file mode 100644 index 7bbeb4114..000000000 --- a/dataengines/share/backends/imgsusepasteorg/CMakeLists.txt +++ /dev/null @@ -1,7 +0,0 @@ -configure_file(${CMAKE_CURRENT_SOURCE_DIR}/metadata.desktop ${CMAKE_CURRENT_BINARY_DIR}/plasma-dataengine-share-addon-imgsusepasteorg.desktop COPYONLY) -install(FILES ${CMAKE_CURRENT_BINARY_DIR}/plasma-dataengine-share-addon-imgsusepasteorg.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR}) -install(FILES metadata.desktop - DESTINATION ${PLASMA_DATA_INSTALL_DIR}/shareprovider/imgsusepasteorg) - -install(DIRECTORY contents - DESTINATION ${PLASMA_DATA_INSTALL_DIR}/shareprovider/imgsusepasteorg) diff --git a/dataengines/share/backends/imgsusepasteorg/contents/code/main.js b/dataengines/share/backends/imgsusepasteorg/contents/code/main.js deleted file mode 100644 index 35b4201b8..000000000 --- a/dataengines/share/backends/imgsusepasteorg/contents/code/main.js +++ /dev/null @@ -1,47 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2010 by Will Stephenson * - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * - * * - * This program 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 General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program; if not, write to the * - * Free Software Foundation, Inc., * - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . * - ***************************************************************************/ - -function url() { - return "http://susepaste.org"; -} - -function contentKey() { - return "file"; -} - -function setup() { - provider.addPostItem("name", "KDE", "text/plain"); - provider.addPostItem("title", "mypaste", "text/plain"); - provider.addPostItem("lang", "image", "text/plain"); - provider.addPostItem("submit", "submit", "text/plain"); - provider.addPostItem("expire","1440","text/plain"); -} - -function handleResultData(data) { - console.log("--> data: " + data); - var res = data.match("(Info.+)"); - if (res != "") { - return; - } - provider.error(data); -} - -function handleRedirection(url) { - provider.success(url); -} diff --git a/dataengines/share/backends/imgsusepasteorg/metadata.desktop b/dataengines/share/backends/imgsusepasteorg/metadata.desktop deleted file mode 100644 index da5dcc16d..000000000 --- a/dataengines/share/backends/imgsusepasteorg/metadata.desktop +++ /dev/null @@ -1,124 +0,0 @@ -[Desktop Entry] -Name=img.susepaste.org -Name[bg]=img.susepaste.org -Name[bs]=img.susepaste.org -Name[ca]=img.susepaste.org -Name[ca@valencia]=img.susepaste.org -Name[cs]=img.susepaste.org -Name[da]=img.susepaste.org -Name[de]=img.susepaste.org -Name[el]=img.susepaste.org -Name[en_GB]=img.susepaste.org -Name[es]=img.susepaste.org -Name[et]=img.susepaste.org -Name[eu]=img.susepaste.org -Name[fi]=img.susepaste.org -Name[fr]=img.susepaste.org -Name[gl]=img.susepaste.org -Name[he]=img.susepaste.org -Name[hr]=img.susepaste.org -Name[hu]=img.susepaste.org -Name[ia]=img.susepaste.org -Name[id]=img.susepaste.org -Name[is]=img.susepaste.org -Name[it]=img.susepaste.org -Name[ja]=img.susepaste.org -Name[kk]=img.susepaste.org -Name[km]=img.susepaste.org -Name[ko]=img.susepaste.org -Name[lt]=img.susepaste.org -Name[lv]=img.susepaste.org -Name[mr]=img.susepaste.org -Name[nb]=img.susepaste.org -Name[nds]=img.susepaste.org -Name[nl]=img.susepaste.org -Name[nn]=img.susepaste.org -Name[pa]=img.susepaste.org -Name[pl]=img.susepaste.org -Name[pt]=img.susepaste.org -Name[pt_BR]=img.susepaste.org -Name[ro]=img.susepaste.org -Name[ru]=img.susepaste.org -Name[sk]=img.susepaste.org -Name[sl]=img.susepaste.org -Name[sr]=img.susepaste.org -Name[sr@ijekavian]=img.susepaste.org -Name[sr@ijekavianlatin]=img.susepaste.org -Name[sr@latin]=img.susepaste.org -Name[sv]=img.susepaste.org -Name[tr]=img.susepaste.org -Name[ug]=img.susepaste.org -Name[uk]=img.susepaste.org -Name[wa]=img.susepaste.org -Name[x-test]=xximg.susepaste.orgxx -Name[zh_CN]=img.susepaste.org -Name[zh_TW]=img.susepaste.org -Comment=Allows images to be shared using the susepaste.org service -Comment[ar]=يسمح بمشاركة الصور عبر خدمة susepaste.org -Comment[bg]=Позволява споделянето на картинки чрез susepaste.org -Comment[bs]=Dopušta dijeljenje slika preko servisa susepaste.org -Comment[ca]=Permet la compartició d'imatges utilitzant el servei susepaste.org -Comment[ca@valencia]=Permet la compartició d'imatges utilitzant el servei susepaste.org -Comment[cs]=Povolí sdílení obrázků pomocí služby susepaste.org -Comment[da]=Muliggør deling af billeder med tjenesten susepaste.org -Comment[de]=Ermöglicht die Veröffentlichung von Bildern über den susepaste.org-Dienst -Comment[el]=Επιτρέπει το μοίρασμα των εικόνων χρησιμοποιώντας την υπηρεσία susepaste.org -Comment[en_GB]=Allows images to be shared using the susepaste.org service -Comment[es]=Permite compartir imágenes a través del servicio de susepaste.org -Comment[et]=Piltide jagamine susepaste.org teenuse kaudu -Comment[eu]=Irudiak susepaste.org zerbitzuaren bidez partekatzeko aukera ematen du -Comment[fi]=Mahdollistaa kuvien jakamisen susepaste.org-palvelussa -Comment[fr]=Permet le partage d'images à l'aide du service « susepaste.org » -Comment[gl]=Permite compartir imaxes mediante o servizo susepaste.org -Comment[he]=מאפשר שיתוף תמונות באמצעות השירות susepaste.org -Comment[hr]=Omogućuje dijeljenje slika koristeći servis susepaste.org -Comment[hu]=Képek megosztása a susepaste.org szolgáltatás használatával -Comment[ia]=Il permitte images de esser compartite per usar le servicio susepaste.org -Comment[id]=Memungkinkan berbagi gambar menggunakan layanan susepaste.org -Comment[is]=Gerir kleift að deila myndum með susepaste.org þjónustunni -Comment[it]=Abilita la condivisione di immagini con il servizio susepaste.org -Comment[ja]=susepaste.org のサービスを用いた画像の共有を有効にする -Comment[kk]=susepaste.org қызметі көмегімен кескіндерді ортақ қылуды рұқсат ету -Comment[km]=បើក​ការ​ចែករំលែក​រូបភាព​ ដោយ​ប្រើ​សេវា susepaste.org -Comment[ko]=susepaste.org로 그림을 공유합니다 -Comment[lt]=Įjungia dalinimąsį nuotraukomis naudojant susepaste.org tarnybą -Comment[lv]=Ļauj kopīgot attēlus, izmantojot susepaste.org servisu -Comment[mr]=susepaste.org सेवा वापरुन प्रतिमा शेअर करतो -Comment[nb]=Gjør det mulig å dele bilder via tjenesten susepaste.org -Comment[nds]=Biller op "img.susepaste.org" praatstellen -Comment[nl]=Staat het delen van afbeeldingen toe met gebruik van de service susepaste.org -Comment[nn]=Gjer det mogleg å dela bilete via tenesta susepaste.org -Comment[pa]=susepaste.org ਸਰਵਿਸ ਦੀ ਵਰਤੋਂ ਕਰਕੇ ਚਿੱਤਰ ਸਾਂਝੇ ਕਰਨ ਲਈ ਸਹਾਇਕ -Comment[pl]=Udostępniania obrazy przy użyciu usługi susepaste.org -Comment[pt]=Permite a partilha de imagens com o serviço do 'susepaste.org' -Comment[pt_BR]=Permite o compartilhamento de imagens usando o serviço do susepaste.org -Comment[ro]=Permite partajarea imaginilor cu serviciul susepaste.org -Comment[ru]=Позволяет публиковать изображения на сервере susepaste.org -Comment[sk]=Povolí zdieľanie obrázkov pomocou služby susepaste.org -Comment[sl]=Omogoča deljenje slik prek storitve susepaste.org -Comment[sr]=Дељење слика преко сервиса susepaste.org -Comment[sr@ijekavian]=Дијељење слика преко сервиса susepaste.org -Comment[sr@ijekavianlatin]=Dijeljenje slika preko servisa susepaste.org -Comment[sr@latin]=Deljenje slika preko servisa susepaste.org -Comment[sv]=Tillåter att bilder delas genom att använda tjänsten susepaste.org -Comment[tr]=susepaste.org hizmeti kullanarak resim paylaşımı sağlar -Comment[ug]=رەسىملەرنى susepaste.org مۇلازىمىتىنى ئىشلىتىپ ھەمبەھىرلەشكە ئىجازەت -Comment[uk]=Уможливлює оприлюднення зображень за допомогою служби susepaste.org -Comment[vi]=Cho phép chia sẻ ảnh qua dịch vụ susepaste.org -Comment[wa]=Permete li pårtaedje d' imådjes e s' siervant do siervice susepaste.org -Comment[x-test]=xxAllows images to be shared using the susepaste.org servicexx -Comment[zh_CN]=用 susepaste.org 服务共享图片 -Comment[zh_TW]=允許使用 susepaste.org 服務分享影像 -Type=Service - -X-KDE-ServiceTypes=Plasma/ShareProvider -X-KDE-Library=plasma_engine_share -X-KDE-PlasmaShareProvider-MimeType=image/* - -X-KDE-PluginInfo-Name=imgsusepasteorg -X-KDE-PluginInfo-Author=Javier Llorente -X-KDE-PluginInfo-Email=javier@opensuse.org -X-KDE-PluginInfo-Version=0.1 -X-KDE-PluginInfo-Website=https://www.kde.org/plasma-desktop -X-KDE-Priority=1 - diff --git a/dataengines/share/backends/imgur/CMakeLists.txt b/dataengines/share/backends/imgur/CMakeLists.txt deleted file mode 100644 index 8aa1200c3..000000000 --- a/dataengines/share/backends/imgur/CMakeLists.txt +++ /dev/null @@ -1,7 +0,0 @@ -configure_file(${CMAKE_CURRENT_SOURCE_DIR}/metadata.desktop ${CMAKE_CURRENT_BINARY_DIR}/plasma-dataengine-share-addon-imgur.desktop COPYONLY) -install(FILES ${CMAKE_CURRENT_BINARY_DIR}/plasma-dataengine-share-addon-imgur.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR}) -install(FILES metadata.desktop - DESTINATION ${PLASMA_DATA_INSTALL_DIR}/shareprovider/imgur/) - -install(DIRECTORY contents - DESTINATION ${PLASMA_DATA_INSTALL_DIR}/shareprovider/imgur) diff --git a/dataengines/share/backends/imgur/contents/code/main.js b/dataengines/share/backends/imgur/contents/code/main.js deleted file mode 100644 index ab86abf54..000000000 --- a/dataengines/share/backends/imgur/contents/code/main.js +++ /dev/null @@ -1,41 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2010 by Artur Duque de Souza * - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * - * * - * This program 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 General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program; if not, write to the * - * Free Software Foundation, Inc., * - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . * - ***************************************************************************/ - -function url() { - return "http://imgur.com/api/upload"; -} - -function contentKey() { - return "image"; -} - -function setup() { - // key associated with plasma-devel@kde.org - // thanks to Alan Schaaf of Imgur (alan@imgur.com) - provider.addPostItem("key", "d0757bc2e94a0d4652f28079a0be9379", "text/plain"); -} - -function handleResultData(data) { - var res = provider.parseXML("original_image", data); - if (res == "") { - provider.error(data); - return; - } - provider.success(res); -} diff --git a/dataengines/share/backends/imgur/metadata.desktop b/dataengines/share/backends/imgur/metadata.desktop deleted file mode 100644 index e010bb76e..000000000 --- a/dataengines/share/backends/imgur/metadata.desktop +++ /dev/null @@ -1,128 +0,0 @@ -[Desktop Entry] -Name=Imgur -Name[bg]=Imgur -Name[bs]=Imgur -Name[ca]=Imgur -Name[ca@valencia]=Imgur -Name[cs]=Imgur -Name[da]=Imgur -Name[de]=Imgur -Name[el]=Imgur -Name[en_GB]=Imgur -Name[es]=Imgur -Name[et]=Imgur -Name[eu]=Imgur -Name[fi]=Imgur -Name[fr]=Imgur -Name[ga]=Imgur -Name[gl]=Imgur -Name[he]=Imgur -Name[hi]=इंगुर -Name[hr]=Imgur -Name[hu]=Imgur -Name[ia]=Imgur -Name[id]=Imgur -Name[is]=Imgur -Name[it]=Imgur -Name[ja]=Imgur -Name[kk]=Imgur -Name[km]=Imgur -Name[kn]=Imgur -Name[ko]=Imgur -Name[lt]=Imgur -Name[lv]=Imgur -Name[mr]=Imgur -Name[nb]=Imgur -Name[nds]=imgur -Name[nl]=Imgur -Name[nn]=Imgur -Name[pa]=Imgur -Name[pl]=Imgur -Name[pt]=Imgur -Name[pt_BR]=Imgur -Name[ro]=Imgur -Name[ru]=Imgur -Name[sk]=Imgur -Name[sl]=Imgur -Name[sr]=Имгур -Name[sr@ijekavian]=Имгур -Name[sr@ijekavianlatin]=Imgur -Name[sr@latin]=Imgur -Name[sv]=Imgur -Name[th]=Imgur -Name[tr]=Imgur -Name[ug]=Imgur -Name[uk]=Imgur -Name[vi]=Imgur -Name[wa]=Imgur -Name[x-test]=xxImgurxx -Name[zh_CN]=Imgur -Name[zh_TW]=Imgur -Comment=Allows images to be shared using the imgur service -Comment[ar]=يسمح بمشاركة الصور عبر خدمة imgur -Comment[bg]=Позволява споделянето на картинки чрез imgur -Comment[bs]=Dopušta dijeljenje slika preko servisa Imgur -Comment[ca]=Permet la compartició d'imatges utilitzant el servei imgur -Comment[ca@valencia]=Permet la compartició d'imatges utilitzant el servei imgur -Comment[cs]=Povolí sdílení obrázků pomocí služby imgur -Comment[da]=Muliggør deling af billeder med tjenesten imgur -Comment[de]=Ermöglicht die Veröffentlichung von Bildern über den Imgur-Dienst -Comment[el]=Επιτρέπει το μοίρασμα των εικόνων χρησιμοποιώντας την υπηρεσία imgur -Comment[en_GB]=Allows images to be shared using the imgur service -Comment[es]=Permite compartir imágenes a través del servicio de imgur -Comment[et]=Piltide jagamine imguri teenuse kaudu -Comment[eu]=Irudiak imgur zerbitzuaren bidez partekatzeko aukera ematen du -Comment[fi]=Mahdollistaa kuvien jakamisen imgur-palvelussa -Comment[fr]=Permet le partage d'images à l'aide du service « imgur » -Comment[gl]=Permite compartir imaxes mediante o servizo imgur -Comment[he]=מאפשר שיתוף תמונות באמצעות השירות imgur -Comment[hr]=Omogućuje dijeljenje slika koristeći servis imgur -Comment[hu]=Képek megosztása az imgur szolgáltatás használatával -Comment[ia]=Il permitte imagines de esser compartite per usage de servicio imgur -Comment[id]=Memungkinkan gambar dibagi menggunakan layanan imgur -Comment[is]=Gerir kleift að deila myndum með imgur þjónustunni -Comment[it]=Abilita la condivisione di immagini con il servizio imgur -Comment[ja]=imgur のサービスを用いた画像の共有を有効にする -Comment[kk]=Imgur қызметі көмегімен кескіндерді ортақ қылуды рұқсат ету -Comment[km]=បើក​ការ​ចែករំលែក​រូបភាព ដោយ​ប្រើ​សេវា imgur​​ -Comment[ko]=imgur로 그림을 공유합니다 -Comment[lt]=Įjungia dalinimąsį nuotraukomis naudojant imgur tarnybą -Comment[lv]=Ļauj kopīgot attēlus, izmantojot imgur servisu -Comment[mr]=imgur सेवा वापरुन प्रतिमा शेअर करतो -Comment[nb]=Gjør det mulig å dele bilder via tjenesten imgur -Comment[nds]=Biller op "imgur" praatstellen -Comment[nl]=Staat het delen van afbeeldingen toe met gebruik van de service imgur -Comment[nn]=Gjer det mogleg å dela bilete via tenesta imgur -Comment[pa]=imgur ਸਰਵਿਸ ਦੀ ਵਰਤੋਂ ਕਰਕੇ ਚਿੱਤਰ ਸਾਂਝੇ ਕਰਨ ਲਈ ਸਹਾਇਕ -Comment[pl]=Udostępniania obrazy przy użyciu usługi imgur -Comment[pt]=Permite a partilha de imagens com o serviço do 'imgur' -Comment[pt_BR]=Permite o compartilhamento de imagens usando o serviço do imgur -Comment[ro]=Permite partajarea imaginilor cu serviciul imgur -Comment[ru]=Позволяет публиковать изображения на сервере imgur.com -Comment[sk]=Povolí zdieľanie obrázkov pomocou služby imgur -Comment[sl]=Omogoča deljenje slik prek storitve imgur -Comment[sr]=Дељење слика преко сервиса Имгур -Comment[sr@ijekavian]=Дијељење слика преко сервиса Имгур -Comment[sr@ijekavianlatin]=Dijeljenje slika preko servisa Imgur -Comment[sr@latin]=Deljenje slika preko servisa Imgur -Comment[sv]=Tillåter att bilder delas genom att använda tjänsten imgur -Comment[tr]=imgur servisini kullanarak resimleri paylaşmayı sağlar -Comment[ug]=رەسىملەرنى imgur مۇلازىمىتىنى ئىشلىتىپ ھەمبەھىرلەشكە ئىجازەت -Comment[uk]=Уможливлює оприлюднення зображень за допомогою служби imgur -Comment[vi]=Cho phép chia sẻ ảnh qua dịch vụ imgur -Comment[wa]=Permete li pårtaedje d' imådjes e s' siervant do siervice imgur -Comment[x-test]=xxAllows images to be shared using the imgur servicexx -Comment[zh_CN]=用 Imgur 服务共享图片 -Comment[zh_TW]=允許使用 imgur 服務分享影像 -Type=Service - -X-KDE-ServiceTypes=Plasma/ShareProvider -X-KDE-Library=plasma_engine_share -X-KDE-PlasmaShareProvider-MimeType=image/* - -X-KDE-PluginInfo-Name=imgur -X-KDE-PluginInfo-Author=Artur de Souza -X-KDE-PluginInfo-Email=asouza@kde.org -X-KDE-PluginInfo-Version=0.1 -X-KDE-PluginInfo-Website=https://www.kde.org/plasma-desktop - diff --git a/dataengines/share/backends/kde/CMakeLists.txt b/dataengines/share/backends/kde/CMakeLists.txt deleted file mode 100644 index 40cd10c66..000000000 --- a/dataengines/share/backends/kde/CMakeLists.txt +++ /dev/null @@ -1,7 +0,0 @@ -configure_file(${CMAKE_CURRENT_SOURCE_DIR}/metadata.desktop ${CMAKE_CURRENT_BINARY_DIR}/plasma-dataengine-share-addon-kde.desktop COPYONLY) -install(FILES ${CMAKE_CURRENT_BINARY_DIR}/plasma-dataengine-share-addon-kde.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR}) -install(FILES metadata.desktop - DESTINATION ${PLASMA_DATA_INSTALL_DIR}/shareprovider/kde/) - -install(DIRECTORY contents - DESTINATION ${PLASMA_DATA_INSTALL_DIR}/shareprovider/kde) diff --git a/dataengines/share/backends/kde/contents/code/main.js b/dataengines/share/backends/kde/contents/code/main.js deleted file mode 100644 index 5746a4e04..000000000 --- a/dataengines/share/backends/kde/contents/code/main.js +++ /dev/null @@ -1,44 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2010 by Artur Duque de Souza * - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * - * * - * This program 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 General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program; if not, write to the * - * Free Software Foundation, Inc., * - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . * - ***************************************************************************/ - -function url() { - return "http://paste.kde.org/api/xml/create"; -} - -function method() { - return "POST"; -} - -function contentKey() { - return "data"; -} - -function setup() { - provider.addQueryItem("language", "text"); -} - -function handleResultData(data) { - var res = provider.parseXML("id", data); - if (res == "") { - provider.error(data); - return; - } - provider.success("http://paste.kde.org/" + res); -} - diff --git a/dataengines/share/backends/kde/metadata.desktop b/dataengines/share/backends/kde/metadata.desktop deleted file mode 100644 index ec6fe6683..000000000 --- a/dataengines/share/backends/kde/metadata.desktop +++ /dev/null @@ -1,118 +0,0 @@ -[Desktop Entry] -Name=paste.kde.org -Name[bs]=paste.kde.org -Name[ca]=paste.kde.org -Name[ca@valencia]=paste.kde.org -Name[cs]=paste.kde.org -Name[da]=paste.kde.org -Name[de]=paste.kde.org -Name[el]=paste.kde.org -Name[en_GB]=paste.kde.org -Name[es]=paste.kde.org -Name[et]=paste.kde.org -Name[eu]=paste.kde.org -Name[fi]=paste.kde.org -Name[fr]=paste.kde.org -Name[gl]=paste.kde.org -Name[he]=paste.kde.org -Name[hu]=paste.kde.org -Name[ia]=paste.kde.org -Name[id]=paste.kde.org -Name[is]=paste.kde.org -Name[it]=paste.kde.org -Name[ja]=paste.kde.org -Name[kk]=paste.kde.org -Name[ko]=paste.kde.org -Name[lt]=paste.kde.org -Name[mr]=paste.kde.org -Name[nb]=paste.kde.org -Name[nds]=paste.kde.org -Name[nl]=paste.kde.org -Name[nn]=paste.kde.org -Name[pa]=paste.kde.org -Name[pl]=paste.kde.org -Name[pt]=paste.kde.org -Name[pt_BR]=paste.kde.org -Name[ro]=paste.kde.org -Name[ru]=paste.kde.org -Name[sk]=paste.kde.org -Name[sl]=paste.kde.org -Name[sr]=paste.kde.org -Name[sr@ijekavian]=paste.kde.org -Name[sr@ijekavianlatin]=paste.kde.org -Name[sr@latin]=paste.kde.org -Name[sv]=paste.kde.org -Name[tr]=paste.kde.org -Name[uk]=paste.kde.org -Name[x-test]=xxpaste.kde.orgxx -Name[zh_CN]=paste.kde.org -Name[zh_TW]=paste.kde.org -Comment=Allows text to be shared using the kde.org service -Comment[ar]=يسمح بمشاركة النصوص عبر خدمة kde.org -Comment[bg]=Позволява споделянето на текст чрез kde.org -Comment[bs]=Dopušta ijeljenje teksta preko servisa wklej.org -Comment[ca]=Permet la compartició de text utilitzant el servei kde.org -Comment[ca@valencia]=Permet la compartició de text utilitzant el servei kde.org -Comment[cs]=Povolí sdílení textů pomocí služby kde.org -Comment[da]=Muliggør deling af tekst med tjenesten kde.org -Comment[de]=Ermöglicht die Veröffentlichung von Text über den kde.org-Dienst -Comment[el]=Επιτρέπει στο κείμενο να γίνει κοινόχρηστο χρησιμοποιώντας την υπηρεσία kde.org -Comment[en_GB]=Allows text to be shared using the kde.org service -Comment[es]=Permite compartir texto a través del servicio de kde.org -Comment[et]=Teksti jagamine kde.org teenuse kaudu -Comment[eu]=Testua kde.org zerbitzuaren bidez partekatzeko aukera ematen du -Comment[fi]=Mahdollistaa tekstin jakamisen kde.org-palvelussa -Comment[fr]=Permet le partage de texte à l'aide du service « kde.org » -Comment[gl]=Permite compartir texto mediante o servizo kde.org -Comment[he]=מאפשר שיתוף טקסט באמצעות השירות kde.org -Comment[hr]=Omogućuje dijeljenje teksta koristeći servis kde.org -Comment[hu]=Szöveg megosztása a kde.org szolgáltatás használatával -Comment[ia]=Il permitte texto de esser compartite per usar le servicio kde.org -Comment[id]=Memungkinkan berbagi teks menggunakan layanan kde.org -Comment[is]=Gerir kleift að deila texta með kde.org límklippusafninu -Comment[it]=Abilita la condivisione di testo con il servizio kde.org -Comment[ja]=kde.org のサービスを用いたテキストの共有を有効にする -Comment[kk]=kde.org қызметі көмегімен мәтінді ортақ қылуды рұқсат ету -Comment[km]=បើក​ការ​ចែករំលែក​អត្ថបទ​ដោយ​ប្រើ​សេវា kde.org -Comment[ko]=kde.org로 텍스트를 공유합니다 -Comment[lt]=Įjungia dalinimąsį tekstu naudojant kde.org tarnybą -Comment[lv]=Ļauj kopīgot tekstu, izmantojot kde.org servisu -Comment[mr]=kde.org सेवा वापरुन पाठ्य शेअर करतो -Comment[nb]=Gjør det mulig å dele tekst via tjenesten kde.org -Comment[nds]=Text op "kde.org" praatstellen -Comment[nl]=Staat het delen van tekst toe met gebruik van de service kde.org -Comment[nn]=Gjer det mogleg å dela tekst via tenesta kde.org -Comment[pa]=kde.org ਸਰਵਿਸ ਦੀ ਵਰਤੋਂ ਕਰਕੇ ਟੈਕਸਟ ਸਾਂਝਾ ਕਰਨਾ ਯੋਗ -Comment[pl]=Udostępniania tekst przy użyciu usługi kde.org -Comment[pt]=Permite a partilha de texto com o serviço do 'kde.org' -Comment[pt_BR]=Permite o compartilhamento de texto usando o serviço do kde.org -Comment[ro]=Permite partajarea textului cu serviciul kde.org -Comment[ru]=Позволяет публиковать текст на сервере kde.org -Comment[sk]=Povolí zdieľanie textu pomocou služby kde.org -Comment[sl]=Omogoča deljenje besedila prek storitve kde.org -Comment[sr]=Дељење текста преко сервиса kde.org -Comment[sr@ijekavian]=Дијељење текста преко сервиса kde.org -Comment[sr@ijekavianlatin]=Dijeljenje teksta preko servisa kde.org -Comment[sr@latin]=Deljenje teksta preko servisa kde.org -Comment[sv]=Tillåter att text delas genom att använda tjänsten kde.org -Comment[tr]=kde.org servisini kullanarak metinleri paylaşmayı sağlar -Comment[ug]=تېكىستلەرنى kde.org مۇلازىمىتىنى ئىشلىتىپ ھەمبەھىرلەشكە ئىجازەت -Comment[uk]=Уможливлює оприлюднення фрагментів тексту за допомогою служби kde.org -Comment[vi]=Cho phép chia sẻ văn bản qua dịch vụ kde.org -Comment[wa]=Permete li pårtaedje di scrijhaedje e s' siervant do siervice kde.org -Comment[x-test]=xxAllows text to be shared using the kde.org servicexx -Comment[zh_CN]=用 kde.org 服务共享文字 -Comment[zh_TW]=允許使用 kde.org 服務分享文字 -Type=Service - -X-KDE-ServiceTypes=Plasma/ShareProvider -X-KDE-Library=plasma_engine_share -X-KDE-PlasmaShareProvider-MimeType=text/* - -X-KDE-PluginInfo-Name=kde -X-KDE-PluginInfo-Author=Artur de Souza -X-KDE-PluginInfo-Email=asouza@kde.org -X-KDE-PluginInfo-Version=0.1 -X-KDE-PluginInfo-Website=https://www.kde.org/plasma-desktop -X-KDE-Priority=100 - diff --git a/dataengines/share/backends/pastebincom/CMakeLists.txt b/dataengines/share/backends/pastebincom/CMakeLists.txt deleted file mode 100644 index 9bc10d055..000000000 --- a/dataengines/share/backends/pastebincom/CMakeLists.txt +++ /dev/null @@ -1,7 +0,0 @@ -configure_file(${CMAKE_CURRENT_SOURCE_DIR}/metadata.desktop ${CMAKE_CURRENT_BINARY_DIR}/plasma-dataengine-share-addon-pastebincom.desktop COPYONLY) -install(FILES ${CMAKE_CURRENT_BINARY_DIR}/plasma-dataengine-share-addon-pastebincom.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR}) -install(FILES metadata.desktop - DESTINATION ${PLASMA_DATA_INSTALL_DIR}/shareprovider/pastebincom/) - -install(DIRECTORY contents - DESTINATION ${PLASMA_DATA_INSTALL_DIR}/shareprovider/pastebincom) diff --git a/dataengines/share/backends/pastebincom/contents/code/main.js b/dataengines/share/backends/pastebincom/contents/code/main.js deleted file mode 100644 index ef4b70d46..000000000 --- a/dataengines/share/backends/pastebincom/contents/code/main.js +++ /dev/null @@ -1,39 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2010 by Artur Duque de Souza * - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * - * * - * This program 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 General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program; if not, write to the * - * Free Software Foundation, Inc., * - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . * - ***************************************************************************/ - -function url() { - return "http://pastebin.com/api_public.php"; -} - -function contentKey() { - return "paste_code"; -} - -function setup() { - provider.addQueryItem("paste_name", "Test"); -} - -function handleResultData(data) { - if (data.search("ERROR") != -1) { - provider.error(data); - return; - } - provider.success(data); -} - diff --git a/dataengines/share/backends/pastebincom/metadata.desktop b/dataengines/share/backends/pastebincom/metadata.desktop deleted file mode 100644 index 2f6b5065b..000000000 --- a/dataengines/share/backends/pastebincom/metadata.desktop +++ /dev/null @@ -1,128 +0,0 @@ -[Desktop Entry] -Name=pastebin.com -Name[bg]=pastebin.com -Name[bs]=pastebin.com -Name[ca]=pastebin.com -Name[ca@valencia]=pastebin.com -Name[cs]=pastebin.com -Name[da]=pastebin.com -Name[de]=pastebin.com -Name[el]=pastebin.com -Name[en_GB]=pastebin.com -Name[es]=pastebin.com -Name[et]=pastebin.com -Name[eu]=pastebin.com -Name[fi]=pastebin.com -Name[fr]=pastebin.com -Name[ga]=pastebin.com -Name[gl]=pastebin.com -Name[gu]=pastebin.com -Name[he]=pastebin.com -Name[hi]=pastebin.com -Name[hr]=pastebin.com -Name[hu]=pastebin.com -Name[ia]=pastebin.com -Name[id]=pastebin.com -Name[is]=pastebin.com -Name[it]=pastebin.com -Name[ja]=pastebin.com -Name[kk]=pastebin.com -Name[km]=pastebin.com -Name[ko]=pastebin.com -Name[lt]=pastebin.com -Name[lv]=pastebin.com -Name[mr]=pastebin.com -Name[nb]=pastebin.com -Name[nds]=pastebin.com -Name[nl]=pastebin.com -Name[nn]=pastebin.com -Name[pa]=pastebin.com -Name[pl]=pastebin.com -Name[pt]=pastebin.com -Name[pt_BR]=pastebin.com -Name[ro]=pastebin.com -Name[ru]=pastebin.com -Name[sk]=pastebin.com -Name[sl]=pastebin.com -Name[sr]=pastebin.com -Name[sr@ijekavian]=pastebin.com -Name[sr@ijekavianlatin]=pastebin.com -Name[sr@latin]=pastebin.com -Name[sv]=pastebin.com -Name[tg]=pastebin.com -Name[th]=pastebin.com -Name[tr]=pastebin.com -Name[ug]=pastebin.com -Name[uk]=pastebin.com -Name[wa]=pastebin.com -Name[x-test]=xxpastebin.comxx -Name[zh_CN]=pastebin.com -Name[zh_TW]=pastebin.com -Comment=Allows text to be shared using the pastebin.com service -Comment[ar]=يسمح بمشاركة النصوص عبر خدمة pastebin.com -Comment[bg]=Позволява споделянето на текст чрез pastebin.com -Comment[bs]=Omogućava dijeljenje teksta preko servisa pastebin.com -Comment[ca]=Permet la compartició de text utilitzant el servei pastebin.com -Comment[ca@valencia]=Permet la compartició de text utilitzant el servei pastebin.com -Comment[cs]=Povolí sdílení textů pomocí služby pastebin.com -Comment[da]=Muliggør deling af tekst med tjenesten pastebin.com -Comment[de]=Ermöglicht die Veröffentlichung von Text über den pastebin.com-Dienst -Comment[el]=Επιτρέπει στο κείμενο να γίνει κοινόχρηστο χρησιμοποιώντας την υπηρεσία pastebin.com -Comment[en_GB]=Allows text to be shared using the pastebin.com service -Comment[es]=Permite compartir texto a través del servicio de pastebin.com -Comment[et]=Teksti jagamine pastebin.com teenuse kaudu -Comment[eu]=Testua pastebin.com zerbitzuaren bidez partekatzeko aukera ematen du -Comment[fi]=Mahdollistaa tekstin jakamisen pastebin.com-palvelussa -Comment[fr]=Permet le partage de texte à l'aide du service « pastebin.com » -Comment[gl]=Permite compartir texto mediante o servizo pastebin.org -Comment[he]=מאפשר שיתוף טקסט באמצעות השירות pastebin.com -Comment[hr]=Omogućuje dijeljenje teksta koristeći servis pastebin.com -Comment[hu]=Szöveg megosztása a pastebin.com szolgáltatás használatával -Comment[ia]=Il permitte texto de esser compartite per usar le servicio pastebin.com -Comment[id]=Memungkinkan berbagi teks menggunakan layanan pastebin.com -Comment[is]=Gerir kleift að deila texta með pastebin.com límklippusafninu -Comment[it]=Abilita la condivisione di testo con il servizio pastebin.com -Comment[ja]=pastebin.com のサービスを用いたテキストの共有を有効にする -Comment[kk]=pastebin.com қызметі көмегімен мәтінді ортақ қылуды рұқсат ету -Comment[km]=បើក​ការ​ចែករំលែក​អត្ថបទ ដោយ​ប្រើ​សេវា pastebin.com -Comment[ko]=pastebin.com으로 텍스트를 공유합니다 -Comment[lt]=Įjungia dalinimąsį tekstu naudojant pastebin.com tarnybą -Comment[lv]=Ļauj kopīgot tekstu, izmantojot pastebin.com servisu -Comment[mr]=pastebin.com सेवा वापरुन पाठ्य शेअर करतो -Comment[nb]=Gjør det mulig å dele tekst via tjenesten pastebin.com -Comment[nds]=Text op "pastebin.com" praatstellen -Comment[nl]=Staat het delen van tekst toe met gebruik van de service pastebin.com -Comment[nn]=Gjer det mogleg å dela tekst via tenesta pastebin.com -Comment[pa]=pastebin.com ਸਰਵਿਸ ਦੀ ਵਰਤੋਂ ਕਰਕੇ ਟੈਕਸਟ ਸਾਂਝਾ ਕਰੋ -Comment[pl]=Udostępniania tekst przy użyciu usługi pastebin.com -Comment[pt]=Permite a partilha de texto com o serviço do 'pastebin.com' -Comment[pt_BR]=Permite o compartilhamento de texto usando o serviço do pastebin.com -Comment[ro]=Permite partajarea textului cu serviciul pastebin.com -Comment[ru]=Позволяет публиковать текст на сервере pastebin.com -Comment[sk]=Povolí zdieľanie textu pomocou služby pastebin.com -Comment[sl]=Omogoča deljenje besedila prek storitve pastebin.com -Comment[sr]=Дељење текста преко сервиса pastebin.com -Comment[sr@ijekavian]=Дијељење текста преко сервиса pastebin.com -Comment[sr@ijekavianlatin]=Dijeljenje teksta preko servisa pastebin.com -Comment[sr@latin]=Deljenje teksta preko servisa pastebin.com -Comment[sv]=Tillåter att text delas genom att använda tjänsten pastebin.com -Comment[tr]=pastebin.com servisini kullanarak metinleri paylaşmayı sağlar -Comment[ug]=تېكىستلەرنى pastebin.com مۇلازىمىتىنى ئىشلىتىپ ھەمبەھىرلەشكە ئىجازەت -Comment[uk]=Уможливлює оприлюднення фрагментів тексту за допомогою служби pastebin.com -Comment[vi]=Cho phép chia sẻ văn bản qua dịch vụ pastebin.com -Comment[wa]=Permete li pårtaedje di scrijhaedje e s' siervant do siervice pastebin.com -Comment[x-test]=xxAllows text to be shared using the pastebin.com servicexx -Comment[zh_CN]=用 pastebin.com 服务共享文本 -Comment[zh_TW]=允許使用 pastebin.com 服務分享文字 -Type=Service - -X-KDE-ServiceTypes=Plasma/ShareProvider -X-KDE-Library=plasma_engine_share -X-KDE-PlasmaShareProvider-MimeType=text/* - -X-KDE-PluginInfo-Name=pastebincom -X-KDE-PluginInfo-Author=Artur de Souza -X-KDE-PluginInfo-Email=asouza@kde.org -X-KDE-PluginInfo-Version=0.1 -X-KDE-PluginInfo-Website=https://www.kde.org/plasma-desktop - diff --git a/dataengines/share/backends/pasteopensuseorg/CMakeLists.txt b/dataengines/share/backends/pasteopensuseorg/CMakeLists.txt deleted file mode 100644 index 956b9023a..000000000 --- a/dataengines/share/backends/pasteopensuseorg/CMakeLists.txt +++ /dev/null @@ -1,7 +0,0 @@ -configure_file(${CMAKE_CURRENT_SOURCE_DIR}/metadata.desktop ${CMAKE_CURRENT_BINARY_DIR}/plasma-dataengine-share-addon-pasteopensuseorg.desktop COPYONLY) -install(FILES ${CMAKE_CURRENT_BINARY_DIR}/plasma-dataengine-share-addon-pasteopensuseorg.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR}) -install(FILES metadata.desktop - DESTINATION ${PLASMA_DATA_INSTALL_DIR}/shareprovider/pasteopensuseorg) - -install(DIRECTORY contents - DESTINATION ${PLASMA_DATA_INSTALL_DIR}/shareprovider/pasteopensuseorg) diff --git a/dataengines/share/backends/pasteopensuseorg/contents/code/main.js b/dataengines/share/backends/pasteopensuseorg/contents/code/main.js deleted file mode 100644 index 6beaacb97..000000000 --- a/dataengines/share/backends/pasteopensuseorg/contents/code/main.js +++ /dev/null @@ -1,46 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2010 by Will Stephenson * - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * - * * - * This program 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 General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program; if not, write to the * - * Free Software Foundation, Inc., * - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . * - ***************************************************************************/ - -function url() { - return "http://paste.opensuse.org"; -} - -function contentKey() { - return "code"; -} - -function setup() { - provider.addQueryItem("name", "KDE"); - provider.addQueryItem("title", "mypaste"); - provider.addQueryItem("lang", "text"); - provider.addQueryItem("expire", "1440"); - provider.addQueryItem("submit", "submit"); -} - -function handleResultData(data) { - var res = data.match("(Info.+)"); - if (res != "") { - return; - } - provider.error(data); -} - -function handleRedirection(url) { - provider.success(url); -} diff --git a/dataengines/share/backends/pasteopensuseorg/metadata.desktop b/dataengines/share/backends/pasteopensuseorg/metadata.desktop deleted file mode 100644 index 05bc95f5c..000000000 --- a/dataengines/share/backends/pasteopensuseorg/metadata.desktop +++ /dev/null @@ -1,129 +0,0 @@ -[Desktop Entry] -Name=paste.opensuse.org -Name[bg]=paste.opensuse.org -Name[bs]=paste.opensuse.org -Name[ca]=paste.opensuse.org -Name[ca@valencia]=paste.opensuse.org -Name[cs]=paste.opensuse.org -Name[da]=paste.opensuse.org -Name[de]=paste.opensuse.org -Name[el]=paste.opensuse.org -Name[en_GB]=paste.opensuse.org -Name[es]=paste.opensuse.org -Name[et]=paste.opensuse.org -Name[eu]=paste.opensuse.org -Name[fi]=paste.opensuse.org -Name[fr]=paste.opensuse.org -Name[ga]=paste.opensuse.org -Name[gl]=paste.opensuse.org -Name[gu]=paste.opensuse.org -Name[he]=paste.opensuse.org -Name[hi]=paste.opensuse.org -Name[hr]=paste.opensuse.org -Name[hu]=paste.opensuse.org -Name[ia]=paste.opensuse.org -Name[id]=paste.opensuse.org -Name[is]=paste.opensuse.org -Name[it]=paste.opensuse.org -Name[ja]=paste.opensuse.org -Name[kk]=paste.opensuse.org -Name[km]=paste.opensuse.org -Name[ko]=paste.opensuse.org -Name[lt]=paste.opensuse.org -Name[lv]=paste.opensuse.org -Name[mr]=paste.opensuse.org -Name[nb]=paste.opensuse.org -Name[nds]=paste.opensuse.org -Name[nl]=paste.opensuse.org -Name[nn]=paste.opensuse.org -Name[pa]=paste.opensuse.org -Name[pl]=paste.opensuse.org -Name[pt]=paste.opensuse.org -Name[pt_BR]=paste.opensuse.org -Name[ro]=paste.opensuse.org -Name[ru]=paste.opensuse.org -Name[sk]=paste.opensuse.org -Name[sl]=paste.opensuse.org -Name[sr]=paste.opensuse.org -Name[sr@ijekavian]=paste.opensuse.org -Name[sr@ijekavianlatin]=paste.opensuse.org -Name[sr@latin]=paste.opensuse.org -Name[sv]=paste.opensuse.org -Name[tg]=paste.opensuse.org -Name[th]=paste.opensuse.org -Name[tr]=paste.opensuse.org -Name[ug]=paste.opensuse.org -Name[uk]=paste.opensuse.org -Name[wa]=paste.opensuse.org -Name[x-test]=xxpaste.opensuse.orgxx -Name[zh_CN]=paste.opensuse.org -Name[zh_TW]=paste.opensuse.org -Comment=Paste text with openSUSE -Comment[ar]=الصق نصًّا بـأوبن سوزي -Comment[bg]=Поставяне на текст през openSUSE -Comment[bs]=Opensuseov servis za naljepljivanje teksta -Comment[ca]=Enganxa text amb openSUSE -Comment[ca@valencia]=Enganxa text amb openSUSE -Comment[cs]=Vložit text s využitím openSUSE -Comment[da]=Indsæt tekst med openSUSE -Comment[de]=Text auf paste.opensuse.org veröffentlichen -Comment[el]=Επικόλληση κειμένου με το openSUSE -Comment[en_GB]=Paste text with openSUSE -Comment[es]=Pegar texto con openSUSE -Comment[et]=Teksti asetamine openSUSE abil -Comment[eu]=Itsatsi testua OpenSUSE-rekin -Comment[fi]=Liitä tekstiä openSUSEn avulla -Comment[fr]=Colle du texte avec Open-SUSE -Comment[gl]=Pega texto con openSUSE -Comment[he]=שיתוף קטעי טקסט באמצעות openSUSE -Comment[hr]=Zalijepi tekst pomoću openSUSE-a -Comment[hu]=Szöveg beillesztése openSUSE-val -Comment[ia]=Colla texto con openSUSE -Comment[id]=Tempel teks menggunakan openSUSE -Comment[is]=Líma texta með openSUSE -Comment[it]=Incolla testo con openSUSE -Comment[ja]=openSUSE でテキストを貼りつける -Comment[kk]=openSUSE-ден мәтіді алып орналастыру -Comment[km]=បិទភ្ជាប់​​នៅ​ក្នុង​អូផឹនស៊ូស៊ី -Comment[ko]=openSUSE 텍스트 공유 서비스 -Comment[lt]=Padėti tekstą naudojant openSUSE -Comment[lv]=Ielīmēt tekstu ar openSUSE -Comment[mr]=openSUSE वापरुन पाठ्य चिटकवा -Comment[nb]=Lim inn tekst med openSUSE -Comment[nds]=Text op "openSUSE" praatstellen -Comment[nl]=Plak tekst met openSUSE -Comment[nn]=Lim inn tekst med openSUSE -Comment[pa]=openSUSE ਨਾਲ ਟੈਕਸਟ ਚੇਪੋopenSUSE ਨਾਲ ਟੈਕਸਟ ਚਪੇ -Comment[pl]=Wkleja tekst z openSUSE -Comment[pt]=Colar texto com o openSUSE -Comment[pt_BR]=Colar texto com o openSUSE -Comment[ro]=Lipește text cu openSUSE -Comment[ru]=Позволяет публиковать текст на сервере openSUSE -Comment[sk]=Vloží text pomocou služby openSUSE -Comment[sl]=Prilepite besedilo z openSUSE -Comment[sr]=Опенсусеов сервис за налепљивање текста -Comment[sr@ijekavian]=Опенсусеов сервис за наљепљивање текста -Comment[sr@ijekavianlatin]=OpenSuSE‑ov servis za naljepljivanje teksta -Comment[sr@latin]=OpenSuSE‑ov servis za nalepljivanje teksta -Comment[sv]=Klistra in text med openSUSE -Comment[tg]=Часпондани матн бо openSUSE -Comment[th]=แปะข้อความไปยังบริการของ openSUSE -Comment[tr]=Metinleri openSUSE servini kullanarak paylaş -Comment[ug]=openSUSE تىن تېكىست چاپلا -Comment[uk]=Вставити фрагмент тексту з openSUSE -Comment[wa]=Aclaper do tecse avou openSUSE -Comment[x-test]=xxPaste text with openSUSExx -Comment[zh_CN]=用 openSUSE 粘贴文本 -Comment[zh_TW]=用 openSUSE 貼上文字 -Type=Service - -X-KDE-ServiceTypes=Plasma/ShareProvider -X-KDE-Library=plasma_engine_share -X-KDE-PlasmaShareProvider-MimeType=text/* - -X-KDE-PluginInfo-Name=pasteopensuseorg -X-KDE-PluginInfo-Author=Will Stephenson -X-KDE-PluginInfo-Email=wstephenson@suse.de -X-KDE-PluginInfo-Version=0.1 -X-KDE-PluginInfo-Website=https://www.kde.org/plasma-desktop - diff --git a/dataengines/share/backends/pasteubuntucom/CMakeLists.txt b/dataengines/share/backends/pasteubuntucom/CMakeLists.txt deleted file mode 100644 index 89940abfd..000000000 --- a/dataengines/share/backends/pasteubuntucom/CMakeLists.txt +++ /dev/null @@ -1,7 +0,0 @@ -configure_file(${CMAKE_CURRENT_SOURCE_DIR}/metadata.desktop ${CMAKE_CURRENT_BINARY_DIR}/plasma-dataengine-share-addon-pasteubuntucom.desktop COPYONLY) -install(FILES ${CMAKE_CURRENT_BINARY_DIR}/plasma-dataengine-share-addon-pasteubuntucom.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR}) -install(FILES metadata.desktop - DESTINATION ${PLASMA_DATA_INSTALL_DIR}/shareprovider/pasteubuntucom) - -install(DIRECTORY contents - DESTINATION ${PLASMA_DATA_INSTALL_DIR}/shareprovider/pasteubuntucom) diff --git a/dataengines/share/backends/pasteubuntucom/contents/code/main.js b/dataengines/share/backends/pasteubuntucom/contents/code/main.js deleted file mode 100644 index e0d768b92..000000000 --- a/dataengines/share/backends/pasteubuntucom/contents/code/main.js +++ /dev/null @@ -1,41 +0,0 @@ -/* - Copyright © 2010 Harald Sitter - - This program is free software; you can redistribute it and/or - modify it under the terms of the GNU General Public License as - published by the Free Software Foundation; either version 2 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 14 of version 3 of the license. - - This program 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 General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . -*/ - -function url() { - return "http://paste.ubuntu.com"; -} - -function contentKey() { - return "content"; -} - -function setup() { - provider.addQueryItem("poster", "KDE"); - provider.addQueryItem("syntax", "text"); -} - -function handleResultData(data) { - // Whenever no redirection was received, it is an error - provider.error(data); -} - -function handleRedirection(url) { - provider.success(url); -} diff --git a/dataengines/share/backends/pasteubuntucom/metadata.desktop b/dataengines/share/backends/pasteubuntucom/metadata.desktop deleted file mode 100644 index 9d86a906b..000000000 --- a/dataengines/share/backends/pasteubuntucom/metadata.desktop +++ /dev/null @@ -1,70 +0,0 @@ -[Desktop Entry] -Name=paste.ubuntu.com -Name[bg]=paste.ubuntu.com -Name[bs]=paste.ubuntu.com -Name[ca]=paste.ubuntu.com -Name[ca@valencia]=paste.ubuntu.com -Name[cs]=paste.ubuntu.com -Name[da]=paste.ubuntu.com -Name[de]=paste.ubuntu.com -Name[el]=paste.ubuntu.com -Name[en_GB]=paste.ubuntu.com -Name[es]=paste.ubuntu.com -Name[et]=paste.ubuntu.com -Name[eu]=paste.ubuntu.com -Name[fi]=paste.ubuntu.com -Name[fr]=paste.ubuntu.com -Name[ga]=paste.ubuntu.com -Name[gl]=paste.ubuntu.com -Name[gu]=paste.ubuntu.com -Name[he]=paste.ubuntu.com -Name[hi]=paste.ubuntu.com -Name[hr]=paste.ubuntu.com -Name[hu]=paste.ubuntu.com -Name[ia]=paste.ubuntu.com -Name[id]=paste.ubuntu.com -Name[is]=paste.ubuntu.com -Name[it]=paste.ubuntu.com -Name[ja]=paste.ubuntu.com -Name[kk]=paste.ubuntu.com -Name[km]=paste.ubuntu.com -Name[ko]=paste.ubuntu.com -Name[lt]=paste.ubuntu.com -Name[lv]=paste.ubuntu.com -Name[mr]=paste.ubuntu.com -Name[nb]=paste.ubuntu.com -Name[nds]=paste.ubuntu.com -Name[nl]=paste.ubuntu.com -Name[nn]=paste.ubuntu.com -Name[pa]=paste.ubuntu.com -Name[pl]=paste.ubuntu.com -Name[pt]=paste.ubuntu.com -Name[pt_BR]=paste.ubuntu.com -Name[ro]=paste.ubuntu.com -Name[ru]=paste.ubuntu.com -Name[sk]=paste.ubuntu.com -Name[sl]=paste.ubuntu.com -Name[sr]=paste.ubuntu.com -Name[sr@ijekavian]=paste.ubuntu.com -Name[sr@ijekavianlatin]=paste.ubuntu.com -Name[sr@latin]=paste.ubuntu.com -Name[sv]=paste.ubuntu.com -Name[th]=paste.ubuntu.com -Name[tr]=paste.ubuntu.com -Name[ug]=paste.ubuntu.com -Name[uk]=paste.ubuntu.com -Name[wa]=paste.ubuntu.com -Name[x-test]=xxpaste.ubuntu.comxx -Name[zh_CN]=paste.ubuntu.com -Name[zh_TW]=paste.ubuntu.com -Type=Service - -X-KDE-ServiceTypes=Plasma/ShareProvider -X-KDE-Library=plasma_engine_share -X-KDE-PlasmaShareProvider-MimeType=text/* - -X-KDE-PluginInfo-Name=pasteubuntucom -X-KDE-PluginInfo-Author=Harald Sitter -X-KDE-PluginInfo-Email=apachelogger@ubuntu.com -X-KDE-PluginInfo-Version=1.0 -X-KDE-PluginInfo-Website=http://www.ubuntu.com diff --git a/dataengines/share/backends/privatepaste/CMakeLists.txt b/dataengines/share/backends/privatepaste/CMakeLists.txt deleted file mode 100644 index 881a1a639..000000000 --- a/dataengines/share/backends/privatepaste/CMakeLists.txt +++ /dev/null @@ -1,7 +0,0 @@ -configure_file(${CMAKE_CURRENT_SOURCE_DIR}/metadata.desktop ${CMAKE_CURRENT_BINARY_DIR}/plasma-dataengine-share-addon-privatepastecom.desktop COPYONLY) -install(FILES ${CMAKE_CURRENT_BINARY_DIR}/plasma-dataengine-share-addon-privatepastecom.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR}) -install(FILES metadata.desktop - DESTINATION ${PLASMA_DATA_INSTALL_DIR}/shareprovider/privatepastecom) - -install(DIRECTORY contents - DESTINATION ${PLASMA_DATA_INSTALL_DIR}/shareprovider/privatepastecom) diff --git a/dataengines/share/backends/privatepaste/contents/code/main.js b/dataengines/share/backends/privatepaste/contents/code/main.js deleted file mode 100644 index 243037f91..000000000 --- a/dataengines/share/backends/privatepaste/contents/code/main.js +++ /dev/null @@ -1,46 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2010 by Artur Duque de Souza * - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * - * * - * This program 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 General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program; if not, write to the * - * Free Software Foundation, Inc., * - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . * - ***************************************************************************/ - -function url() { - return "http://privatepaste.com/save"; -} - -function contentKey() { - return "paste_content"; -} - -function setup() { - provider.addQueryItem("_xsrf", "d38415c699a0408ebfce524c2dc0a4ba"); - provider.addQueryItem("formatting", "No Formatting"); - provider.addQueryItem("line_numbers", "on"); - provider.addQueryItem("expire", "31536000"); - provider.addQueryItem("secure_paste", "off"); -} - -function handleResultData(data) { - var res = data.match("(Error.+)"); - if (res != "") { - return; - } - provider.error(data); -} - -function handleRedirection(url) { - provider.success(url); -} diff --git a/dataengines/share/backends/privatepaste/metadata.desktop b/dataengines/share/backends/privatepaste/metadata.desktop deleted file mode 100644 index dd3fe25a6..000000000 --- a/dataengines/share/backends/privatepaste/metadata.desktop +++ /dev/null @@ -1,127 +0,0 @@ -[Desktop Entry] -Name=privatepaste.com -Name[bg]=privatepaste.com -Name[bs]=privatepaste.com -Name[ca]=privatepaste.com -Name[ca@valencia]=privatepaste.com -Name[cs]=privatepaste.com -Name[da]=privatepaste.com -Name[de]=privatepaste.com -Name[el]=privatepaste.com -Name[en_GB]=privatepaste.com -Name[es]=privatepaste.com -Name[et]=privatepaste.com -Name[eu]=privatepaste.com -Name[fi]=privatepaste.com -Name[fr]=privatepaste.com -Name[ga]=privatepaste.com -Name[gl]=privatepaste.com -Name[gu]=privatepaste.com -Name[he]=privatepaste.com -Name[hi]=privatepaste.com -Name[hr]=privatepaste.com -Name[hu]=privatepaste.com -Name[ia]=privatepaste.com -Name[id]=privatepaste.com -Name[is]=privatepaste.com -Name[it]=privatepaste.com -Name[ja]=privatepaste.com -Name[kk]=privatepaste.com -Name[km]=privatepaste.com -Name[ko]=privatepaste.com -Name[lt]=privatepaste.com -Name[lv]=privatepaste.com -Name[mr]=privatepaste.com -Name[nb]=privatepaste.com -Name[nds]=privatepaste.com -Name[nl]=privatepaste.com -Name[nn]=privatepaste.com -Name[pa]=privatepaste.com -Name[pl]=privatepaste.com -Name[pt]=privatepaste.com -Name[pt_BR]=privatepaste.com -Name[ro]=privatepaste.com -Name[ru]=privatepaste.com -Name[sk]=privatepaste.com -Name[sl]=privatepaste.com -Name[sr]=privatepaste.com -Name[sr@ijekavian]=privatepaste.com -Name[sr@ijekavianlatin]=privatepaste.com -Name[sr@latin]=privatepaste.com -Name[sv]=privatepaste.com -Name[th]=privatepaste.com -Name[tr]=privatepaste.com -Name[ug]=privatepaste.com -Name[uk]=privatepaste.com -Name[wa]=privatepaste.com -Name[x-test]=xxprivatepaste.comxx -Name[zh_CN]=privatepaste.com -Name[zh_TW]=privatepaste.com -Comment=Paste text with the PrivatePaste.com service -Comment[ar]=الصق نصًّا بخدة PrivatePaste.com -Comment[bg]=Поставяне на текст през услугата PrivatePaste.com -Comment[bs]=Naljepljivanje teksta preko servisa privatepaste.com -Comment[ca]=Enganxa text amb el servei PrivatePaste.com -Comment[ca@valencia]=Enganxa text amb el servei PrivatePaste.com -Comment[cs]=Vložit text s využitím služby PrivatePaste.com -Comment[da]=Indsæt tekst med tjenesten PrivatePaste.com -Comment[de]=Text auf PrivatePaste.com veröffentlichen -Comment[el]=Επικόλληση κειμένου με την υπηρεσία PrivatePaste.com -Comment[en_GB]=Paste text with the PrivatePaste.com service -Comment[es]=Pegar texto mediante el servicio PrivatePaste.com -Comment[et]=Teksti asetamine PrivatePaste.com teenuse abil -Comment[eu]=Itsatsi testua PrivatePaste.com zerbitzuaren bidez -Comment[fi]=Liitä tekstiä PrivatePaste.com-palvelun avulla -Comment[fr]=Colle du texte à l'aide du service « PrivatePaste.com » -Comment[gl]=Pega texto co servizo PrivatePaste.com -Comment[he]=שיתוף קטעי טקסט באמצעות PrivatePaste.com -Comment[hr]=Zalijepi tekst pomoću servisa PrivatePaste.com -Comment[hu]=Szöveg beillesztése a PrivatePaste.com szolgáltatással -Comment[ia]=Colla texto con le servicio PrivatePaste.com -Comment[id]=Tempel teks dengan layanan PrivatePaste.com -Comment[is]=Líma texta með PrivatePaste.com límklippusafninu -Comment[it]=Incolla testo con il servizio PrivatePaste.com -Comment[ja]=PrivatePaste.com のサービスを用いてテキストを貼り付ける -Comment[kk]=PrivatePaste.com қызметінен мәтінді алып орналастыру -Comment[km]=បិទភ្ជាប់​អត្ថបទ​ដោយ​ប្រើ​សេវា PrivatePaste.com -Comment[ko]=PrivatePaste.com으로 텍스트를 공유합니다 -Comment[lt]=Padėti tekstą naudojant PrivatePaste.com tarnybą -Comment[lv]=Ielīmēt tekstu ar PrivatePaste.com servisu -Comment[mr]=privatepaste.com सेवा वापरुन पाठ्य चिटकवा -Comment[nb]=Lim inn tekst med tjenesten PrivatePaste.com -Comment[nds]=Text op "PrivatePaste.com" praatstellen -Comment[nl]=Plak tekst met de service PrivatePaste.com -Comment[nn]=Lim inn tekst med tenesta PrivatePaste.com -Comment[pa]=PrivatePaste.com ਸਰਵਿਸ ਨਾਲ ਟੈਕਸਟ ਚੇਪੋ -Comment[pl]=Wkleja tekst z usługą PrivatePaste.com -Comment[pt]=Colar texto com o serviço PrivatePaste.com -Comment[pt_BR]=Colar texto com o serviço PrivatePaste.com -Comment[ro]=Lipește text cu serviciul PrivatePaste.com -Comment[ru]=Позволяет публиковать текст на сервере PrivatePaste.com -Comment[sk]=Vloží text pomocou služby PrivatePaste.com -Comment[sl]=Prilepite besedilo s storitvijo PrivatePaste.com -Comment[sr]=Налепљивање текста преко сервиса privatepaste.com -Comment[sr@ijekavian]=Наљепљивање текста преко сервиса privatepaste.com -Comment[sr@ijekavianlatin]=Naljepljivanje teksta preko servisa privatepaste.com -Comment[sr@latin]=Nalepljivanje teksta preko servisa privatepaste.com -Comment[sv]=Klistra in text med tjänsten PrivatePaste.com -Comment[th]=แปะข้อความไปยังบริการของ PrivatePaste.com -Comment[tr]=Metinleri PrivatePaste.com servisini kullanarak paylaş -Comment[ug]=PrivatePaste.com مۇلازىمىتىدىن تېكىست چاپلا -Comment[uk]=Вставка фрагментів тексту за допомогою служби PrivatePaste.com -Comment[wa]=Aclaper do tecse avou l' siervice PrivatePaste.com -Comment[x-test]=xxPaste text with the PrivatePaste.com servicexx -Comment[zh_CN]=用 PrivatePaste.com 服务粘贴文本 -Comment[zh_TW]=用 PrivatePaste.com 服務貼上文字 -Type=Service - -X-KDE-ServiceTypes=Plasma/ShareProvider -X-KDE-Library=plasma_engine_share -X-KDE-PlasmaShareProvider-MimeType=text/* - -X-KDE-PluginInfo-Name=privatepastecom -X-KDE-PluginInfo-Author=Artur Souza -X-KDE-PluginInfo-Email=asouza@kde.org -X-KDE-PluginInfo-Version=0.1 -X-KDE-PluginInfo-Website=https://www.kde.org/plasma-desktop - diff --git a/dataengines/share/backends/simplestimagehosting/CMakeLists.txt b/dataengines/share/backends/simplestimagehosting/CMakeLists.txt deleted file mode 100644 index 693e895d0..000000000 --- a/dataengines/share/backends/simplestimagehosting/CMakeLists.txt +++ /dev/null @@ -1,7 +0,0 @@ -configure_file(${CMAKE_CURRENT_SOURCE_DIR}/metadata.desktop ${CMAKE_CURRENT_BINARY_DIR}/plasma-dataengine-share-addon-simplestimagehosting.desktop COPYONLY) -install(FILES ${CMAKE_CURRENT_BINARY_DIR}/plasma-dataengine-share-addon-simplestimagehosting.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR}) -install(FILES metadata.desktop - DESTINATION ${PLASMA_DATA_INSTALL_DIR}/shareprovider/simplestimagehosting/) - -install(DIRECTORY contents - DESTINATION ${PLASMA_DATA_INSTALL_DIR}/shareprovider/simplestimagehosting) diff --git a/dataengines/share/backends/simplestimagehosting/contents/code/main.js b/dataengines/share/backends/simplestimagehosting/contents/code/main.js deleted file mode 100644 index bb68974d1..000000000 --- a/dataengines/share/backends/simplestimagehosting/contents/code/main.js +++ /dev/null @@ -1,38 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2010 by Artur Duque de Souza * - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * - * * - * This program 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 General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program; if not, write to the * - * Free Software Foundation, Inc., * - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . * - ***************************************************************************/ - -function url() { - return "http://api.simplest-image-hosting.net/upload:image,default"; -} - -function contentKey() { - return "fileName"; -} - -function setup() { -} - -function handleResultData(data) { - var res = data.match("800\n(http://.+)\n"); - if (res == "") { - provider.error(data); - return; - } - provider.success(data.replace("800", "").replace("\n", "")); -} diff --git a/dataengines/share/backends/simplestimagehosting/metadata.desktop b/dataengines/share/backends/simplestimagehosting/metadata.desktop deleted file mode 100644 index 777083a8d..000000000 --- a/dataengines/share/backends/simplestimagehosting/metadata.desktop +++ /dev/null @@ -1,125 +0,0 @@ -[Desktop Entry] -Name=Simplest Image Hosting -Name[ar]=أسهل استضافة للصور -Name[bg]=Simplest Image Hosting -Name[bs]=Simplest Image Hosting -Name[ca]=Simplest Image Hosting -Name[ca@valencia]=Simplest Image Hosting -Name[cs]=Simplest Image Hosting -Name[da]=Simplest Image Hosting -Name[de]=Simplest Image Hosting -Name[el]=Simplest Image Hosting -Name[en_GB]=Simplest Image Hosting -Name[es]=Simplest Image Hosting -Name[et]=Simplest Image Hosting -Name[eu]=Simplest Image Hosting -Name[fi]=Simplest Image Hosting -Name[fr]=Simplest Image Hosting -Name[gl]=Simplest Image Hosting -Name[he]=Simplest Image Hosting -Name[hr]=Simplest Image Hosting -Name[hu]=Simplest Image Hosting -Name[ia]=Simplest Image Hosting -Name[id]=Simplest Image Hosting -Name[is]=Simplest Image Hosting -Name[it]=Simplest Image Hosting -Name[ja]=Simplest Image Hosting -Name[kk]=Simplest Image Hosting -Name[km]=ការ​បង្ហោះរូបភាព​សាមញ្ញ​បំផុត -Name[ko]=Simplest Image Hosting -Name[lt]=Paprasčiausias nuotraukų talpinimas -Name[lv]=Simplest Image Hosting -Name[mr]=सिंप्लेस्ट प्रतिमा होस्टींग -Name[nb]=Simplest Image Hosting -Name[nds]=Simplest-Image-Hosting -Name[nl]=Simplest Image Hosting -Name[nn]=Simplest Image Hosting -Name[pa]=ਸੈਂਪਲਸਟ ਈਮੇਜ਼ ਹੋਸਟਿੰਗ -Name[pl]=Simplest Image Hosting -Name[pt]=Simplest Image Hosting -Name[pt_BR]=Simplest Image Hosting -Name[ro]=Cea mai simplă găzduire de imagini -Name[ru]=Simplest-Image-Hosting.net -Name[sk]=Simplest Image Hosting -Name[sl]=Simplest Image Hosting -Name[sr]=Симплест имејџ хостинг -Name[sr@ijekavian]=Симплест имејџ хостинг -Name[sr@ijekavianlatin]=Simplest Image Hosting -Name[sr@latin]=Simplest Image Hosting -Name[sv]=Simplest Image Hosting -Name[th]=บริการ Simplest Image Hosting -Name[tr]=Simplest Image Hosting -Name[ug]=Simplest Image Hosting -Name[uk]=Simplest Image Hosting -Name[wa]=Simplest Image Hosting -Name[x-test]=xxSimplest Image Hostingxx -Name[zh_CN]=Simplest Image Hosting -Name[zh_TW]=Simplest Image Hosting -Comment=Allows images to be shared using the Simplest Image Hosting service -Comment[ar]=يسمح بمشاركة الصور عبر خدمة أسهل استضافة للصور -Comment[bg]=Позволява споделяне на изображения чрез услугата Simplest Image Hosting -Comment[bs]=Dijeljenje slika preko servisa Simplest image hosting -Comment[ca]=Permet la compartició d'imatges utilitzant el servei «Simplest Image Hosting» -Comment[ca@valencia]=Permet la compartició d'imatges utilitzant el servei «Simplest Image Hosting» -Comment[cs]=Povolí sdílení obrázků pomocí služby Simplest Image Hosting -Comment[da]=Muliggør deling af billeder med tjenesten Simplest Image Hosting -Comment[de]=Ermöglicht die Veröffentlichung von Bildern über den simplest-image-hosting.net-Dienst -Comment[el]=Επιτρέπει την κοινή χρήση των εικόνων χρησιμοποιώντας την υπηρεσία Simplest Image Hosting -Comment[en_GB]=Allows images to be shared using the Simplest Image Hosting service -Comment[es]=Permite compartir imágenes a través del servicio de Simplest Image Hosting -Comment[et]=Piltide jagamine Simplest Image Hosting teenuse kaudu -Comment[eu]=Irudiak Simplest Image Hosting zerbitzuaren bidez partekatzeko aukera ematen du -Comment[fi]=Mahdollistaa kuvien jakamisen Simplest Image Hosting -palvelussa -Comment[fr]=Permet le partage d'images à l'aide du service « Simplest Image Hosting » -Comment[gl]=Permite compartir imaxes mediante o servizo Simplest Image Hosting -Comment[he]=מאפשר שיתוף תמונות באמצעות השירות Simplest Image Hosting -Comment[hr]=Omogućuje dijeljenje slika koristeći servis Simplest Image Hosting -Comment[hu]=Képek megosztása a Simple Image Hosting szolgáltatás használatával -Comment[ia]=Il permitte imagines de esser compartite per usar le servicio Simplest Image Hosting -Comment[id]=Memungkinkan berbagi gambar menggunakan layanan Simplest Image Hosting -Comment[is]=Gerir kleift að deila myndum með Simplest Image Hosting þjónustunni -Comment[it]=Abilita la condivisione di immagini con il servizio Simplest Image Hosting -Comment[ja]=Simplest Image Hosting のサービスを用いたテキストの共有を有効にする -Comment[kk]=Simplest Image Hosting қызметі көмегімен кескіндерді ортақ қылуды рұқсат ету -Comment[km]=បើក​ការ​ចែករំលែក​រូបភាព​ ដោយ​ប្រើ​សេវា​បង្ហោះ​រូបភាព​សាមញ្ញ​បំផុត​ -Comment[ko]=Simplest Image Hosting으로 그림을 공유합니다 -Comment[lt]=Įjungia dalinimąsį nuotraukomis naudojant paprasčiausio nuotraukų talpinimo tarnybą -Comment[lv]=Ļauj kopīgot attēlus, izmantojot Simplest Image Hosting servisu -Comment[mr]=सिंप्लेस्ट प्रतिमा होस्टींग सेवा वापरुन प्रतिमा शेअर करतो -Comment[nb]=Gjør det mulig å dele bilder via tjenesten Simplest Image Hosting -Comment[nds]=Biller op "Simplest Image Hosting" praatstellen -Comment[nl]=Staat het delen van afbeeldingen toe met gebruik van de service Simplest Image Hosting -Comment[nn]=Gjer det mogleg å dela bilete via tenesta Simplest Image Hosting -Comment[pa]=ਸੈਂਪਲਸਟ ਈਮੇਜ਼ ਹੋਸਟਿੰਗ ਸਰਵਿਸ ਦੀ ਵਰਤੋਂ ਕਰਕੇ ਚਿੱਤਰ ਸਾਂਝੇ ਕਰਨ ਲਈ ਸਹਾਇਕ -Comment[pl]=Udostępniania obrazy przy użyciu usługi Simplest Image Hosting -Comment[pt]=Permite a partilha de imagens com o serviço do Simplest Image Hosting -Comment[pt_BR]=Permite o compartilhamento de imagens usando o serviço do Simplest Image Hosting -Comment[ro]=Permite ca imaginile să fie partajate folosind serviciul Simplest Image Hosting -Comment[ru]=Позволяет публиковать изображения на сервере Simplest Image Hosting -Comment[sk]=Povolí zdieľanie obrázkov pomocou služby Simplest Image Hosting -Comment[sl]=Omogoča deljenje slik prek storitve Simplest Image Hosting -Comment[sr]=Дељење слика преко сервиса Симплест имејџ хостинг -Comment[sr@ijekavian]=Дијељење слика преко сервиса Симплест имејџ хостинг -Comment[sr@ijekavianlatin]=Dijeljenje slika preko servisa Simplest Image Hosting -Comment[sr@latin]=Deljenje slika preko servisa Simplest Image Hosting -Comment[sv]=Tillåter att bilder delas genom att använda Simplest Image Hosting -Comment[tr]=Simplest Image Hosting servisini kullanarak resimleri paylaşmayı sağlar -Comment[ug]=رەسىملەرنى Simplest Image Hosting مۇلازىمىتىنى ئىشلىتىپ ھەمبەھىرلەشكە ئىجازەت -Comment[uk]=Уможливлює оприлюднення зображень за допомогою служби Simplest Image Hosting -Comment[vi]=Cho phép chia sẻ ảnh qua dịch vụ Simplet Image Hosting -Comment[wa]=Permete li pårtaedje d' imådjes e s' siervant do siervice Simplest Image Hosting -Comment[x-test]=xxAllows images to be shared using the Simplest Image Hosting servicexx -Comment[zh_CN]=用 Simplest Image Hosting 服务共享图片 -Comment[zh_TW]=允許使用 Simplest Image Hosting 服務分享影像 -Type=Service - -X-KDE-ServiceTypes=Plasma/ShareProvider -X-KDE-Library=plasma_engine_share -X-KDE-PlasmaShareProvider-MimeType=image/* - -X-KDE-PluginInfo-Name=simplestimagehosting -X-KDE-PluginInfo-Author=Artur de Souza -X-KDE-PluginInfo-Email=asouza@kde.org -X-KDE-PluginInfo-Version=0.1 -X-KDE-PluginInfo-Website=https://www.kde.org/plasma-desktop - diff --git a/dataengines/share/backends/wklej/CMakeLists.txt b/dataengines/share/backends/wklej/CMakeLists.txt deleted file mode 100644 index 861837f06..000000000 --- a/dataengines/share/backends/wklej/CMakeLists.txt +++ /dev/null @@ -1,7 +0,0 @@ -configure_file(${CMAKE_CURRENT_SOURCE_DIR}/metadata.desktop ${CMAKE_CURRENT_BINARY_DIR}/plasma-dataengine-share-addon-wklej.desktop COPYONLY) -install(FILES ${CMAKE_CURRENT_BINARY_DIR}/plasma-dataengine-share-addon-wklej.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR}) -install(FILES metadata.desktop - DESTINATION ${PLASMA_DATA_INSTALL_DIR}/shareprovider/wklej/) - -install(DIRECTORY contents - DESTINATION ${PLASMA_DATA_INSTALL_DIR}/shareprovider/wklej) diff --git a/dataengines/share/backends/wklej/contents/code/main.js b/dataengines/share/backends/wklej/contents/code/main.js deleted file mode 100644 index 7060a89c9..000000000 --- a/dataengines/share/backends/wklej/contents/code/main.js +++ /dev/null @@ -1,41 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2010 by Artur Duque de Souza * - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * - * * - * This program 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 General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program; if not, write to the * - * Free Software Foundation, Inc., * - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . * - ***************************************************************************/ - -function url() { - return "http://wklej.org"; -} - -function contentKey() { - return "body"; -} - -function setup() { - provider.addQueryItem("autor", "kde"); - provider.addQueryItem("syntax", "text"); -} - -function handleResultData(data) { - var res = provider.parseXML("title", data); - if (res == "") { - provider.error(data); - } - var id = res.split(" ")[1].replace("#", "http://wklej.org/id/"); - provider.success(id); -} - diff --git a/dataengines/share/backends/wklej/metadata.desktop b/dataengines/share/backends/wklej/metadata.desktop deleted file mode 100644 index 5a1621b91..000000000 --- a/dataengines/share/backends/wklej/metadata.desktop +++ /dev/null @@ -1,128 +0,0 @@ -[Desktop Entry] -Name=wklej.org -Name[bg]=wklej.org -Name[bs]=wklej.org -Name[ca]=wklej.org -Name[ca@valencia]=wklej.org -Name[cs]=wklej.org -Name[da]=wklej.org -Name[de]=wklej.org -Name[el]=wklej.org -Name[en_GB]=wklej.org -Name[es]=wklej.org -Name[et]=wklej.org -Name[eu]=wklej.org -Name[fi]=wklej.org -Name[fr]=wklej.org -Name[ga]=wklej.org -Name[gl]=wklej.org -Name[gu]=wklej.org -Name[he]=wklej.org -Name[hi]=wklej.org -Name[hr]=wklej.org -Name[hu]=wklej.org -Name[ia]=wklej.org -Name[id]=wklej.org -Name[is]=wklej.org -Name[it]=wklej.org -Name[ja]=wklej.org -Name[kk]=wklej.org -Name[km]=wklej.org -Name[ko]=wklej.org -Name[lt]=wklej.org -Name[lv]=wklej.org -Name[mr]=wklej.org -Name[nb]=wklej.org -Name[nds]=wklej.org -Name[nl]=wklej.org -Name[nn]=wklej.org -Name[pa]=wklej.org -Name[pl]=wklej.org -Name[pt]=wklej.org -Name[pt_BR]=wklej.org -Name[ro]=wklej.org -Name[ru]=wklej.org -Name[sk]=wklej.org -Name[sl]=wklej.org -Name[sr]=wklej.org -Name[sr@ijekavian]=wklej.org -Name[sr@ijekavianlatin]=wklej.org -Name[sr@latin]=wklej.org -Name[sv]=wklej.org -Name[tg]=wklej.org -Name[th]=wklej.org -Name[tr]=wklej.org -Name[ug]=wklej.org -Name[uk]=wklej.org -Name[wa]=wklej.org -Name[x-test]=xxwklej.orgxx -Name[zh_CN]=wklej.org -Name[zh_TW]=wklej.org -Comment=Allows text to be shared using the wklej.org service -Comment[ar]=يسمح بمشاركة النصوص عبر خدمة wklej.org -Comment[bg]=Позволява споделянето на текст чрез wklej.org -Comment[bs]=Dopušta dijeljenje teksta preko servisa wklej.org -Comment[ca]=Permet la compartició de text utilitzant el servei wklej.org -Comment[ca@valencia]=Permet la compartició de text utilitzant el servei wklej.org -Comment[cs]=Povolí sdílení textů pomocí služby wklej.org -Comment[da]=Muliggør deling af tekst med tjenesten wklej.org -Comment[de]=Ermöglicht die Veröffentlichung von Text über den wklej.org-Dienst -Comment[el]=Επιτρέπει στο κείμενο να γίνει κοινόχρηστο χρησιμοποιώντας την υπηρεσία wklej.org -Comment[en_GB]=Allows text to be shared using the wklej.org service -Comment[es]=Permite compartir texto a través del servicio de wklej.org -Comment[et]=Teksti jagamine wklej.org teenuse kaudu -Comment[eu]=Testua wklej.org zerbitzuaren bidez partekatzeko aukera ematen du -Comment[fi]=Mahdollistaa tekstin jakamisen wklej.org-palvelussa -Comment[fr]=Permet le partage de texte à l'aide du service « wklej.org » -Comment[gl]=Permite compartir texto mediante o servizo wklej.org -Comment[he]=מאפשר שיתוף טקסט באמצעות השירות wklej.org -Comment[hr]=Omogućuje dijeljenje teksta koristeći servis wklej.org -Comment[hu]=Szöveg megosztása a wklej.org szolgáltatás használatával -Comment[ia]=Il permitte texto de esser compartite per usar le servicio wklej.org -Comment[id]=Memungkinkan berbagi teks menggunakan layanan wklej.org -Comment[is]=Gerir kleift að deila texta með wklej.org þjónustunni -Comment[it]=Abilita la condivisione di testo con il servizio wklej.org -Comment[ja]=wklej.org のサービスを用いたテキストの共有を有効にする -Comment[kk]=wklej.org қызметі көмегімен мәтінді ортақ қылуды рұқсат ету -Comment[km]=បើក​ការ​ចែករំលែក​អត្ថបទ​ដោយ​ប្រើ​សេវា wklej.org -Comment[ko]=wklej.org로 텍스트를 공유합니다 -Comment[lt]=Įjungia dalinimąsį tekstu naudojant wklej.org tarnybą -Comment[lv]=Ļauj kopīgot tekstu, izmantojot wklej.org servisu -Comment[mr]=wklej.org सेवा वापरुन पाठ्य शेअर करतो -Comment[nb]=Gjør det mulig å dele tekst via tjenesten wklej.org -Comment[nds]=Text op "wklej.org" praatstellen -Comment[nl]=Staat het delen van tekst toe met gebruik van de service wklej.org -Comment[nn]=Gjer det mogleg å dela tekst via tenesta wklej.org -Comment[pa]=wklej.org ਸਰਵਿਸ ਦੀ ਵਰਤੋਂ ਕਰਕੇ ਟੈਕਸਟ ਸਾਂਝਾ ਕਰਨਾ ਯੋਗ -Comment[pl]=Udostępniania tekst przy użyciu usługi wklej.org -Comment[pt]=Permite a partilha de texto com o serviço do 'wklej.org' -Comment[pt_BR]=Permite o compartilhamento de texto com o serviço do wklej.org -Comment[ro]=Permite partajarea textului cu serviciul wklej.org -Comment[ru]=Позволяет публиковать текст на сервере wklej.org -Comment[sk]=Povolí zdieľanie textu pomocou služby wklej.org -Comment[sl]=Omogoča deljenje besedila prek storitve wklej.org -Comment[sr]=Дељење текста преко сервиса wklej.org -Comment[sr@ijekavian]=Дијељење текста преко сервиса wklej.org -Comment[sr@ijekavianlatin]=Dijeljenje teksta preko servisa wklej.org -Comment[sr@latin]=Deljenje teksta preko servisa wklej.org -Comment[sv]=Tillåter att text delas genom att använda tjänsten wklej.org -Comment[tr]=wklej.org servisini kullanarak metinleri paylaşmayı sağlar -Comment[ug]=تېكىستلەرنى wklej.org مۇلازىمىتىنى ئىشلىتىپ ھەمبەھىرلەشكە ئىجازەت -Comment[uk]=Уможливлює оприлюднення фрагментів тексту за допомогою служби wklej.org -Comment[vi]=Cho phép chia sẻ văn bản qua dịch vụ wklej.org -Comment[wa]=Permete li pårtaedje di scrijhaedje e s' siervant do siervice wklej.org -Comment[x-test]=xxAllows text to be shared using the wklej.org servicexx -Comment[zh_CN]=用 wklej.org服务共享文字 -Comment[zh_TW]=允許使用 wklej.org 服務分享文字 -Type=Service - -X-KDE-ServiceTypes=Plasma/ShareProvider -X-KDE-Library=plasma_engine_share -X-KDE-PlasmaShareProvider-MimeType=text/* - -X-KDE-PluginInfo-Name=wklej -X-KDE-PluginInfo-Author=Artur de Souza -X-KDE-PluginInfo-Email=asouza@kde.org -X-KDE-PluginInfo-Version=0.1 -X-KDE-PluginInfo-Website=https://www.kde.org/plasma-desktop - diff --git a/dataengines/share/backends/wstaw/CMakeLists.txt b/dataengines/share/backends/wstaw/CMakeLists.txt deleted file mode 100644 index caf385e03..000000000 --- a/dataengines/share/backends/wstaw/CMakeLists.txt +++ /dev/null @@ -1,7 +0,0 @@ -configure_file(${CMAKE_CURRENT_SOURCE_DIR}/metadata.desktop ${CMAKE_CURRENT_BINARY_DIR}/plasma-dataengine-share-addon-wstaw.desktop COPYONLY) -install(FILES ${CMAKE_CURRENT_BINARY_DIR}/plasma-dataengine-share-addon-wstaw.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR}) -install(FILES metadata.desktop - DESTINATION ${PLASMA_DATA_INSTALL_DIR}/shareprovider/wstaw/) - -install(DIRECTORY contents - DESTINATION ${PLASMA_DATA_INSTALL_DIR}/shareprovider/wstaw) diff --git a/dataengines/share/backends/wstaw/contents/code/main.js b/dataengines/share/backends/wstaw/contents/code/main.js deleted file mode 100644 index 607738c80..000000000 --- a/dataengines/share/backends/wstaw/contents/code/main.js +++ /dev/null @@ -1,38 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2010 by Artur Duque de Souza * - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * - * * - * This program 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 General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program; if not, write to the * - * Free Software Foundation, Inc., * - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . * - ***************************************************************************/ - -function url() { - return "http://wstaw.org"; -} - -function contentKey() { - return "pic"; -} - -function setup() { -} - -function handleResultData(data) { - var res = data.match("value=\"http://wstaw.org/m/.+\""); - if (res == null) { - provider.error(data); - return; - } - provider.success(res[0].replace("value=", "").replace("\"", "").replace("\"", "")); -} diff --git a/dataengines/share/backends/wstaw/metadata.desktop b/dataengines/share/backends/wstaw/metadata.desktop deleted file mode 100644 index 7b0594a9f..000000000 --- a/dataengines/share/backends/wstaw/metadata.desktop +++ /dev/null @@ -1,129 +0,0 @@ -[Desktop Entry] -Name=wstaw.org -Name[bg]=wstaw.org -Name[bs]=wstaw.org -Name[ca]=wstaw.org -Name[ca@valencia]=wstaw.org -Name[cs]=wstaw.org -Name[da]=wstaw.org -Name[de]=wstaw.org -Name[el]=wstaw.org -Name[en_GB]=wstaw.org -Name[es]=wstaw.org -Name[et]=wstaw.org -Name[eu]=wstaw.org -Name[fi]=wstaw.org -Name[fr]=wstaw.org -Name[ga]=wstaw.org -Name[gl]=wstaw.org -Name[gu]=wstaw.org -Name[he]=wstaw.org -Name[hi]=wstaw.org -Name[hr]=wstaw.org -Name[hu]=wstaw.org -Name[ia]=wstaw.org -Name[id]=wstaw.org -Name[is]=wstaw.org -Name[it]=wstaw.org -Name[ja]=wstaw.org -Name[kk]=wstaw.org -Name[km]=wstaw.org -Name[ko]=wstaw.org -Name[lt]=wstaw.org -Name[lv]=wstaw.org -Name[mai]=wstaw.org -Name[mr]=wstaw.org -Name[nb]=wstaw.org -Name[nds]=wstaw.org -Name[nl]=wstaw.org -Name[nn]=wstaw.org -Name[pa]=wstaw.org -Name[pl]=wstaw.org -Name[pt]=wstaw.org -Name[pt_BR]=wstaw.org -Name[ro]=wstaw.org -Name[ru]=wstaw.org -Name[sk]=wstaw.org -Name[sl]=wstaw.org -Name[sr]=wstaw.org -Name[sr@ijekavian]=wstaw.org -Name[sr@ijekavianlatin]=wstaw.org -Name[sr@latin]=wstaw.org -Name[sv]=wstaw.org -Name[tg]=wstaw.org -Name[th]=wstaw.org -Name[tr]=wstaw.org -Name[ug]=wstaw.org -Name[uk]=wstaw.org -Name[wa]=wstaw.org -Name[x-test]=xxwstaw.orgxx -Name[zh_CN]=wstaw.org -Name[zh_TW]=wstaw.org -Comment=Allows images to be shared using the wstaw.org service -Comment[ar]=يسمح بمشاركة الصور عبر خدمة wstaw.org -Comment[bg]=Позволява споделянето на изображения чрез wstaw.org -Comment[bs]=Dopušta dijeljenje slika preko servisa wstaw.org -Comment[ca]=Permet la compartició d'imatges utilitzant el servei wstaw.org -Comment[ca@valencia]=Permet la compartició d'imatges utilitzant el servei wstaw.org -Comment[cs]=Povolí sdílení obrázků pomocí služby wstaw.org -Comment[da]=Muliggør deling af billeder med tjenesten wstaw.org -Comment[de]=Ermöglicht die Veröffentlichung von Bildern über den wstaw.org-Dienst -Comment[el]=Επιτρέπει το μοίρασμα των εικόνων χρησιμοποιώντας την υπηρεσία wstaw.org -Comment[en_GB]=Allows images to be shared using the wstaw.org service -Comment[es]=Permite compartir imágenes a través del servicio de wstaw.org -Comment[et]=Piltide jagamine wstaw.org teenuse kaudu -Comment[eu]=Irudiak wstaw.org zerbitzuaren bidez partekatzeko aukera ematen du -Comment[fi]=Mahdollistaa kuvien jakamisen wstaw.org-palvelussa -Comment[fr]=Permet le partage d'images à l'aide du service « wstaw.org » -Comment[gl]=Permite compartir imaxes mediante o servizo wstaw.org -Comment[he]=מאפשר שיתוף תמונות באמצעות השירות wstaw.org -Comment[hr]=Omogućuje dijeljenje slika koristeći servis wstaw.org -Comment[hu]=Képek megosztása a wstaw.org szolgáltatás használatával -Comment[ia]=Il permitte images de esser compartite per usar le servicio wstaw.org -Comment[id]=Memungkinkan berbagi gambar menggunakan layanan wstaw.org -Comment[is]=Gerir kleift að deila myndum með wstaw.org þjónustunni -Comment[it]=Abilita la condivisione di immagini con il servizio wstaw.org -Comment[ja]=wstaw.org のサービスを用いた画像の共有を有効にする -Comment[kk]=wstaw.org қызметі көмегімен кескіндерді ортақ қылуды рұқсат ету -Comment[km]=បើក​ការ​ចែករំលែក​រូបភាព​ ដោយ​ប្រើ​សេវា wstaw.org -Comment[ko]=wstaw.org로 그림을 공유합니다 -Comment[lt]=Įjungia dalinimąsį nuotraukomis naudojant wstaw.org tarnybą -Comment[lv]=Ļauj kopīgot attēlus, izmantojot wstaw.org servisu -Comment[mr]=wstaw.org सेवा वापरुन प्रतिमा शेअर करतो -Comment[nb]=Gjør det mulig å dele bilder via tjenesten wstaw.org -Comment[nds]=Biller op "wstaw.org" praatstellen -Comment[nl]=Staat het delen van afbeeldingen toe met gebruik van de service wstaw.org -Comment[nn]=Gjer det mogleg å dela bilete via tenesta wstaw.org -Comment[pa]=wstaw.org ਸਰਵਿਸ ਦੀ ਵਰਤੋਂ ਕਰਕੇ ਚਿੱਤਰ ਸਾਂਝੇ ਕਰਨ ਲਈ ਸਹਾਇਕ -Comment[pl]=Udostępniania obrazy przy użyciu usługi wstaw.org -Comment[pt]=Permite a partilha de imagens com o serviço do 'wstaw.org' -Comment[pt_BR]=Permite o compartilhamento de imagens usando o serviço do wstaw.org -Comment[ro]=Permite partajarea imaginilor cu serviciul wstaw.org -Comment[ru]=Позволяет публиковать изображения на сервере wstaw.org -Comment[sk]=Povolí zdieľanie obrázkov pomocou služby wstaw.org -Comment[sl]=Omogoča deljenje slik prek storitve wstaw.org -Comment[sr]=Дељење слика преко сервиса wstaw.org -Comment[sr@ijekavian]=Дијељење слика преко сервиса wstaw.org -Comment[sr@ijekavianlatin]=Dijeljenje slika preko servisa wstaw.org -Comment[sr@latin]=Deljenje slika preko servisa wstaw.org -Comment[sv]=Tillåter att bilder delas genom att använda tjänsten wstaw.org -Comment[tr]=wstaw.org servisi kullanarak resimleri paylaşmayı sağlar -Comment[ug]=رەسىملەرنى wstaw.org مۇلازىمىتىنى ئىشلىتىپ ھەمبەھىرلەشكە ئىجازەت -Comment[uk]=Уможливлює оприлюднення зображень за допомогою служби wstaw.org -Comment[vi]=Cho phép chia sẻ ảnh qua dịch vụ wstaw.org -Comment[wa]=Permete li pårtaedje d' imådjes e s' siervant do siervice wstaw.org -Comment[x-test]=xxAllows images to be shared using the wstaw.org servicexx -Comment[zh_CN]=用 wstaw.org 服务共享图片 -Comment[zh_TW]=允許使用 wstaw.org 服務分享影像 -Type=Service - -X-KDE-ServiceTypes=Plasma/ShareProvider -X-KDE-Library=plasma_engine_share -X-KDE-PlasmaShareProvider-MimeType=image/* - -X-KDE-PluginInfo-Name=wstaw -X-KDE-PluginInfo-Author=Artur de Souza -X-KDE-PluginInfo-Email=asouza@kde.org -X-KDE-PluginInfo-Version=0.1 -X-KDE-PluginInfo-Website=https://www.kde.org/plasma-desktop - diff --git a/dataengines/share/data/plasma_shareprovider.desktop b/dataengines/share/data/plasma_shareprovider.desktop deleted file mode 100644 index 370f9b4b9..000000000 --- a/dataengines/share/data/plasma_shareprovider.desktop +++ /dev/null @@ -1,62 +0,0 @@ -[Desktop Entry] -Type=ServiceType -X-KDE-ServiceType=Plasma/ShareProvider -Comment=Plugin for Plasma Sharebin -Comment[ar]=ملحقة لبلازما Sharebin -Comment[bs]=Priključak za plazma korpu dijeljenja -Comment[ca]=Connector pel Sharebin del Plasma -Comment[ca@valencia]=Connector pel Sharebin del Plasma -Comment[cs]=Zásuvný modul pro Plasma Sharebin -Comment[da]=Plugin til Plasma Sharebin -Comment[de]=Modul für Plasma-Sharebin -Comment[el]=Πρόσθετο για το Plasma Sharebin -Comment[en_GB]=Plugin for Plasma Sharebin -Comment[es]=Complemento para Plasma Sharebin -Comment[et]=Plasma Sharebini plugin -Comment[eu]=Plasmaren Sharebin-erako plugina -Comment[fi]=Plasman Sharebin-liitännäinen -Comment[fr]=Module externe « Sharebin » pour Plasma -Comment[gl]=Complemento para o motor Sharebin de Plasma -Comment[he]=תוסף עבור Plasma Sharebin -Comment[hr]=Priključak za Plasma Sharebin -Comment[hu]=Bővítmény a Plasma Sharebinhez -Comment[ia]=Plugin pro Plasma Sharebin -Comment[id]=Plugin Plasma Sharebin -Comment[is]=Íforrit fyrir Plasma Sharebin -Comment[it]=Estensione per Sharebin di Plasma -Comment[ja]=Plasma Sharebin プラグイン -Comment[kk]=Pasma ортақ дерегінің плагині -Comment[km]=កម្មវិធី​ជំនួយ​សម្រាប់​ Sharebin ប្លាស្មា -Comment[ko]=Plasma Sharebin 설정 -Comment[lt]=Plasma dalinimosi dėžės papildinys -Comment[lv]=Spraudnis priekš Plasma Sharebin -Comment[mr]=प्लाज्मा शेअरबिन करिता प्लगइन -Comment[nb]=Programtillegg for Plasma Sharebin -Comment[nds]=Moduul för "Plasma-Sharebin" -Comment[nl]=Plugin voor Plasma Sharebin -Comment[nn]=Programtillegg for Plasma Sharebin -Comment[pa]=ਪਲਾਜ਼ਮਾ ਸ਼ੇਅਰਬਿਨ ਲਈ ਪਲੱਗਇਨ -Comment[pl]=Wtyczka dla Sharebin plazmy -Comment[pt]='Plugin' para o Sharebin do Plasma -Comment[pt_BR]=Plugin para o Sharebin do Plasma -Comment[ro]=Modul pentru Plasma Sharebin -Comment[ru]=Расширение для Plasma Sharebin -Comment[sk]=Modul pre Plasma Sharebin -Comment[sl]=Vstavek za Plasma Sharebin -Comment[sr]=Прикључак за плазма корпу дељења -Comment[sr@ijekavian]=Прикључак за плазма корпу дијељења -Comment[sr@ijekavianlatin]=Priključak za plasma korpu dijeljenja -Comment[sr@latin]=Priključak za plasma korpu deljenja -Comment[sv]=Insticksprogram för Plasma Sharebin -Comment[th]=ส่วนเสริมสำหรับถังขยะร่วมกันของพลาสมา -Comment[tr]=Plasma PaylaşımKutusu için Eklenti -Comment[ug]=پلازما Sharebin ئۈچۈن قىستۇرما -Comment[uk]=Додаток до спільного ресурсу Плазми -Comment[wa]=Tchôke-divins pol batch di pårtaedje di Plasma -Comment[x-test]=xxPlugin for Plasma Sharebinxx -Comment[zh_CN]=Plasma 共享插件 -Comment[zh_TW]=Plasma Sharebin 的外掛程式 - -[PropertyDef::X-KDE-PlasmaShareProvider-MimeType] -Type=QStringList - diff --git a/dataengines/share/packagestructure/CMakeLists.txt b/dataengines/share/packagestructure/CMakeLists.txt deleted file mode 100644 index 1836220d5..000000000 --- a/dataengines/share/packagestructure/CMakeLists.txt +++ /dev/null @@ -1,18 +0,0 @@ -set(sharepackage_SRCS - share_package.cpp -) - -add_library(plasma_packagestructure_share MODULE ${sharepackage_SRCS}) -kcoreaddons_desktop_to_json(plasma_packagestructure_share plasma-packagestructure-share.desktop) -target_link_libraries(plasma_packagestructure_share - KF5::Package - KF5::I18n - KF5::Service - Qt5::Gui -) - -install(TARGETS plasma_packagestructure_share - DESTINATION ${KDE_INSTALL_PLUGINDIR}/plasma/packagestructure) -#install(FILES data/plasma-packagestructure-share.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR}) - - diff --git a/dataengines/share/packagestructure/plasma-packagestructure-share.desktop b/dataengines/share/packagestructure/plasma-packagestructure-share.desktop deleted file mode 100644 index 177fd9c98..000000000 --- a/dataengines/share/packagestructure/plasma-packagestructure-share.desktop +++ /dev/null @@ -1,124 +0,0 @@ -[Desktop Entry] -Name=ShareProvider -Name[bg]=Доставчик на услуги за споделяне -Name[bs]=Dobavljač dijeljenja -Name[ca]=ShareProvider -Name[ca@valencia]=ShareProvider -Name[cs]=ShareProvider -Name[da]=Delingsudbyder -Name[de]=Veröffentlichungsanbieter -Name[el]=Πάροχος κοινής χρήσης -Name[en_GB]=ShareProvider -Name[es]=Compartir proveedor -Name[et]=ShareProvider -Name[eu]=Partekatze-hornitzailea -Name[fi]=ShareProvider -Name[fr]=Fournisseur de partages -Name[gl]=ShareProvider -Name[he]=ShareProvider -Name[hr]=ShareProvider -Name[hu]=ShareProvider -Name[ia]=Fornitor compartite -Name[id]=Penyedia-Berbagi -Name[is]=ShareProvider -Name[it]=Fornitore di condivisione -Name[ja]=ShareProvider -Name[kk]=Ортақтастыру қызметтер -Name[km]=ShareProvider -Name[ko]=ShareProvider -Name[lt]=ShareProvider -Name[lv]=ShareProvider -Name[mr]=सेवा पुरवठाकर्ता -Name[nb]=Dele-tjenester -Name[nds]=Apenmaakdeenstanbeder -Name[nl]=ShareProvider -Name[nn]=ShareProvider -Name[pa]=ShareProvider -Name[pl]=Dostawca udostępniania -Name[pt]=Fornecedor de Partilha -Name[pt_BR]=Provedor de compartilhamento -Name[ro]=FurnizorPartajare -Name[ru]=Служба обмена информацией -Name[sk]=Poskytovateľ zdieľania -Name[sl]=ShareProvider -Name[sr]=Добављач дељења -Name[sr@ijekavian]=Добављач дијељења -Name[sr@ijekavianlatin]=Dobavljač dijeljenja -Name[sr@latin]=Dobavljač deljenja -Name[sv]=Delningstjänst -Name[th]=ผู้ให้ใช้งานร่วมกัน -Name[tr]=SağlayıcıyıPaylaş -Name[ug]=ھەمبەھىر تەمىنلىگۈچى -Name[uk]=Служба оприлюднення -Name[wa]=Ahesseu d' pårtaedje -Name[x-test]=xxShareProviderxx -Name[zh_CN]=共享提供者 -Name[zh_TW]=分享服務提供者 -Comment=Share Package Structure -Comment[ar]=شارك بناء الحزمة -Comment[bs]=Struktura paketa dijeljenja -Comment[ca]=Estructura de paquet de compartició -Comment[ca@valencia]=Estructura de paquet de compartició -Comment[cs]=Struktura sdíleného balíčku -Comment[da]=Pakkestruktur for deling -Comment[de]=Paketstruktur bereitstellen -Comment[el]=Δομή πακέτου κοινής χρήσης -Comment[en_GB]=Share Package Structure -Comment[es]=Estructura del paquete de compartición -Comment[et]=Paketistruktuuri jagamine -Comment[eu]=Partekatze-paketearen egitura -Comment[fi]=Jaa pakettirakenne -Comment[fr]=Structure du paquet de partage -Comment[gl]=Estrutura de paquete Share -Comment[he]=Share Package Structure -Comment[hr]=Podijeli strukturu paketa -Comment[hu]=Csomagstruktúra megosztása -Comment[ia]=Share Package Structure (Structura de uso commun de pacchetto) -Comment[id]=Struktur Paket Berbagi -Comment[is]=Deila pakkauppbyggingu -Comment[it]=Struttura del pacchetto di condivisione -Comment[ja]=パッケージの構造を共有 -Comment[kk]=Ортақ дестелер құрылымы -Comment[km]=ចែករំលែក​រចនាសម្ព័ន្ធ​កញ្ចប់ -Comment[ko]=공유 패키지 구조 -Comment[lt]=Dalinimosi paketo struktūra -Comment[lv]=Kopīgot pakotnes struktūru -Comment[mr]=शेर पॅकेज संरचना -Comment[nb]=Del pakkestruktur -Comment[nds]=Paketstruktuur praatstellen -Comment[nl]=Structuur van delen van pakketten -Comment[nn]=Del pakkestruktur -Comment[pa]=ਪੈਕੇਜ ਢਾਂਚਾ ਸਾਂਝਾ ਕਰੋਪੈਕੇਜ ਢਾਂਚਾ ਸਾਪੈਕੇਜ ਫਪੈਕੇਜ ਟਾ -Comment[pl]=Struktura pakietu udostępniania -Comment[pt]=Estrutura do Pacote da Partilha -Comment[pt_BR]=Estrutura do pacote de compartilhamento -Comment[ro]=Partajează structura pachetului -Comment[ru]=Структура пакета с параметрами службы обмена информацией -Comment[sk]=Štruktúra balíčka pre zdieľanie -Comment[sl]=Zgradba paketa Share -Comment[sr]=Структура пакета дељења -Comment[sr@ijekavian]=Структура пакета дијељења -Comment[sr@ijekavianlatin]=Struktura paketa dijeljenja -Comment[sr@latin]=Struktura paketa deljenja -Comment[sv]=Dela paketstruktur -Comment[th]=โครงสร้างแพกเกจที่ใช้ร่วมกัน -Comment[tr]=Paket Yapısını Paylaş -Comment[ug]=ھەمبەھىر بوغچا قۇرۇلمىسى -Comment[uk]=Структура спільних пакунків -Comment[wa]=Tcherpinte do pacaedje di pårtaedje -Comment[x-test]=xxShare Package Structurexx -Comment[zh_CN]=共享包结构 -Comment[zh_TW]=分享軟體包結構 -Type=Service -X-KDE-ServiceTypes=Plasma/PackageStructure - -X-KDE-Library=plasma_packagestructure_share -X-KDE-PluginInfo-Author=Artur de Souza -X-KDE-PluginInfo-Email=asouza@kde.org -X-KDE-PluginInfo-Name=Plasma/ShareProvider -X-KDE-PluginInfo-Version=0.1 -X-KDE-PluginInfo-Website=https://www.kde.org/plasma-desktop -X-KDE-PluginInfo-License=GPLv2+ -X-KDE-PluginInfo-EnabledByDefault=true -X-Plasma-PackageFileFilter=*.share -X-Plasma-PackageFileMimetypes=application/zip diff --git a/dataengines/share/packagestructure/share_package.cpp b/dataengines/share/packagestructure/share_package.cpp deleted file mode 100644 index e59e28a6f..000000000 --- a/dataengines/share/packagestructure/share_package.cpp +++ /dev/null @@ -1,45 +0,0 @@ -/*************************************************************************** - * Copyright 2010 Artur Duque de Souza * - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * - * * - * This program 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 General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program; if not, write to the * - * Free Software Foundation, Inc., * - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . * - ***************************************************************************/ - -#include -#include - -#include "share_package.h" -#include "config-workspace.h" - -SharePackage::SharePackage(QObject *, QVariantList) -{ -} - -void SharePackage::initPackage(KPackage::Package* package) -{ -// KPackage::PackageStructure::initPackage(package); - package->addDirectoryDefinition("scripts", QStringLiteral("code"), i18n("Executable Scripts")); - QStringList mimetypes; - mimetypes << QStringLiteral("text/*"); - package->setMimeTypes( "scripts", mimetypes ); - - package->addFileDefinition("mainscript", QStringLiteral("code/main.js"), i18n("Main Script File")); - package->setDefaultPackageRoot(PLASMA_RELATIVE_DATA_INSTALL_DIR "shareprovider/"); -} - -K_EXPORT_KPACKAGE_PACKAGE_WITH_JSON(SharePackage, "plasma-packagestructure-share.json") - -#include "share_package.moc" - diff --git a/dataengines/share/packagestructure/share_package.h b/dataengines/share/packagestructure/share_package.h deleted file mode 100644 index 7b0f98852..000000000 --- a/dataengines/share/packagestructure/share_package.h +++ /dev/null @@ -1,32 +0,0 @@ -/*************************************************************************** - * Copyright 2010 Artur Duque de Souza * - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * - * * - * This program 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 General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program; if not, write to the * - * Free Software Foundation, Inc., * - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . * - ***************************************************************************/ - -#ifndef SHARE_PACKAGE_H -#define SHARE_PACKAGE_H - -#include - -class SharePackage : public KPackage::PackageStructure -{ -public: - explicit SharePackage(QObject *parent = nullptr, QVariantList args = QVariantList()); - void initPackage(KPackage::Package *package) override; -}; - -#endif diff --git a/dataengines/share/plasma-dataengine-share.desktop b/dataengines/share/plasma-dataengine-share.desktop deleted file mode 100644 index 68972b9c2..000000000 --- a/dataengines/share/plasma-dataengine-share.desktop +++ /dev/null @@ -1,131 +0,0 @@ -[Desktop Entry] -Name=Share Services -Name[ar]=خدمات المشاركة -Name[bg]=Услуги за споделяне -Name[bs]=Servisi dijeljenja -Name[ca]=Serveis de compartició -Name[ca@valencia]=Serveis de compartició -Name[cs]=Sdílené služby -Name[da]=Delingstjenester -Name[de]=Veröffentlichungsdienste -Name[el]=Υπηρεσίες κοινής χρήσης -Name[en_GB]=Share Services -Name[es]=Compartir servicios -Name[et]=Jagamisteenused -Name[eu]=Partekatze-zerbitzuak -Name[fi]=Jakamispalvelut -Name[fr]=Services de partage -Name[ga]=Seirbhísí Comhroinnt -Name[gl]=Servizos para compartir -Name[he]=שירותי שיתוף -Name[hi]=साझा सेवाएँ -Name[hr]=Servisi za dijeljenje -Name[hu]=Megosztási szolgáltatások -Name[ia]=Servicios compartite -Name[id]=Layanan Berbagi -Name[is]=Deila þjónustum -Name[it]=Servizi di condivisione -Name[ja]=サービスの共有 -Name[kk]=Ортақтастыру қызметтер -Name[km]=ចែក​រំលែក​សេវា -Name[kn]=ಹಂಚಿಕೆ ಸೇವೆಗಳು -Name[ko]=공유 서비스 -Name[lt]=Dalinimosi tarnybos -Name[lv]=Kopīgot servisus -Name[mr]=शेअर सेवा -Name[nb]=Dele-tjenester -Name[nds]=Praatstell-Deensten -Name[nl]=Services voor delen -Name[nn]=Del tenester -Name[pa]=ਸਾਂਝੀਆਂ ਸਰਵਿਸਾਂ -Name[pl]=Usługi współdzielenia -Name[pt]=Serviços de Partilha -Name[pt_BR]=Serviços de compartilhamento -Name[ro]=Servicii de partajare -Name[ru]=Обмен информацией -Name[sk]=Služby zdieľania -Name[sl]=Storitve za deljenje -Name[sr]=Сервиси дељења -Name[sr@ijekavian]=Сервиси дељења -Name[sr@ijekavianlatin]=Servisi deljenja -Name[sr@latin]=Servisi deljenja -Name[sv]=Delningstjänster -Name[th]=บริการที่ใช้งานร่วมกัน -Name[tr]=Paylaşım Servisleri -Name[ug]=مۇلازىمەتلەرنى ھەمبەھىرلە -Name[uk]=Служби оприлюднення -Name[wa]=Pårtaedjî siervices -Name[x-test]=xxShare Servicesxx -Name[zh_CN]=共享服务 -Name[zh_TW]=分享服務 -Comment=Engine to share content using different services -Comment[ar]=محرّك بمشاركة المحتوى باستخدام خدمات مختلفة -Comment[bg]=Споделяне на данни чрез различни услуги -Comment[bs]=Motor za dijeljenje sadržaja preko različitih servisa -Comment[ca]=Motor per compartir contingut utilitzant diferents serveis -Comment[ca@valencia]=Motor per compartir contingut utilitzant diferents serveis -Comment[cs]=Povolí sdílení obsahu pomocí různých služeb -Comment[da]=Motor til at dele indhold ved brug af forskellige tjenester -Comment[de]=Treiber für die Veröffentlichung von Inhalten über verschiedene Dienste -Comment[el]=Μηχανισμός για το μοίρασμα περιεχομένου χρησιμοποιώντας διαφορετικές υπηρεσίες -Comment[en_GB]=Engine to share content using different services -Comment[es]=Motor para compartir contenidos a través de diferentes servicios -Comment[et]=Eri teenuste kaudu sisu jagamise mootor -Comment[eu]=Hainbat zerbitzuren bidez edukia partekatzeko motorra -Comment[fi]=Moottori sisällön jakamiseen useissa palveluissa -Comment[fr]=Système de partage de contenus utilisant différents services -Comment[gl]=Motor para compartir contido mediante diversos servizos. -Comment[he]=מנוע לשיתוף תוכן באמצעות שירותים שונים -Comment[hr]=Mehanizam za dijeljenje sadržaja koristeći razne servise -Comment[hu]=Adatmodul tartalommegosztáshoz különböző szolgáltatások használatával -Comment[ia]=Motor pro compartir contento usante differente servicios -Comment[id]=Mesin untuk membagikan konten menggunakan beragam layanan -Comment[is]=Kerfi til að deila efni með ýmsum þjónustum -Comment[it]=Motore per condividere del contenuto usando diversi servizi -Comment[ja]=様々なサービスを用いたコンテンツ共有エンジン -Comment[kk]=Түрлі қызметтер көмегімен мазмұның ортақ қылу тетігі -Comment[km]=ម៉ាស៊ីន​ដើម្បី​ចែករំលែក​មាតិកា​ ដោយ​ប្រើ​សេវា​ផ្សេងៗ​គ្នា -Comment[ko]=컨텐츠 공유 서비스 -Comment[lt]=Turinio dalinimosi, naudojant įvairias tarnybas, modulis -Comment[lv]=Dzinējs satura kopīgošanai, izmantojot atšķirīgus servisus -Comment[mr]=विविध सेवा वापरुन मजकूर शेअर करण्याचे इंजिन -Comment[nb]=Motor for å dele innhold ved bruk av forskjellige tjenester -Comment[nds]=Programmkarn för Deensten för't Praatstellen vun Inholden -Comment[nl]=Engine om inhoud te delen met gebruik van verschillende services -Comment[nn]=Motor for å dela innhald ved bruk av ymse tenester -Comment[pa]=ਵੱਖ ਵੱਖ ਸਰਵਿਸਾਂ ਵਿੱਚ ਸਮਗੱਰੀ ਸਾਂਝੀ ਕਰਨ ਲਈ ਇੰਜਣ -Comment[pl]=Silnik do udostępniania zawartości przy użyciu rożnych usług -Comment[pt]=Um motor para partilhar conteúdos através de vários serviços -Comment[pt_BR]=Um mecanismo para compartilhar conteúdos usando diferentes serviços -Comment[ro]=Motor pentru partajarea conținutului folosind diferite servicii -Comment[ru]=Источник данных для обмена содержимым между людьми, используя различные интернет-службы -Comment[sk]=Nástroj na zdieľanie obsahu pomocou rôznych služieb -Comment[sl]=Pogon za deljenje vsebin prek različnih storitev -Comment[sr]=Мотор за дељење садржаја преко различитих сервиса -Comment[sr@ijekavian]=Мотор за дијељење садржаја преко различитих сервиса -Comment[sr@ijekavianlatin]=Motor za dijeljenje sadržaja preko različitih servisa -Comment[sr@latin]=Motor za deljenje sadržaja preko različitih servisa -Comment[sv]=Gränssnitt för att dela innehåll genom att använda olika tjänster -Comment[th]=กลไกการแลกเปลี่ยนเนื้อหาบนบริการที่แตกต่างกัน -Comment[tr]=Farklı servisleri kullanarak içerik paylaşmayı sağlayan motor -Comment[ug]=ئوخشىمىغان مۇلازىمەتلەرنى ئىشلىتىپ مەزمۇنلارنى ھەمبەھىرلەيدىغان ماتور -Comment[uk]=Рушій спільного використання даних різними службами -Comment[vi]=Cơ chế chia sẻ nội dung thông qua các dịch vụ -Comment[wa]=Moteur po pårtaedjî l' ådvins tot s' siervant d' diferins siervices -Comment[x-test]=xxEngine to share content using different servicesxx -Comment[zh_CN]=用不同服务共享内容的引擎 -Comment[zh_TW]=用不同的服務來分享內容的引擎 -Type=Service -X-KDE-ServiceTypes=Plasma/DataEngine -Icon=document-share - -X-KDE-Library=plasma_engine_share -X-KDE-PluginInfo-Author=Artur de Souza -X-KDE-PluginInfo-Email=asouza@kde.org -X-KDE-PluginInfo-Name=org.kde.plasma.dataengine.share -X-KDE-PluginInfo-Version=0.1 -X-KDE-PluginInfo-Website=https://www.kde.org/plasma-desktop -X-KDE-PluginInfo-Category=Utilities -X-KDE-PluginInfo-Depends= -X-KDE-PluginInfo-License=LGPL -X-KDE-PluginInfo-EnabledByDefault=true diff --git a/dataengines/share/share.operations b/dataengines/share/share.operations deleted file mode 100644 index ed8284446..000000000 --- a/dataengines/share/share.operations +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - diff --git a/dataengines/share/shareengine.cpp b/dataengines/share/shareengine.cpp deleted file mode 100644 index deab47347..000000000 --- a/dataengines/share/shareengine.cpp +++ /dev/null @@ -1,120 +0,0 @@ -/*************************************************************************** - * Copyright 2010 Artur Duque de Souza * - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * - * * - * This program 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 General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program; if not, write to the * - * Free Software Foundation, Inc., * - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . * - ***************************************************************************/ - -#include -#include -#include - -#include - -#include "shareengine.h" -#include "shareservice.h" - - -ShareEngine::ShareEngine(QObject *parent, const QVariantList &args) - : Plasma::DataEngine(parent, args) -{ - Q_UNUSED(args); - init(); -} - -void ShareEngine::init() -{ - connect(KSycoca::self(), SIGNAL(databaseChanged(QStringList)), - this, SLOT(updatePlugins(QStringList))); - updatePlugins(QStringList() << QStringLiteral("services")); -} - -void ShareEngine::updatePlugins(const QStringList &changes) -{ - if (!changes.contains(QStringLiteral("services"))) { - return; - } - - removeAllSources(); - - KService::List services = KServiceTypeTrader::self()->query(QStringLiteral("Plasma/ShareProvider")); - QMultiMap sortedServices; - foreach (KService::Ptr service, services) { - sortedServices.insert(service->property(QStringLiteral("X-KDE-Priority")).toInt(), service); - } - - QMapIterator it(sortedServices); - it.toBack(); - QHash mimetypes; - while (it.hasPrevious()) { - it.previous(); - KService::Ptr service = it.value(); - const QString pluginName = - service->property(QStringLiteral("X-KDE-PluginInfo-Name"), QVariant::String).toString(); - - const QStringList pluginMimeTypes = - service->property(QStringLiteral("X-KDE-PlasmaShareProvider-MimeType"), QVariant::StringList).toStringList(); - - if (pluginName.isEmpty() || pluginMimeTypes.isEmpty()) { - continue; - } - - // create the list of providers - Plasma::DataEngine::Data data; - data.insert(QStringLiteral("Name"), service->name()); - data.insert(QStringLiteral("Service Id"), service->storageId()); - data.insert(QStringLiteral("Mimetypes"), pluginMimeTypes); - setData(pluginName, data); - - // create the list of providers by type - foreach (const QString &pluginMimeType, pluginMimeTypes) { - mimetypes[pluginMimeType].append(pluginName); - } - } - - - QHashIterator it2(mimetypes); - while (it2.hasNext()) { - it2.next(); - setData(QStringLiteral("Mimetypes"), it2.key(), it2.value()); - } -} - -Plasma::Service *ShareEngine::serviceForSource(const QString &source) -{ - Plasma::DataContainer *data = containerForSource(source); - - if (!data) { - return Plasma::DataEngine::serviceForSource(source); - } - - if (source.compare(QLatin1String("mimetype"), Qt::CaseInsensitive) == 0) { - return Plasma::DataEngine::serviceForSource(source); - } - - const QString id = data->data().value(QStringLiteral("Service Id")).toString(); - if (id.isEmpty()) { - return Plasma::DataEngine::serviceForSource(source); - } - - ShareService *service = new ShareService(this); - service->setDestination(id); - return service; -} - -K_EXPORT_PLASMA_DATAENGINE_WITH_JSON(share, ShareEngine, "plasma-dataengine-share.json") - -#include "shareengine.moc" - diff --git a/dataengines/share/shareengine.h b/dataengines/share/shareengine.h deleted file mode 100644 index 1cf883693..000000000 --- a/dataengines/share/shareengine.h +++ /dev/null @@ -1,44 +0,0 @@ -/*************************************************************************** - * Copyright 2010 Artur Duque de Souza * - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * - * * - * This program 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 General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program; if not, write to the * - * Free Software Foundation, Inc., * - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . * - ***************************************************************************/ - -#ifndef SHARE_ENGINE_H -#define SHARE_ENGINE_H - -#include -#include - -class ShareService; - -class ShareEngine : public Plasma::DataEngine -{ - Q_OBJECT - -public: - ShareEngine(QObject *parent, const QVariantList &args); - void init(); - Plasma::Service *serviceForSource(const QString &source) override; - -private Q_SLOTS: - void updatePlugins(const QStringList &changes); - -private: - friend class ShareService; -}; - -#endif // SHARE_ENGINE diff --git a/dataengines/share/shareprovider.cpp b/dataengines/share/shareprovider.cpp deleted file mode 100644 index 72c1f920b..000000000 --- a/dataengines/share/shareprovider.cpp +++ /dev/null @@ -1,371 +0,0 @@ -/*************************************************************************** - * Copyright 2010 Artur Duque de Souza * - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * - * * - * This program 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 General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program; if not, write to the * - * Free Software Foundation, Inc., * - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . * - ***************************************************************************/ - -#include -#include - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include "shareprovider.h" - -ShareProvider::ShareProvider(KJSEmbed::Engine* engine, QObject *parent) - : QObject(parent), m_isBlob(false), m_isPost(true), - m_engine(engine) -{ - // Just make the boundary random part long enough to be sure - // it's not inside one of the arguments that we are sending - m_boundary = "----------"; - m_boundary += KRandom::randomString(55).toLatin1(); -} - -QString ShareProvider::method() const -{ - if (!m_isPost) { - return QStringLiteral("GET"); - } - return QStringLiteral("POST"); -} - -void ShareProvider::setMethod(const QString &method) -{ - if (method == QLatin1String("GET")) { - m_isPost = false; - } else { - m_isPost = true; - } -} - -QUrl ShareProvider::url() const -{ - // the url that is set in this provider - return m_url; -} - -void ShareProvider::setUrl(const QString &url) -{ - // set the provider's url - m_url = QUrl(url); - m_service = m_url; -} - -QString ShareProvider::parseXML(const QString &key, const QString &data) -{ - // this method helps plugins to parse results from webpages - QXmlStreamReader xml(data); - if (xml.hasError()) { - return QString(); - } - - while (!xml.atEnd()) { - xml.readNext(); - - if (xml.name() == key) { - QString url = xml.readElementText(); - return url; - } - } - - return QString(); -} - -void ShareProvider::addPostItem(const QString &key, const QString &value, - const QString &contentType) -{ - if (!m_isPost) - return; - - // add a pair in a post form - QByteArray str; - QString length = QString::number(value.length()); - - str += "--"; - str += m_boundary; - str += "\r\n"; - - if (!key.isEmpty()) { - str += "Content-Disposition: form-data; name=\""; - str += key.toLatin1(); - str += "\"\r\n"; - } - - if (!contentType.isEmpty()) { - str += "Content-Type: " + QByteArray(contentType.toLatin1()); - str += "\r\n"; - str += "Mime-version: 1.0 "; - str += "\r\n"; - } - - str += "Content-Length: "; - str += length.toLatin1(); - str += "\r\n\r\n"; - str += value.toUtf8(); - - m_buffer.append(str); - m_buffer.append("\r\n"); -} - -void ShareProvider::addPostFile(const QString &contentKey, const QVariant &content) -{ - // add a file in a post form (gets it using KIO) - m_contentKey = contentKey; - - if(content.type() == QVariant::String) { - m_content = content.toString(); - addPostItem(m_contentKey, m_content, QStringLiteral("text/plain")); - addQueryItem(m_contentKey, m_content); - emit readyToPublish(); - } else if(content.type() == QVariant::Url) { - publishUrl(content.toUrl()); - } else if(content.type() == QVariant::Image) { - QTemporaryFile* file = new QTemporaryFile(QStringLiteral("shareimage-XXXXXX.png"), this); - bool b = file->open(); - Q_ASSERT(b); - file->close(); - - QImage image = content.value(); - b = image.save(file->fileName()); - Q_ASSERT(b); - publishUrl(QUrl::fromLocalFile(file->fileName())); - } else if(content.type() == QVariant::Pixmap) { - QTemporaryFile* file = new QTemporaryFile(QStringLiteral("sharepixmap-XXXXXX.png"), this); - bool b = file->open(); - Q_ASSERT(b); - file->close(); - - QPixmap image = content.value(); - b = image.save(file->fileName()); - Q_ASSERT(b); - publishUrl(QUrl::fromLocalFile(file->fileName())); - } -} - -void ShareProvider::publishUrl(const QUrl& url) -{ - m_content = url.toString(); - - KIO::MimetypeJob *mjob = KIO::mimetype(url, KIO::HideProgressInfo); - connect(mjob, &KJob::finished, this, &ShareProvider::mimetypeJobFinished); -} - -void ShareProvider::mimetypeJobFinished(KJob *job) -{ - KIO::MimetypeJob *mjob = qobject_cast(job); - if (!job) { - return; - } - - if (mjob->error()) { - qWarning() << "error when figuring out the file type"; - return; - } - - // It's a valid file because there were no errors - m_mimetype = mjob->mimetype(); - if (m_mimetype.isEmpty()) { - // if we ourselves can't determine the mime of the file, - // very unlikely the remote site will be able to identify it - error(i18n("Could not detect the file's mimetype")); - return; - } - - // If it's not text then we should handle it later - if (!m_mimetype.startsWith(QLatin1String("text/"))) - m_isBlob = true; - - // try to open the file - KIO::FileJob *fjob = KIO::open(QUrl(m_content), QIODevice::ReadOnly); - connect(fjob, &KIO::FileJob::open, this, &ShareProvider::openFile); -} - -void ShareProvider::openFile(KIO::Job *job) -{ - // finished opening the file, now try to read it's content - KIO::FileJob *fjob = static_cast(job); - fjob->read(fjob->size()); - connect(fjob, &KIO::FileJob::data, - this, &ShareProvider::finishedContentData); -} - -void ShareProvider::finishedContentData(KIO::Job *job, const QByteArray &data) -{ - // Close the job as we don't need it anymore. - // NOTE: this is essential to ensure the job gets de-scheduled and deleted! - job->disconnect(this); - qobject_cast(job)->close(); - - if (data.length() == 0) { - error(i18n("It was not possible to read the selected file")); - return; - } - uploadData(data); -} - -void ShareProvider::uploadData(const QByteArray& data) -{ - if (!m_isBlob) { - // it's just text and we can return here using data() - addPostItem(m_contentKey, QString::fromLocal8Bit(data), QStringLiteral("text/plain")); - addQueryItem(m_contentKey, QString::fromLocal8Bit(data)); - emit readyToPublish(); - return; - } - - // Add the special http post stuff with the content of the file - QByteArray str; - const QString fileSize = QString::number(data.size()); - str += "--"; - str += m_boundary; - str += "\r\n"; - str += "Content-Disposition: form-data; name=\""; - str += m_contentKey.toLatin1(); - str += "\"; "; - str += "filename=\""; - str += QFile::encodeName(QUrl(m_content).fileName()).replace(".tmp", ".jpg"); - str += "\"\r\n"; - str += "Content-Length: "; - str += fileSize.toLatin1(); - str += "\r\n"; - str += "Content-Type: "; - str += m_mimetype.toLatin1(); - str += "\r\n\r\n"; - - m_buffer.append(str); - m_buffer.append(data); - m_buffer.append("\r\n"); - - // tell the world that we are ready to publish - emit readyToPublish(); -} - -void ShareProvider::readPublishData(KIO::Job *job, const QByteArray &data) -{ - Q_UNUSED(job); - m_data.append(data); -} - -void ShareProvider::finishedPublish(KJob *job) -{ - Q_UNUSED(job); - if (m_data.length() == 0) { - error(i18n("Service was not available")); - return; - } - - // process data. should be interpreted by the plugin. - // plugin must call the right slots after processing the data. - KJS::List kjsargs; - kjsargs.append( KJSEmbed::convertToValue(m_engine->interpreter()->execState(), m_data) ); - m_engine->callMethod("handleResultData", kjsargs); -} - -void ShareProvider::finishHeader() -{ - QByteArray str; - str += "--"; - str += m_boundary; - str += "--"; - m_buffer.append(str); -} - -void ShareProvider::addQueryItem(const QString &key, const QString &value) -{ - // just add the item to the query's URL - QUrlQuery uq(m_url); - uq.addQueryItem(key, value); - m_url.setQuery(uq); -} - -void ShareProvider::publish() -{ - if (m_url.isEmpty()) { - emit finishedError(i18n("You must specify a URL for this service")); - } - - // clear the result data before publishing - m_data.clear(); - - // finish the http form - if (m_isBlob) { - finishHeader(); - } - - // Multipart is used to upload files - KIO::TransferJob *tf; - if (m_isBlob) { - tf = KIO::http_post(m_service, m_buffer, KIO::HideProgressInfo); - tf->addMetaData(QStringLiteral("content-type"),"Content-Type: multipart/form-data; boundary=" + m_boundary); - } else { - if (m_isPost) { - tf = KIO::http_post(m_service, - m_url.query(QUrl::FullyEncoded).toLatin1(), KIO::HideProgressInfo); - tf->addMetaData(QStringLiteral("content-type"), QStringLiteral("Content-Type: application/x-www-form-urlencoded")); - } else { - QUrl url = m_service; - url.setQuery(m_url.query()); - tf = KIO::get(url); - } - } - - connect(tf, &KIO::TransferJob::data, - this, &ShareProvider::readPublishData); - connect(tf, &KJob::result, this, &ShareProvider::finishedPublish); - connect(tf, &KIO::TransferJob::redirection, - this, &ShareProvider::redirected); -} - -void ShareProvider::redirected(KIO::Job *job, const QUrl &to) -{ - Q_UNUSED(job) - const QUrl toUrl(to); - const QUrl serviceUrl(m_service); - - const QString toString(toUrl.toString(QUrl::StripTrailingSlash)); - const QString serviceString(serviceUrl.toString(QUrl::StripTrailingSlash)); - - if (toString == serviceString) { - return; - } - - KJS::List kjsargs; - kjsargs.append( KJSEmbed::convertToValue(m_engine->interpreter()->execState(), toString) ); - m_engine->callMethod("handleRedirection", kjsargs); -} - -void ShareProvider::success(const QString &url) -{ - // notify the service that it worked and the result url - emit finished(url); -} - -void ShareProvider::error(const QString &msg) -{ - // notify the service that it didn't work and the error msg - emit finishedError(msg); -} - - diff --git a/dataengines/share/shareprovider.h b/dataengines/share/shareprovider.h deleted file mode 100644 index 733bcea30..000000000 --- a/dataengines/share/shareprovider.h +++ /dev/null @@ -1,101 +0,0 @@ -/*************************************************************************** - * Copyright 2010 Artur Duque de Souza * - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * - * * - * This program 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 General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program; if not, write to the * - * Free Software Foundation, Inc., * - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . * - ***************************************************************************/ - -#ifndef SHAREPROVIDER_H -#define SHAREPROVIDER_H - -#include -#include -#include -#include -#include - -#include - -namespace KJSEmbed { class Engine; } - -class ShareProvider : public QObject -{ - Q_OBJECT - -public: - explicit ShareProvider(KJSEmbed::Engine* engine, QObject *parent = nullptr); - - QString method() const; - void setMethod(const QString &method); - - QUrl url() const; - void setUrl(const QString &url); - - void addPostFile(const QString &contentKey, const QVariant &content); - -Q_SIGNALS: - void readyToPublish(); - void finished(const QString &url); - void finishedError(const QString &msg); - -public Q_SLOTS: - // ###: Function to return the content so the plugin can - // play with it before publishing? - - // helper methods - void publish(); - QString parseXML(const QString &key, const QString &data); - void addQueryItem(const QString &key, const QString &value); - void addPostItem(const QString &key, const QString &value, - const QString &contentType); - - // result methods - void success(const QString &url); - void error(const QString &msg); - void redirected(KIO::Job *job, const QUrl &from); - -protected Q_SLOTS: - // Q_SLOTS for kio - void mimetypeJobFinished(KJob *job); - void openFile(KIO::Job *job); - void finishedContentData(KIO::Job *job, const QByteArray &data); - void finishedPublish(KJob *job); - void readPublishData(KIO::Job *job, const QByteArray &data); - -protected: - void finishHeader(); - -private: - void publishUrl(const QUrl& url); - void uploadData(const QByteArray &data); - - QString m_content; - QString m_contentKey; - QString m_mimetype; - - bool m_isBlob; - bool m_isPost; - - QUrl m_url; - QUrl m_service; - - QByteArray m_data; - QByteArray m_buffer; - QByteArray m_boundary; - - KJSEmbed::Engine* m_engine; -}; - -#endif // SHAREPROVIDER diff --git a/dataengines/share/shareservice.cpp b/dataengines/share/shareservice.cpp deleted file mode 100644 index 41478cf56..000000000 --- a/dataengines/share/shareservice.cpp +++ /dev/null @@ -1,165 +0,0 @@ -/*************************************************************************** - * Copyright 2010 Artur Duque de Souza * - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * - * * - * This program 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 General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program; if not, write to the * - * Free Software Foundation, Inc., * - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . * - ***************************************************************************/ - -#include -#include -#include - -#include -#include - -#include - - -#include "shareservice.h" -#include "shareprovider.h" -#include "config-workspace.h" - -ShareService::ShareService(ShareEngine *engine) - : Plasma::Service(engine) -{ - setName(QStringLiteral("share")); -} - -Plasma::ServiceJob *ShareService::createJob(const QString &operation, - QMap ¶meters) -{ - return new ShareJob(destination(), operation, parameters, this); -} - -ShareJob::ShareJob(const QString &destination, const QString &operation, - QMap ¶meters, QObject *parent) - : Plasma::ServiceJob(destination, operation, parameters, parent), - m_engine(new KJSEmbed::Engine()), m_provider(nullptr) -{ -} - -ShareJob::~ShareJob() -{ - delete m_provider; -} - -void ShareJob::start() -{ - //KService::Ptr service = KService::serviceByStorageId("plasma-share-pastebincom.desktop"); - KService::Ptr service = KService::serviceByStorageId(destination()); - if (!service) { - showError(i18n("Could not find the provider with the specified destination")); - return; - } - - QString pluginName = - service->property(QStringLiteral("X-KDE-PluginInfo-Name"), QVariant::String).toString(); - - const QString path = - QStandardPaths::locate(QStandardPaths::GenericDataLocation, PLASMA_RELATIVE_DATA_INSTALL_DIR "/shareprovider/" + pluginName + '/' ); - - if (path.isEmpty()) { - showError(i18n("Invalid path for the requested provider")); - return; - } - - m_package = KPackage::PackageLoader::self()->loadPackage(QStringLiteral("Plasma/ShareProvider")); - m_package.setPath(path); - if (m_package.isValid()) { - const QString mainscript = m_package.filePath("mainscript"); - - m_provider = new ShareProvider(m_engine.data(), this); - connect(m_provider, &ShareProvider::readyToPublish, this, &ShareJob::publish); - connect(m_provider, &ShareProvider::finished, - this, &ShareJob::showResult); - connect(m_provider, &ShareProvider::finishedError, - this, &ShareJob::showError); - - m_engine->addObject(m_provider, "provider"); - - // set the main script file and load it - KJSEmbed::Engine::ExitStatus status = m_engine->runFile(mainscript); - - // check for any errors - if(status == KJSEmbed::Engine::Failure) { - showError(i18n("Error trying to execute script")); - return; - } - - KJS::ExecState* execState = m_engine->interpreter()->execState(); - KJS::JSGlobalObject* scriptObject = m_engine->interpreter()->globalObject(); - - // do the work together with the loaded plugin - if (!scriptObject->hasProperty(execState, "url") || !scriptObject->hasProperty(execState, "contentKey") || - !scriptObject->hasProperty(execState, "setup")) { - showError(i18n("Could not find all required functions")); - return; - } - - // call the methods from the plugin - const QString url = m_engine->callMethod("url")->toString(execState).qstring(); - m_provider->setUrl(url); - - // setup the method (get/post) - QVariant vmethod; - if (scriptObject->hasProperty(execState, "method")) { - vmethod = m_engine->callMethod("method")->toString(execState).qstring(); - } - - // default is POST (if the plugin does not specify one method) - const QString method = vmethod.isValid() ? vmethod.toString() : QStringLiteral("POST"); - m_provider->setMethod(method); - - // setup the provider - m_engine->callMethod("setup"); - - // get the content from the parameters, set the url and add the file - // then we can wait the signal to publish the information - const QString contentKey = m_engine->callMethod("contentKey")->toString(execState).qstring(); - - QVariant contents = parameters()[QStringLiteral("content")]; - if(contents.type() == QVariant::List) { - QVariantList list = contents.toList(); - if (list.size() == 1) { - contents = list.first(); - } - } - m_provider->addPostFile(contentKey, contents); - } -} - -void ShareJob::publish() -{ - m_provider->publish(); -} - -void ShareJob::showResult(const QString &url) -{ - setResult(url); -} - -void ShareJob::showError(const QString &message) -{ - QString errorMsg = message; - if (errorMsg.isEmpty()) { - errorMsg = i18n("Unknown Error"); - } - - setError(1); - setErrorText(message); - emitResult(); -} - - diff --git a/dataengines/share/shareservice.h b/dataengines/share/shareservice.h deleted file mode 100644 index f06b6818e..000000000 --- a/dataengines/share/shareservice.h +++ /dev/null @@ -1,70 +0,0 @@ -/*************************************************************************** - * Copyright 2010 Artur Duque de Souza * - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * - * * - * This program 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 General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program; if not, write to the * - * Free Software Foundation, Inc., * - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . * - ***************************************************************************/ - -#ifndef SHARE_SERVICE_H -#define SHARE_SERVICE_H - -#include "shareengine.h" - -#include -#include -#include - -class ShareProvider; - -namespace Plasma { - class ServiceJob; -} - -namespace KJSEmbed { - class Engine; -} - -class ShareService : public Plasma::Service -{ - Q_OBJECT - -public: - explicit ShareService(ShareEngine *engine); - Plasma::ServiceJob *createJob(const QString &operation, - QMap ¶meters) override; -}; - -class ShareJob : public Plasma::ServiceJob -{ - Q_OBJECT - -public: - ShareJob(const QString &destination, const QString &operation, - QMap ¶meters, QObject *parent = nullptr); - ~ShareJob() override; - void start() override; - -public Q_SLOTS: - void publish(); - void showResult(const QString &url); - void showError(const QString &msg); - -private: - QScopedPointer m_engine; - ShareProvider *m_provider; - KPackage::Package m_package; -}; - -#endif // SHARE_SERVICE