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

kontact

  • sources
  • kde-4.12
  • 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 namespace KCal {
30 class CalendarLocal;
31 class Journal;
32 }
33 using namespace KCal;
34 
35 class KNotesResourceManager;
36 class KNotesSummaryWidget;
37 
38 class KNotesUniqueAppHandler : public KontactInterface::UniqueAppHandler
39 {
40  public:
41  explicit KNotesUniqueAppHandler( KontactInterface::Plugin *plugin )
42  : KontactInterface::UniqueAppHandler( plugin ) {}
43  virtual void loadCommandLineOptions();
44  virtual int newInstance();
45 };
46 
47 class KNotesPlugin : public KontactInterface::Plugin
48 {
49  Q_OBJECT
50 public:
51  KNotesPlugin( KontactInterface::Core *core, const QVariantList & );
52  ~KNotesPlugin();
53 
54  virtual KontactInterface::Summary *createSummaryWidget( QWidget *parentWidget );
55 
56  bool isRunningStandalone() const;
57 
58  QString tipFile() const;
59  int weight() const { return 600; }
60 
61  const KAboutData *aboutData() const;
62 
63  bool canDecodeMimeData( const QMimeData *data ) const;
64  void processDropEvent( QDropEvent * );
65 
66 
67 protected:
68  KParts::ReadOnlyPart *createPart();
69 
70 private slots:
71  void slotNewNote();
72  void addNote( KCal::Journal *j );
73  void removeNote( KCal::Journal *j );
74 
75 
76 private:
77  mutable KAboutData *mAboutData;
78  KNotesResourceManager *mManager;
79  KontactInterface::UniqueAppWatcher *mUniqueAppWatcher;
80  CalendarLocal *mCalendar;
81  KNotesSummaryWidget *mNotesSummary;
82 };
83 
84 #endif
KNotesPlugin::weight
int weight() const
Definition: knotes_plugin.h:59
KNotesUniqueAppHandler
Definition: knotes_plugin.h:38
QWidget
KNotesSummaryWidget
Definition: knotes/summarywidget.h:40
KNotesPlugin
Definition: knotes_plugin.h:47
KNotesUniqueAppHandler::KNotesUniqueAppHandler
KNotesUniqueAppHandler(KontactInterface::Plugin *plugin)
Definition: knotes_plugin.h:41
QMimeData
loadCommandLineOptions
static void loadCommandLineOptions()
Definition: main.cpp:107
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:58:30 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

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