summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-04-17 17:06:02 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-04-17 17:08:07 +0200
commit5eff55bfa868f768674407fbcdbb18c0b225d99c (patch)
tree6321158ce271859bc9649d70fb07b1de002ff083 /shell
parentc110559268461dd3b7b8e28d24e36fdbcc25bb17 (diff)
Don't throw UnknownPropertyException for givenname/sn from KDE backends
Open TODO to actually obtain values for them, instead of returning an empty css::beans::Optional representing "no value available." Change-Id: Iceb286e9873216f7bc36bd88b09ac03bd3a2c895
Diffstat (limited to 'shell')
-rw-r--r--shell/source/backends/kde4be/kde4backend.cxx3
-rw-r--r--shell/source/backends/kdebe/kdebackend.cxx3
2 files changed, 6 insertions, 0 deletions
diff --git a/shell/source/backends/kde4be/kde4backend.cxx b/shell/source/backends/kde4be/kde4backend.cxx
index 4670affff438..05931bd249ea 100644
--- a/shell/source/backends/kde4be/kde4backend.cxx
+++ b/shell/source/backends/kde4be/kde4backend.cxx
@@ -178,6 +178,9 @@ css::uno::Any Service::getPropertyValue(OUString const & PropertyName)
enabled_
? kde4access::getValue(PropertyName)
: css::beans::Optional< css::uno::Any >());
+ } else if (PropertyName == "givenname" || PropertyName == "sn") {
+ return css::uno::makeAny(css::beans::Optional< css::uno::Any >());
+ //TODO: obtain values from KDE?
}
throw css::beans::UnknownPropertyException(
PropertyName, static_cast< cppu::OWeakObject * >(this));
diff --git a/shell/source/backends/kdebe/kdebackend.cxx b/shell/source/backends/kdebe/kdebackend.cxx
index 96b5a441ebff..77a561db2c7b 100644
--- a/shell/source/backends/kdebe/kdebackend.cxx
+++ b/shell/source/backends/kdebe/kdebackend.cxx
@@ -178,6 +178,9 @@ css::uno::Any Service::getPropertyValue(OUString const & PropertyName)
enabled_
? kdeaccess::getValue(PropertyName)
: css::beans::Optional< css::uno::Any >());
+ } else if (PropertyName == "givenname" || PropertyName == "sn") {
+ return css::uno::makeAny(css::beans::Optional< css::uno::Any >());
+ //TODO: obtain values from KDE?
}
throw css::beans::UnknownPropertyException(
PropertyName, static_cast< cppu::OWeakObject * >(this));