27 #include <tqstrlist.h>
28 #include <VCardValue.h>
33 class KVCARD_EXPORT AdrValue :
public Value
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);}
47 void parse() {
if(!parsed_) _parse();parsed_=
true;assembled_=
false;}
49 void assemble() {
if(assembled_)
return;parse();_assemble();assembled_=
true;}
53 const char * className()
const {
return "AdrValue"; }
57 void setPOBox(
const TQCString & s)
58 { poBox_ = s; assembled_ =
false; }
60 void setExtAddress(
const TQCString & s)
61 { extAddress_ = s; assembled_ =
false; }
63 void setStreet(
const TQCString & s)
64 { street_ = s; assembled_ =
false; }
66 void setLocality(
const TQCString & s)
67 { locality_ = s; assembled_ =
false; }
69 void setRegion(
const TQCString & s)
70 { region_ = s; assembled_ =
false; }
72 void setPostCode(
const TQCString & s)
73 { postCode_ = s; assembled_ =
false; }
75 void setCountryName(
const TQCString & s)
76 { countryName_ = s; assembled_ =
false; }
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_; }
89 TQCString extAddress_;
94 TQCString countryName_;