kontact Library API Documentation

summaryview_plugin.cpp

00001 /* This file is part of the KDE project
00002    Copyright (C) 2003 Sven Lüppken <sven@kde.org>
00003 
00004    This library is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU Library General Public
00006    License as published by the Free Software Foundation; either
00007    version 2 of the License, or (at your option) any later version.
00008 
00009    This library is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012    Library General Public License for more details.
00013 
00014    You should have received a copy of the GNU Library General Public License
00015    along with this library; see the file COPYING.LIB.  If not, write to
00016    the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00017    Boston, MA 02111-1307, USA.
00018  */
00019 
00020 #include <kgenericfactory.h>
00021 #include <kparts/componentfactory.h>
00022 #include <kaboutdata.h>
00023 
00024 #include "core.h"
00025 #include "summaryview_part.h"
00026 
00027 #include "summaryview_plugin.h"
00028 
00029 typedef KGenericFactory< SummaryView, Kontact::Core > SummaryViewFactory;
00030 K_EXPORT_COMPONENT_FACTORY( libkontact_summaryplugin,
00031                             SummaryViewFactory( "kontact_summaryplugin" ) )
00032 
00033 SummaryView::SummaryView( Kontact::Core *core, const char *name, const QStringList& )
00034   : Kontact::Plugin( core, core, name),
00035     mAboutData( 0 )
00036 {
00037   setInstance( SummaryViewFactory::instance() );
00038 }
00039 
00040 SummaryView::~SummaryView()
00041 {
00042 }
00043 
00044 KParts::Part *SummaryView::createPart()
00045 {
00046   return new SummaryViewPart( core(), "summarypartframe", aboutData(),
00047                               this, "summarypart" );
00048 }
00049 
00050 const KAboutData *SummaryView::aboutData()
00051 {
00052   if ( !mAboutData ) {
00053     mAboutData = new KAboutData( "kontactsummary", I18N_NOOP("Kontact Summary"),
00054                                  "0.1",
00055                                  I18N_NOOP("Kontact Summary View"),
00056                                  KAboutData::License_LGPL,
00057                                  I18N_NOOP("(c) 2003 The Kontact developers" ) );
00058     mAboutData->addAuthor( "Sven Lueppken", "", "sven@kde.org" );
00059     mAboutData->addAuthor( "Cornelius Schumacher", "", "schumacher@kde.org" );
00060     mAboutData->addAuthor( "Tobias Koenig", "", "tokoe@kde.org" );
00061     mAboutData->setProductName( "kontact/summary" );
00062   }
00063 
00064   return mAboutData;
00065 }
00066 
00067 #include "summaryview_plugin.moc"
KDE Logo
This file is part of the documentation for kontact Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sat May 1 11:39:00 2004 by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2003