Not Logged In
|
Login
|
Register
Home
|
News
|
Projects
|
Releases
Bugs
|
RFE
|
Repositories
|
Help
projects
/
xestiaab
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added source code, header and unit tests for the FN vCard property member and value...
[xestiaab/.git]
/
source
/
contacteditor
/
ContactDataObject.cpp
diff --git
a/source/contacteditor/ContactDataObject.cpp
b/source/contacteditor/ContactDataObject.cpp
index
9ced5ea
..
28c29e7
100644
(file)
--- a/
source/contacteditor/ContactDataObject.cpp
+++ b/
source/contacteditor/ContactDataObject.cpp
@@
-77,6
+77,7
@@
ContactLoadStatus ContactDataObject::LoadFile(wxString Filename){
int ContactLineLen = 0;
int QuoteBreakPoint = 0;
int GroupCount = 0;
int ContactLineLen = 0;
int QuoteBreakPoint = 0;
int GroupCount = 0;
+ int FNCount = 0;
wxString ContactLine;
wxString PropertyLine;
wxString PropertySeg1;
wxString ContactLine;
wxString PropertyLine;
wxString PropertySeg1;
@@
-188,6
+189,11
@@
ContactLoadStatus ContactDataObject::LoadFile(wxString Filename){
ProcessMember(PropertySeg1, PropertySeg2, &GroupCount);
GroupCount++;
ProcessMember(PropertySeg1, PropertySeg2, &GroupCount);
GroupCount++;
+ } else if (Property == wxT("FN")){
+
+ ProcessFN(PropertySeg1, PropertySeg2, &FNCount);
+ FNCount++;
+
}
}
}
}
@@
-312,8
+318,6
@@
void ContactDataObject::ProcessMember(wxString PropertySeg1, wxString PropertySe
}
}
- //SplitValues(&PropertySeg1, &SplitPoints, &SplitLength, intPrevValue);
-
GroupsList.insert(std::make_pair(*GroupCount, PropertySeg2));
if (!PropertyTokens.IsEmpty()){
GroupsList.insert(std::make_pair(*GroupCount, PropertySeg2));
if (!PropertyTokens.IsEmpty()){
@@
-325,6
+329,12
@@
void ContactDataObject::ProcessMember(wxString PropertySeg1, wxString PropertySe
}
}
+void ContactDataObject::ProcessFN(wxString PropertySeg1, wxString PropertySeg2, int *FNCount){
+
+ FullNamesList.insert(std::make_pair(*FNCount, PropertySeg2));
+
+}
+
void SplitValues(wxString *PropertyLine,
std::map<int,int> *SplitPoints,
std::map<int,int> *SplitLength,
void SplitValues(wxString *PropertyLine,
std::map<int,int> *SplitPoints,
std::map<int,int> *SplitLength,
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software
Xestia Address Book
Xestia Calendar
Development
Xestia Gelforn
Everything else
About
News
Privacy Policy