From 860c879989e9e3f51f6654579e7bf3fddc652d85 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Thu, 4 May 2023 17:19:02 +0900 Subject: Drop deprecated kitchensync code Signed-off-by: Michele Calgaro --- kontact/plugins/kitchensync/Makefile.am | 14 ----- kontact/plugins/kitchensync/kitchensync.desktop | 17 ------ kontact/plugins/kitchensync/kitchensync_plugin.cpp | 67 ---------------------- kontact/plugins/kitchensync/kitchensync_plugin.h | 51 ---------------- kontact/src/mainwindow.cpp | 2 +- 5 files changed, 1 insertion(+), 150 deletions(-) delete mode 100644 kontact/plugins/kitchensync/Makefile.am delete mode 100644 kontact/plugins/kitchensync/kitchensync.desktop delete mode 100644 kontact/plugins/kitchensync/kitchensync_plugin.cpp delete mode 100644 kontact/plugins/kitchensync/kitchensync_plugin.h (limited to 'kontact') diff --git a/kontact/plugins/kitchensync/Makefile.am b/kontact/plugins/kitchensync/Makefile.am deleted file mode 100644 index c6df9113f..000000000 --- a/kontact/plugins/kitchensync/Makefile.am +++ /dev/null @@ -1,14 +0,0 @@ -INCLUDES = -I$(top_srcdir)/kontact/interfaces $(all_includes) - -kde_module_LTLIBRARIES = libkontact_kitchensync.la -libkontact_kitchensync_la_LDFLAGS = $(all_libraries) $(KDE_PLUGIN) -libkontact_kitchensync_la_LIBADD = $(top_builddir)/kontact/interfaces/libkpinterfaces.la - -libkontact_kitchensync_la_SOURCES = kitchensync_plugin.cpp - -METASOURCES = AUTO - -servicedir = $(kde_servicesdir)/kontact -service_DATA = kitchensync.desktop - -kitchensynciface_DIR = $(top_srcdir)/kitchensync diff --git a/kontact/plugins/kitchensync/kitchensync.desktop b/kontact/plugins/kitchensync/kitchensync.desktop deleted file mode 100644 index 6a8153ed1..000000000 --- a/kontact/plugins/kitchensync/kitchensync.desktop +++ /dev/null @@ -1,17 +0,0 @@ -[Desktop Entry] -Type=Service -Icon=kitchensync -X-TDE-ServiceTypes=Kontact/Plugin,KPluginInfo - -X-TDE-Library=libkontact_kitchensync -X-TDE-KontactPluginVersion=6 -X-TDE-KontactPartLibraryName=libkitchensyncpart - -X-TDE-PluginInfo-Name=kontact_kitchensync -X-TDE-PluginInfo-Version=0.1 -X-TDE-PluginInfo-License=GPL -X-TDE-PluginInfo-EnabledByDefault=false - -Name=Sync - -Comment=Synchronization Component (Kitchensynk Plugin) diff --git a/kontact/plugins/kitchensync/kitchensync_plugin.cpp b/kontact/plugins/kitchensync/kitchensync_plugin.cpp deleted file mode 100644 index 48e33627b..000000000 --- a/kontact/plugins/kitchensync/kitchensync_plugin.cpp +++ /dev/null @@ -1,67 +0,0 @@ -/* - This file is part of Kontact. - - Copyright (c) 2003 Cornelius Schumacher - - 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. - - As a special exception, permission is given to link this program - with any edition of TQt, and distribute the resulting executable, - without including the source code for TQt in the source distribution. -*/ - -#include - -#include -#include -#include -#include -#include -#include -#include -#include - -#include "core.h" -#include "plugin.h" - -#include "kitchensync_plugin.h" - -typedef KGenericFactory< KitchenSyncPlugin, Kontact::Core > KitchenSyncPluginFactory; -K_EXPORT_COMPONENT_FACTORY( libkontact_kitchensync, - KitchenSyncPluginFactory( "kontact_kitchensync" ) ) - -KitchenSyncPlugin::KitchenSyncPlugin( Kontact::Core *core, const char *, const TQStringList& ) - : Kontact::Plugin( core, TQT_TQOBJECT(core), "KitchenSync" ) -{ - setInstance( KitchenSyncPluginFactory::instance() ); -} - -KitchenSyncPlugin::~KitchenSyncPlugin() -{ -} - -KParts::ReadOnlyPart* KitchenSyncPlugin::createPart() -{ - return loadPart(); -} - -TQStringList KitchenSyncPlugin::configModules() const -{ - TQStringList modules; - modules << "PIM/kitchensync.desktop"; - return modules; -} - -#include "kitchensync_plugin.moc" diff --git a/kontact/plugins/kitchensync/kitchensync_plugin.h b/kontact/plugins/kitchensync/kitchensync_plugin.h deleted file mode 100644 index b484e32ec..000000000 --- a/kontact/plugins/kitchensync/kitchensync_plugin.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - This file is part of Kontact. - - Copyright (c) 2003 Cornelius Schumacher - - 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. - - As a special exception, permission is given to link this program - with any edition of TQt, and distribute the resulting executable, - without including the source code for TQt in the source distribution. -*/ - -#ifndef KITCHENSYNC_PLUGIN_H -#define KITCHENSYNC_PLUGIN_H - -#include -#include - -#include "plugin.h" - -class TDEAboutData; - -class KitchenSyncPlugin : public Kontact::Plugin -{ - Q_OBJECT - - public: - KitchenSyncPlugin( Kontact::Core *core, const char *name, - const TQStringList & ); - virtual ~KitchenSyncPlugin(); - - int weight() const { return 800; } - - virtual TQStringList configModules() const; - protected: - KParts::ReadOnlyPart *createPart(); -}; - -#endif diff --git a/kontact/src/mainwindow.cpp b/kontact/src/mainwindow.cpp index 1fd7ab881..8278d2c8b 100644 --- a/kontact/src/mainwindow.cpp +++ b/kontact/src/mainwindow.cpp @@ -343,7 +343,7 @@ void MainWindow::setupActions() mSyncActionsEnabled = cfg->readBoolEntry( "GroupwareMailFoldersEnabled", true ); if ( mSyncActionsEnabled ) { - mSyncActions = new TDEToolBarPopupAction( KGuiItem( i18n( "Synchronize" ), "kitchensync" ), + mSyncActions = new TDEToolBarPopupAction( KGuiItem( i18n( "Synchronize" ) ), TDEStdAccel::shortcut(TDEStdAccel::Reload), TQT_TQOBJECT(this), TQT_SLOT( slotSyncClicked() ), actionCollection(), "action_sync" ); } -- cgit v1.2.1