• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdeabc
 

tdeabc

  • tdeabc
ldifconverter.h
1 /*
2  This file is part of libtdeabc.
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 <tqstring.h>
24 #include <tqdatetime.h>
25 
26 #include "addressee.h"
27 #include "addresseelist.h"
28 
29 namespace TDEABC {
30 
37  namespace LDIFConverter {
38 
47  KABC_EXPORT bool LDIFToAddressee( const TQString &str, AddresseeList &addrList, TQDateTime dt = TQDateTime::currentDateTime() );
48 
56  KABC_EXPORT bool addresseeToLDIF( const AddresseeList &addrList, TQString &str );
57 
65  KABC_EXPORT bool addresseeToLDIF( const Addressee &addr, TQString &str );
66 
79  KABC_EXPORT TQString makeLDIFfieldString( TQString field, TQString value, bool allowEncode = true ) KDE_DEPRECATED;
80 
81 
82 
83  /* internal functions - do not use !! */
84 
86  KABC_EXPORT bool parseSingleLine( Addressee &a,
87  Address &homeAddr, Address &workAddr, TQString &line );
88 
90  KABC_EXPORT bool splitLine( TQString &line, TQString &fieldname, TQString &value);
91 
92 
93  KABC_EXPORT bool evaluatePair( Addressee &a, Address &homeAddr, Address &workAddr,
94  TQString &fieldname, TQString &value );
95 
96  }
97 
98 }
99 #endif
100 
TDEABC::LDIFConverter::LDIFToAddressee
KABC_EXPORT bool LDIFToAddressee(const TQString &str, AddresseeList &addrList, TQDateTime dt=TQDateTime::currentDateTime())
Converts a LDIF string to a list of addressees.
Definition: ldifconverter.cpp:169
TDEABC
static data, shared by ALL addressee objects
Definition: address.h:48
TDEABC::Address
Postal address information.
Definition: address.h:55
TDEABC::AddresseeList
a TQValueList of Addressee, with sorting functionality
Definition: addresseelist.h:112
TDEABC::Addressee
address book entry
Definition: addressee.src.h:74
TDEABC::LDIFConverter::splitLine
KABC_EXPORT bool splitLine(TQString &line, TQString &fieldname, TQString &value)
No need for this function anymore - use LDIF::splitLine()
Definition: ldifconverter.cpp:516
TDEABC::LDIFConverter::parseSingleLine
KABC_EXPORT bool parseSingleLine(Addressee &a, Address &homeAddr, Address &workAddr, TQString &line)
No need for this function anymore - use LDIF::splitLine() + evaluatePair()
Definition: ldifconverter.cpp:501
TDEABC::LDIFConverter::addresseeToLDIF
KABC_EXPORT bool addresseeToLDIF(const AddresseeList &addrList, TQString &str)
Converts a list of addressees to a LDIF string.
Definition: ldifconverter.cpp:56
TDEABC::LDIFConverter::makeLDIFfieldString
KABC_EXPORT TQString makeLDIFfieldString(TQString field, TQString value, bool allowEncode=true) KDE_DEPRECATED
Definition: ldifconverter.cpp:525

tdeabc

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

tdeabc

Skip menu "tdeabc"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  •     tdecore
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  • tdeioslave
  •   http
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeabc by doxygen 1.8.8
This website is maintained by Timothy Pearson.