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

kopete/libkopete

kabcpersistence.h

Go to the documentation of this file.
00001 /*
00002     addressbooklink.h - Manages operations involving the KDE Address Book
00003 
00004     Copyright (c) 2005 Will Stephenson <wstephenson@kde.org>
00005 
00006     Kopete    (c) 2002-2004 by the Kopete developers  <kopete-devel@kde.org>
00007 
00008     *************************************************************************
00009     *                                                                       *
00010     * This library is free software; you can redistribute it and/or         *
00011     * modify it under the terms of the GNU Lesser General Public            *
00012     * License as published by the Free Software Foundation; either          *
00013     * version 2 of the License, or (at your option) any later version.      *
00014     *                                                                       *
00015     *************************************************************************
00016 */
00017 
00018 #ifndef KABCPERSISTENCE_H
00019 #define KABCPERSISTENCE_H
00020 
00021 #include "kopete_export.h"
00022 
00023 // Goal is to have all the address book modifying code in one place
00024 // Currently in 
00025 // *) Add Contact Wizard
00026 // *) KopeteMetaContact
00027 // *) KopeteAddrBookExport
00028 // *) KABC Export Wizard - TODO - think about sequence of events when adding addressees AND writing their IM data. - Extra save should be unnecessary because we are sharing a kabc instance
00029 // *) Select addressbook entry
00030 
00031 namespace KABC
00032 {
00033     class AddressBook;
00034     class Resource;
00035 }
00036 
00037 namespace Kopete
00038 {
00039 
00040     class MetaContact;
00041     
00042 class KOPETE_EXPORT KABCPersistence : public QObject
00043 {
00044     Q_OBJECT
00045     public:
00055         static KABCPersistence* self();
00056         
00057         explicit KABCPersistence( QObject * parent = 0, const char * name = 0 );
00058         ~KABCPersistence();
00062         static KABC::AddressBook* addressBook();
00069         void write( MetaContact * mc );
00070 
00074         void removeKABC( MetaContact * mc );
00075     
00081         bool syncWithKABC( MetaContact * mc );
00082         
00086         void writeAddressBook( KABC::Resource * res );
00087     protected:
00088 
00089         static void splitField( const QString &str, QString &app, QString &name, QString &value );
00090     protected slots:
00094         void slotWriteAddressBook();
00095     private:
00096         class Private;
00097         Private *d;
00098 };
00099 
00100 } // end namespace Kopete
00101 
00102 #endif // KABCPERSISTENCE_H

kopete/libkopete

Skip menu "kopete/libkopete"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdenetwork

Skip menu "kdenetwork"
  • kget
  • kopete
  •   kopete
  •   libkopete
  •       libpapillon
  • krfb
Generated for kdenetwork 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