// 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();
}
- 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"));
char strdata[64];
std::string uuidout;
- size_t readsize;
- int size = 0;
- int maxsize = 63;
-
while (fgets(strdata, sizeof(strdata), uuid_hdl) != NULL){
uuidout.append(strdata);
}
// Process the name data to get the required information.
int intPropertyLen = NameDataGet.Len();
- int intSplitSeek = 0;
int intSplitsFound = 0;
int intSplitSize = 0;
int intPrevValue = 0;
int SettingLineLen = SettingLine.Len();
int intDivider = 74;
- int intTimes = floor((SettingLine.Len() / intDivider));
int intSeek = 0;
int intLineSeek = 0;
- int intPrevLine;
bool FirstLine = TRUE;
// Remember to round down the calculation.
intSeek = intSeek + 3;
SettingLineLen = SettingLineLen + 3;
intLineSeek = 0;
- intPrevLine = intSeek;
FirstLine = FALSE;
}
intLineSeek++;
}
-
- /*
-
- for (int x = 0; x < intTimes; x++){
-
- if (x == 0){
- SettingLine.insert((intDivider - 1), wxT("\r\n "));
- } else if (x == intTimes){
-
- } else {
- if (x < intDivider){
- SettingLine.insert((intDivider * (x+1)) + (x * 3), wxT("\r\n "));
- }
- }
-
- intTimes = floor(SettingLine.Len() / intDivider);
-
- }
-
- */
ContactFile.Write(SettingLine);
wxString wxSPropertySeg2;
bool FoundBegin = FALSE;
- bool FoundEnd = FALSE;
bool FirstContact = TRUE;
wxString FirstContactData;
wxString ContactData;
int SettingLineLen = SettingLine.Len();
int intDivider = 74;
- int intTimes = floor((SettingLine.Len() / intDivider));
int intSeek = 0;
int intLineSeek = 0;
- int intPrevLine;
bool FirstLine = TRUE;
// Remember to round down the calculation.
intSeek = intSeek + 3;
SettingLineLen = SettingLineLen + 3;
intLineSeek = 0;
- intPrevLine = intSeek;
FirstLine = FALSE;
}
bool QuoteMode = FALSE;
bool PropertyFind = TRUE;
- bool HasExtraNicknames = FALSE;
- bool IgnoreGender = FALSE;
bool ExtraLineSeek = TRUE;
bool BirthdayProcessed = FALSE;
bool AnniversaryProcessed = FALSE;
- bool FNProcessed = FALSE;
bool GenderProcessed = FALSE;
bool NameProcessed = FALSE;
bool KindProcessed = FALSE;
bool OrganisationFirst = FALSE;
bool NoteFirst = FALSE;
bool PhotoFirst = FALSE;
- bool LogoFirst = FALSE;
- int intExtraNickname = 0;
wxString wxSProperty;
wxString wxSPropertySeg1;
wxString wxSPropertySeg2;
wxString wxSPropertyNextLine;
size_t ContactLineLen = 0;
int QuoteBreakPoint = 0;
- int FNCount = 0;
- int NameCount = 0;
- int NicknameCount = 0;
- int ADRCount = 0;
- int EmailCount = 0;
- int IMPPCount = 0;
- int TelCount = 0;
- int LangCount = 0;
- int TZCount = 0;
- int GeoCount = 0;
- int URLCount = 0;
- int RelatedCount = 0;
- int TitleCount = 0;
- int RoleCount = 0;
- int OrgCount = 0;
- int NoteCount = 0;
- int CategoryCount = 0;
- int PhotoCount = 0;
- int LogoCount = 0;
- int SoundCount = 0;
- int CalAdrCount = 0;
- int CalReqAdrCount = 0;
- int FreeBusyCount = 0;
- int KeyCount = 0;
- int VendorCount = 0;
- int XTokenCount = 0;
int ItemSeek = 1;
wxString strVer;
wxString PropertyName;
wxString PropertyValue;
wxString PropertyTokens;
- int intPrevValue = 5;
-
- intPrevValue = 4;
ContactDatav3.AddRaw(wxT("X-ADDRESSBOOKSERVER-KIND"), wxSPropertySeg2);
wxString PropertyName;
wxString PropertyValue;
wxString PropertyTokens;
- int intPrevValue = 7;
-
- intPrevValue = 6;
ContactDatav3.AddRaw(wxT("X-ADDRESSBOOKSERVER-MEMBER"), wxSPropertySeg2);
int intSplitsFound = 0;
int intSplitSize = 0;
int intPrevValue = 5;
- int intType = 0;
int intSplitPoint = 0;
intPrevValue = 4;
TelTypeUI.Append(wxT(","));
}
-
- if (TypePropertyName == wxT("home")){
-
- intType = 1;
-
- } else if (TypePropertyName == wxT("work")){
-
- intType = 2;
-
- }
if (TypePropertyName == wxT("text")){
bool PropertyFind = TRUE;
bool ExtraLineSeek = TRUE;
bool ExtraLineSeekSub = TRUE;
- bool BirthdayProcessed = FALSE;
- bool AnniversaryProcessed = FALSE;
- bool FNProcessed = FALSE;
- bool GenderProcessed = FALSE;
- bool NameProcessed = FALSE;
bool FNFirst = FALSE;
bool NicknameFirst = FALSE;
bool TitleFirst = FALSE;
bool OrganisationFirst = FALSE;
bool NoteFirst = FALSE;
bool PhotoFirst = FALSE;
- bool LogoFirst = FALSE;
- bool NameFirst = FALSE;
bool FoundData = FALSE;
- int intExtraNickname = 0;
wxString wxSProperty;
wxString wxSPropertyVCARD4;
wxString wxSPropertySeg1;
bool XVCard4Value = FALSE;
bool VCard3Value = FALSE;
- bool SeekItemData = FALSE;
wxString strVer;
}
- int FNCount = 0;
- int NameCount = 0;
- int NicknameCount = 0;
- int ADRCount = 0;
- int EmailCount = 0;
- int IMPPCount = 0;
- int TelCount = 0;
- int LangCount = 0;
- int TZCount = 0;
- int GeoCount = 0;
- int URLCount = 0;
- int RelatedCount = 0;
- int TitleCount = 0;
- int RoleCount = 0;
- int OrgCount = 0;
- int NoteCount = 0;
- int CategoryCount = 0;
- int PhotoCount = 0;
- int LogoCount = 0;
- int SoundCount = 0;
- int CalAdrCount = 0;
- int CalReqAdrCount = 0;
- int FreeBusyCount = 0;
- int KeyCount = 0;
- int VendorCount = 0;
- int XTokenCount = 0;
- int ItemSeek = 1;
- int MaxItemNumber = 0;
- int ItemOrdered = 0;
- int ItemUnordered = 0;
- int ItemNumber = 0;
size_t ItemStringSeekLen = 0;
- int ItemSeekSub = 0;
- int ItemSeekSecSub = 0;
std::map<int, wxString> NumberedName;
std::map<int, wxString> NumberedData;
XVCard4Value = FALSE;
VCard3Value = FALSE;
- SeekItemData = FALSE;
std::map<wxString, void*> ItemMapIndex;