• 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
  • kjots
kjots_plugin.h
Go to the documentation of this file.
1 /*
2  This file is part of KJots.
3 
4  Copyright (c) 2008 Stephen Kelly <steveire@gmail.com>
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 KJOTS_PLUGIN_H
26 #define KJOTS_PLUGIN_H
27 
28 #include "kjotswidgetinterface.h"
29 
30 #include <KontactInterface/UniqueAppHandler>
31 
32 namespace KontactInterface {
33  class Plugin;
34 }
35 
36 class KJotsUniqueAppHandler : public KontactInterface::UniqueAppHandler
37 {
38  public:
39  explicit KJotsUniqueAppHandler( KontactInterface::Plugin *plugin )
40  : KontactInterface::UniqueAppHandler( plugin ) {}
41  virtual void loadCommandLineOptions();
42  virtual int newInstance();
43 };
44 
45 class KJotsPlugin : public KontactInterface::Plugin
46 {
47  Q_OBJECT
48 
49  public:
50  KJotsPlugin( KontactInterface::Core *core, const QVariantList & );
51  ~KJotsPlugin();
52  int weight() const { return 550; }
53  QStringList invisibleToolbarActions() const;
54  bool isRunningStandalone() const;
55  virtual bool queryClose() const;
56 
57  OrgKdeKJotsWidgetInterface *interface();
58 
59  private slots:
60  void newPage();
61  void newBook();
62 
63  protected:
64  KParts::ReadOnlyPart *createPart();
65  KontactInterface::UniqueAppWatcher *mUniqueAppWatcher;
66  OrgKdeKJotsWidgetInterface *m_interface;
67 };
68 
69 #endif
70 
KJotsPlugin::interface
OrgKdeKJotsWidgetInterface * interface()
Definition: kjots_plugin.cpp:100
KJotsUniqueAppHandler
Definition: kjots_plugin.h:36
KJotsPlugin::KJotsPlugin
KJotsPlugin(KontactInterface::Core *core, const QVariantList &)
Definition: kjots_plugin.cpp:37
KJotsPlugin
Definition: kjots_plugin.h:45
KJotsUniqueAppHandler::newInstance
virtual int newInstance()
Definition: kjots_plugin.cpp:135
KJotsPlugin::~KJotsPlugin
~KJotsPlugin()
Definition: kjots_plugin.cpp:71
KJotsPlugin::invisibleToolbarActions
QStringList invisibleToolbarActions() const
Definition: kjots_plugin.cpp:82
KJotsUniqueAppHandler::KJotsUniqueAppHandler
KJotsUniqueAppHandler(KontactInterface::Plugin *plugin)
Definition: kjots_plugin.h:39
QStringList
KJotsPlugin::mUniqueAppWatcher
KontactInterface::UniqueAppWatcher * mUniqueAppWatcher
Definition: kjots_plugin.h:65
KJotsUniqueAppHandler::loadCommandLineOptions
virtual void loadCommandLineOptions()
Definition: kjots_plugin.cpp:129
KJotsPlugin::createPart
KParts::ReadOnlyPart * createPart()
Definition: kjots_plugin.cpp:87
KJotsPlugin::weight
int weight() const
Definition: kjots_plugin.h:52
KJotsPlugin::m_interface
OrgKdeKJotsWidgetInterface * m_interface
Definition: kjots_plugin.h:66
KJotsPlugin::isRunningStandalone
bool isRunningStandalone() const
Definition: kjots_plugin.cpp:77
KJotsPlugin::queryClose
virtual bool queryClose() const
Definition: kjots_plugin.cpp:121
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