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

tdeabc

vcardformatimpl.h
00001 /*
00002     This file is part of libtdeabc.
00003     Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org>
00004 
00005     This library is free software; you can redistribute it and/or
00006     modify it under the terms of the GNU Library General Public
00007     License as published by the Free Software Foundation; either
00008     version 2 of the License, or (at your option) any later version.
00009 
00010     This library is distributed in the hope that it will be useful,
00011     but WITHOUT ANY WARRANTY; without even the implied warranty of
00012     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013     Library General Public License for more details.
00014 
00015     You should have received a copy of the GNU Library General Public License
00016     along with this library; see the file COPYING.LIB.  If not, write to
00017     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00018     Boston, MA 02110-1301, USA.
00019 */
00020 
00021 #ifndef KABC_VCARDFORMATIMPL_H
00022 #define KABC_VCARDFORMATIMPL_H
00023 
00024 #include <tqstring.h>
00025 #include <tqfile.h>
00026 
00027 #include "address.h"
00028 #include "addressee.h"
00029 
00030 #ifdef __CYGWIN__ 
00031 #include <vcard/include/VCard.h>
00032 #else
00033 #include <VCard.h>
00034 #endif 
00035 
00036 namespace TDEABC {
00037 
00038 class AddressBook;
00039 
00043 class KABC_EXPORT_DEPRECATED VCardFormatImpl
00044 {
00045   public:
00046     bool load( Addressee &, TQFile *file );
00047     bool loadAll( AddressBook *, Resource *, TQFile *file );
00048     void save( const Addressee &, TQFile *file );
00049     void saveAll( AddressBook *, Resource *, TQFile *file );
00050 
00051     bool readFromString( const TQString &vcard, Addressee &addr );
00052     bool writeToString( const Addressee &addressee, TQString &vcard );
00053 
00054   protected:
00055     bool loadAddressee( Addressee &, VCARD::VCard & );
00056     void saveAddressee( const Addressee &, VCARD::VCard *, bool intern );
00057 
00058     void addTextValue (VCARD::VCard *, VCARD::EntityType, const TQString & );
00059     TQString readTextValue( VCARD::ContentLine * );
00060 
00061     void addDateValue( VCARD::VCard *, VCARD::EntityType, const TQDate & );
00062     TQDate readDateValue( VCARD::ContentLine * );
00063 
00064     void addDateTimeValue( VCARD::VCard *, VCARD::EntityType, const TQDateTime & );
00065     TQDateTime readDateTimeValue( VCARD::ContentLine * );
00066 
00067     void addAddressValue( VCARD::VCard *, const Address & );
00068     Address readAddressValue( VCARD::ContentLine * );
00069 
00070     void addLabelValue( VCARD::VCard *, const Address & );
00071 
00072     void addTelephoneValue( VCARD::VCard *, const PhoneNumber & );
00073     PhoneNumber readTelephoneValue( VCARD::ContentLine * );
00074 
00075     void addNValue( VCARD::VCard *, const Addressee & );
00076     void readNValue( VCARD::ContentLine *, Addressee & );
00077 
00078     void addCustomValue( VCARD::VCard *, const TQString & );
00079 
00080     void addAddressParam( VCARD::ContentLine *, int );
00081     int readAddressParam( VCARD::ContentLine * );
00082 
00083     void addGeoValue( VCARD::VCard *, const Geo & );
00084     Geo readGeoValue( VCARD::ContentLine * );
00085 
00086     void addUTCValue( VCARD::VCard *, const TimeZone & );
00087     TimeZone readUTCValue( VCARD::ContentLine * );
00088 
00089     void addClassValue( VCARD::VCard *, const Secrecy & );
00090     Secrecy readClassValue( VCARD::ContentLine * );
00091 
00092     void addKeyValue( VCARD::VCard *, const Key & );
00093     Key readKeyValue( VCARD::ContentLine * );
00094 
00095     void addPictureValue( VCARD::VCard *, VCARD::EntityType, const Picture &, const Addressee &, bool );
00096     Picture readPictureValue( VCARD::ContentLine *, VCARD::EntityType, const Addressee &addr );
00097 
00098     void addSoundValue( VCARD::VCard *, const Sound &, const Addressee &, bool );
00099     Sound readSoundValue( VCARD::ContentLine *, const Addressee &addr );
00100 
00101     void addAgentValue( VCARD::VCard *, const Agent & );
00102     Agent readAgentValue( VCARD::ContentLine * );
00103 };
00104 
00105 }
00106 #endif

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
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeabc by doxygen 1.7.6.1
This website is maintained by Timothy Pearson.