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/AdrValue.cpp | |
parent | 11edc920afe4f274c0964436633aa632c8288a40 (diff) | |
download | kdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.zip kdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.tar.gz kdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.tar.bz2 |
initial public commit of qt4 portp1
-rw-r--r-- | kabc/vcard/AdrValue.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/kabc/vcard/AdrValue.cpp b/kabc/vcard/AdrValue.cpp index 7ecef33..51ca12a 100644 --- a/kabc/vcard/AdrValue.cpp +++ b/kabc/vcard/AdrValue.cpp @@ -16,68 +16,71 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 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 <VCardAdrValue.h> #include <VCardValue.h> #include <VCardDefines.h> +//Added by qt3to4: +#include <Q3StrList> +#include <Q3CString> using namespace VCARD; AdrValue::AdrValue() : Value() { } AdrValue::AdrValue(const AdrValue & x) : Value(x), poBox_ (x.poBox_), extAddress_ (x.extAddress_), street_ (x.street_), locality_ (x.locality_), region_ (x.region_), postCode_ (x.postCode_), countryName_ (x.countryName_) { } -AdrValue::AdrValue(const QCString & s) +AdrValue::AdrValue(const Q3CString & s) : Value(s) { } AdrValue & AdrValue::operator = (AdrValue & x) { if (*this == x) return *this; poBox_ = x.poBox_; extAddress_ = x.extAddress_; street_ = x.street_; locality_ = x.locality_; region_ = x.region_; postCode_ = x.postCode_; countryName_ = x.countryName_; Value::operator = (x); return *this; } AdrValue & -AdrValue::operator = (const QCString & s) +AdrValue::operator = (const Q3CString & s) { Value::operator = (s); return *this; } bool AdrValue::operator == (AdrValue & x) { parse(); x.parse(); return ( @@ -96,25 +99,25 @@ AdrValue::~AdrValue() AdrValue * AdrValue::clone() { return new AdrValue( *this ); } void AdrValue::_parse() { vDebug("AdrValue::_parse()"); - QStrList l; + Q3StrList l; RTokenise(strRep_, ";", l); for (unsigned int i = 0; i < l.count(); i++) { switch (i) { case 0: poBox_ = l.at(0); break; case 1: extAddress_ = l.at(1); break; case 2: street_ = l.at(2); break; case 3: locality_ = l.at(3); break; case 4: region_ = l.at(4); break; case 5: postCode_ = l.at(5); break; |