summaryrefslogtreecommitdiffabout
path: root/kabc/addressee.cpp
Unidiff
Diffstat (limited to 'kabc/addressee.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--kabc/addressee.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/kabc/addressee.cpp b/kabc/addressee.cpp
index 789a694..0d8e8e8 100644
--- a/kabc/addressee.cpp
+++ b/kabc/addressee.cpp
@@ -842,512 +842,516 @@ void Addressee::setFamilyName( const QString &familyName )
842 detach(); 842 detach();
843 mData->empty = false; 843 mData->empty = false;
844 mData->familyName = familyName; 844 mData->familyName = familyName;
845} 845}
846 846
847QString Addressee::familyName() const 847QString Addressee::familyName() const
848{ 848{
849 return mData->familyName; 849 return mData->familyName;
850} 850}
851 851
852QString Addressee::familyNameLabel() 852QString Addressee::familyNameLabel()
853{ 853{
854 return i18n("Family Name"); 854 return i18n("Family Name");
855} 855}
856 856
857 857
858void Addressee::setGivenName( const QString &givenName ) 858void Addressee::setGivenName( const QString &givenName )
859{ 859{
860 if ( givenName == mData->givenName ) return; 860 if ( givenName == mData->givenName ) return;
861 detach(); 861 detach();
862 mData->empty = false; 862 mData->empty = false;
863 mData->givenName = givenName; 863 mData->givenName = givenName;
864} 864}
865 865
866QString Addressee::givenName() const 866QString Addressee::givenName() const
867{ 867{
868 return mData->givenName; 868 return mData->givenName;
869} 869}
870 870
871QString Addressee::givenNameLabel() 871QString Addressee::givenNameLabel()
872{ 872{
873 return i18n("Given Name"); 873 return i18n("Given Name");
874} 874}
875 875
876 876
877void Addressee::setAdditionalName( const QString &additionalName ) 877void Addressee::setAdditionalName( const QString &additionalName )
878{ 878{
879 if ( additionalName == mData->additionalName ) return; 879 if ( additionalName == mData->additionalName ) return;
880 detach(); 880 detach();
881 mData->empty = false; 881 mData->empty = false;
882 mData->additionalName = additionalName; 882 mData->additionalName = additionalName;
883} 883}
884 884
885QString Addressee::additionalName() const 885QString Addressee::additionalName() const
886{ 886{
887 return mData->additionalName; 887 return mData->additionalName;
888} 888}
889 889
890QString Addressee::additionalNameLabel() 890QString Addressee::additionalNameLabel()
891{ 891{
892 return i18n("Additional Names"); 892 return i18n("Additional Names");
893} 893}
894 894
895 895
896void Addressee::setPrefix( const QString &prefix ) 896void Addressee::setPrefix( const QString &prefix )
897{ 897{
898 if ( prefix == mData->prefix ) return; 898 if ( prefix == mData->prefix ) return;
899 detach(); 899 detach();
900 mData->empty = false; 900 mData->empty = false;
901 mData->prefix = prefix; 901 mData->prefix = prefix;
902} 902}
903 903
904QString Addressee::prefix() const 904QString Addressee::prefix() const
905{ 905{
906 return mData->prefix; 906 return mData->prefix;
907} 907}
908 908
909QString Addressee::prefixLabel() 909QString Addressee::prefixLabel()
910{ 910{
911 return i18n("Honorific Prefixes"); 911 return i18n("Honorific Prefixes");
912} 912}
913 913
914 914
915void Addressee::setSuffix( const QString &suffix ) 915void Addressee::setSuffix( const QString &suffix )
916{ 916{
917 if ( suffix == mData->suffix ) return; 917 if ( suffix == mData->suffix ) return;
918 detach(); 918 detach();
919 mData->empty = false; 919 mData->empty = false;
920 mData->suffix = suffix; 920 mData->suffix = suffix;
921} 921}
922 922
923QString Addressee::suffix() const 923QString Addressee::suffix() const
924{ 924{
925 return mData->suffix; 925 return mData->suffix;
926} 926}
927 927
928QString Addressee::suffixLabel() 928QString Addressee::suffixLabel()
929{ 929{
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 Phone");
1059} 1059}
1060QString Addressee::mobileWorkPhoneLabel() 1060QString Addressee::mobileWorkPhoneLabel()
1061{ 1061{
1062 return i18n("Mobile2 (Work)"); 1062 return i18n("Mobile2 (Work)");
1063} 1063}
1064QString Addressee::mobileHomePhoneLabel() 1064QString Addressee::mobileHomePhoneLabel()
1065{ 1065{
1066 return i18n("Mobile (Home)"); 1066 return i18n("Mobile (Home)");
1067} 1067}
1068 1068
1069 1069
1070QString Addressee::homeFaxLabel() 1070QString Addressee::homeFaxLabel()
1071{ 1071{
1072 return i18n("Fax (Home)"); 1072 return i18n("Fax (Home)");
1073} 1073}
1074 1074
1075 1075
1076QString Addressee::businessFaxLabel() 1076QString Addressee::businessFaxLabel()
1077{ 1077{
1078 return i18n("Fax (Work)"); 1078 return i18n("Fax (Work)");
1079} 1079}
1080 1080
1081 1081
1082QString Addressee::carPhoneLabel() 1082QString Addressee::carPhoneLabel()
1083{ 1083{
1084 return i18n("Mobile2 (Car)"); 1084 return i18n("Mobile2 (Car)");
1085} 1085}
1086 1086
1087 1087
1088QString Addressee::isdnLabel() 1088QString Addressee::isdnLabel()
1089{ 1089{
1090 return i18n("ISDN"); 1090 return i18n("ISDN");
1091} 1091}
1092 1092
1093 1093
1094QString Addressee::pagerLabel() 1094QString Addressee::pagerLabel()
1095{ 1095{
1096 return i18n("Pager"); 1096 return i18n("Pager");
1097} 1097}
1098QString Addressee::otherPhoneLabel()
1099{
1100 return i18n("Other Phone");
1101}
1098 1102
1099QString Addressee::sipLabel() 1103QString Addressee::sipLabel()
1100{ 1104{
1101 return i18n("SIP"); 1105 return i18n("SIP");
1102} 1106}
1103 1107
1104QString Addressee::emailLabel() 1108QString Addressee::emailLabel()
1105{ 1109{
1106 return i18n("Email Address"); 1110 return i18n("Email Address");
1107} 1111}
1108 1112
1109 1113
1110void Addressee::setMailer( const QString &mailer ) 1114void Addressee::setMailer( const QString &mailer )
1111{ 1115{
1112 if ( mailer == mData->mailer ) return; 1116 if ( mailer == mData->mailer ) return;
1113 detach(); 1117 detach();
1114 mData->empty = false; 1118 mData->empty = false;
1115 mData->mailer = mailer; 1119 mData->mailer = mailer;
1116} 1120}
1117 1121
1118QString Addressee::mailer() const 1122QString Addressee::mailer() const
1119{ 1123{
1120 return mData->mailer; 1124 return mData->mailer;
1121} 1125}
1122 1126
1123QString Addressee::mailerLabel() 1127QString Addressee::mailerLabel()
1124{ 1128{
1125 return i18n("Mail Client"); 1129 return i18n("Mail Client");
1126} 1130}
1127 1131
1128 1132
1129void Addressee::setTimeZone( const TimeZone &timeZone ) 1133void Addressee::setTimeZone( const TimeZone &timeZone )
1130{ 1134{
1131 if ( timeZone == mData->timeZone ) return; 1135 if ( timeZone == mData->timeZone ) return;
1132 detach(); 1136 detach();
1133 mData->empty = false; 1137 mData->empty = false;
1134 mData->timeZone = timeZone; 1138 mData->timeZone = timeZone;
1135} 1139}
1136 1140
1137TimeZone Addressee::timeZone() const 1141TimeZone Addressee::timeZone() const
1138{ 1142{
1139 return mData->timeZone; 1143 return mData->timeZone;
1140} 1144}
1141 1145
1142QString Addressee::timeZoneLabel() 1146QString Addressee::timeZoneLabel()
1143{ 1147{
1144 return i18n("Time Zone"); 1148 return i18n("Time Zone");
1145} 1149}
1146 1150
1147 1151
1148void Addressee::setGeo( const Geo &geo ) 1152void Addressee::setGeo( const Geo &geo )
1149{ 1153{
1150 if ( geo == mData->geo ) return; 1154 if ( geo == mData->geo ) return;
1151 detach(); 1155 detach();
1152 mData->empty = false; 1156 mData->empty = false;
1153 mData->geo = geo; 1157 mData->geo = geo;
1154} 1158}
1155 1159
1156Geo Addressee::geo() const 1160Geo Addressee::geo() const
1157{ 1161{
1158 return mData->geo; 1162 return mData->geo;
1159} 1163}
1160 1164
1161QString Addressee::geoLabel() 1165QString Addressee::geoLabel()
1162{ 1166{
1163 return i18n("Geographic Position"); 1167 return i18n("Geographic Position");
1164} 1168}
1165 1169
1166 1170
1167void Addressee::setTitle( const QString &title ) 1171void Addressee::setTitle( const QString &title )
1168{ 1172{
1169 if ( title == mData->title ) return; 1173 if ( title == mData->title ) return;
1170 detach(); 1174 detach();
1171 mData->empty = false; 1175 mData->empty = false;
1172 mData->title = title; 1176 mData->title = title;
1173} 1177}
1174 1178
1175QString Addressee::title() const 1179QString Addressee::title() const
1176{ 1180{
1177 return mData->title; 1181 return mData->title;
1178} 1182}
1179 1183
1180QString Addressee::titleLabel() 1184QString Addressee::titleLabel()
1181{ 1185{
1182 return i18n("Title"); 1186 return i18n("Title");
1183} 1187}
1184 1188
1185 1189
1186void Addressee::setRole( const QString &role ) 1190void Addressee::setRole( const QString &role )
1187{ 1191{
1188 if ( role == mData->role ) return; 1192 if ( role == mData->role ) return;
1189 detach(); 1193 detach();
1190 mData->empty = false; 1194 mData->empty = false;
1191 mData->role = role; 1195 mData->role = role;
1192} 1196}
1193 1197
1194QString Addressee::role() const 1198QString Addressee::role() const
1195{ 1199{
1196 return mData->role; 1200 return mData->role;
1197} 1201}
1198 1202
1199QString Addressee::roleLabel() 1203QString Addressee::roleLabel()
1200{ 1204{
1201 return i18n("Role"); 1205 return i18n("Role");
1202} 1206}
1203 1207
1204 1208
1205void Addressee::setOrganization( const QString &organization ) 1209void Addressee::setOrganization( const QString &organization )
1206{ 1210{
1207 if ( organization == mData->organization ) return; 1211 if ( organization == mData->organization ) return;
1208 detach(); 1212 detach();
1209 mData->empty = false; 1213 mData->empty = false;
1210 mData->organization = organization; 1214 mData->organization = organization;
1211} 1215}
1212 1216
1213QString Addressee::organization() const 1217QString Addressee::organization() const
1214{ 1218{
1215 return mData->organization; 1219 return mData->organization;
1216} 1220}
1217 1221
1218QString Addressee::organizationLabel() 1222QString Addressee::organizationLabel()
1219{ 1223{
1220 return i18n("Organization"); 1224 return i18n("Organization");
1221} 1225}
1222 1226
1223 1227
1224void Addressee::setNote( const QString &note ) 1228void Addressee::setNote( const QString &note )
1225{ 1229{
1226 if ( note == mData->note ) return; 1230 if ( note == mData->note ) return;
1227 detach(); 1231 detach();
1228 mData->empty = false; 1232 mData->empty = false;
1229 mData->note = note; 1233 mData->note = note;
1230} 1234}
1231 1235
1232QString Addressee::note() const 1236QString Addressee::note() const
1233{ 1237{
1234 return mData->note; 1238 return mData->note;
1235} 1239}
1236 1240
1237QString Addressee::noteLabel() 1241QString Addressee::noteLabel()
1238{ 1242{
1239 return i18n("Note"); 1243 return i18n("Note");
1240} 1244}
1241 1245
1242 1246
1243void Addressee::setProductId( const QString &productId ) 1247void Addressee::setProductId( const QString &productId )
1244{ 1248{
1245 if ( productId == mData->productId ) return; 1249 if ( productId == mData->productId ) return;
1246 detach(); 1250 detach();
1247 mData->empty = false; 1251 mData->empty = false;
1248 mData->productId = productId; 1252 mData->productId = productId;
1249} 1253}
1250 1254
1251QString Addressee::productId() const 1255QString Addressee::productId() const
1252{ 1256{
1253 return mData->productId; 1257 return mData->productId;
1254} 1258}
1255 1259
1256QString Addressee::productIdLabel() 1260QString Addressee::productIdLabel()
1257{ 1261{
1258 return i18n("Product Identifier"); 1262 return i18n("Product Identifier");
1259} 1263}
1260 1264
1261 1265
1262void Addressee::setRevision( const QDateTime &revision ) 1266void Addressee::setRevision( const QDateTime &revision )
1263{ 1267{
1264 if ( revision == mData->revision ) return; 1268 if ( revision == mData->revision ) return;
1265 detach(); 1269 detach();
1266 mData->empty = false; 1270 mData->empty = false;
1267 mData->revision = QDateTime( revision.date(), 1271 mData->revision = QDateTime( revision.date(),
1268 QTime (revision.time().hour(), 1272 QTime (revision.time().hour(),
1269 revision.time().minute(), 1273 revision.time().minute(),
1270 revision.time().second())); 1274 revision.time().second()));
1271} 1275}
1272 1276
1273QDateTime Addressee::revision() const 1277QDateTime Addressee::revision() const
1274{ 1278{
1275 return mData->revision; 1279 return mData->revision;
1276} 1280}
1277 1281
1278QString Addressee::revisionLabel() 1282QString Addressee::revisionLabel()
1279{ 1283{
1280 return i18n("Revision Date"); 1284 return i18n("Revision Date");
1281} 1285}
1282 1286
1283 1287
1284void Addressee::setSortString( const QString &sortString ) 1288void Addressee::setSortString( const QString &sortString )
1285{ 1289{
1286 if ( sortString == mData->sortString ) return; 1290 if ( sortString == mData->sortString ) return;
1287 detach(); 1291 detach();
1288 mData->empty = false; 1292 mData->empty = false;
1289 mData->sortString = sortString; 1293 mData->sortString = sortString;
1290} 1294}
1291 1295
1292QString Addressee::sortString() const 1296QString Addressee::sortString() const
1293{ 1297{
1294 return mData->sortString; 1298 return mData->sortString;
1295} 1299}
1296 1300
1297QString Addressee::sortStringLabel() 1301QString Addressee::sortStringLabel()
1298{ 1302{
1299 return i18n("Sort String"); 1303 return i18n("Sort String");
1300} 1304}
1301 1305
1302 1306
1303void Addressee::setUrl( const KURL &url ) 1307void Addressee::setUrl( const KURL &url )
1304{ 1308{
1305 if ( url == mData->url ) return; 1309 if ( url == mData->url ) return;
1306 detach(); 1310 detach();
1307 mData->empty = false; 1311 mData->empty = false;
1308 mData->url = url; 1312 mData->url = url;
1309} 1313}
1310 1314
1311KURL Addressee::url() const 1315KURL Addressee::url() const
1312{ 1316{
1313 return mData->url; 1317 return mData->url;
1314} 1318}
1315 1319
1316QString Addressee::urlLabel() 1320QString Addressee::urlLabel()
1317{ 1321{
1318 return i18n("URL"); 1322 return i18n("URL");
1319} 1323}
1320 1324
1321 1325
1322void Addressee::setSecrecy( const Secrecy &secrecy ) 1326void Addressee::setSecrecy( const Secrecy &secrecy )
1323{ 1327{
1324 if ( secrecy == mData->secrecy ) return; 1328 if ( secrecy == mData->secrecy ) return;
1325 detach(); 1329 detach();
1326 mData->empty = false; 1330 mData->empty = false;
1327 mData->secrecy = secrecy; 1331 mData->secrecy = secrecy;
1328} 1332}
1329 1333
1330Secrecy Addressee::secrecy() const 1334Secrecy Addressee::secrecy() const
1331{ 1335{
1332 return mData->secrecy; 1336 return mData->secrecy;
1333} 1337}
1334 1338
1335QString Addressee::secrecyLabel() 1339QString Addressee::secrecyLabel()
1336{ 1340{
1337 return i18n("Security Class"); 1341 return i18n("Security Class");
1338} 1342}
1339 1343
1340 1344
1341void Addressee::setLogo( const Picture &logo ) 1345void Addressee::setLogo( const Picture &logo )
1342{ 1346{
1343 if ( logo == mData->logo ) return; 1347 if ( logo == mData->logo ) return;
1344 detach(); 1348 detach();
1345 mData->empty = false; 1349 mData->empty = false;
1346 mData->logo = logo; 1350 mData->logo = logo;
1347} 1351}
1348 1352
1349Picture Addressee::logo() const 1353Picture Addressee::logo() const
1350{ 1354{
1351 return mData->logo; 1355 return mData->logo;
1352} 1356}
1353 1357