Пример #1
0
static DBus::Variant variant_string(std::string s)
{
  DBus::Variant variant;
  DBus::MessageIter iter=variant.writer();
  iter << s;
  return variant;
}
Пример #2
0
static DBus::Variant variant_double(double d)
{
  DBus::Variant variant;
  DBus::MessageIter iter=variant.writer();
  iter << d;
  return variant;
}
Пример #3
0
static DBus::Variant variant_uint32(uint32_t i)
{
  DBus::Variant variant;
  DBus::MessageIter iter=variant.writer();
  iter << i;
  return variant;
}
Пример #4
0
	DBus::Variant to_variant(const T &value)
	{
		DBus::Variant v;
		DBus::MessageIter iter = v.writer();
		iter << value;
		return v;
	}
Пример #5
0
DBus::Variant contentAccessModuleServer::createVariantUint16(uint16_t value)
{
    DBus::Variant var;
    DBus::MessageIter iter = var.writer();
    iter.append_uint16(value);
    return var;
}
Пример #6
0
DBus::Variant contentAccessModuleServer::createVariantString(std::string str)
{
    DBus::Variant var;
    DBus::MessageIter iter = var.writer();
    iter.append_string(str.c_str());
    return var;
}
Пример #7
0
	T from_variant(const DBus::Variant &v)
	{
		T value;
		DBus::MessageIter iter = v.reader();
		iter >> value;
		return value;
	}
Пример #8
0
void AudioSource::do_property_get
(DBus::InterfaceAdaptor &interface, const std::string &property, DBus::Variant &value)
{
	value.clear();

    auto iter = _prop_handler.find(interface.name() + "." + property);
    if (iter == _prop_handler.end())
        throw DBus::ErrorFailed("Requested interface or property not found");
    iter->second.Get(interface, property, value);
}