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

kopete/libkopete

  • sources
  • kde-4.14
  • kdenetwork
  • kopete
  • libkopete
kabcpersistence.h
Go to the documentation of this file.
1 /*
2  addressbooklink.h - Manages operations involving the KDE Address Book
3 
4  Copyright (c) 2005 Will Stephenson <wstephenson@kde.org>
5 
6  Kopete (c) 2002-2004 by the Kopete developers <kopete-devel@kde.org>
7 
8  *************************************************************************
9  * *
10  * This library is free software; you can redistribute it and/or *
11  * modify it under the terms of the GNU Lesser General Public *
12  * License as published by the Free Software Foundation; either *
13  * version 2 of the License, or (at your option) any later version. *
14  * *
15  *************************************************************************
16 */
17 
18 #ifndef KABCPERSISTENCE_H
19 #define KABCPERSISTENCE_H
20 
21 #include <QObject>
22 
23 #include "kopete_export.h"
24 
25 // Goal is to have all the address book modifying code in one place
26 // Currently in
27 // *) Add Contact Wizard
28 // *) KopeteMetaContact
29 // *) KopeteAddrBookExport
30 // *) 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
31 // *) Select addressbook entry
32 
33 namespace KABC
34 {
35  class AddressBook;
36  class Resource;
37 }
38 
39 namespace Kopete
40 {
41 
42  class MetaContact;
43 
44 class KOPETE_EXPORT KABCPersistence : public QObject
45 {
46  Q_OBJECT
47  public:
57  static KABCPersistence* self();
58 
59  explicit KABCPersistence( QObject * parent = 0, const char * name = 0 );
60  ~KABCPersistence();
64  static KABC::AddressBook* addressBook();
71  void write( MetaContact * mc );
72 
76  void removeKABC( MetaContact * mc );
77 
83  bool syncWithKABC( MetaContact * mc );
84 
88  void writeAddressBook( KABC::Resource * res );
89  protected:
90 
91  static void splitField( const QString &str, QString &app, QString &name, QString &value );
92  protected slots:
96  void slotWriteAddressBook();
97  private:
98  class Private;
99  Private * const d;
100 };
101 
102 } // end namespace Kopete
103 
104 #endif // KABCPERSISTENCE_H
KOPETE_EXPORT
#define KOPETE_EXPORT
Definition: kopete_export.h:27
Kopete::KABCPersistence
Definition: kabcpersistence.h:44
QObject
kopete_export.h
QString
Kopete::MetaContact
Definition: kopetemetacontact.h:54
name
const char * name
Definition: kopeteonlinestatus.cpp:104
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:29:19 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kopete/libkopete

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

kdenetwork API Reference

Skip menu "kdenetwork API Reference"
  • kget
  • kopete
  •   kopete
  •   libkopete
  • krdc
  • krfb

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