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

kaddressbook

extensionwidget.h

Go to the documentation of this file.
00001 /*
00002     This file is part of KAddressBook.
00003     Copyright (c) 2002 Tobias Koenig <tokoe@kde.org>
00004 
00005     This program is free software; you can redistribute it and/or modify
00006     it under the terms of the GNU General Public License as published by
00007     the Free Software Foundation; either version 2 of the License, or
00008     (at your option) any later version.
00009 
00010     This program is distributed in the hope that it will be useful,
00011     but WITHOUT ANY WARRANTY; without even the implied warranty of
00012     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00013     GNU General Public License for more details.
00014 
00015     You should have received a copy of the GNU General Public License along
00016     with this program; if not, write to the Free Software Foundation, Inc.,
00017     51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
00018 
00019     As a special exception, permission is given to link this program
00020     with any edition of Qt, and distribute the resulting executable,
00021     without including the source code for Qt in the source distribution.
00022 */
00023 
00024 #ifndef KAB_EXTENSIONWIDGET_H
00025 #define KAB_EXTENSIONWIDGET_H
00026 
00027 #include "kaddressbook_export.h"
00028 #include <kabc/addressbook.h>
00029 #include <kpluginfactory.h>
00030 #include <QtGui/QWidget>
00031 
00032 #define KAB_EXTENSIONWIDGET_PLUGIN_VERSION 1
00033 
00034 namespace KAB {
00035 class Core;
00036 class ConfigureWidget;
00037 
00038 class KABINTERFACES_EXPORT ExtensionWidget : public QWidget
00039 {
00040   Q_OBJECT
00041 
00042   public:
00043     ExtensionWidget( Core *core, QWidget *parent );
00044     ~ExtensionWidget();
00045 
00049     KAB::Core *core() const;
00050 
00054     bool contactsSelected() const;
00055 
00061     KABC::Addressee::List selectedContacts();
00062 
00066     virtual void contactsSelectionChanged();
00067 
00072     virtual QString title() const = 0;
00073 
00077     virtual QString identifier() const = 0;
00078 
00079   Q_SIGNALS:
00080     void modified( const KABC::Addressee::List &list );
00081     void deleted( const QStringList& uidList );
00082 
00083   private:
00084     KAB::Core *mCore;
00085 
00086     class ExtensionWidgetPrivate;
00087     ExtensionWidgetPrivate *d;
00088 };
00089 
00090 class KABINTERFACES_EXPORT ExtensionFactory : public KPluginFactory
00091 {
00092   Q_OBJECT
00093 
00094   public:
00095     virtual ExtensionWidget *extension( KAB::Core *core, QWidget *parent ) = 0;
00096 
00097     virtual ConfigureWidget *configureWidget( QWidget* )
00098     {
00099       return 0;
00100     }
00101 
00102     virtual bool configureWidgetAvailable() { return false; }
00103 
00108     virtual QString identifier() const = 0;
00109 };
00110 
00111 }
00112 
00113 #endif

kaddressbook

Skip menu "kaddressbook"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

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
  • 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