diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2014-10-07 16:38:40 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2014-10-07 16:38:40 -0500 |
commit | c1098677d4c3f93108a3a0d9dd56388f887416c8 (patch) | |
tree | 559cff6f7b314fe014ed4f2828f65ae962700149 /tdeabc/scripts/field.src.cpp | |
parent | f8790c70f8b1ce1f143719c19131c50031fd051a (diff) | |
download | tdelibs-c1098677d4c3f93108a3a0d9dd56388f887416c8.tar.gz tdelibs-c1098677d4c3f93108a3a0d9dd56388f887416c8.zip |
Add the following patch from Bug 1499
tdelibs: add postofficebox suppot in tdeabc
Diffstat (limited to 'tdeabc/scripts/field.src.cpp')
-rw-r--r-- | tdeabc/scripts/field.src.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tdeabc/scripts/field.src.cpp b/tdeabc/scripts/field.src.cpp index b7eb3ea5d..f8f126b83 100644 --- a/tdeabc/scripts/field.src.cpp +++ b/tdeabc/scripts/field.src.cpp @@ -184,6 +184,8 @@ TQString Field::value( const TDEABC::Addressee &a ) return a.phoneNumber( PhoneNumber::Pager ).number(); case FieldImpl::HomeAddressStreet: return a.address( Address::Home ).street(); + case FieldImpl::HomeAddressPostOfficeBox: + return a.address( Address::Home ).postOfficeBox(); case FieldImpl::HomeAddressLocality: return a.address( Address::Home ).locality(); case FieldImpl::HomeAddressRegion: @@ -196,6 +198,8 @@ TQString Field::value( const TDEABC::Addressee &a ) return a.address( Address::Home ).label(); case FieldImpl::BusinessAddressStreet: return a.address( Address::Work ).street(); + case FieldImpl::BusinessAddressPostOfficeBox: + return a.address( Address::Work ).postOfficeBox(); case FieldImpl::BusinessAddressLocality: return a.address( Address::Work ).locality(); case FieldImpl::BusinessAddressRegion: @@ -266,6 +270,13 @@ bool Field::setValue( TDEABC::Addressee &a, const TQString &value ) a.insertAddress( address ); return true; } + case FieldImpl::HomeAddressPostOfficeBox: + { + TDEABC::Address address = a.address( Address::Home ); + address.setPostOfficeBox( value ); + a.insertAddress( address ); + return true; + } case FieldImpl::HomeAddressLocality: { TDEABC::Address address = a.address( Address::Home ); @@ -308,6 +319,13 @@ bool Field::setValue( TDEABC::Addressee &a, const TQString &value ) a.insertAddress( address ); return true; } + case FieldImpl::BusinessAddressPostOfficeBox: + { + TDEABC::Address address = a.address( Address::Work ); + address.setPostOfficeBox( value ); + a.insertAddress( address ); + return true; + } case FieldImpl::BusinessAddressLocality: { TDEABC::Address address = a.address( Address::Work ); |