summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Mollekopf <mollekopf@kolabsys.com>2014-08-25 09:28:00 (GMT)
committerChristian Mollekopf <mollekopf@kolabsys.com>2014-08-25 09:28:00 (GMT)
commit1b064c60765902c3cb862ffe073eb869ace70b5f (patch)
treecb7c9dc86ff29b51b51fe1342d3687ebed43b613
parent9c92a5c46563b59d3ef9a9276f7d9abe94701294 (diff)
downloadlibkolabxml-1b064c60765902c3cb862ffe073eb869ace70b5f.tar.gz
Support for PARTSTAT INPROCESS and DELEGATED.
Patch by Thomas BrĂ¼derli. Conflicts: src/python/test.py
-rw-r--r--src/containers/kolabcontainers.h4
-rw-r--r--src/xcalconversions.h10
2 files changed, 13 insertions, 1 deletions
diff --git a/src/containers/kolabcontainers.h b/src/containers/kolabcontainers.h
index 7bd1d2b..af44c24 100644
--- a/src/containers/kolabcontainers.h
+++ b/src/containers/kolabcontainers.h
@@ -336,7 +336,9 @@ enum PartStatus {
PartAccepted,
PartDeclined,
PartTentative,
- PartDelegated
+ PartDelegated,
+ PartInProcess,
+ PartCompleted
};
enum Role {
diff --git a/src/xcalconversions.h b/src/xcalconversions.h
index b30053f..176470c 100644
--- a/src/xcalconversions.h
+++ b/src/xcalconversions.h
@@ -75,6 +75,8 @@ const char* const PARTDECLINED = "DECLINED";
const char* const PARTDELEGATED = "DELEGATED";
const char* const PARTNEEDSACTION = "NEEDS-ACTION";
const char* const PARTTENTATIVE = "TENTATIVE";
+const char* const PARTINPROCESS = "IN-PROCESS";
+const char* const PARTCOMPLETED = "COMPLETED";
const char* const CHAIR = "CHAIR";
const char* const NONPARTICIPANT = "NON-PARTICIPANT";
@@ -600,6 +602,10 @@ std::string mapPartStat(PartStatus status)
return PARTNEEDSACTION;
case PartTentative:
return PARTTENTATIVE;
+ case PartInProcess:
+ return PARTINPROCESS;
+ case PartCompleted:
+ return PARTCOMPLETED;
}
ERROR("PartStat not handled: " + status);
return std::string();
@@ -617,6 +623,10 @@ PartStatus mapPartStat(const std::string &status)
return PartNeedsAction;
} else if (status == PARTTENTATIVE) {
return PartTentative;
+ } else if (status == PARTINPROCESS) {
+ return PartInProcess;
+ } else if (status == PARTCOMPLETED) {
+ return PartCompleted;
}
ERROR("PartStat not handled: " + status);
return PartNeedsAction;