24 #include <VCardEmailParam.h>
25 #include <VCardParam.h>
26 #include <VCardDefines.h>
28 using namespace VCARD;
30 EmailParam::EmailParam()
36 EmailParam::EmailParam(
const EmailParam & x)
38 emailType_ (x.emailType_),
43 EmailParam::EmailParam(
const TQCString & s)
49 EmailParam::operator = (EmailParam & x)
51 if (*
this == x)
return *
this;
53 emailType_ = x.emailType();
56 Param::operator = (x);
61 EmailParam::operator = (
const TQCString & s)
63 Param::operator = (s);
68 EmailParam::operator == (EmailParam & x)
73 return (x.pref_ && x.emailType() == emailType_);
78 EmailParam::~EmailParam()
88 SubParamListIterator it(subParamList_);
93 for (; it.current(); ++it) {
95 if (tqstricmp(it.current()->name(),
"TYPE") == 0) {
96 emailType_ = it.current()->value();
100 if (tqstricmp(it.current()->name(),
"PREF") == 0) {
108 EmailParam::_assemble()
111 strRep_ += emailType_;