X-Git-Url: http://Server1/repobrowser/?a=blobdiff_plain;f=source%2Fcontacteditor%2FfrmContactEditor.h;h=ef4b8f2b36e2e8c43aa359cb70e673089f8e86a7;hb=8fb3ab8465ad5d56a2405ec830e48954e254735c;hp=34d4cf358e4b66c2917f110ab29a193455c7787f;hpb=2b6a6878b89192f2d951511d6936d564fd8baf46;p=xestiaab%2F.git diff --git a/source/contacteditor/frmContactEditor.h b/source/contacteditor/frmContactEditor.h index 34d4cf3..ef4b8f2 100644 --- a/source/contacteditor/frmContactEditor.h +++ b/source/contacteditor/frmContactEditor.h @@ -1,6 +1,6 @@ // frmContactEditor.h - frmContactEditor form header. // -// (c) 2012-2015 Xestia Software Development. +// (c) 2012-2016 Xestia Software Development. // // This file is part of Xestia Address Book. // @@ -603,66 +603,15 @@ class frmContactEditor : public frmContactEditorADT void ResetSaveProcessData(); void ContactFileChanged( wxCommandEvent &event ); void ClearContact(); - - /* Functions for loading contacts */ - void LoadKind(wxString KindType); - void LoadMember(wxString MemberData, int *GroupCount); - void LoadFN(wxString wxSPropertySeg1, wxString wxSPropertySeg2, int *FNCount, - bool *FNProcessed, vCard *ContactData); - void LoadN(wxString wxSPropertySeg1, wxString wxSPropertySeg2, bool *NameProcessed, - vCard *ContactData); - void LoadNickname(wxString wxSpropertySeg1, wxString wxSPropertySeg2, - int *NicknameCount, vCard *ContactData); - void LoadGender(wxString wxSPropertySeg1, wxString wxSPropertySeg2, bool *GenderProcessed, - vCard *ContactData); - void LoadBDay(wxString wxSPropertySeg1, wxString wxSPropertySeg2, bool *BirthdayProcessed); - void LoadAnniversary(wxString wxSPropertySeg1, wxString wxSPropertySeg2, bool *AnniversaryProcessed); - void LoadTimeZone(wxString wxSPropertySeg1, wxString wxSPropertySeg2, int *TZCount); - void LoadADR(wxString wxSPropertySeg1, wxString wxSPropertySeg2, int *ADRCount); - void LoadEmail(wxString wxSPropertySeg1, wxString wxSPropertySeg2, int *ADRCount); - void LoadIM(wxString wxSPropertySeg1, wxString wxSPropertySeg2, int *IMPPCount); - void LoadTelephone(wxString wxSPropertySeg1, wxString wxSPropertySeg2, int *TelCount); - void LoadLanguage(wxString wxSPropertySeg1, wxString wxSPropertySeg2, int *LangCount); - void LoadGeo(wxString wxSProptertySeg1, wxString wxSPropertySeg2, int *GeoCount); - void LoadRelated(wxString wxSPropertySeg1, wxString wxSPropertySeg2, int *RelatedCount); - void LoadURL(wxString wxSPropertySeg1, wxString wxSPropertySeg2, int *URLCount); - void LoadTitle(wxString wxSPropertySeg1, wxString wxSPropertySeg2, int *TitleCount); - void LoadRole(wxString wxSPropertySeg1, wxString wxSPropertySeg2, int *RoleCount); - void LoadOrg(wxString wxSPropertySeg1, wxString wxSPropertySeg2, int *OrgCount); - void LoadNote(wxString wxSPropertySeg1, wxString wxSPropertySeg2, int *NoteCount); - void LoadCategory(wxString wxSPropertySeg1, wxString wxSPropertySeg2, int *CategoryCount); - void LoadPhoto(wxString wxSPropertySeg1, wxString wxSPropertySeg2, int *PhotoCount); - void LoadLogo(wxString wxSPropertySeg1, wxString wxSPropertySeg2, int *PhotoCount); - void LoadSound(wxString wxSPropertySeg1, wxString wxSPropertySeg2, int *SoundCount); - void LoadCalURI(wxString wxSPropertySeg1, wxString wxSPropertySeg2, int *CalAdrCount); - void LoadCalAdrURI(wxString wxSPropertySeg1, wxString wxSPropertySeg2, int *CalReqAdrCount); - void LoadCalFreeBusy(wxString wxSPropertySeg1, wxString wxSPropertySeg2, int *FreeBusyCount); - void LoadKey(wxString wxSPropertySeg1, wxString wxSPropertySeg2, int *KeyCount); - - void LoadData(std::map *GeneralList, - std::map *GeneralListPref, - wxListCtrl *GeneralListCtrl, - std::map *HomeList, - std::map *HomeListPref, - wxListCtrl *HomeListCtrl, - std::map *BusinessList, - std::map *BusinessTZPref, - wxListCtrl *BusinessListCtrl, - int *DataCount); - - void LoadData(std::map *ItemList, - std::map *ItemListPref, - wxListCtrl *ItemCtrl, - int *DataCount); - - void LoadGender(wxString *GenderComponent, wxString *GenderIdentity); + + void LoadKind(ContactKindType *KindType); void LoadBirthday(wxString *BirthdayData, bool *BirthdayText); void LoadAnniversary(wxString *AnniversaryData, bool *AnniversaryText); - void LoadKind(ContactKindType *KindType); + void LoadGender(wxString *GenderComponent, wxString *GenderIdentity); void LoadName(wxString *NameTitle, wxString *NameForename, wxString *NameSurname, wxString *NameOtherNames, wxString *NameSuffix); - void LoadMember(std::map *GroupsList); + void LoadMember(std::map *GroupList); void LoadAddress(std::map *GeneralAddressList, std::map *GeneralAddressListTown, std::map *GeneralAddressListCounty, @@ -677,22 +626,77 @@ class frmContactEditor : public frmContactEditorADT std::map *BusinessAddressListTown, std::map *BusinessAddressListCounty, std::map *BusinessAddressListPostCode, - std::map *BusinessAddressListPref, + std::map *BusinessAddressListPref, int *AddressCount); - void LoadTimeZone(std::map *GeneralTZListPtr, - std::map *GeneralTZListPrefPtr, - std::map *HomeTZListPtr, - std::map *HomeTZListPrefPtr, - std::map *BusinessTZListPtr, - std::map *BusinessTZListPrefPtr, - int *TZCount); - void LoadEmail(std::map *GeneralEmailListPtr, - std::map *GeneralEmailListPrefPtr, - std::map *HomeEmailListPtr, - std::map *HomeEmailListPrefPtr, - std::map *BusinessEmailListPtr, - std::map *BusinessEmailListPrefPtr, - int *EmailCount); + + void LoadData(std::map *GeneralList, + std::map *GeneralListPref, + wxListCtrl *GeneralListCtrl, + std::map *HomeList, + std::map *HomeListPref, + wxListCtrl *HomeListCtrl, + std::map *BusinessList, + std::map *BusinessTZPref, + wxListCtrl *BusinessListCtrl, + int *DataCount); + + void LoadData(std::map *GeneralList, + std::map *GeneralListPref, + std::map *GeneralListType, + wxListCtrl *GeneralListCtrl, + std::map *HomeList, + std::map *HomeListPref, + std::map *HomeListType, + wxListCtrl *HomeListCtrl, + std::map *BusinessList, + std::map *BusinessListPref, + std::map *BusinessListType, + wxListCtrl *BusinessListCtrl, + int *DataCount); + + void LoadData(std::map *ItemList, + std::map *ItemListPref, + wxListCtrl *ItemCtrl, + int *DataCount); + + void LoadData(std::map *ItemList, + std::map *ItemListPref, + std::map *ItemListType, + wxListCtrl *ItemCtrl, + int *DataCount); + + void LoadData(wxString ItemName, + std::map *ItemList, + std::map *ItemListPref, + std::map *ItemListType, + std::map *ItemListDataType, + wxListCtrl *ItemCtrl, + int *DataCount); + + void LoadPictureData(wxString ItemName, + std::map *ItemList, + std::map *ItemListPref, + std::map *ItemListType, + wxListCtrl *ItemCtrl, + int *DataCount); + + void LoadVendorData(std::map *ItemListPEN, + std::map *ItemListElement, + wxListCtrl *ItemCtrl, + int *DataCount); + + void LoadXTokenData(std::map *ItemListTokens, + wxListCtrl *ItemCtrl, + int *DataCount); + + void LoadData(std::map *ItemList, + wxComboBox *ItemCtrl); + + void LoadRelatedData(std::map *ItemList, + std::map *ItemListPref, + std::map *ItemListType, + wxListCtrl *ItemCtrl, + int *DataCount); int intValueSeek = 1; bool IsGroup = FALSE;