• 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
  • 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-2015 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  void shortcutChanged();
53 
54  protected:
55  KParts::ReadOnlyPart *createPart();
56 
57  private Q_SLOTS:
58  void slotNewContact();
59  void slotNewContactGroup();
60  void slotSyncContacts();
61 
62  private:
63  KontactInterface::UniqueAppWatcher *mUniqueAppWatcher;
64 
65 };
66 
67 #endif
68 
KAddressBookPlugin::createPart
KParts::ReadOnlyPart * createPart()
Definition: kaddressbook_plugin.cpp:133
KAddressBookPlugin::weight
int weight() const
Definition: kaddressbook_plugin.h:49
KAddressBookUniqueAppHandler::loadCommandLineOptions
virtual void loadCommandLineOptions()
Definition: kaddressbook_plugin.cpp:189
KAddressBookPlugin::tipFile
QString tipFile() const
Definition: kaddressbook_plugin.cpp:125
KAddressBookPlugin::isRunningStandalone
bool isRunningStandalone() const
Definition: kaddressbook_plugin.cpp:151
KAddressBookPlugin::invisibleToolbarActions
QStringList invisibleToolbarActions() const
Definition: kaddressbook_plugin.cpp:156
KAddressBookPlugin::~KAddressBookPlugin
~KAddressBookPlugin()
Definition: kaddressbook_plugin.cpp:91
KAddressBookUniqueAppHandler
Definition: kaddressbook_plugin.h:30
KAddressBookUniqueAppHandler::KAddressBookUniqueAppHandler
KAddressBookUniqueAppHandler(KontactInterface::Plugin *plugin)
Definition: kaddressbook_plugin.h:33
QString
QStringList
KAddressBookPlugin
Definition: kaddressbook_plugin.h:39
KAddressBookPlugin::shortcutChanged
void shortcutChanged()
Definition: kaddressbook_plugin.cpp:163
KAddressBookPlugin::KAddressBookPlugin
KAddressBookPlugin(KontactInterface::Core *core, const QVariantList &)
Definition: kaddressbook_plugin.cpp:39
KAddressBookUniqueAppHandler::newInstance
virtual int newInstance()
Definition: kaddressbook_plugin.cpp:194
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