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

tdeabc

  • tdeabc
  • vcard
  • include
VCardAdrValue.h
1/*
2 libvcard - vCard parsing library for vCard version 3.0
3
4 Copyright (C) 1999 Rik Hemsley rik@kde.org
5
6 Permission is hereby granted, free of charge, to any person obtaining a copy
7 of this software and associated documentation files (the "Software"), to
8 deal in the Software without restriction, including without limitation the
9 rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
10 sell copies of the Software, and to permit persons to whom the Software is
11 furnished to do so, subject to the following conditions:
12
13 The above copyright notice and this permission notice shall be included in
14 all copies or substantial portions of the Software.
15
16 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
20 ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
21 WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22*/
23
24#ifndef ADRVALUE_H
25#define ADRVALUE_H
26
27#include <tqstrlist.h>
28#include <VCardValue.h>
29
30namespace VCARD
31{
32
33class KVCARD_EXPORT AdrValue : public Value
34{
35 public:
36 AdrValue();
37 AdrValue(const AdrValue&);
38 AdrValue(const TQCString&);
39 AdrValue & operator = (AdrValue&);
40 AdrValue & operator = (const TQCString&);
41 bool operator ==(AdrValue&);
42 bool operator !=(AdrValue& x) {return !(*this==x);}
43 bool operator ==(const TQCString& s) {AdrValue a(s);return(*this==a);}
44 bool operator != (const TQCString& s) {return !(*this == s);}
45
46 virtual ~AdrValue();
47 void parse() {if(!parsed_) _parse();parsed_=true;assembled_=false;}
48
49 void assemble() {if(assembled_) return;parse();_assemble();assembled_=true;}
50
51 void _parse();
52 void _assemble();
53 const char * className() const { return "AdrValue"; }
54
55 AdrValue *clone();
56
57 void setPOBox(const TQCString & s)
58 { poBox_ = s; assembled_ = false; }
59
60 void setExtAddress(const TQCString & s)
61 { extAddress_ = s; assembled_ = false; }
62
63 void setStreet(const TQCString & s)
64 { street_ = s; assembled_ = false; }
65
66 void setLocality(const TQCString & s)
67 { locality_ = s; assembled_ = false; }
68
69 void setRegion(const TQCString & s)
70 { region_ = s; assembled_ = false; }
71
72 void setPostCode(const TQCString & s)
73 { postCode_ = s; assembled_ = false; }
74
75 void setCountryName(const TQCString & s)
76 { countryName_ = s; assembled_ = false; }
77
78 TQCString poBox() { parse(); return poBox_; }
79 TQCString extAddress() { parse(); return extAddress_; }
80 TQCString street() { parse(); return street_; }
81 TQCString locality() { parse(); return locality_; }
82 TQCString region() { parse(); return region_; }
83 TQCString postCode() { parse(); return postCode_; }
84 TQCString countryName() { parse(); return countryName_; }
85
86 private:
87
88 TQCString poBox_;
89 TQCString extAddress_;
90 TQCString street_;
91 TQCString locality_;
92 TQCString region_;
93 TQCString postCode_;
94 TQCString countryName_;
95};
96
97}
98
99#endif
100

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.