• 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
  • kaddressbook
kaddressbook_plugin.h
Go to the documentation of this file.
1 /*
2  This file is part of KAddressBook Kontact Plugin.
3 
4  Copyright (c) 2009 Laurent Montel <montel@kde.org>
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 
21 #ifndef KADDRESSBOOK_PLUGIN_H
22 #define KADDRESSBOOK_PLUGIN_H
23 
24 #include <KontactInterface/UniqueAppHandler>
25 
26 namespace KontactInterface {
27  class Plugin;
28 }
29 
30 class KAddressBookUniqueAppHandler : public KontactInterface::UniqueAppHandler
31 {
32  public:
33  explicit KAddressBookUniqueAppHandler( KontactInterface::Plugin *plugin )
34  : KontactInterface::UniqueAppHandler( plugin ) {}
35  virtual void loadCommandLineOptions();
36  virtual int newInstance();
37 };
38 
39 class KAddressBookPlugin : public KontactInterface::Plugin
40 {
41  Q_OBJECT
42 
43  public:
44  KAddressBookPlugin( KontactInterface::Core *core, const QVariantList & );
45  ~KAddressBookPlugin();
46 
47  QString tipFile() const;
48  bool isRunningStandalone() const;
49  int weight() const { return 300; }
50 
51  QStringList invisibleToolbarActions() const;
52 
53  protected:
54  KParts::ReadOnlyPart *createPart();
55 
56  private Q_SLOTS:
57  void slotNewContact();
58  void slotNewContactGroup();
59  void slotSyncContacts();
60 
61  private:
62  KontactInterface::UniqueAppWatcher *mUniqueAppWatcher;
63 };
64 
65 #endif
66 
KAddressBookPlugin::createPart
KParts::ReadOnlyPart * createPart()
Definition: kaddressbook_plugin.cpp:130
KAddressBookPlugin::weight
int weight() const
Definition: kaddressbook_plugin.h:49
KAddressBookUniqueAppHandler::loadCommandLineOptions
virtual void loadCommandLineOptions()
Definition: kaddressbook_plugin.cpp:174
KAddressBookPlugin::tipFile
QString tipFile() const
Definition: kaddressbook_plugin.cpp:122
KAddressBookPlugin::isRunningStandalone
bool isRunningStandalone() const
Definition: kaddressbook_plugin.cpp:148
KAddressBookPlugin::invisibleToolbarActions
QStringList invisibleToolbarActions() const
Definition: kaddressbook_plugin.cpp:153
KAddressBookPlugin::~KAddressBookPlugin
~KAddressBookPlugin()
Definition: kaddressbook_plugin.cpp:88
KAddressBookUniqueAppHandler
Definition: kaddressbook_plugin.h:30
KAddressBookUniqueAppHandler::KAddressBookUniqueAppHandler
KAddressBookUniqueAppHandler(KontactInterface::Plugin *plugin)
Definition: kaddressbook_plugin.h:33
KAddressBookPlugin
Definition: kaddressbook_plugin.h:39
KAddressBookPlugin::KAddressBookPlugin
KAddressBookPlugin(KontactInterface::Core *core, const QVariantList &)
Definition: kaddressbook_plugin.cpp:36
KAddressBookUniqueAppHandler::newInstance
virtual int newInstance()
Definition: kaddressbook_plugin.cpp:179
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