Add mobile phone field

Change-Id: I655c06ce050f4d1a1b09a4065514c695ec7b6452
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2876
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
This commit is contained in:
Emir SARI 2020-06-03 15:47:40 +00:00 committed by Adrien Destugues
parent 773d5303d1
commit 87f4776937
2 changed files with 4 additions and 0 deletions

View File

@ -58,6 +58,7 @@ struct DefaultAttribute sDefaultAttributes[] = {
{ "META:zip", 50, B_TRANSLATE("Zip") },
{ "META:country", 120, B_TRANSLATE("Country") },
{ "META:hphone", 90, B_TRANSLATE("Home phone") },
{ "META:mphone", 90, B_TRANSLATE("Mobile phone") },
{ "META:wphone", 90, B_TRANSLATE("Work phone") },
{ "META:fax", 90, B_TRANSLATE("Fax") },
{ "META:email", 120, B_TRANSLATE("E-mail") },

View File

@ -82,6 +82,7 @@ static const char* kAttrState = "META:state";
static const char* kAttrZip = "META:zip";
static const char* kAttrCountry = "META:country";
static const char* kAttrHomePhone = "META:hphone";
static const char* kAttrMobilePhone = "META:mphone";
static const char* kAttrWorkPhone = "META:wphone";
static const char* kAttrFax = "META:fax";
static const char* kAttrEmail = "META:email";
@ -371,6 +372,8 @@ TTracker::InitMimeTypes()
true, true, 120, B_ALIGN_LEFT, false);
installer.AddExtraAttribute("Home phone", kAttrHomePhone,
B_STRING_TYPE, true, true, 90, B_ALIGN_LEFT, false);
installer.AddExtraAttribute("Mobile phone", kAttrMobilePhone,
B_STRING_TYPE, true, true, 90, B_ALIGN_LEFT, false);
installer.AddExtraAttribute("Work phone", kAttrWorkPhone,
B_STRING_TYPE, true, true, 90, B_ALIGN_LEFT, false);
installer.AddExtraAttribute("Fax", kAttrFax, B_STRING_TYPE,