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);
wxString PageData;
wxFileSystem::AddHandler(new wxMemoryFSHandler);
- //wxMemoryFSHandler::AddFile();
PageData.append(wxT("<html>"));
PageData.append(wxT("<head>"));
// 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();
if (FNList.PropCount > 0){
FNList.PropValues[0].Trim();
+ CaptureString(&FNList.PropValues[0], false);
PageData.append(FNList.PropValues[0]);
}
} 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);
}
- 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"));
int intSize,
std::map<wxString,wxString> *SplitData){
+ // Split the property data into SplitData.
+
wxString DataStr;
wxStringTokenizer PropertyElement;
wxString PropertyName;