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

tdeabc

  • tdeabc
vcardformatimpl.h
1 /*
2  This file is part of libtdeabc.
3  Copyright (c) 2001 Cornelius Schumacher <schumacher@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 as published by the Free Software Foundation; either
8  version 2 of the License, or (at your option) any later version.
9 
10  This library is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  Library General Public License for more details.
14 
15  You should have received a copy of the GNU Library General Public License
16  along with this library; see the file COPYING.LIB. If not, write to
17  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18  Boston, MA 02110-1301, USA.
19 */
20 
21 #ifndef KABC_VCARDFORMATIMPL_H
22 #define KABC_VCARDFORMATIMPL_H
23 
24 #include <tqstring.h>
25 #include <tqfile.h>
26 
27 #include "address.h"
28 #include "addressee.h"
29 
30 #ifdef __CYGWIN__
31 #include <vcard/include/VCard.h>
32 #else
33 #include <VCard.h>
34 #endif
35 
36 namespace TDEABC {
37 
38 class AddressBook;
39 
43 class KABC_EXPORT_DEPRECATED VCardFormatImpl
44 {
45  public:
46  bool load( Addressee &, TQFile *file );
47  bool loadAll( AddressBook *, Resource *, TQFile *file );
48  void save( const Addressee &, TQFile *file );
49  void saveAll( AddressBook *, Resource *, TQFile *file );
50 
51  bool readFromString( const TQString &vcard, Addressee &addr );
52  bool writeToString( const Addressee &addressee, TQString &vcard );
53 
54  protected:
55  bool loadAddressee( Addressee &, VCARD::VCard & );
56  void saveAddressee( const Addressee &, VCARD::VCard *, bool intern );
57 
58  void addTextValue (VCARD::VCard *, VCARD::EntityType, const TQString & );
59  TQString readTextValue( VCARD::ContentLine * );
60 
61  void addDateValue( VCARD::VCard *, VCARD::EntityType, const TQDate & );
62  TQDate readDateValue( VCARD::ContentLine * );
63 
64  void addDateTimeValue( VCARD::VCard *, VCARD::EntityType, const TQDateTime & );
65  TQDateTime readDateTimeValue( VCARD::ContentLine * );
66 
67  void addAddressValue( VCARD::VCard *, const Address & );
68  Address readAddressValue( VCARD::ContentLine * );
69 
70  void addLabelValue( VCARD::VCard *, const Address & );
71 
72  void addTelephoneValue( VCARD::VCard *, const PhoneNumber & );
73  PhoneNumber readTelephoneValue( VCARD::ContentLine * );
74 
75  void addNValue( VCARD::VCard *, const Addressee & );
76  void readNValue( VCARD::ContentLine *, Addressee & );
77 
78  void addCustomValue( VCARD::VCard *, const TQString & );
79 
80  void addAddressParam( VCARD::ContentLine *, int );
81  int readAddressParam( VCARD::ContentLine * );
82 
83  void addGeoValue( VCARD::VCard *, const Geo & );
84  Geo readGeoValue( VCARD::ContentLine * );
85 
86  void addUTCValue( VCARD::VCard *, const TimeZone & );
87  TimeZone readUTCValue( VCARD::ContentLine * );
88 
89  void addClassValue( VCARD::VCard *, const Secrecy & );
90  Secrecy readClassValue( VCARD::ContentLine * );
91 
92  void addKeyValue( VCARD::VCard *, const Key & );
93  Key readKeyValue( VCARD::ContentLine * );
94 
95  void addPictureValue( VCARD::VCard *, VCARD::EntityType, const Picture &, const Addressee &, bool );
96  Picture readPictureValue( VCARD::ContentLine *, VCARD::EntityType, const Addressee &addr );
97 
98  void addSoundValue( VCARD::VCard *, const Sound &, const Addressee &, bool );
99  Sound readSoundValue( VCARD::ContentLine *, const Addressee &addr );
100 
101  void addAgentValue( VCARD::VCard *, const Agent & );
102  Agent readAgentValue( VCARD::ContentLine * );
103 };
104 
105 }
106 #endif
TDEABC::Key
A class to store an encryption key.
Definition: key.h:33
TDEABC::Sound
Class that holds a Sound clip for a contact.
Definition: sound.h:59
TDEABC::AddressBook
Address Book.
Definition: addressbook.h:43
TDEABC::TimeZone
Time zone information.
Definition: timezone.h:35
TDEABC
static data, shared by ALL addressee objects
Definition: address.h:48
TDEABC::Address
Postal address information.
Definition: address.h:55
TDEABC::VCardFormatImpl
Definition: vcardformatimpl.h:43
TDEABC::Geo
Geographic position.
Definition: geo.h:35
TDEABC::PhoneNumber
Phonenumber information.
Definition: phonenumber.h:38
TDEABC::Addressee
address book entry
Definition: addressee.src.h:74
TDEABC::Agent
Important!!!
Definition: agent.h:40

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.