• 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
  • knotes
knotes_plugin.h
Go to the documentation of this file.
1 /*
2  This file is part of the KDE project
3 
4  Copyright (C) 2002 Daniel Molkentin <molkentin@kde.org>
5  Copyright (c) 2004 Michael Brade <brade@kde.org>
6 
7  This program is free software; you can redistribute it and/or
8  modify it under the terms of the GNU General Public
9  License as published by the Free Software Foundation; either
10  version 2 of the License, or (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 GNU
15  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; see the file COPYING. If not, write to
19  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20  Boston, MA 02110-1301, USA.
21 */
22 
23 #ifndef KNOTES_PLUGIN_H
24 #define KNOTES_PLUGIN_H
25 
26 #include <KontactInterface/Plugin>
27 #include <KontactInterface/UniqueAppHandler>
28 
29 class KNotesSummaryWidget;
30 
31 class KNotesUniqueAppHandler : public KontactInterface::UniqueAppHandler
32 {
33  public:
34  explicit KNotesUniqueAppHandler( KontactInterface::Plugin *plugin )
35  : KontactInterface::UniqueAppHandler( plugin ) {}
36  virtual void loadCommandLineOptions();
37  virtual int newInstance();
38 };
39 
40 class KNotesPlugin : public KontactInterface::Plugin
41 {
42  Q_OBJECT
43 public:
44  KNotesPlugin( KontactInterface::Core *core, const QVariantList & );
45  ~KNotesPlugin();
46 
47  virtual KontactInterface::Summary *createSummaryWidget( QWidget *parentWidget );
48 
49  bool isRunningStandalone() const;
50 
51  QString tipFile() const;
52  int weight() const { return 600; }
53 
54  const KAboutData *aboutData() const;
55 
56  bool canDecodeMimeData( const QMimeData *data ) const;
57  void processDropEvent( QDropEvent * );
58  void shortcutChanged();
59 
60 
61 protected:
62  KParts::ReadOnlyPart *createPart();
63 
64 private slots:
65  void slotNewNote();
66 
67 private:
68  mutable KAboutData *mAboutData;
69  KontactInterface::UniqueAppWatcher *mUniqueAppWatcher;
70 
71 };
72 
73 #endif
KNotesPlugin::weight
int weight() const
Definition: knotes_plugin.h:52
QWidget
KNotesUniqueAppHandler
Definition: knotes_plugin.h:31
KNotesPlugin::aboutData
const KAboutData * aboutData() const
Definition: knotes_plugin.cpp:112
KNotesPlugin::createSummaryWidget
virtual KontactInterface::Summary * createSummaryWidget(QWidget *parentWidget)
Definition: knotes_plugin.cpp:107
KNotesSummaryWidget
Definition: knotes/summarywidget.h:52
KNotesUniqueAppHandler::newInstance
virtual int newInstance()
Definition: knotes_plugin.cpp:242
QMimeData
KNotesPlugin::~KNotesPlugin
~KNotesPlugin()
Definition: knotes_plugin.cpp:85
KNotesPlugin::isRunningStandalone
bool isRunningStandalone() const
Definition: knotes_plugin.cpp:89
KNotesPlugin::shortcutChanged
void shortcutChanged()
Definition: knotes_plugin.cpp:220
QDropEvent
KNotesPlugin
Definition: knotes_plugin.h:40
KNotesPlugin::processDropEvent
void processDropEvent(QDropEvent *)
Definition: knotes_plugin.cpp:147
KNotesPlugin::canDecodeMimeData
bool canDecodeMimeData(const QMimeData *data) const
Definition: knotes_plugin.cpp:138
KNotesUniqueAppHandler::KNotesUniqueAppHandler
KNotesUniqueAppHandler(KontactInterface::Plugin *plugin)
Definition: knotes_plugin.h:34
QString
KNotesPlugin::tipFile
QString tipFile() const
Definition: knotes_plugin.cpp:94
KNotesPlugin::createPart
KParts::ReadOnlyPart * createPart()
Definition: knotes_plugin.cpp:102
KNotesUniqueAppHandler::loadCommandLineOptions
virtual void loadCommandLineOptions()
Definition: knotes_plugin.cpp:237
KNotesPlugin::KNotesPlugin
KNotesPlugin(KontactInterface::Core *core, const QVariantList &)
Definition: knotes_plugin.cpp:60
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