• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdepimlibs-4.14.10 API Reference
  • KDE Home
  • Contact Us
 

kabc

  • kabc
ldifconverter.h
1/*
2 This file is part of libkabc.
3 Copyright (c) 2003 Helge Deller <deller@kde.org>
4
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public
7 License version 2 only as published by the Free Software Foundation.
8
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 Boston, MA 02110-1301, USA.
18*/
19
20#ifndef KABC_LDIFCONVERTER_H
21#define KABC_LDIFCONVERTER_H
22
23#include "addressee.h"
24#include "addresseelist.h"
25#include "contactgroup.h"
26
27#include <QtCore/QDateTime>
28#include <QtCore/QString>
29
30namespace KABC {
31
38 namespace LDIFConverter {
39
47 KABC_EXPORT bool LDIFToAddressee( const QString &str, AddresseeList &addrList,
48 const QDateTime &dt = QDateTime::currentDateTime() );
49
50 KABC_EXPORT bool LDIFToAddressee( const QString &str, AddresseeList &addrList, ContactGroup::List &contactGroupList,
51 const QDateTime &dt = QDateTime::currentDateTime() );
52
59 KABC_EXPORT bool addresseeToLDIF( const AddresseeList &addrList, QString &str );
60 KABC_EXPORT bool addresseeAndContactGroupToLDIF( const AddresseeList &addrList, const ContactGroup::List &contactGroupList, QString &str );
61 KABC_EXPORT bool contactGroupToLDIF( const ContactGroup::List &contactGroupList, QString &str );
62 KABC_EXPORT bool contactGroupToLDIF( const ContactGroup &contactGroup, QString &str );
69 KABC_EXPORT bool addresseeToLDIF( const Addressee &addr, QString &str );
70
71 /* internal functions - do not use !! */
72
85 KABC_EXPORT bool evaluatePair( Addressee &a, Address &homeAddr,
86 Address &workAddr,
87 QString &fieldname, QString &value,
88 int &birthday, int &birthmonth, int &birthyear, ContactGroup &contactGroup);
89
90 }
91
92}
93#endif
94
KABC::Address
Postal address information.
Definition address.h:38
KABC::AddresseeList
a QValueList of Addressee, with sorting functionality
Definition addresseelist.h:289
KABC::Addressee
address book entry
Definition addressee.h:79
KABC::ContactGroup
This class represents a group of contacts.
Definition contactgroup.h:47
KABC::ContactGroup::List
QList< ContactGroup > List
A list of contact groups.
Definition contactgroup.h:324
KABC::LDIFConverter::addresseeToLDIF
bool addresseeToLDIF(const AddresseeList &addrList, QString &str)
Converts a list of addressees to a LDIF string.
Definition ldifconverter.cpp:54
KABC::LDIFConverter::LDIFToAddressee
bool LDIFToAddressee(const QString &str, AddresseeList &addrList, const QDateTime &dt=QDateTime::currentDateTime())
Converts a LDIF string to a list of addressees.
Definition ldifconverter.cpp:327
KABC::LDIFConverter::evaluatePair
bool evaluatePair(Addressee &a, Address &homeAddr, Address &workAddr, QString &fieldname, QString &value, int &birthday, int &birthmonth, int &birthyear, ContactGroup &contactGroup)
Definition ldifconverter.cpp:334
KABC
Class that holds a Calendar Url (FBURL/CALADRURI/CALURI)
Definition address.h:29
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kabc

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

kdepimlibs-4.14.10 API Reference

Skip menu "kdepimlibs-4.14.10 API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
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