Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Added comments to describe functions in frmContactEditorTelephone
[xestiaab/.git] / source / contacteditor / frmContactEditor-General.cpp
index e1be3d5..2fe3b1d 100644 (file)
@@ -282,6 +282,7 @@ void frmContactEditor::AddGeneralIM( wxCommandEvent& event )
                              &ContactEditorData.GeneralIMListAltID,
                              &ContactEditorData.GeneralIMListPID,
                              &ContactEditorData.GeneralIMListType,
+                            &ContactEditorData.GeneralIMListTypeInfo,
                              &ContactEditorData.GeneralIMListTokens,
                              &ContactEditorData.GeneralIMListMediatype,
                              &ContactEditorData.GeneralIMListPref,
@@ -302,12 +303,13 @@ void frmContactEditor::ModifyGeneralIM( wxCommandEvent& event )
                          &intSelectedData)){
         return;
     }
-    
+
     frmContactEditorIM *frameCEIM = new frmContactEditorIM ( this );
     frameCEIM->SetupPointers(&ContactEditorData.GeneralIMList,
                              &ContactEditorData.GeneralIMListAltID,
                              &ContactEditorData.GeneralIMListPID,
                              &ContactEditorData.GeneralIMListType,
+                            &ContactEditorData.GeneralIMListTypeInfo,
                              &ContactEditorData.GeneralIMListTokens,
                              &ContactEditorData.GeneralIMListMediatype,
                              &ContactEditorData.GeneralIMListPref,
@@ -334,8 +336,9 @@ void frmContactEditor::DeleteGeneralIM( wxCommandEvent& event )
     
     DeleteMapData(intSelectedData, &ContactEditorData.GeneralIMList,
                   &ContactEditorData.GeneralIMListAltID, &ContactEditorData.GeneralIMListPID,
-                  &ContactEditorData.GeneralIMListType, &ContactEditorData.GeneralIMListTokens,
-                  &ContactEditorData.GeneralIMListMediatype, &ContactEditorData.GeneralIMListPref);
+                  &ContactEditorData.GeneralIMListType, &ContactEditorData.GeneralIMListTypeInfo,
+                 &ContactEditorData.GeneralIMListTokens, &ContactEditorData.GeneralIMListMediatype, 
+                 &ContactEditorData.GeneralIMListPref);
     
 }
 
@@ -350,6 +353,7 @@ void frmContactEditor::AddGeneralTelephone( wxCommandEvent& event )
                               &ContactEditorData.GeneralTelephoneListAltID,
                               &ContactEditorData.GeneralTelephoneListPID,
                               &ContactEditorData.GeneralTelephoneListType,
+                              &ContactEditorData.GeneralTelephoneListTypeInfo,
                               &ContactEditorData.GeneralTelephoneListTokens,
                               &ContactEditorData.GeneralTelephoneListPref,
                               lboTelephone,
@@ -375,6 +379,7 @@ void frmContactEditor::ModifyGeneralTelephone( wxCommandEvent& event )
                               &ContactEditorData.GeneralTelephoneListAltID,
                               &ContactEditorData.GeneralTelephoneListPID,
                               &ContactEditorData.GeneralTelephoneListType,
+                              &ContactEditorData.GeneralTelephoneListTypeInfo,
                               &ContactEditorData.GeneralTelephoneListTokens,
                               &ContactEditorData.GeneralTelephoneListPref,
                               lboTelephone,
@@ -400,8 +405,8 @@ void frmContactEditor::DeleteGeneralTelephone( wxCommandEvent& event )
     
     DeleteMapData(intSelectedData, &ContactEditorData.GeneralTelephoneList,
                   &ContactEditorData.GeneralTelephoneListAltID, &ContactEditorData.GeneralTelephoneListPID,
-                  &ContactEditorData.GeneralTelephoneListType, &ContactEditorData.GeneralTelephoneListTokens,
-                  &ContactEditorData.GeneralTelephoneListPref);
+                  &ContactEditorData.GeneralTelephoneListType, &ContactEditorData.GeneralTelephoneListTypeInfo,
+                 &ContactEditorData.GeneralTelephoneListTokens, &ContactEditorData.GeneralTelephoneListPref);
     
 }
 
@@ -550,6 +555,7 @@ void frmContactEditor::AddGeneralGeoposition( wxCommandEvent& event )
                               &ContactEditorData.GeneralGeographyListAltID,
                               &ContactEditorData.GeneralGeographyListPID,
                               &ContactEditorData.GeneralGeographyListType,
+                              &ContactEditorData.GeneralGeographyListDataType,
                               &ContactEditorData.GeneralGeographyListTokens,
                               &ContactEditorData.GeneralGeographyListMediatype,
                               &ContactEditorData.GeneralGeographyListPref,
@@ -576,6 +582,7 @@ void frmContactEditor::ModifyGeneralGeoposition( wxCommandEvent& event )
                               &ContactEditorData.GeneralGeographyListAltID,
                               &ContactEditorData.GeneralGeographyListPID,
                               &ContactEditorData.GeneralGeographyListType,
+                              &ContactEditorData.GeneralGeographyListDataType,
                               &ContactEditorData.GeneralGeographyListTokens,
                               &ContactEditorData.GeneralGeographyListMediatype,
                               &ContactEditorData.GeneralGeographyListPref,
@@ -602,8 +609,9 @@ void frmContactEditor::DeleteGeneralGeoposition( wxCommandEvent& event )
     
     DeleteMapData(intSelectedData, &ContactEditorData.GeneralGeographyList,
                   &ContactEditorData.GeneralGeographyListAltID, &ContactEditorData.GeneralGeographyListPID,
-                  &ContactEditorData.GeneralGeographyListType, &ContactEditorData.GeneralGeographyListTokens,
-                  &ContactEditorData.GeneralGeographyListMediatype, &ContactEditorData.GeneralGeographyListPref);
+                  &ContactEditorData.GeneralGeographyListType, &ContactEditorData.GeneralGeographyListDataType,
+                 &ContactEditorData.GeneralGeographyListTokens, &ContactEditorData.GeneralGeographyListMediatype, 
+                 &ContactEditorData.GeneralGeographyListPref);
     
 }
 
@@ -668,13 +676,11 @@ void frmContactEditor::DeleteGeneralRelated( wxCommandEvent& event )
     
     lboRelated->DeleteItem(longSelected);
     
-    GeneralRelatedList.erase(intSelectedData);
-    GeneralRelatedListRelType.erase(intSelectedData);
-    GeneralRelatedListAltID.erase(intSelectedData);
-    GeneralRelatedListPID.erase(intSelectedData);
-    GeneralRelatedListType.erase(intSelectedData);
-    GeneralRelatedListTokens.erase(intSelectedData);
-    GeneralRelatedListPref.erase(intSelectedData);
+    DeleteMapData(intSelectedData, &ContactEditorData.GeneralRelatedList,
+       &ContactEditorData.GeneralRelatedListRelType, &ContactEditorData.GeneralRelatedListAltID,
+       &ContactEditorData.GeneralRelatedListPID, &ContactEditorData.GeneralRelatedListType,
+       &ContactEditorData.GeneralRelatedListTokens, &ContactEditorData.GeneralRelatedListPref);
+    
 }
 
 void frmContactEditor::AddGeneralWebsite( wxCommandEvent& event )
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy