• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepim API Reference
  • KDE Home
  • Contact Us
 

kontact

  • sources
  • kde-4.14
  • kdepim
  • kontact
  • plugins
  • specialdates
specialdates_plugin.cpp
Go to the documentation of this file.
1 /*
2  This file is part of Kontact.
3 
4  Copyright (c) 2003 Tobias Koenig <tokoe@kde.org>
5  Copyright (c) 2004-2005,2009 Allen Winter <winter@kde.org>
6 
7  This program is free software; you can redistribute it and/or modify
8  it under the terms of the GNU General Public License as published by
9  the Free Software Foundation; either version 2 of the License, or
10  (at your option) any later version.
11 
12  This program is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License
18  along with this program; if not, write to the Free Software
19  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 
21  As a special exception, permission is given to link this program
22  with any edition of Qt, and distribute the resulting executable,
23  without including the source code for Qt in the source distribution.
24 */
25 
26 #include "specialdates_plugin.h"
27 #include "sdsummarywidget.h"
28 
29 #include <KontactInterface/Core>
30 
31 #include <KAboutData>
32 #include <KLocalizedString>
33 
34 EXPORT_KONTACT_PLUGIN( SpecialdatesPlugin, specialdates )
35 
36 SpecialdatesPlugin::SpecialdatesPlugin( KontactInterface::Core *core, const QVariantList & )
37  : KontactInterface::Plugin( core, core, 0 ), mAboutData( 0 )
38 {
39  setComponentData( KontactPluginFactory::componentData() );
40  KIconLoader::global()->addAppDir( QLatin1String("kdepim") );
41 }
42 
43 SpecialdatesPlugin::~SpecialdatesPlugin()
44 {
45 }
46 
47 KontactInterface::Summary *SpecialdatesPlugin::createSummaryWidget( QWidget *parentWidget )
48 {
49  return new SDSummaryWidget( this, parentWidget );
50 }
51 
52 const KAboutData *SpecialdatesPlugin::aboutData() const
53 {
54  if ( !mAboutData ) {
55  mAboutData = new KAboutData( "specialdates", 0,
56  ki18n( "Special Dates Summary" ),
57  "1.0",
58  ki18n( "Kontact Special Dates Summary" ),
59  KAboutData::License_LGPL,
60  ki18n( "Copyright © 2003 Tobias Koenig\n"
61  "Copyright © 2004–2010 Allen Winter" ) );
62  mAboutData->addAuthor( ki18n( "Allen Winter" ),
63  ki18n( "Current Maintainer" ), "winter@kde.org" );
64  mAboutData->addAuthor( ki18n( "Tobias Koenig" ),
65  KLocalizedString(), "tokoe@kde.org" );
66  mAboutData->setProductName( "kontact/specialdates" );
67  }
68 
69  return mAboutData;
70 }
QWidget
sdsummarywidget.h
SpecialdatesPlugin::aboutData
const KAboutData * aboutData() const
Definition: specialdates_plugin.cpp:52
SpecialdatesPlugin
Definition: specialdates_plugin.h:31
specialdates_plugin.h
QLatin1String
SpecialdatesPlugin::createSummaryWidget
virtual KontactInterface::Summary * createSummaryWidget(QWidget *parentWidget)
Definition: specialdates_plugin.cpp:47
SDSummaryWidget
Definition: sdsummarywidget.h:48
SpecialdatesPlugin::~SpecialdatesPlugin
~SpecialdatesPlugin()
Definition: specialdates_plugin.cpp:43
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:34:11 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kontact

Skip menu "kontact"
  • Main Page
  • Namespace List
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer
  • pimprint

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal