kontact Library API Documentation

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., 59 Temple Place - Suite 330,
00019    Boston, MA 02111-1307, USA.
00020 */
00021 
00022 #include <kaboutdata.h>
00023 #include <kgenericfactory.h>
00024 #include <kparts/componentfactory.h>
00025 
00026 #include "core.h"
00027 #include "summarywidget.h"
00028 
00029 #include "kpilot_plugin.h"
00030 #include "options.h"
00031 
00032 typedef KGenericFactory< KPilotPlugin, Kontact::Core > KPilotPluginFactory;
00033 K_EXPORT_COMPONENT_FACTORY( libkontact_kpilotplugin,
00034                             KPilotPluginFactory( "kontact_kpilotplugin" ) )
00035 
00036 KPilotPlugin::KPilotPlugin( Kontact::Core *core, const char *name, const QStringList& )
00037   : Kontact::Plugin( core, core, "kpilot" ), mAboutData( 0 )
00038 {
00039   setInstance( KPilotPluginFactory::instance() );
00040     // TODO: Make sure kpilotDaemon is running!
00041 
00042 
00043 }
00044 
00045 Kontact::Summary *KPilotPlugin::createSummaryWidget( QWidget *parentWidget )
00046 {
00047   return new SummaryWidget( parentWidget );
00048 }
00049 
00050 const KAboutData *KPilotPlugin::aboutData()
00051 {
00052   if ( !mAboutData ) {
00053     mAboutData = new KAboutData("kpilotplugin", I18N_NOOP("KPilot Information"),
00054         KPILOT_VERSION,
00055         I18N_NOOP("KPilot - HotSync software for KDE\n\n"),
00056         KAboutData::License_GPL, "(c) 2004 Reinhold Kainhofer");
00057     mAboutData->addAuthor("Reinhold Kainhofer",
00058         I18N_NOOP("Plugin Developer"), "reinhold@kainhofer.com", "http://reinhold.kainhofer.com/Linux/");
00059     mAboutData->addAuthor("Dan Pilone",
00060         I18N_NOOP("Project Leader"),
00061         0, "http://www.kpilot.org/");
00062     mAboutData->addAuthor("Adriaan de Groot",
00063         I18N_NOOP("Maintainer"),
00064         "groot@kde.org", "http://people.fruitsalad.org/adridg/");
00065   }
00066 
00067   return mAboutData;
00068 }
KDE Logo
This file is part of the documentation for kontact Library Version 3.3.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Fri Dec 21 14:26:16 2007 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003