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

kabc

  • sources
  • kde-4.12
  • kdepimlibs
  • 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 
26 #include <QtCore/QDateTime>
27 #include <QtCore/QString>
28 
29 namespace KABC {
30 
37  namespace LDIFConverter {
38 
46  KABC_EXPORT bool LDIFToAddressee( const QString &str, AddresseeList &addrList,
47  const QDateTime &dt = QDateTime::currentDateTime() );
48 
55  KABC_EXPORT bool addresseeToLDIF( const AddresseeList &addrList, QString &str );
56 
63  KABC_EXPORT bool addresseeToLDIF( const Addressee &addr, QString &str );
64 
65  /* internal functions - do not use !! */
66 
79  KABC_EXPORT bool evaluatePair( Addressee &a, Address &homeAddr,
80  Address &workAddr,
81  QString &fieldname, QString &value,
82  int &birthday, int &birthmonth, int &birthyear );
83 
84  }
85 
86 }
87 #endif
88 
KABC::Address
Postal address information.
Definition: address.h:37
KABC::AddresseeList
a QValueList of Addressee, with sorting functionality
Definition: addresseelist.h:288
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:196
KABC::Addressee
address book entry
Definition: addressee.h:74
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::evaluatePair
bool evaluatePair(Addressee &a, Address &homeAddr, Address &workAddr, QString &fieldname, QString &value, int &birthday, int &birthmonth, int &birthyear)
Definition: ldifconverter.cpp:273
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:01:05 by doxygen 1.8.7 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 API Reference

Skip menu "kdepimlibs API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kldap
  • kmbox
  • kmime
  • kpimidentities
  • kpimtextedit
  • kresources
  • ktnef
  • kxmlrpcclient
  • microblog

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