ldifconverter.h
/*
This file is part of libkabc.
Copyright (c) 2003 Helge Deller <deller@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License version 2 only as published by the Free Software Foundation.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef KABC_LDIFCONVERTER_H
#define KABC_LDIFCONVERTER_H
#include <qstring.h>
#include <qdatetime.h>
#include "addressee.h"
#include "addresseelist.h"
namespace KABC {
namespace LDIFConverter {
KABC_EXPORT bool LDIFToAddressee( const QString &str, AddresseeList &addrList, QDateTime dt = QDateTime::currentDateTime() );
KABC_EXPORT bool addresseeToLDIF( const AddresseeList &addrList, QString &str );
KABC_EXPORT bool addresseeToLDIF( const Addressee &addr, QString &str );
KABC_EXPORT QString makeLDIFfieldString( QString field, QString value, bool allowEncode = true ) KDE_DEPRECATED;
/* internal functions - do not use !! */
KABC_EXPORT bool parseSingleLine( Addressee &a,
Address &homeAddr, Address &workAddr, QString &line );
KABC_EXPORT bool splitLine( QString &line, QString &fieldname, QString &value);
KABC_EXPORT bool evaluatePair( Addressee &a, Address &homeAddr, Address &workAddr,
QString &fieldname, QString &value );
}
}
#endif
KABC::LDIFConverter::splitLine
KABC_EXPORT bool splitLine(QString &line, QString &fieldname, QString &value)
No need for this function anymore - use LDIF::splitLine()
Definition: ldifconverter.cpp:516
KABC::Address
Postal address information.
Definition: address.h:55
KABC::LDIFConverter::makeLDIFfieldString
KABC_EXPORT QString makeLDIFfieldString(QString field, QString value, bool allowEncode=true) KDE_DEPRECATED
Definition: ldifconverter.cpp:525
KABC::AddresseeList
a QValueList of Addressee, with sorting functionality
Definition: addresseelist.h:112
KABC::LDIFConverter::parseSingleLine
KABC_EXPORT bool parseSingleLine(Addressee &a, Address &homeAddr, Address &workAddr, QString &line)
No need for this function anymore - use LDIF::splitLine() + evaluatePair()
Definition: ldifconverter.cpp:501
KABC::LDIFConverter::LDIFToAddressee
KABC_EXPORT bool LDIFToAddressee(const QString &str, AddresseeList &addrList, QDateTime dt=QDateTime::currentDateTime())
Converts a LDIF string to a list of addressees.
Definition: ldifconverter.cpp:169
KABC::Addressee
address book entry
Definition: addressee.src.h:74
KABC::LDIFConverter::addresseeToLDIF
KABC_EXPORT bool addresseeToLDIF(const AddresseeList &addrList, QString &str)
Converts a list of addressees to a LDIF string.
Definition: ldifconverter.cpp:56

KDE Home | KDE Accessibility Home | Description of Access Keys