summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2014-05-16 15:53:37 (GMT)
committerChristian Mollekopf <chrigi_1@fastmail.fm>2014-05-16 15:57:39 (GMT)
commit07fce53d00a2bb32de2096b6b80ba20b76dec2cb (patch)
tree6dfdd03384860749f0c53dc956f445f30125c5f1
parent556b1d23074ddab117e2045f28a806324dbecf62 (diff)
downloadlibkolabxml-07fce53d00a2bb32de2096b6b80ba20b76dec2cb.tar.gz
Use COMPLETED for the completed status instead of OPAQUE.
The OPAQUE value get's translated to completed for backwards compatibility. BUG: 3024
-rw-r--r--src/xcalconversions.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/xcalconversions.h b/src/xcalconversions.h
index 923646b..3fd982d 100644
--- a/src/xcalconversions.h
+++ b/src/xcalconversions.h
@@ -57,7 +57,8 @@ const char* const THISANDFUTURE = "THISANDFUTURE";
const char* const BASE64 = "BASE64";
const char* const NEEDSACTION = "NEEDS-ACTION";
-const char* const COMPLETED = "OPAQUE";
+const char* const COMPLETED = "COMPLETED";
+const char* const COMPLETED_COMPAT = "OPAQUE";
const char* const INPROCESS = "IN-PROCESS";
const char* const CANCELLED = "CANCELLED";
const char* const TENTATIVE = "TENTATIVE";
@@ -846,7 +847,7 @@ void setIncidenceProperties(I &inc, const T &prop)
const std::string &status = toString(*prop.status());
if (status == NEEDSACTION) {
inc.setStatus(StatusNeedsAction);
- } else if (status == COMPLETED) {
+ } else if (status == COMPLETED || status == COMPLETED_COMPAT) {
inc.setStatus(StatusCompleted);
} else if (status == INPROCESS) {
inc.setStatus(StatusInProcess);