Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Win32 Support: Subroutines for Windows SSL support.
[xestiaab/.git] / source / common / getcontactinfo.cpp
index c9e2256..2941aba 100644 (file)
@@ -36,6 +36,8 @@
 void LoadContactData(vCard *vCardObj, wxHtmlWindow *HTMLObj, wxString SID, 
        wxString OldSID, std::map<wxString, wxString> *MemoryFSList){
 
+       // Load the vCard contact data into the wxHTMLWindow given.
+
        // Show message to user that the contact information is loading.
 
        HTMLObj->SetBorders(0);
@@ -43,7 +45,6 @@ void LoadContactData(vCard *vCardObj, wxHtmlWindow *HTMLObj, wxString SID,
        wxString PageData;
        
        wxFileSystem::AddHandler(new wxMemoryFSHandler);
-       //wxMemoryFSHandler::AddFile();
        
        PageData.append(wxT("<html>"));
        PageData.append(wxT("<head>"));
@@ -94,7 +95,6 @@ void LoadContactData(vCard *vCardObj, wxHtmlWindow *HTMLObj, wxString SID,
        // MAke sure new session ID doesn't conflict with existing
        // data. If there is a match, generate a new one and check again.
        
-       bool SIDMatch = FALSE;
        wxString SIDTemp;
        
        for (std::map<wxString, wxString>::iterator striter = MemoryFSList->begin();
@@ -133,11 +133,20 @@ void LoadContactData(vCard *vCardObj, wxHtmlWindow *HTMLObj, wxString SID,
        
        // Name (Display As)
        
+       ArrayvCardOutData FNList;
+       FNList = vCardObj->GetByPartial(wxT("FN"));
+       
        PageData.append(wxT("<table style=\"background: #cccccc; width: 100%\">"));
        PageData.append(wxT("<tr>"));
        PageData.append(wxT("<td style=\"width:100%\">"));
        PageData.append(wxT("<h2>"));
-       PageData.append(vCardObj->Get(wxT("FN")));
+       
+       if (FNList.PropCount > 0){
+               FNList.PropValues[0].Trim();
+        CaptureString(&FNList.PropValues[0], false);
+               PageData.append(FNList.PropValues[0]);
+       }
+       
        PageData.append(wxT("</h2>"));
        PageData.append(wxT("</td>"));
        PageData.append(wxT("<td style=\"width: 200px;\">"));
@@ -288,23 +297,6 @@ void LoadContactData(vCard *vCardObj, wxHtmlWindow *HTMLObj, wxString SID,
                                        } else {
                                        
                                        }
-                                       
-                                       /*int PointX = PointXBase;
-                                       int PointY = PointYBase;
-                                       int PointW = PointWBase;
-                                       int PointH = PointHBase;*/
-
-                                       // Bottom Left Method
-                                       
-                                       /*int PointX = wxAtoi(PhotoRectData.GetNextToken());
-                                       int PointY = photo.GetHeight() - wxAtoi(PhotoRectData.GetNextToken()) - 340;
-                                       int PointW = wxAtoi(PhotoRectData.GetNextToken());
-                                       int PointH = wxAtoi(PhotoRectData.GetNextToken());*/
-                                       
-                                       // Bottom Right Method
-                                       
-                                       /*int PointXRemain = photo.GetWidth() - PointX - 140;
-                                       int PointYRemain = photo.GetHeight() - PointY - 140;*/
                                                                                
                                        PhotoRectPoints.SetX(PointX);
                                        PhotoRectPoints.SetY(PointY);
@@ -502,13 +494,6 @@ void LoadContactData(vCard *vCardObj, wxHtmlWindow *HTMLObj, wxString SID,
        
        }
        
-       bool MultiLogoIcon = FALSE;
-       bool MultiPhotoIcon = FALSE;
-       bool SoundIcon = FALSE;
-       bool KeyIcon = FALSE;
-       bool VendorIcon = FALSE;
-       bool XTokenIcon = FALSE;
-       
        // Process Birthday
        
        ContactData = vCardObj->GetByPartial(wxT("BDAY"));
@@ -1649,6 +1634,8 @@ void SplitPropertyData(wxString *PropertyLine,
        int intSize,
        std::map<wxString,wxString> *SplitData){
        
+       // Split the property data into SplitData.
+       
        wxString DataStr;
        wxStringTokenizer PropertyElement;
        wxString PropertyName;
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