summaryrefslogtreecommitdiffabout
path: root/kabc/addressee.cpp
authorzautrix <zautrix>2005-10-28 21:15:00 (UTC)
committer zautrix <zautrix>2005-10-28 21:15:00 (UTC)
commit85d2ea5c17a2b2c7a4ae4dd954bc635a56239b57 (patch) (unidiff)
tree8628f5cef407eaeee2d8b893f82d296d5dcd4787 /kabc/addressee.cpp
parent16e87ac5b81352c51343715cf1080191aaba9611 (diff)
downloadkdepimpi-85d2ea5c17a2b2c7a4ae4dd954bc635a56239b57.zip
kdepimpi-85d2ea5c17a2b2c7a4ae4dd954bc635a56239b57.tar.gz
kdepimpi-85d2ea5c17a2b2c7a4ae4dd954bc635a56239b57.tar.bz2
fixx
Diffstat (limited to 'kabc/addressee.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--kabc/addressee.cpp14
1 files changed, 2 insertions, 12 deletions
diff --git a/kabc/addressee.cpp b/kabc/addressee.cpp
index 0d8e8e8..2f4a9af 100644
--- a/kabc/addressee.cpp
+++ b/kabc/addressee.cpp
@@ -930,286 +930,276 @@ QString Addressee::suffixLabel()
930 return i18n("Honorific Suffixes"); 930 return i18n("Honorific Suffixes");
931} 931}
932 932
933 933
934void Addressee::setNickName( const QString &nickName ) 934void Addressee::setNickName( const QString &nickName )
935{ 935{
936 if ( nickName == mData->nickName ) return; 936 if ( nickName == mData->nickName ) return;
937 detach(); 937 detach();
938 mData->empty = false; 938 mData->empty = false;
939 mData->nickName = nickName; 939 mData->nickName = nickName;
940} 940}
941 941
942QString Addressee::nickName() const 942QString Addressee::nickName() const
943{ 943{
944 return mData->nickName; 944 return mData->nickName;
945} 945}
946 946
947QString Addressee::nickNameLabel() 947QString Addressee::nickNameLabel()
948{ 948{
949 return i18n("Nick Name"); 949 return i18n("Nick Name");
950} 950}
951 951
952 952
953void Addressee::setBirthday( const QDateTime &birthday ) 953void Addressee::setBirthday( const QDateTime &birthday )
954{ 954{
955 if ( birthday == mData->birthday ) return; 955 if ( birthday == mData->birthday ) return;
956 detach(); 956 detach();
957 mData->empty = false; 957 mData->empty = false;
958 mData->birthday = birthday; 958 mData->birthday = birthday;
959} 959}
960 960
961QDateTime Addressee::birthday() const 961QDateTime Addressee::birthday() const
962{ 962{
963 return mData->birthday; 963 return mData->birthday;
964} 964}
965 965
966QString Addressee::birthdayLabel() 966QString Addressee::birthdayLabel()
967{ 967{
968 return i18n("Birthday"); 968 return i18n("Birthday");
969} 969}
970 970
971 971
972QString Addressee::homeAddressStreetLabel() 972QString Addressee::homeAddressStreetLabel()
973{ 973{
974 return i18n("Home Address Street"); 974 return i18n("Home Address Street");
975} 975}
976 976
977 977
978QString Addressee::homeAddressLocalityLabel() 978QString Addressee::homeAddressLocalityLabel()
979{ 979{
980 return i18n("Home Address Locality"); 980 return i18n("Home Address Locality");
981} 981}
982 982
983 983
984QString Addressee::homeAddressRegionLabel() 984QString Addressee::homeAddressRegionLabel()
985{ 985{
986 return i18n("Home Address Region"); 986 return i18n("Home Address Region");
987} 987}
988 988
989 989
990QString Addressee::homeAddressPostalCodeLabel() 990QString Addressee::homeAddressPostalCodeLabel()
991{ 991{
992 return i18n("Home Address Postal Code"); 992 return i18n("Home Address Postal Code");
993} 993}
994 994
995 995
996QString Addressee::homeAddressCountryLabel() 996QString Addressee::homeAddressCountryLabel()
997{ 997{
998 return i18n("Home Address Country"); 998 return i18n("Home Address Country");
999} 999}
1000 1000
1001 1001
1002QString Addressee::homeAddressLabelLabel() 1002QString Addressee::homeAddressLabelLabel()
1003{ 1003{
1004 return i18n("Home Address Label"); 1004 return i18n("Home Address Label");
1005} 1005}
1006 1006
1007 1007
1008QString Addressee::businessAddressStreetLabel() 1008QString Addressee::businessAddressStreetLabel()
1009{ 1009{
1010 return i18n("Business Address Street"); 1010 return i18n("Business Address Street");
1011} 1011}
1012 1012
1013 1013
1014QString Addressee::businessAddressLocalityLabel() 1014QString Addressee::businessAddressLocalityLabel()
1015{ 1015{
1016 return i18n("Business Address Locality"); 1016 return i18n("Business Address Locality");
1017} 1017}
1018 1018
1019 1019
1020QString Addressee::businessAddressRegionLabel() 1020QString Addressee::businessAddressRegionLabel()
1021{ 1021{
1022 return i18n("Business Address Region"); 1022 return i18n("Business Address Region");
1023} 1023}
1024 1024
1025 1025
1026QString Addressee::businessAddressPostalCodeLabel() 1026QString Addressee::businessAddressPostalCodeLabel()
1027{ 1027{
1028 return i18n("Business Address Postal Code"); 1028 return i18n("Business Address Postal Code");
1029} 1029}
1030 1030
1031 1031
1032QString Addressee::businessAddressCountryLabel() 1032QString Addressee::businessAddressCountryLabel()
1033{ 1033{
1034 return i18n("Business Address Country"); 1034 return i18n("Business Address Country");
1035} 1035}
1036 1036
1037 1037
1038QString Addressee::businessAddressLabelLabel() 1038QString Addressee::businessAddressLabelLabel()
1039{ 1039{
1040 return i18n("Business Address Label"); 1040 return i18n("Business Address Label");
1041} 1041}
1042 1042
1043 1043
1044QString Addressee::homePhoneLabel() 1044QString Addressee::homePhoneLabel()
1045{ 1045{
1046 return i18n("Home Phone"); 1046 return i18n("Home Phone");
1047} 1047}
1048 1048
1049 1049
1050QString Addressee::businessPhoneLabel() 1050QString Addressee::businessPhoneLabel()
1051{ 1051{
1052 return i18n("Work Phone"); 1052 return i18n("Work Phone");
1053} 1053}
1054 1054
1055 1055
1056QString Addressee::mobilePhoneLabel() 1056QString Addressee::mobilePhoneLabel()
1057{ 1057{
1058 return i18n("Mobile Phone"); 1058 return i18n("Mobile");
1059} 1059}
1060QString Addressee::mobileWorkPhoneLabel() 1060QString Addressee::mobileWorkPhoneLabel()
1061{ 1061{
1062 return i18n("Mobile2 (Work)"); 1062 return i18n("Mobile2");
1063}
1064QString Addressee::mobileHomePhoneLabel()
1065{
1066 return i18n("Mobile (Home)");
1067} 1063}
1068 1064
1069 1065
1070QString Addressee::homeFaxLabel() 1066QString Addressee::homeFaxLabel()
1071{ 1067{
1072 return i18n("Fax (Home)"); 1068 return i18n("Fax (Home)");
1073} 1069}
1074 1070
1075 1071
1076QString Addressee::businessFaxLabel() 1072QString Addressee::businessFaxLabel()
1077{ 1073{
1078 return i18n("Fax (Work)"); 1074 return i18n("Fax (Work)");
1079} 1075}
1080 1076
1081 1077
1082QString Addressee::carPhoneLabel()
1083{
1084 return i18n("Mobile2 (Car)");
1085}
1086
1087
1088QString Addressee::isdnLabel() 1078QString Addressee::isdnLabel()
1089{ 1079{
1090 return i18n("ISDN"); 1080 return i18n("ISDN");
1091} 1081}
1092 1082
1093 1083
1094QString Addressee::pagerLabel() 1084QString Addressee::pagerLabel()
1095{ 1085{
1096 return i18n("Pager"); 1086 return i18n("Pager");
1097} 1087}
1098QString Addressee::otherPhoneLabel() 1088QString Addressee::otherPhoneLabel()
1099{ 1089{
1100 return i18n("Other Phone"); 1090 return i18n("Other Phone");
1101} 1091}
1102 1092
1103QString Addressee::sipLabel() 1093QString Addressee::sipLabel()
1104{ 1094{
1105 return i18n("SIP"); 1095 return i18n("SIP");
1106} 1096}
1107 1097
1108QString Addressee::emailLabel() 1098QString Addressee::emailLabel()
1109{ 1099{
1110 return i18n("Email Address"); 1100 return i18n("Email Address");
1111} 1101}
1112 1102
1113 1103
1114void Addressee::setMailer( const QString &mailer ) 1104void Addressee::setMailer( const QString &mailer )
1115{ 1105{
1116 if ( mailer == mData->mailer ) return; 1106 if ( mailer == mData->mailer ) return;
1117 detach(); 1107 detach();
1118 mData->empty = false; 1108 mData->empty = false;
1119 mData->mailer = mailer; 1109 mData->mailer = mailer;
1120} 1110}
1121 1111
1122QString Addressee::mailer() const 1112QString Addressee::mailer() const
1123{ 1113{
1124 return mData->mailer; 1114 return mData->mailer;
1125} 1115}
1126 1116
1127QString Addressee::mailerLabel() 1117QString Addressee::mailerLabel()
1128{ 1118{
1129 return i18n("Mail Client"); 1119 return i18n("Mail Client");
1130} 1120}
1131 1121
1132 1122
1133void Addressee::setTimeZone( const TimeZone &timeZone ) 1123void Addressee::setTimeZone( const TimeZone &timeZone )
1134{ 1124{
1135 if ( timeZone == mData->timeZone ) return; 1125 if ( timeZone == mData->timeZone ) return;
1136 detach(); 1126 detach();
1137 mData->empty = false; 1127 mData->empty = false;
1138 mData->timeZone = timeZone; 1128 mData->timeZone = timeZone;
1139} 1129}
1140 1130
1141TimeZone Addressee::timeZone() const 1131TimeZone Addressee::timeZone() const
1142{ 1132{
1143 return mData->timeZone; 1133 return mData->timeZone;
1144} 1134}
1145 1135
1146QString Addressee::timeZoneLabel() 1136QString Addressee::timeZoneLabel()
1147{ 1137{
1148 return i18n("Time Zone"); 1138 return i18n("Time Zone");
1149} 1139}
1150 1140
1151 1141
1152void Addressee::setGeo( const Geo &geo ) 1142void Addressee::setGeo( const Geo &geo )
1153{ 1143{
1154 if ( geo == mData->geo ) return; 1144 if ( geo == mData->geo ) return;
1155 detach(); 1145 detach();
1156 mData->empty = false; 1146 mData->empty = false;
1157 mData->geo = geo; 1147 mData->geo = geo;
1158} 1148}
1159 1149
1160Geo Addressee::geo() const 1150Geo Addressee::geo() const
1161{ 1151{
1162 return mData->geo; 1152 return mData->geo;
1163} 1153}
1164 1154
1165QString Addressee::geoLabel() 1155QString Addressee::geoLabel()
1166{ 1156{
1167 return i18n("Geographic Position"); 1157 return i18n("Geographic Position");
1168} 1158}
1169 1159
1170 1160
1171void Addressee::setTitle( const QString &title ) 1161void Addressee::setTitle( const QString &title )
1172{ 1162{
1173 if ( title == mData->title ) return; 1163 if ( title == mData->title ) return;
1174 detach(); 1164 detach();
1175 mData->empty = false; 1165 mData->empty = false;
1176 mData->title = title; 1166 mData->title = title;
1177} 1167}
1178 1168
1179QString Addressee::title() const 1169QString Addressee::title() const
1180{ 1170{
1181 return mData->title; 1171 return mData->title;
1182} 1172}
1183 1173
1184QString Addressee::titleLabel() 1174QString Addressee::titleLabel()
1185{ 1175{
1186 return i18n("Title"); 1176 return i18n("Title");
1187} 1177}
1188 1178
1189 1179
1190void Addressee::setRole( const QString &role ) 1180void Addressee::setRole( const QString &role )
1191{ 1181{
1192 if ( role == mData->role ) return; 1182 if ( role == mData->role ) return;
1193 detach(); 1183 detach();
1194 mData->empty = false; 1184 mData->empty = false;
1195 mData->role = role; 1185 mData->role = role;
1196} 1186}
1197 1187
1198QString Addressee::role() const 1188QString Addressee::role() const
1199{ 1189{
1200 return mData->role; 1190 return mData->role;
1201} 1191}
1202 1192
1203QString Addressee::roleLabel() 1193QString Addressee::roleLabel()
1204{ 1194{
1205 return i18n("Role"); 1195 return i18n("Role");
1206} 1196}
1207 1197
1208 1198
1209void Addressee::setOrganization( const QString &organization ) 1199void Addressee::setOrganization( const QString &organization )
1210{ 1200{
1211 if ( organization == mData->organization ) return; 1201 if ( organization == mData->organization ) return;
1212 detach(); 1202 detach();
1213 mData->empty = false; 1203 mData->empty = false;
1214 mData->organization = organization; 1204 mData->organization = organization;
1215} 1205}