• 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
  • knode
knode_plugin.h
Go to the documentation of this file.
1 /*
2  This file is part of Kontact.
3 
4  Copyright (c) 2003 Zack Rusin <zack@kde.org>
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 License 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 KNODE_PLUGIN_H
26 #define KNODE_PLUGIN_H
27 
28 #include <KontactInterface/UniqueAppHandler>
29 
30 namespace KontactInterface {
31  class Plugin;
32 }
33 
34 class OrgKdeKnodeInterface;
35 
36 class KNodeUniqueAppHandler : public KontactInterface::UniqueAppHandler
37 {
38  public:
39  explicit KNodeUniqueAppHandler( KontactInterface::Plugin *plugin )
40  : KontactInterface::UniqueAppHandler( plugin ) {}
41  virtual void loadCommandLineOptions();
42  virtual int newInstance();
43 };
44 
45 class KNodePlugin : public KontactInterface::Plugin
46 {
47  Q_OBJECT
48 
49  public:
50  KNodePlugin( KontactInterface::Core *core, const QVariantList & );
51  ~KNodePlugin();
52 
53  bool createDBUSInterface( const QString &serviceType );
54  bool isRunningStandalone() const;
55  QString tipFile() const;
56  int weight() const { return 500; }
57 
58  QStringList invisibleToolbarActions() const;
59 
60  protected:
61  virtual KParts::ReadOnlyPart *createPart();
62 
63  protected slots:
64  void slotPostArticle();
65 
66  private:
67  OrgKdeKnodeInterface *m_interface;
68  KontactInterface::UniqueAppWatcher *mUniqueAppWatcher;
69 };
70 
71 #endif
KNodePlugin::~KNodePlugin
~KNodePlugin()
Definition: knode_plugin.cpp:61
KNodePlugin::invisibleToolbarActions
QStringList invisibleToolbarActions() const
Definition: knode_plugin.cpp:78
KNodeUniqueAppHandler::KNodeUniqueAppHandler
KNodeUniqueAppHandler(KontactInterface::Plugin *plugin)
Definition: knode_plugin.h:39
KNodePlugin::createDBUSInterface
bool createDBUSInterface(const QString &serviceType)
Definition: knode_plugin.cpp:67
KNodePlugin::slotPostArticle
void slotPostArticle()
Definition: knode_plugin.cpp:83
KNodePlugin::isRunningStandalone
bool isRunningStandalone() const
Definition: knode_plugin.cpp:73
KNodePlugin::createPart
virtual KParts::ReadOnlyPart * createPart()
Definition: knode_plugin.cpp:100
KNodePlugin
Definition: knode_plugin.h:45
KNodePlugin::weight
int weight() const
Definition: knode_plugin.h:56
KNodeUniqueAppHandler
Definition: knode_plugin.h:36
QString
KNodePlugin::KNodePlugin
KNodePlugin(KontactInterface::Core *core, const QVariantList &)
Definition: knode_plugin.cpp:38
QStringList
KNodeUniqueAppHandler::newInstance
virtual int newInstance()
Definition: knode_plugin.cpp:119
KNodeUniqueAppHandler::loadCommandLineOptions
virtual void loadCommandLineOptions()
Definition: knode_plugin.cpp:114
KNodePlugin::tipFile
QString tipFile() const
Definition: knode_plugin.cpp:92
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