Don't throw UnknownPropertyException for givenname/sn from KDE backends

Open TODO to actually obtain values for them, instead of returning an empty
css:🫘:Optional representing "no value available."

Change-Id: Iceb286e9873216f7bc36bd88b09ac03bd3a2c895
This commit is contained in:
Stephan Bergmann
2015-04-17 17:06:02 +02:00
parent c110559268
commit 5eff55bfa8
2 changed files with 6 additions and 0 deletions

View File

@@ -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));

View File

@@ -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));