kpilot

todo-setup.cc

Go to the documentation of this file.
00001 /* KPilot
00002 **
00003 ** Copyright (C) 2002-2003 Reinhold Kainhofer
00004 ** Copyright (C) 2001 by Dan Pilone
00005 **
00006 ** This file defines the factory for the todo-conduit plugin.
00007 */
00008 
00009 /*
00010 ** This program is free software; you can redistribute it and/or modify
00011 ** it under the terms of the GNU General Public License as published by
00012 ** the Free Software Foundation; either version 2 of the License, or
00013 ** (at your option) any later version.
00014 **
00015 ** This program is distributed in the hope that it will be useful,
00016 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
00017 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00018 ** GNU General Public License for more details.
00019 **
00020 ** You should have received a copy of the GNU General Public License
00021 ** along with this program in a file called COPYING; if not, write to
00022 ** the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
00023 ** MA 02110-1301, USA.
00024 */
00025 
00026 /*
00027 ** Bug reports and questions can be sent to kde-pim@kde.org
00028 */
00029 
00030 #include "options.h"
00031 
00032 #include <qbuttongroup.h>
00033 #include <kaboutdata.h>
00034 
00035 #include "korganizerConduit.h"
00036 #include "todo-conduit.h"
00037 #include "todo-setup.h"
00038 
00039 
00040 
00041 ToDoWidgetSetup::ToDoWidgetSetup(QWidget *w, const char *n) :
00042     VCalWidgetSetupBase(w,n)
00043 {
00044     FUNCTIONSETUP;
00045     fConduitName = i18n("To-do");
00046     KAboutData *fAbout = new KAboutData("todoConduit",
00047         I18N_NOOP("To-do Conduit for KPilot"),
00048         KPILOT_VERSION,
00049         I18N_NOOP("Configures the To-do Conduit for KPilot"),
00050         KAboutData::License_GPL,
00051         "(C) 2001, Adriaan de Groot\n(C) 2002-2003, Reinhold Kainhofer");
00052     fAbout->addAuthor("Dan Pilone",
00053         I18N_NOOP("Original Author"));
00054     fAbout->addAuthor("Preston Brown",
00055         I18N_NOOP("Original Author"));
00056     fAbout->addAuthor("Herwin-Jan Steehouwer",
00057         I18N_NOOP("Original Author"));
00058     fAbout->addAuthor("Adriaan de Groot",
00059         I18N_NOOP("Maintainer"),
00060         "groot@kde.org",
00061         "http://www.cs.kun.nl/~adridg/kpilot");
00062     fAbout->addAuthor("Reinhold Kainhofer",
00063         I18N_NOOP("Maintainer"),
00064         "reinhold@kainhofer.com",
00065         "http://reinhold.kainhofer.com/Linux/");
00066 
00067     ConduitConfigBase::addAboutPage(fConfigWidget->tabWidget,fAbout);
00068 
00069     fConfigWidget->fSyncDestination->setTitle(i18n("To-do Destination"));
00070 }
00071 
00072 ToDoWidgetSetup::~ToDoWidgetSetup()
00073 {
00074     FUNCTIONSETUP;
00075 }
00076 
00077 /* static */ ConduitConfigBase *ToDoWidgetSetup::create(QWidget *w, const char *n)
00078 {
00079     return new ToDoWidgetSetup(w,n);
00080 }
00081 
00082 VCalConduitSettings*ToDoWidgetSetup::config()
00083 {
00084   return TodoConduit::theConfig();
00085 }
00086