• 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
  • ktimetracker
ktimetracker_plugin.h
Go to the documentation of this file.
1 /*
2  This file is part of Kontact.
3 
4  Copyright (c) 2004 Tobias Koenig <tokoe@kde.org>
5  adapted for karm 2005 by Thorsten Staerk <kde@staerk.de>
6 
7  This program is free software; you can redistribute it and/or modify
8  it under the terms of the GNU General Public License as published by
9  the Free Software Foundation; either version 2 of the License, or
10  (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
15  GNU General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License along
18  with this program; if not, write to the Free Software Foundation, Inc.,
19  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 
21  As a special exception, permission is given to link this program
22  with any edition of Qt, and distribute the resulting executable,
23  without including the source code for Qt in the source distribution.
24 */
25 
26 #ifndef KTIMETRACKER_PLUGIN_H
27 #define KTIMETRACKER_PLUGIN_H
28 
29 #include <KontactInterface/UniqueAppHandler>
30 
31 namespace KontactInterface {
32  class Plugin;
33 }
34 
35 class OrgKdeKtimetrackerKtimetrackerInterface;
36 
37 class KtimetrackerUniqueAppHandler : public KontactInterface::UniqueAppHandler
38 {
39  public:
40  explicit KtimetrackerUniqueAppHandler( KontactInterface::Plugin *plugin )
41  : KontactInterface::UniqueAppHandler( plugin ) {}
42  virtual void loadCommandLineOptions();
43  virtual int newInstance();
44 };
45 
46 class ktimetrackerplugin : public KontactInterface::Plugin
47 {
48  Q_OBJECT
49 
50  public:
51  ktimetrackerplugin( KontactInterface::Core *core, const QVariantList & );
52  ~ktimetrackerplugin();
53  int weight() const { return 700; }
54  virtual QStringList invisibleToolbarActions() const;
55  virtual bool isRunningStandalone() const;
56 
57  OrgKdeKtimetrackerKtimetrackerInterface *interface();
58 
59  virtual QStringList configModules() const;
60 
61  private slots:
62  void newTask();
63 
64  protected:
65  KParts::ReadOnlyPart *createPart();
66 
67  protected Q_SLOTS:
68  void taskViewCustomContextMenuRequested( const QPoint & );
69 
70  private:
71  KontactInterface::UniqueAppWatcher *mUniqueAppWatcher;
72  OrgKdeKtimetrackerKtimetrackerInterface *mInterface;
73 };
74 
75 #endif
ktimetrackerplugin::isRunningStandalone
virtual bool isRunningStandalone() const
Definition: ktimetracker_plugin.cpp:68
KtimetrackerUniqueAppHandler::newInstance
virtual int newInstance()
Definition: ktimetracker_plugin.cpp:133
KtimetrackerUniqueAppHandler
Definition: ktimetracker_plugin.h:37
ktimetrackerplugin::ktimetrackerplugin
ktimetrackerplugin(KontactInterface::Core *core, const QVariantList &)
Definition: ktimetracker_plugin.cpp:42
ktimetrackerplugin::~ktimetrackerplugin
~ktimetrackerplugin()
Definition: ktimetracker_plugin.cpp:63
ktimetrackerplugin
Definition: ktimetracker_plugin.h:46
ktimetrackerplugin::interface
OrgKdeKtimetrackerKtimetrackerInterface * interface()
Definition: ktimetracker_plugin.cpp:104
KtimetrackerUniqueAppHandler::loadCommandLineOptions
virtual void loadCommandLineOptions()
Definition: ktimetracker_plugin.cpp:127
QPoint
QStringList
KtimetrackerUniqueAppHandler::KtimetrackerUniqueAppHandler
KtimetrackerUniqueAppHandler(KontactInterface::Plugin *plugin)
Definition: ktimetracker_plugin.h:40
ktimetrackerplugin::weight
int weight() const
Definition: ktimetracker_plugin.h:53
ktimetrackerplugin::createPart
KParts::ReadOnlyPart * createPart()
Definition: ktimetracker_plugin.cpp:78
ktimetrackerplugin::invisibleToolbarActions
virtual QStringList invisibleToolbarActions() const
Definition: ktimetracker_plugin.cpp:73
ktimetrackerplugin::configModules
virtual QStringList configModules() const
Definition: ktimetracker_plugin.cpp:113
ktimetrackerplugin::taskViewCustomContextMenuRequested
void taskViewCustomContextMenuRequested(const QPoint &)
Definition: ktimetracker_plugin.cpp:95
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