Commit 808b0f0a authored by Alexander Potashev's avatar Alexander Potashev

Fix loading of all other plugins

parent 9f33af7b
......@@ -42,10 +42,9 @@ ki18n_wrap_ui(kget_bittorrentfactory_PART_SRCS
advanceddetails/webseedstab.ui
)
kcoreaddons_desktop_to_json(kget_bittorrent kget_bittorrentfactory.desktop)
kconfig_add_kcfg_files(kget_bittorrentfactory_PART_SRCS bittorrentsettings.kcfgc)
add_library(kget_bittorrent MODULE ${kget_bittorrentfactory_PART_SRCS})
kcoreaddons_desktop_to_json(kget_bittorrent kget_bittorrentfactory.desktop)
target_link_libraries(kget_bittorrent KF5::KIOCore ${LIBKTORRENT_LIBRARIES} kgetcore)
install(TARGETS kget_bittorrent DESTINATION ${KGET_PLUGIN_INSTALL_DIR})
......
......@@ -22,7 +22,7 @@
#include <version.h>
#include <torrent/job.h>
K_PLUGIN_FACTORY_WITH_JSON(kget_bittorrent, "kget_bittorrent.json", registerPlugin<BTTransferFactory>();)
K_PLUGIN_FACTORY_WITH_JSON(KGetFactory, "kget_bittorrentfactory.json", registerPlugin<BTTransferFactory>();)
BTTransferFactory::BTTransferFactory(QObject *parent, const QVariantList &args)
: TransferFactory(parent, args)
......
[Desktop Entry]
# service definition
Type=Service
ServiceTypes=KPluginInfo
X-KDE-ServiceTypes=KGet/Plugin
ServiceTypes=KGet/Plugin
Icon=application-x-bittorrent
# standard fields
Name=Bittorrent
Name[ar]=بيت تورنت
Name[ast]=Bittorrent
......@@ -122,7 +119,7 @@ Comment[zh_TW]=允許使用 Bittorrent 下載檔案
X-KDE-Library=kget_bittorrentfactory
X-KDE-KGet-plugintype=TransferFactory
X-KDE-KGet-rank=200
X-KDE-KGet-framework-version=1
X-KDE-KGet-framework-version=2
X-KDE-PluginInfo-Author=Lukas Appelhans
X-KDE-PluginInfo-Email=l.appelhans@gmx.de
......
......@@ -10,13 +10,11 @@ set(kget_checksumsearchfactory_PART_SRCS
)
kconfig_add_kcfg_files(kget_checksumsearchfactory_PART_SRCS checksumsearchsettings.kcfgc)
add_library(kget_checksumsearchfactory MODULE ${kget_checksumsearchfactory_PART_SRCS})
kcoreaddons_desktop_to_json(kget_checksumsearchfactory kget_checksumsearchfactory.desktop)
target_link_libraries(kget_checksumsearchfactory kgetcore)
target_link_libraries(kget_checksumsearchfactory ${KDE4_KIO_LIBS} kgetcore)
install(TARGETS kget_checksumsearchfactory DESTINATION ${PLUGIN_INSTALL_DIR})
install(FILES kget_checksumsearchfactory.desktop DESTINATION ${SERVICES_INSTALL_DIR})
install(TARGETS kget_checksumsearchfactory DESTINATION ${KGET_PLUGIN_INSTALL_DIR})
install(FILES kget_checksumsearchfactory.kcfg DESTINATION ${KCFG_INSTALL_DIR})
###Build KCM-Module
......@@ -33,7 +31,7 @@ checksumsearchadddlg.ui
kconfig_add_kcfg_files(kcm_kget_checksumsearchfactory_PART_SRCS checksumsearchsettings.kcfgc)
add_library(kcm_kget_checksumsearchfactory MODULE ${kcm_kget_checksumsearchfactory_PART_SRCS})
target_link_libraries(kcm_kget_checksumsearchfactory ${KDE4_KDEUI_LIBS} ${KDE4_KIO_LIBS} kgetcore)
target_link_libraries(kcm_kget_checksumsearchfactory kgetcore)
install(TARGETS kcm_kget_checksumsearchfactory DESTINATION ${PLUGIN_INSTALL_DIR})
install(FILES kget_checksumsearchfactory_config.desktop DESTINATION ${SERVICES_INSTALL_DIR})
......@@ -20,9 +20,8 @@
#include <qdebug.h>
K_PLUGIN_FACTORY(KGetFactory,
registerPlugin<ChecksumSearchFactory>();
)
K_PLUGIN_FACTORY_WITH_JSON(KGetFactory, "kget_checksumsearchfactory.json", registerPlugin<ChecksumSearchFactory>();)
ChecksumSearchFactory::ChecksumSearchFactory(QObject *parent, const QVariantList &args)
: TransferFactory(parent, args)
{
......
[Desktop Entry]
# service definition
Type=Service
X-KDE-ServiceTypes=KGet/Plugin
ServiceTypes=KGet/Plugin
Icon=kget
# standard fields
Name=Checksum Search
Name[ast]=Guetar comprabación de suma
Name[bg]=Търсене на контролна сума
......@@ -116,7 +114,7 @@ Comment[zh_TW]=試著尋找指定網址的驗證碼
X-KDE-Library=kget_checksumsearchfactory
X-KDE-KGet-plugintype=TransferFactory
X-KDE-KGet-rank=30
X-KDE-KGet-framework-version=1
X-KDE-KGet-framework-version=2
X-KDE-PluginInfo-Author=Matthias Fuchs
X-KDE-PluginInfo-Email=mat69@gmx.net
......
......@@ -13,14 +13,11 @@ set(kget_contentfetchfactory_PART_SRCS
)
kconfig_add_kcfg_files(kget_contentfetchfactory_PART_SRCS contentfetchsetting.kcfgc)
kcoreaddons_desktop_to_json(kget_contentfetchfactory kget_contentfetchfactory.desktop)
add_library(kget_contentfetchfactory MODULE ${kget_contentfetchfactory_PART_SRCS})
target_link_libraries(kget_contentfetchfactory KF5::KIOCore KF5::KrossCore kgetcore)
target_link_libraries(kget_contentfetchfactory KF5::KIOCore
KF5::KrossCore ${KDE4_KROSSUI_LIBS} kgetcore)
install(TARGETS kget_contentfetchfactory DESTINATION ${PLUGIN_INSTALL_DIR})
install(FILES kget_contentfetchfactory.desktop DESTINATION ${SERVICES_INSTALL_DIR})
install(TARGETS kget_contentfetchfactory DESTINATION ${KGET_PLUGIN_INSTALL_DIR})
install(FILES kget_contentfetchfactory.kcfg DESTINATION ${KCFG_INSTALL_DIR})
###Build KCM-Module
......
......@@ -22,7 +22,7 @@
#include <KDebug>
KGET_EXPORT_PLUGIN( ContentFetchFactory )
K_PLUGIN_FACTORY_WITH_JSON(KGetFactory, "kget_contentfetchfactory.json", registerPlugin<ContentFetchFactory>();)
ContentFetchFactory::ContentFetchFactory(QObject *parent,
const QVariantList &args)
......
[Desktop Entry]
# service definition
Type=Service
X-KDE-ServiceTypes=KGet/Plugin
ServiceTypes=KGet/Plugin
Icon=kget
# standard fields
Name=Content Fetch
Name[ar]=جلب المحتوى
Name[ast]=Content Fetch
......@@ -121,7 +119,7 @@ Comment[zh_TW]=使用自訂的文稿抓取內容。
X-KDE-Library=kget_contentfetchfactory
X-KDE-KGet-plugintype=TransferFactory
X-KDE-KGet-rank=110
X-KDE-KGet-framework-version=1
X-KDE-KGet-framework-version=2
X-KDE-PluginInfo-Author=Ningyu Shi
X-KDE-PluginInfo-Email=shiningyu@gmail.com
......
......@@ -20,13 +20,11 @@ ki18n_wrap_ui(kget_metalinkfactory_PART_SRCS
)
kconfig_add_kcfg_files(kget_metalinkfactory_PART_SRCS metalinksettings.kcfgc)
add_library(kget_metalinkfactory MODULE ${kget_metalinkfactory_PART_SRCS})
kcoreaddons_desktop_to_json(kget_metalinkfactory kget_metalinkfactory.desktop)
target_link_libraries(kget_metalinkfactory kgetcore)
target_link_libraries(kget_metalinkfactory ${KDE4_KDEUI_LIBS} ${KDE4_KIO_LIBS} kgetcore)
install(TARGETS kget_metalinkfactory DESTINATION ${PLUGIN_INSTALL_DIR})
install(FILES kget_metalinkfactory.desktop DESTINATION ${SERVICES_INSTALL_DIR})
install(TARGETS kget_metalinkfactory DESTINATION ${KGET_PLUGIN_INSTALL_DIR})
###Build KCM-Module
......@@ -41,7 +39,7 @@ dlgmetalink.ui
kconfig_add_kcfg_files(kcm_kget_metalinkfactory_PART_SRCS metalinksettings.kcfgc)
add_library(kcm_kget_metalinkfactory MODULE ${kcm_kget_metalinkfactory_PART_SRCS})
target_link_libraries(kcm_kget_metalinkfactory ${KDE4_KDEUI_LIBS} ${KDE4_KIO_LIBS})
target_link_libraries(kcm_kget_metalinkfactory KF5::I18n KF5::ConfigGui KF5::KDELibs4Support)
install(TARGETS kcm_kget_metalinkfactory DESTINATION ${PLUGIN_INSTALL_DIR})
install(FILES kget_metalinkfactory_config.desktop DESTINATION ${SERVICES_INSTALL_DIR})
[Desktop Entry]
# service definition
Type=Service
X-KDE-ServiceTypes=KGet/Plugin
ServiceTypes=KGet/Plugin
Icon=kget
# standard fields
Name=Metalink
Name[ar]=ميتالينك
Name[ast]=Metalink
......@@ -120,7 +118,7 @@ Comment[zh_TW]=允許從 Metalink 下載檔案
X-KDE-Library=kget_metalinkfactory
X-KDE-KGet-plugintype=TransferFactory
X-KDE-KGet-rank=110
X-KDE-KGet-framework-version=1
X-KDE-KGet-framework-version=2
X-KDE-PluginInfo-Author=Manolo Valdes
X-KDE-PluginInfo-Email=nolis71cu@gmail.com
......@@ -129,4 +127,3 @@ X-KDE-PluginInfo-Category=Service
X-KDE-PluginInfo-License=GPL
X-KDE-PluginInfo-EnabledByDefault=true
X-KDE-PluginInfo-Name=kget_metalink_plugin
......@@ -20,9 +20,8 @@
#include "kget_debug.h"
#include <qdebug.h>
K_PLUGIN_FACTORY(KGetFactory,
registerPlugin<MetalinkFactory>();
)
K_PLUGIN_FACTORY_WITH_JSON(KGetFactory, "kget_metalinkfactory.json", registerPlugin<MetalinkFactory>();)
MetalinkFactory::MetalinkFactory(QObject *parent, const QVariantList &args)
: TransferFactory(parent, args)
{
......
......@@ -12,11 +12,10 @@ set(kget_mirrorsearchfactory_PART_SRCS
kconfig_add_kcfg_files(kget_mirrorsearchfactory_PART_SRCS mirrorsearchsettings.kcfgc)
add_library(kget_mirrorsearchfactory MODULE ${kget_mirrorsearchfactory_PART_SRCS})
kcoreaddons_desktop_to_json(kget_mirrorsearchfactory kget_mirrorsearchfactory.desktop)
target_link_libraries(kget_mirrorsearchfactory ${KDE4_KIO_LIBS} kgetcore)
install(TARGETS kget_mirrorsearchfactory DESTINATION ${PLUGIN_INSTALL_DIR})
install(FILES kget_mirrorsearchfactory.desktop DESTINATION ${SERVICES_INSTALL_DIR})
install(TARGETS kget_mirrorsearchfactory DESTINATION ${KGET_PLUGIN_INSTALL_DIR})
install(FILES kget_mirrorsearchfactory.kcfg DESTINATION ${KCFG_INSTALL_DIR})
###Build KCM-Module
......@@ -32,7 +31,7 @@ ki18n_wrap_ui(kcm_kget_mirrorsearchfactory_PART_SRCS
kconfig_add_kcfg_files(kcm_kget_mirrorsearchfactory_PART_SRCS mirrorsearchsettings.kcfgc)
add_library(kcm_kget_mirrorsearchfactory MODULE ${kcm_kget_mirrorsearchfactory_PART_SRCS})
target_link_libraries(kcm_kget_mirrorsearchfactory ${KDE4_KDEUI_LIBS} ${KDE4_KIO_LIBS})
target_link_libraries(kcm_kget_mirrorsearchfactory KF5::I18n KF5::KDELibs4Support)
install(TARGETS kcm_kget_mirrorsearchfactory DESTINATION ${PLUGIN_INSTALL_DIR})
install(FILES kget_mirrorsearchfactory_config.desktop DESTINATION ${SERVICES_INSTALL_DIR})
[Desktop Entry]
# service definition
Type=Service
X-KDE-ServiceTypes=KGet/Plugin
ServiceTypes=KGet/Plugin
Icon=kget
# standard fields
Name=Mirror Search
Name[ar]=بحث المرآة
Name[ast]=Guetador n'Espeyos
......@@ -120,7 +118,7 @@ Comment[zh_TW]=允許 KGet 透過鏡射搜尋引擎來搜尋檔案
X-KDE-Library=kget_mirrorsearchfactory
X-KDE-KGet-plugintype=TransferFactory
X-KDE-KGet-rank=40
X-KDE-KGet-framework-version=1
X-KDE-KGet-framework-version=2
X-KDE-PluginInfo-Author=Manolo Valdes
X-KDE-PluginInfo-Email=nolis71cu@gmail.com
......
......@@ -19,9 +19,8 @@
#include <QDomElement>
K_PLUGIN_FACTORY(KGetFactory,
registerPlugin<MirrorSearchFactory>();
)
K_PLUGIN_FACTORY_WITH_JSON(KGetFactory, "kget_mirrorsearchfactory.json", registerPlugin<MirrorSearchFactory>();)
MirrorSearchFactory::MirrorSearchFactory(QObject *parent, const QVariantList &args)
: TransferFactory(parent, args)
{
......
......@@ -13,11 +13,10 @@ set(kget_mmsfactory_PART_SRCS
kconfig_add_kcfg_files(kget_mmsfactory_PART_SRCS mmssettings.kcfgc)
add_library(kget_mmsfactory MODULE ${kget_mmsfactory_PART_SRCS})
kcoreaddons_desktop_to_json(kget_mmsfactory kget_mmsfactory.desktop)
target_link_libraries(kget_mmsfactory kgetcore ${LIBMMS_LIBRARIES})
target_link_libraries(kget_mmsfactory ${KDE4_KIO_LIBS} kgetcore ${LIBMMS_LIBRARIES})
install(TARGETS kget_mmsfactory DESTINATION ${PLUGIN_INSTALL_DIR})
install(FILES kget_mmsfactory.desktop DESTINATION ${SERVICES_INSTALL_DIR})
install(TARGETS kget_mmsfactory DESTINATION ${KGET_PLUGIN_INSTALL_DIR})
install(FILES kget_mmsfactory.kcfg DESTINATION ${KCFG_INSTALL_DIR})
###Build KCM-Module
......
[Desktop Entry]
# service definition
Type=Service
X-KDE-ServiceTypes=KGet/Plugin
ServiceTypes=KGet/Plugin
Icon=kget
# standard fields
Name=MMS
Name[ar]=MMS
Name[ast]=MMS
......@@ -127,7 +125,7 @@ Comment[zh_TW]=KGet 的 MMS 傳輸外掛程式
X-KDE-Library=kget_mmsfactory
X-KDE-KGet-plugintype=TransferFactory
X-KDE-KGet-rank=80
X-KDE-KGet-framework-version=1
X-KDE-KGet-framework-version=2
X-KDE-PluginInfo-Author=Ernesto Rodriguez Ortiz
X-KDE-PluginInfo-Email=eortiz@uci.cu
......
......@@ -26,9 +26,7 @@
#include "kget_debug.h"
#include <qdebug.h>
K_PLUGIN_FACTORY(KGetFactory,
registerPlugin<MmsTransferFactory>();
)
K_PLUGIN_FACTORY_WITH_JSON(KGetFactory, "kget_mmsfactory.json", registerPlugin<MmsTransferFactory>();)
MmsTransferFactory::MmsTransferFactory(QObject *parent, const QVariantList &args)
: TransferFactory(parent, args)
......
......@@ -13,11 +13,10 @@ set(kget_multisegkiofactory_PART_SRCS
kconfig_add_kcfg_files(kget_multisegkiofactory_PART_SRCS multisegkiosettings.kcfgc)
add_library(kget_multisegkiofactory MODULE ${kget_multisegkiofactory_PART_SRCS})
kcoreaddons_desktop_to_json(kget_multisegkiofactory kget_multisegkiofactory.desktop)
target_link_libraries(kget_multisegkiofactory kgetcore)
target_link_libraries(kget_multisegkiofactory ${KDE4_KIO_LIBS} kgetcore)
install(TARGETS kget_multisegkiofactory DESTINATION ${PLUGIN_INSTALL_DIR})
install(FILES kget_multisegkiofactory.desktop DESTINATION ${SERVICES_INSTALL_DIR})
install(TARGETS kget_multisegkiofactory DESTINATION ${KGET_PLUGIN_INSTALL_DIR})
install(FILES kget_multisegkiofactory.kcfg DESTINATION ${KCFG_INSTALL_DIR})
###Build KCM-Module
......@@ -32,7 +31,7 @@ ki18n_wrap_ui(kcm_kget_multisegkiofactory_PART_SRCS
kconfig_add_kcfg_files(kcm_kget_multisegkiofactory_PART_SRCS multisegkiosettings.kcfgc)
add_library(kcm_kget_multisegkiofactory MODULE ${kcm_kget_multisegkiofactory_PART_SRCS})
target_link_libraries(kcm_kget_multisegkiofactory ${KDE4_KDEUI_LIBS} ${KDE4_KIO_LIBS})
target_link_libraries(kcm_kget_multisegkiofactory KF5::I18n KF5::ConfigWidgets)
install(TARGETS kcm_kget_multisegkiofactory DESTINATION ${PLUGIN_INSTALL_DIR})
install(FILES kget_multisegkiofactory_config.desktop DESTINATION ${SERVICES_INSTALL_DIR})
[Desktop Entry]
# service definition
Type=Service
X-KDE-ServiceTypes=KGet/Plugin
ServiceTypes=KGet/Plugin
Icon=kget
# standard fields
Name=Multi Segment KIO
Name[ar]=متعدد اجزاء KIO
Name[ast]=Multi SegmentuKIO
......@@ -122,7 +120,7 @@ Comment[zh_TW]=多緒檔案下載外掛程式
X-KDE-Library=kget_multisegkiofactory
X-KDE-KGet-plugintype=TransferFactory
X-KDE-KGet-rank=70
X-KDE-KGet-framework-version=1
X-KDE-KGet-framework-version=2
X-KDE-PluginInfo-Author=Manolo Valdes
X-KDE-PluginInfo-Email=nolis71cu@gmail.com
......
......@@ -23,9 +23,8 @@
#include <qdebug.h>
#include "kget_macro.h"
K_PLUGIN_FACTORY(KGetFactory,
registerPlugin<TransferMultiSegKioFactory>();
)
K_PLUGIN_FACTORY_WITH_JSON(KGetFactory, "kget_multisegkiofactory.json", registerPlugin<TransferMultiSegKioFactory>();)
TransferMultiSegKioFactory::TransferMultiSegKioFactory(QObject *parent, const QVariantList &args)
: TransferFactory(parent, args)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment