kontact

kpilot_plugin.cpp

00001 /*
00002    This file is part of Kontact.
00003    Copyright (C) 2003 Tobias Koenig <tokoe@kde.org>
00004      Copyright (C) 2004 Reinhold Kainhofer <reinhold@kainhofer.com>
00005 
00006    This library is free software; you can redistribute it and/or
00007    modify it under the terms of the GNU Library General Public
00008    License as published by the Free Software Foundation; either
00009    version 2 of the License, or (at your option) any later version.
00010 
00011    This library is distributed in the hope that it will be useful,
00012    but WITHOUT ANY WARRANTY; without even the implied warranty of
00013    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014    Library General Public License for more details.
00015 
00016    You should have received a copy of the GNU Library General Public License
00017    along with this library; see the file COPYING.LIB.  If not, write to
00018    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00019    Boston, MA 02110-1301, USA.
00020 */
00021 
00022 #include "options.h"
00023 
00024 #include <kaboutdata.h>
00025 #include <kgenericfactory.h>
00026 #include <kparts/componentfactory.h>
00027 
00028 #include "core.h"
00029 #include "summarywidget.h"
00030 
00031 #include "kpilot_plugin.h"
00032 
00033 typedef KGenericFactory< KPilotPlugin, Kontact::Core > KPilotPluginFactory;
00034 K_EXPORT_COMPONENT_FACTORY( libkontact_kpilotplugin,
00035                             KPilotPluginFactory( "kontact_kpilotplugin" ) )
00036 
00037 KPilotPlugin::KPilotPlugin( Kontact::Core *core, const char *name, const QStringList& )
00038   : Kontact::Plugin( core, core, "kpilot" ), mAboutData( 0 )
00039 {
00040   setInstance( KPilotPluginFactory::instance() );
00041     // TODO: Make sure kpilotDaemon is running!
00042 
00043 
00044 }
00045 
00046 Kontact::Summary *KPilotPlugin::createSummaryWidget( QWidget *parentWidget )
00047 {
00048   return new SummaryWidget( parentWidget );
00049 }
00050 
00051 const KAboutData *KPilotPlugin::aboutData()
00052 {
00053   if ( !mAboutData ) {
00054     mAboutData = new KAboutData("kpilotplugin", I18N_NOOP("KPilot Information"),
00055         KPILOT_VERSION,
00056         I18N_NOOP("KPilot - HotSync software for KDE\n\n"),
00057         KAboutData::License_GPL, "(c) 2004 Reinhold Kainhofer");
00058     mAboutData->addAuthor("Reinhold Kainhofer",
00059         I18N_NOOP("Plugin Developer"), "reinhold@kainhofer.com", "http://reinhold.kainhofer.com/Linux/");
00060     mAboutData->addAuthor("Dan Pilone",
00061         I18N_NOOP("Project Leader"),
00062         0, "http://www.kpilot.org/");
00063     mAboutData->addAuthor("Adriaan de Groot",
00064         I18N_NOOP("Maintainer"),
00065         "groot@kde.org", "http://people.fruitsalad.org/adridg/");
00066   }
00067 
00068   return mAboutData;
00069 }
KDE Home | KDE Accessibility Home | Description of Access Keys