Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Enhanced code for IMPP in frmContactEditor and frmContactEditorIM.
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Wed, 6 Jan 2016 17:49:47 +0000 (17:49 +0000)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Wed, 6 Jan 2016 17:49:47 +0000 (17:49 +0000)
source/contacteditor/frmContactEditor-General.cpp
source/contacteditor/frmContactEditor-Load.cpp
source/contacteditor/frmContactEditorIM.h

index f02eb83..65e933b 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);
     
 }
 
index 57ebb01..92990a9 100644 (file)
@@ -374,17 +374,17 @@ bool frmContactEditor::LoadContact(wxString Filename){
 
        // Process the instant messaging (IMPP).
        
-       LoadData(&ContactEditorData.GeneralIMList,
+       LoadData(&ContactEditorData.GeneralIMListTypeInfo,
                &ContactEditorData.GeneralIMListPref,
-               &ContactEditorData.GeneralIMListTypeInfo,
+               &ContactEditorData.GeneralIMList,
                lboIM,
-               &ContactEditorData.HomeIMList,
-               &ContactEditorData.HomeIMListPref,
                &ContactEditorData.HomeIMListTypeInfo,
+               &ContactEditorData.HomeIMListPref,
+               &ContactEditorData.HomeIMList,
                lboHomeIM,
-               &ContactEditorData.BusinessIMList,
-               &ContactEditorData.BusinessIMListPref,
                &ContactEditorData.BusinessIMListTypeInfo,
+               &ContactEditorData.BusinessIMListPref,
+               &ContactEditorData.BusinessIMList,
                lboBusinessIM,
                &IMPPCount);
 
index 1245951..d69772b 100644 (file)
@@ -47,6 +47,7 @@ class frmContactEditorIM : public frmContactEditorIMADT
                        std::map<int, wxString> *IMListAltID,
                        std::map<int, wxString> *IMListPID,
                        std::map<int, wxString> *IMListType,
+                       std::map<int, wxString> *IMListTypeInfo,
                        std::map<int, wxString> *IMListTokens,
                        std::map<int, wxString> *IMListMediatype,
                        std::map<int, int> *IMListPref,
@@ -60,11 +61,12 @@ class frmContactEditorIM : public frmContactEditorIMADT
                std::map<int, wxString> *IMListAltIDPtr;
                std::map<int, wxString> *IMListPIDPtr;
                std::map<int, wxString> *IMListTypePtr;
+               std::map<int, wxString> *IMListTypeInfoPtr;
                std::map<int, wxString> *IMListTokensPtr;
                std::map<int, wxString> *IMListMediatypePtr;
                std::map<int, int> *IMListPrefPtr;      
                wxListCtrl *IMListCtrlPtr;
-               int IMListIndex;
+               int IMListIndex = 0;
                SectionType EditSectionType;    
        
 };
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