refs #199 , refs #85 Moved specialized value method into right place (impl, not proxy - it is a receiver method)

This specialized method can be removed with refs #116
This commit is contained in:
Klaus Basan
2014-04-01 12:12:01 +02:00
parent 3c23963a25
commit 0d53d44157
4 changed files with 30 additions and 34 deletions

View File

@@ -65,20 +65,8 @@ namespace BlackCore
}
/*
* DBus version of value
*/
BlackMisc::CStatusMessageList CContextSettingsProxy::value(const QString &path, const QString &command, QDBusVariant value, int unifiedBlackMetaType)
{
QVariant qv = value.variant();
if (qv.canConvert<QDBusArgument>())
{
// convert from QDBusArgument
int type = BlackMisc::firstBlackMetaType() + unifiedBlackMetaType; // unify
qv = BlackMisc::fixQVariantFromDbusArgument(qv, type);
}
// when called locally, this will call the virtual method
// of the concrete implementation in context_settings
return this->value(path, command, qv);
}
} // namespace