author | Michael Krelin <hacker@klever.net> | 2007-07-04 11:23:42 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2007-07-04 11:23:42 (UTC) |
commit | a08aff328d4393031d5ba7d622c2b05705a89d73 (patch) (side-by-side diff) | |
tree | 8ee90d686081c52e7c69b5ce946e9b1a7d690001 /kabc/vcard/AdrParam.cpp | |
parent | 11edc920afe4f274c0964436633aa632c8288a40 (diff) | |
download | kdepimpi-p1.zip kdepimpi-p1.tar.gz kdepimpi-p1.tar.bz2 |
initial public commit of qt4 portp1
-rw-r--r-- | kabc/vcard/AdrParam.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/kabc/vcard/AdrParam.cpp b/kabc/vcard/AdrParam.cpp index fa46499..33d358c 100644 --- a/kabc/vcard/AdrParam.cpp +++ b/kabc/vcard/AdrParam.cpp @@ -19,31 +19,33 @@ AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #include <VCardRToken.h> #include <VCardAdrParam.h> #include <VCardParam.h> +//Added by qt3to4: +#include <Q3CString> using namespace VCARD; AdrParam::AdrParam() : Param() { } AdrParam::AdrParam(const AdrParam & x) : Param(x), adrTypeList_ (x.adrTypeList_) { } -AdrParam::AdrParam(const QCString & s) +AdrParam::AdrParam(const Q3CString & s) : Param(s) { } AdrParam & AdrParam::operator = (AdrParam & x) { if (*this == x) return *this; @@ -51,17 +53,17 @@ AdrParam::operator = (AdrParam & x) adrTypeList_ = x.adrTypeList(); textParam_ = x.textParam(); Param::operator = (x); return *this; } AdrParam & -AdrParam::operator = (const QCString & s) +AdrParam::operator = (const Q3CString & s) { Param::operator = (s); adrTypeList_.clear(); textParam_.truncate(0); return *this; } @@ -72,17 +74,17 @@ AdrParam::operator == (AdrParam & x) parse(); if (!x.textParam().isEmpty()) return (x.textParam_ == textParam_); if (x.adrTypeList().count() != adrTypeList_.count()) return false; - QStrListIterator it(x.adrTypeList_); + Q3StrListIterator it(x.adrTypeList_); for (; it.current(); ++it) if (!adrTypeList_.find(it.current())) return false; return true; } @@ -109,17 +111,17 @@ AdrParam::_parse() void AdrParam::_assemble() { if (!textParam_.isEmpty()) { strRep_ = textParam_; return; } - QStrListIterator it(adrTypeList_); + Q3StrListIterator it(adrTypeList_); for (; it.current(); ++it) { strRep_ += it.current(); if (it.current() != adrTypeList_.last()) strRep_ += ','; } |