• 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
  • akregator
akregator_plugin.h
Go to the documentation of this file.
1 /*
2  This file is part of Akregator.
3 
4  Copyright (C) 2004 Sashmit Bhaduri <smt@vfemail.net>
5 
6  This program is free software; you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation; either version 2 of the License, or
9  (at your option) any later version.
10 
11  This program 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
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public Licensea along
17  with this program; if not, write to the Free Software Foundation, Inc.,
18  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 
20  As a special exception, permission is given to link this program
21  with any edition of Qt, and distribute the resulting executable,
22  without including the source code for Qt in the source distribution.
23 */
24 
25 #ifndef AKREGATOR_PLUGIN_H
26 #define AKREGATOR_PLUGIN_H
27 
28 #include <KontactInterface/UniqueAppHandler>
29 
30 namespace KontactInterface {
31  class Plugin;
32 }
33 
34 class OrgKdeAkregatorPartInterface;
35 
36 class AkregatorUniqueAppHandler : public KontactInterface::UniqueAppHandler
37 {
38  public:
39  explicit AkregatorUniqueAppHandler( KontactInterface::Plugin *plugin )
40  : KontactInterface::UniqueAppHandler( plugin ) {}
41  virtual void loadCommandLineOptions();
42  virtual int newInstance();
43 };
44 
45 class AkregatorPlugin : public KontactInterface::Plugin
46 {
47  Q_OBJECT
48 
49  public:
50  AkregatorPlugin( KontactInterface::Core *core, const QVariantList & );
51  ~AkregatorPlugin();
52 
53  QString tipFile() const;
54  int weight() const { return 475; }
55 
56  OrgKdeAkregatorPartInterface *interface();
57 
58  virtual QStringList configModules() const;
59  QStringList invisibleToolbarActions() const;
60  bool isRunningStandalone() const;
61  virtual void readProperties( const KConfigGroup &config );
62  virtual void saveProperties( KConfigGroup &config );
63 
64  private slots:
65  void addFeed();
66 
67  protected:
68  KParts::ReadOnlyPart *createPart();
69  KontactInterface::UniqueAppWatcher *mUniqueAppWatcher;
70  OrgKdeAkregatorPartInterface *m_interface;
71 };
72 
73 #endif
AkregatorPlugin::mUniqueAppWatcher
KontactInterface::UniqueAppWatcher * mUniqueAppWatcher
Definition: akregator_plugin.h:69
AkregatorPlugin::weight
int weight() const
Definition: akregator_plugin.h:54
AkregatorPlugin::m_interface
OrgKdeAkregatorPartInterface * m_interface
Definition: akregator_plugin.h:70
AkregatorPlugin::createPart
KParts::ReadOnlyPart * createPart()
Definition: akregator_plugin.cpp:95
AkregatorPlugin::readProperties
virtual void readProperties(const KConfigGroup &config)
Definition: akregator_plugin.cpp:126
AkregatorPlugin::configModules
virtual QStringList configModules() const
Definition: akregator_plugin.cpp:119
AkregatorUniqueAppHandler::AkregatorUniqueAppHandler
AkregatorUniqueAppHandler(KontactInterface::Plugin *plugin)
Definition: akregator_plugin.h:39
AkregatorPlugin::invisibleToolbarActions
QStringList invisibleToolbarActions() const
Definition: akregator_plugin.cpp:72
AkregatorPlugin
Definition: akregator_plugin.h:45
AkregatorUniqueAppHandler
Definition: akregator_plugin.h:36
QString
AkregatorPlugin::tipFile
QString tipFile() const
Definition: akregator_plugin.cpp:87
AkregatorPlugin::AkregatorPlugin
AkregatorPlugin(KontactInterface::Core *core, const QVariantList &)
Definition: akregator_plugin.cpp:38
QStringList
AkregatorPlugin::isRunningStandalone
bool isRunningStandalone() const
Definition: akregator_plugin.cpp:67
AkregatorPlugin::saveProperties
virtual void saveProperties(KConfigGroup &config)
Definition: akregator_plugin.cpp:134
AkregatorPlugin::interface
OrgKdeAkregatorPartInterface * interface()
Definition: akregator_plugin.cpp:77
AkregatorUniqueAppHandler::newInstance
virtual int newInstance()
Definition: akregator_plugin.cpp:147
AkregatorUniqueAppHandler::loadCommandLineOptions
virtual void loadCommandLineOptions()
Definition: akregator_plugin.cpp:142
AkregatorPlugin::~AkregatorPlugin
~AkregatorPlugin()
Definition: akregator_plugin.cpp:61
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