diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-05-04 17:19:02 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-05-04 17:19:02 +0900 |
commit | 860c879989e9e3f51f6654579e7bf3fddc652d85 (patch) | |
tree | fdfb273f697d363d8a59d2e208f6eb68f8e72b2b /kitchensync/src/configgui.cpp | |
parent | 5629ca069bd0c1d5c7bee83f3eac2b8418939854 (diff) | |
download | tdepim-860c879989e9e3f51f6654579e7bf3fddc652d85.tar.gz tdepim-860c879989e9e3f51f6654579e7bf3fddc652d85.zip |
Drop deprecated kitchensync code
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'kitchensync/src/configgui.cpp')
-rw-r--r-- | kitchensync/src/configgui.cpp | 135 |
1 files changed, 0 insertions, 135 deletions
diff --git a/kitchensync/src/configgui.cpp b/kitchensync/src/configgui.cpp deleted file mode 100644 index 6a41032eb..000000000 --- a/kitchensync/src/configgui.cpp +++ /dev/null @@ -1,135 +0,0 @@ -/* - This file is part of KitchenSync. - - Copyright (c) 2005 Cornelius Schumacher <schumacher@kde.org> - - 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 "configgui.h" - - -#include "configguiblank.h" -#include "configguifile.h" -#include "configguignokii.h" -#include "configguigpe.h" -#include "configguiirmc.h" -#include "configguildap.h" -#include "configguiopie.h" -#include "configguipalm.h" -#include "configguisyncmlhttp.h" -#include "configguisyncmlobex.h" -#include "configguigcalendar.h" -#include "configguijescs.h" -#include "configguievo2.h" -#include "configguimoto.h" -#include "configguisynce.h" -#include "configguisunbird.h" - -#include "memberinfo.h" - -#include <kdialog.h> -#include <tdelocale.h> -#include <klineedit.h> - -#include <tqlayout.h> -#include <tqlabel.h> -#include <tqtextedit.h> - -ConfigGui::ConfigGui( const QSync::Member &member, TQWidget *parent ) - : TQWidget( parent ), mMember( member ) -{ - mTopLayout = new TQVBoxLayout( this ); - mTopLayout->setSpacing( KDialog::spacingHint() ); - mTopLayout->setMargin( KDialog::marginHint() ); - - TQBoxLayout *nameLayout = new TQHBoxLayout( mTopLayout ); - - TQLabel *label = new TQLabel( i18n("Name:"), this ); - nameLayout->addWidget( label ); - - mNameEdit = new KLineEdit( this ); - nameLayout->addWidget( mNameEdit ); -} - -void ConfigGui::setInstanceName( const TQString &t ) -{ - mNameEdit->setText( t ); -} - -TQString ConfigGui::instanceName() const -{ - return mNameEdit->text(); -} - -ConfigGui *ConfigGui::Factory::create( const QSync::Member &member, - TQWidget *parent ) -{ - TQString name = member.pluginName(); - if ( name == "file-sync" ) { - return new ConfigGuiFile( member, parent ); - } else if ( name == "palm-sync" ) { - return new ConfigGuiPalm( member, parent ); - } else if ( name == "irmc-sync" ) { - return new ConfigGuiIRMC( member, parent ); - } else if ( name == "syncml-obex-client" ) { - return new ConfigGuiSyncmlObex( member, parent ); - } else if ( name == "syncml-http-server" ) { - return new ConfigGuiSyncmlHttp( member, parent ); - } else if ( name == "opie-sync" ) { - return new ConfigGuiOpie( member, parent ); - } else if ( name == "gnokii-sync" ) { - return new ConfigGuiGnokii( member, parent ); - } else if ( name == "gpe-sync" ) { - return new ConfigGuiGpe( member, parent ); - } else if ( name == "google-calendar" ) { - return new ConfigGuiGoogleCalendar( member, parent ); - } else if ( name == "ldap-sync" ) { - return new ConfigGuiLdap( member, parent ); - } else if ( name == "tdepim-sync" ) { - return new ConfigGuiBlank( member, parent ); - } else if ( name == "jescs-sync" ) { - return new ConfigGuiJescs( member, parent ); - } else if ( name == "evo2-sync" ) { - return new ConfigGuiEvo2( member, parent ); - } else if ( name == "moto-sync" ) { - return new ConfigGuiMoto( member, parent ); - } else if ( name == "synce-plugin" ) { - return new ConfigGuiSynce( member, parent ); - } else if ( name == "sunbird-sync" ) { - return new ConfigGuiSunbird( member, parent ); - } else { - return new ConfigGuiXml( member, parent ); - } -} - - -ConfigGuiXml::ConfigGuiXml( const QSync::Member &member, TQWidget *parent ) - : ConfigGui( member, parent ) -{ - mTextEdit = new TQTextEdit( this ); - topLayout()->addWidget( mTextEdit ); -} - -void ConfigGuiXml::load( const TQString &xml ) -{ - mTextEdit->setText( xml ); -} - -TQString ConfigGuiXml::save() const -{ - return mTextEdit->text(); -} |