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

kmobiletools

addressbook.h

Go to the documentation of this file.
00001 /***************************************************************************
00002    Copyright (C) 2007 by Matthias Lechner <matthias@lmme.de>
00003 
00004    This program is free software; you can redistribute it and/or modify
00005    it under the terms of the GNU General Public License as published by
00006    the Free Software Foundation; either version 2 of the License, or
00007    (at your option) any later version.
00008 
00009    This program is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012    GNU General Public License for more details.
00013 
00014    You should have received a copy of the GNU General Public License
00015    along with this program; if not, write to the
00016    Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017    Boston, MA 02110-1301, USA.
00018  ***************************************************************************/
00019 
00020 #ifndef KMOBILETOOLSIFACESADDRESSBOOK_H
00021 #define KMOBILETOOLSIFACESADDRESSBOOK_H
00022 
00023 #include <QtCore/QObject>
00024 #include <QtCore/QList>
00025 
00026 #include <libkmobiletools/kmobiletools_export.h>
00027 #include <libkmobiletools/addressbook.h>
00028 
00029 namespace KMobileTools {
00030 class AddressbookEntry;
00031 
00032 namespace Ifaces {
00038 class KMOBILETOOLS_EXPORT Addressbook {
00039 public:
00040 //public Q_SLOTS:
00044     virtual void fetchAddressbook() = 0;
00045 
00051     virtual void addAddressee( const KMobileTools::AddressbookEntry& addressee ) = 0;
00052 
00059     virtual void editAddressee( const KMobileTools::AddressbookEntry& oldAddressee,
00060                                 const KMobileTools::AddressbookEntry& newAddressee ) = 0;
00061 
00067     virtual void removeAddressee( const KMobileTools::AddressbookEntry& addressee ) = 0;
00068 
00069 public:
00073     virtual KMobileTools::AddressbookEntry::MemorySlots availableMemorySlots() const = 0;
00074 
00080     virtual KMobileTools::Addressbook addressbook() const = 0;
00081 
00082     virtual ~Addressbook();
00083 
00084 protected:
00085 //Q_SIGNALS:
00090     virtual void addressbookFetched() = 0;
00091 
00098     virtual void addresseeAdded( const KMobileTools::AddressbookEntry& addressee ) = 0;
00099 
00107     virtual void addresseeEdited( const KMobileTools::AddressbookEntry& oldAddressee,
00108                                   const KMobileTools::AddressbookEntry& newAddressee ) = 0;
00109 
00116     virtual void addresseeRemoved( const KMobileTools::AddressbookEntry& addressee ) = 0;
00117 
00118 };
00119 
00120 }
00121 }
00122 
00123 Q_DECLARE_INTERFACE(KMobileTools::Ifaces::Addressbook, "org.kde.KMobileTools.Ifaces.Addressbook/0.1")
00124 
00125 
00126 #endif

kmobiletools

Skip menu "kmobiletools"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • 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
  •   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