kpilot_plugin.cpp
1 /*
2  This file is part of Kontact.
3  Copyright (C) 2003 Tobias Koenig <tokoe@kde.org>
4  Copyright (C) 2004 Reinhold Kainhofer <reinhold@kainhofer.com>
5 
6  This library is free software; you can redistribute it and/or
7  modify it under the terms of the GNU Library General Public
8  License as published by the Free Software Foundation; either
9  version 2 of the License, or (at your option) any later version.
10 
11  This library is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  Library General Public License for more details.
15 
16  You should have received a copy of the GNU Library General Public License
17  along with this library; see the file COPYING.LIB. If not, write to
18  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19  Boston, MA 02110-1301, USA.
20 */
21 
22 #include "options.h"
23 
24 #include <tdeaboutdata.h>
25 #include <kgenericfactory.h>
26 #include <tdeparts/componentfactory.h>
27 
28 #include "core.h"
29 #include "summarywidget.h"
30 
31 #include "kpilot_plugin.h"
32 
33 typedef KGenericFactory< KPilotPlugin, Kontact::Core > KPilotPluginFactory;
34 K_EXPORT_COMPONENT_FACTORY( libkontact_kpilotplugin,
35  KPilotPluginFactory( "kontact_kpilotplugin" ) )
36 
37 KPilotPlugin::KPilotPlugin( Kontact::Core *core, const char *name, const TQStringList& )
38  : Kontact::Plugin( core, core, "kpilot" ), mAboutData( 0 )
39 {
40  setInstance( KPilotPluginFactory::instance() );
41  // TODO: Make sure kpilotDaemon is running!
42 
43 
44 }
45 
46 KPilotPlugin::~KPilotPlugin()
47 {
48 }
49 
50 Kontact::Summary *KPilotPlugin::createSummaryWidget( TQWidget *parentWidget )
51 {
52  return new SummaryWidget( parentWidget );
53 }
54 
55 const TDEAboutData *KPilotPlugin::aboutData()
56 {
57  if ( !mAboutData ) {
58  mAboutData = new TDEAboutData("kpilotplugin", I18N_NOOP("KPilot Information"),
59  KPILOT_VERSION,
60  I18N_NOOP("KPilot - HotSync software for TDE\n\n"),
61  TDEAboutData::License_GPL, "(c) 2004 Reinhold Kainhofer");
62  mAboutData->addAuthor("Reinhold Kainhofer",
63  I18N_NOOP("Plugin Developer"), "reinhold@kainhofer.com", "http://reinhold.kainhofer.com/Linux/");
64  mAboutData->addAuthor("Dan Pilone",
65  I18N_NOOP("Project Leader"),
66  0, "http://www.kpilot.org/");
67  mAboutData->addAuthor("Adriaan de Groot",
68  I18N_NOOP("Maintainer"),
69  "groot@kde.org", "http://people.fruitsalad.org/adridg/");
70  }
71 
72  return mAboutData;
73 }
Summary widget for display in the Summary View plugin.
Definition: summary.h:37