[Libreoffice-commits] core.git: shell/source

Stephan Bergmann sbergman at redhat.com
Fri Apr 17 08:11:51 PDT 2015


 shell/source/backends/kde4be/kde4backend.cxx |    3 +++
 shell/source/backends/kdebe/kdebackend.cxx   |    3 +++
 2 files changed, 6 insertions(+)

New commits:
commit 5eff55bfa868f768674407fbcdbb18c0b225d99c
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Fri Apr 17 17:06:02 2015 +0200

    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

diff --git a/shell/source/backends/kde4be/kde4backend.cxx b/shell/source/backends/kde4be/kde4backend.cxx
index 4670aff..05931bd 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 96b5a44..77a561d 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));


More information about the Libreoffice-commits mailing list