24 #include <tqstrlist.h>
26 #include <VCardRToken.h>
27 #include <VCardNValue.h>
28 #include <VCardValue.h>
29 #include <VCardDefines.h>
31 using namespace VCARD;
39 NValue::NValue(
const NValue & x)
49 NValue::NValue(
const TQCString & s)
56 NValue::operator = (NValue & x)
58 if (*
this == x)
return *
this;
66 Value::operator = (x);
71 NValue::operator = (
const TQCString & s)
73 Value::operator = (s);
78 NValue::operator == (NValue & x)
83 family_ == x.family_ &&
85 middle_ == x.middle_ &&
86 prefix_ == x.prefix_ &&
87 suffix_ == x.suffix_);
97 return new NValue( *
this );
104 RTokenise(strRep_,
";", l);
106 for (
unsigned int i = 0; i < l.count(); i++) {
109 case 0: family_ = l.at(0);
break;
110 case 1: given_ = l.at(1);
break;
111 case 2: middle_ = l.at(2);
break;
112 case 3: prefix_ = l.at(3);
break;
113 case 4: suffix_ = l.at(4);
break;
123 strRep_ +=
";" + given_;
124 strRep_ +=
";" + middle_;
125 strRep_ +=
";" + prefix_;
126 strRep_ +=
";" + suffix_;