24 #include <VCardRToken.h>
25 #include <VCardAdrParam.h>
26 #include <VCardParam.h>
28 using namespace VCARD;
35 AdrParam::AdrParam(
const AdrParam & x)
37 adrTypeList_ (x.adrTypeList_)
41 AdrParam::AdrParam(
const TQCString & s)
47 AdrParam::operator = (AdrParam & x)
49 if (*
this == x)
return *
this;
51 adrTypeList_ = x.adrTypeList();
52 textParam_ = x.textParam();
54 Param::operator = (x);
59 AdrParam::operator = (
const TQCString & s)
61 Param::operator = (s);
64 textParam_.truncate(0);
70 AdrParam::operator == (AdrParam & x)
74 if (!x.textParam().isEmpty())
75 return (x.textParam_ == textParam_);
77 if (x.adrTypeList().count() != adrTypeList_.count())
80 TQStrListIterator it(x.adrTypeList_);
82 for (; it.current(); ++it)
83 if (!adrTypeList_.find(it.current()))
98 if (strRep_.left(4) !=
"TYPE") {
103 if (!strRep_.contains(
'='))
106 RTokenise(strRep_,
",", adrTypeList_);
110 AdrParam::_assemble()
112 if (!textParam_.isEmpty()) {
113 strRep_ = textParam_;
117 TQStrListIterator it(adrTypeList_);
119 for (; it.current(); ++it) {
121 strRep_ += it.current();
123 if (it.current() != adrTypeList_.last())