summaryrefslogtreecommitdiff
path: root/src/kolabcontact.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2012-04-04 09:43:52 (GMT)
committerChristian Mollekopf <chrigi_1@fastmail.fm>2012-04-04 09:43:52 (GMT)
commit5be9ac77cc026fe2435d4d82025c93764454f555 (patch)
tree05f967c0e2081cc5eb841493478fdd9bde41d45e /src/kolabcontact.cpp
parentdf09a3cd73cf73bcaac45a4dc3f23776d066a04e (diff)
downloadlibkolabxml-5be9ac77cc026fe2435d4d82025c93764454f555.tar.gz
Use the more general and standards compliant key property also in the API.
Diffstat (limited to 'src/kolabcontact.cpp')
-rw-r--r--src/kolabcontact.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/kolabcontact.cpp b/src/kolabcontact.cpp
index a959a2c..4f68b72 100644
--- a/src/kolabcontact.cpp
+++ b/src/kolabcontact.cpp
@@ -153,6 +153,7 @@ struct Contact::Private
std::vector<std::string> emailAddresses;
int emailAddressPreferredIndex;
std::vector<Geo> gpsPos;
+ std::vector<Key> keys;
Crypto crypto;
std::vector<CustomProperty> customProperties;
};
@@ -441,6 +442,16 @@ std::vector< Geo > Contact::gpsPos() const
return d->gpsPos;
}
+void Contact::setKeys(const std::vector<Key> &keys)
+{
+ d->keys = keys;
+}
+
+std::vector<Key> Contact::keys() const
+{
+ return d->keys;
+}
+
void Contact::setCrypto(const Kolab::Crypto& c)
{
d->crypto = c;