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

kontact

ktimetracker_plugin.h

Go to the documentation of this file.
00001 /*
00002   This file is part of Kontact.
00003 
00004   Copyright (c) 2004 Tobias Koenig <tokoe@kde.org>
00005   adapted for karm 2005 by Thorsten Staerk <kde@staerk.de>
00006 
00007   This program is free software; you can redistribute it and/or modify
00008   it under the terms of the GNU General Public License as published by
00009   the Free Software Foundation; either version 2 of the License, or
00010   (at your option) any later version.
00011 
00012   This program is distributed in the hope that it will be useful,
00013   but WITHOUT ANY WARRANTY; without even the implied warranty of
00014   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00015   GNU General Public License for more details.
00016 
00017   You should have received a copy of the GNU General Public License along
00018   with this program; if not, write to the Free Software Foundation, Inc.,
00019   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
00020 
00021   As a special exception, permission is given to link this program
00022   with any edition of Qt, and distribute the resulting executable,
00023   without including the source code for Qt in the source distribution.
00024 */
00025 
00026 #ifndef KTIMETRACKER_PLUGIN_H
00027 #define KTIMETRACKER_PLUGIN_H
00028 
00029 #include <kontactinterfaces/plugin.h>
00030 #include <kontactinterfaces/uniqueapphandler.h>
00031 
00032 #include <kparts/part.h>
00033 
00034 class OrgKdeKtimetrackerKtimetrackerInterface;
00035 
00036 class KarmUniqueAppHandler : public Kontact::UniqueAppHandler
00037 {
00038   public:
00039     KarmUniqueAppHandler( Kontact::Plugin *plugin ) : Kontact::UniqueAppHandler( plugin ) {}
00040     virtual void loadCommandLineOptions();
00041     virtual int newInstance();
00042 };
00043 
00044 class KarmPlugin : public Kontact::Plugin
00045 {
00046   Q_OBJECT
00047 
00048   public:
00049     KarmPlugin( Kontact::Core *core, const QVariantList & );
00050     ~KarmPlugin();
00051     virtual QString tipFile() const;
00052     int weight() const { return 700; }
00053     virtual QStringList invisibleToolbarActions() const;
00054     virtual bool isRunningStandalone();
00055 
00056     OrgKdeKtimetrackerKtimetrackerInterface *interface();
00057 
00058     virtual QStringList configModules() const;
00059 
00060   private slots:
00061     void newTask();
00062 
00063   protected:
00064     KParts::ReadOnlyPart *createPart();
00065 
00066   private:
00067     Kontact::UniqueAppWatcher *mUniqueAppWatcher;
00068     OrgKdeKtimetrackerKtimetrackerInterface *mInterface;
00069 };
00070 
00071 #endif

kontact

Skip menu "kontact"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

kdepim

Skip menu "kdepim"
  • akonadi
  •   clients
  •   kabc
  •   kcal
  •   kcm
  • akregator
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt
  • kdgantt1
  • kjots
  • kleopatra
  • kmail
  • kmobiletools
  • knode
  • knotes
  • kontact
  • kontactinterfaces
  • korganizer
  •   korgac
  • kpilot
  • ktimetracker
  •   doc
  • libkdepim
  • libkholidays
  • libkleo
  • libkpgp
  • maildir
Generated for kdepim by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal