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

tdeabc

  • tdeabc
vcardtool.h
1/*
2 This file is part of libtdeabc.
3 Copyright (c) 2003 Tobias Koenig <tokoe@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_VCARDTOOL_H
22#define KABC_VCARDTOOL_H
23
24#include "addressee.h"
25#include "vcardparser.h"
26
27class TQDateTime;
28
29namespace TDEABC {
30
31class Agent;
32class Key;
33class Picture;
34class Secrecy;
35class Sound;
36
37class KABC_EXPORT VCardTool
38{
39 public:
40 VCardTool();
41 ~VCardTool();
42
47 TQString createVCards( Addressee::List list, VCard::Version version = VCard::v3_0 );
48
52 Addressee::List parseVCards( const TQString& vcard );
53
54 private:
59 TQStringList splitString( const TQChar &sep, const TQString &value );
60
61 TQDateTime parseDateTime( const TQString &str );
62 TQString createDateTime( const TQDateTime &dateTime );
63
64 Picture parsePicture( const VCardLine &line );
65 VCardLine createPicture( const TQString &identifier, const Picture &pic );
66
67 Sound parseSound( const VCardLine &line );
68 VCardLine createSound( const Sound &snd );
69
70 Key parseKey( const VCardLine &line );
71 VCardLine createKey( const Key &key );
72
73 Secrecy parseSecrecy( const VCardLine &line );
74 VCardLine createSecrecy( const Secrecy &secrecy );
75
76 Agent parseAgent( const VCardLine &line );
77 VCardLine createAgent( VCard::Version version, const Agent &agent );
78
79 TQMap<TQString, int> mAddressTypeMap;
80 TQMap<TQString, int> mPhoneTypeMap;
81
82 class VCardToolPrivate;
83 VCardToolPrivate *d;
84};
85
86}
87
88#endif
TDEABC
static data, shared by ALL addressee objects
Definition: address.h:48

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.9.4
This website is maintained by Timothy Pearson.