27 #include <VCardValue.h>
32 class KVCARD_EXPORT NValue :
public Value
36 NValue(
const NValue&);
37 NValue(
const TQCString&);
38 NValue & operator = (NValue&);
39 NValue & operator = (
const TQCString&);
40 bool operator ==(NValue&);
41 bool operator !=(NValue& x) {
return !(*
this==x);}
42 bool operator ==(
const TQCString& s) {NValue a(s);
return(*
this==a);}
43 bool operator != (
const TQCString& s) {
return !(*
this == s);}
46 void parse() {
if(!parsed_) _parse();parsed_=
true;assembled_=
false;}
48 void assemble() {
if(assembled_)
return;parse();_assemble();assembled_=
true;}
52 const char * className()
const {
return "NValue"; }
56 TQCString family() { parse();
return family_; }
57 TQCString given() { parse();
return given_; }
58 TQCString middle() { parse();
return middle_; }
59 TQCString prefix() { parse();
return prefix_; }
60 TQCString suffix() { parse();
return suffix_; }
62 void setFamily (
const TQCString & s) { family_ = s; assembled_ =
false; }
63 void setGiven (
const TQCString & s) { given_ = s; assembled_ =
false; }
64 void setMiddle (
const TQCString & s) { middle_ = s; assembled_ =
false; }
65 void setPrefix (
const TQCString & s) { prefix_ = s; assembled_ =
false; }
66 void setSuffix (
const TQCString & s) { suffix_ = s; assembled_ =
false; }
70 TQCString family_, given_, middle_, prefix_, suffix_;