244 const char *receivedType = 0;
252 if (receivedSignature == expectedSignature) {
266 if (receivedSignature.isEmpty())
267 receivedSignature =
"no signature";
271 "expected \"%2\" (%3)")
278 "expected \"%2\" (%3)")
The QVariant class acts like a union for the most common Qt data types.
bool isValid() const
Returns true if this is a valid error condition (i.e., if there was an error), otherwise false...
The QDBusArgument class is used to marshall and demarshall D-Bus arguments.
The QByteArray class provides an array of bytes.
The QDBusError class represents an error received from the D-Bus bus or from remote applications foun...
QString currentSignature() const
Returns the type signature of the D-Bus type this QDBusArgument object is currently pointing to...
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
int count(const T &t) const
Returns the number of occurrences of value in the list.
The QString class provides a Unicode character string.
static const char * typeToName(Type type)
Converts the enum representation of the storage type, typ, to its string representation.
QList< QVariant > arguments() const
Returns the list of arguments that are going to be sent or were received from D-Bus.
const T & at(int i) const
Returns the item at index position i in the list.
Type
This enum type defines the types of variable that a QVariant can contain.
QByteArray toLatin1() const Q_REQUIRED_RESULT
Returns a Latin-1 representation of the string as a QByteArray.
const char * typeName() const
Returns the name of the type stored in the variant.
QString arg(qlonglong a, int fieldwidth=0, int base=10, const QChar &fillChar=QLatin1Char(' ')) const Q_REQUIRED_RESULT
int userType() const
Returns the storage type of the value stored in the variant.
static QString fromLatin1(const char *, int size=-1)
Returns a QString initialized with the first size characters of the Latin-1 string str...
T qvariant_cast(const QVariant &value)
Returns the given value converted to the template type T.