Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Added the STATUS property to iCalendarJournal-Load2.vcf
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sun, 31 Jan 2016 14:53:29 +0000 (14:53 +0000)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sun, 31 Jan 2016 14:53:29 +0000 (14:53 +0000)
source/objects/calendarjournal/CalendarJournal.cpp

index 61beba0..dd920bc 100644 (file)
@@ -407,4 +407,50 @@ void CalendarJournalObject::ProcessData(){
                
        }
        
+       // Process the data from STATUS.
+       
+       DataReceived = ProcessTextVectors(&ObjectName, &ObjectData, false, "STATUS");
+       
+       if (DataReceived.begin() != DataReceived.end()){
+       
+               bool TokenData = false;
+               string PropertyTokens;
+               
+               PropertyNameData = (string*)&DataReceived.begin()->first;
+               
+               PropertyData = SplitValues(*PropertyNameData);
+               
+               for(map<string,string>::iterator iter = PropertyData.begin();
+                       iter != PropertyData.end(); iter++){
+                       
+                       if (iter->first == "LANGUAGE"){
+                               
+                               StatusLanguage = iter->second;
+                               
+                       } else {
+                               
+                               if (TokenData == false){
+                                       TokenData = true;
+                               } else {
+                                       PropertyTokens += ";";
+                               }
+                               
+                               PropertyTokens += iter->first;
+                               PropertyTokens += "=";
+                               PropertyTokens += iter->second;
+                               
+                       }
+                               
+               }
+               
+               if (PropertyTokens.size() > 0){
+                       
+                       StatusTokens = PropertyTokens;
+                       
+               }
+               
+               StatusData = DataReceived.begin()->second;
+               
+       }
+       
 }
\ No newline at end of file
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