Qt 4.8
|
The QDBusUtil namespace contains a few functions that are of general use when dealing with D-Bus strings. More...
Enumerations | |
enum | AllowEmptyFlag { EmptyAllowed, EmptyNotAllowed } |
Functions | |
QString | argumentToString (const QVariant &arg) |
Dumps the contents of a QtDBus argument from arg into a string. More... | |
bool | checkBusName (const QString &name, AllowEmptyFlag empty, QDBusError *error) |
bool | checkErrorName (const QString &name, AllowEmptyFlag empty, QDBusError *error) |
bool | checkInterfaceName (const QString &name, AllowEmptyFlag empty, QDBusError *error) |
bool | checkMemberName (const QString &name, AllowEmptyFlag empty, QDBusError *error, const char *nameType=0) |
bool | checkObjectPath (const QString &path, AllowEmptyFlag empty, QDBusError *error) |
bool | isValidBasicType (int c) |
Returns true if c is a valid, basic D-Bus type. More... | |
bool | isValidBusName (const QString &busName) |
Returns true if busName is a valid bus name. More... | |
bool | isValidErrorName (const QString &errorName) |
Returns true if errorName is a valid error name. More... | |
bool | isValidFixedType (int c) |
Returns true if c is a valid, fixed D-Bus type. More... | |
bool | isValidInterfaceName (const QString &ifaceName) |
Returns true if this is ifaceName is a valid interface name. More... | |
bool | isValidMemberName (const QString &memberName) |
Returns true if memberName is a valid member name. More... | |
bool | isValidObjectPath (const QString &path) |
Returns true if path is valid object path. More... | |
bool | isValidPartOfObjectPath (const QString &part) |
bool | isValidSignature (const QString &signature) |
Returns true if signature is a valid D-Bus type signature for one or more types. More... | |
bool | isValidSingleSignature (const QString &signature) |
Returns true if signature is a valid D-Bus type signature for exactly one full type. More... | |
bool | isValidUniqueConnectionName (const QString &connName) |
Returns true if connName is a valid unique connection name. More... | |
The QDBusUtil namespace contains a few functions that are of general use when dealing with D-Bus strings.
Enumerator | |
---|---|
EmptyAllowed | |
EmptyNotAllowed |
Definition at line 94 of file qdbusutil_p.h.
Q_DBUS_EXPORT QString QDBusUtil::argumentToString | ( | const QVariant & | arg | ) |
Dumps the contents of a QtDBus argument from arg into a string.
Definition at line 324 of file qdbusutil.cpp.
Referenced by debugVariantList().
|
inline |
Definition at line 111 of file qdbusutil_p.h.
Referenced by QDBusAbstractInterfacePrivate::canMakeCalls(), checkIfValid(), and QDBusMessagePrivate::toDBusMessage().
|
inline |
Definition at line 149 of file qdbusutil_p.h.
Referenced by QDBusMessagePrivate::toDBusMessage().
|
inline |
Definition at line 99 of file qdbusutil_p.h.
Referenced by checkIfValid(), and QDBusMessagePrivate::toDBusMessage().
|
inline |
Definition at line 135 of file qdbusutil_p.h.
Referenced by QDBusMessagePrivate::toDBusMessage().
|
inline |
Definition at line 123 of file qdbusutil_p.h.
Referenced by QDBusAbstractInterfacePrivate::canMakeCalls(), checkIfValid(), and QDBusMessagePrivate::toDBusMessage().
Q_DBUS_EXPORT bool QDBusUtil::isValidBasicType | ( | int | c | ) |
Returns true if c is a valid, basic D-Bus type.
Definition at line 542 of file qdbusutil.cpp.
Referenced by QDBusMarshaller::appendCrossMarshalling(), and QDBusMarshaller::beginMap().
Q_DBUS_EXPORT bool QDBusUtil::isValidBusName | ( | const QString & | busName | ) |
Returns true if busName is a valid bus name.
A valid bus name is either a valid unique connection name or follows the rules:
Definition at line 435 of file qdbusutil.cpp.
Referenced by checkBusName(), and QDBusConnection::connect().
Q_DBUS_EXPORT bool QDBusUtil::isValidErrorName | ( | const QString & | errorName | ) |
Returns true if errorName is a valid error name.
Valid error names are valid interface names and vice-versa, so this function is actually an alias for isValidInterfaceName.
Definition at line 494 of file qdbusutil.cpp.
Referenced by checkErrorName().
Q_DBUS_EXPORT bool QDBusUtil::isValidFixedType | ( | int | c | ) |
Returns true if c is a valid, fixed D-Bus type.
Definition at line 554 of file qdbusutil.cpp.
Referenced by QDBusMarshaller::appendCrossMarshalling().
Q_DBUS_EXPORT bool QDBusUtil::isValidInterfaceName | ( | const QString & | ifaceName | ) |
Returns true if this is ifaceName is a valid interface name.
Valid interface names must:
Definition at line 367 of file qdbusutil.cpp.
Referenced by checkInterfaceName(), QDBusConnection::connect(), QDBusConnection::disconnect(), QDBusXmlParser::interfaces(), isValidErrorName(), QDBusXmlParser::object(), and parseAnnotations().
Q_DBUS_EXPORT bool QDBusUtil::isValidMemberName | ( | const QString & | memberName | ) |
Returns true if memberName is a valid member name.
A valid member name does not exceed 255 characters in length, is not empty, is composed only of ASCII letters, digits and underscores, but does not start with a digit.
Definition at line 472 of file qdbusutil.cpp.
Referenced by checkMemberName(), QDBusXmlParser::interfaces(), and isValidInterfaceName().
Q_DBUS_EXPORT bool QDBusUtil::isValidObjectPath | ( | const QString & | path | ) |
Returns true if path is valid object path.
Valid object paths follow the rules:
Definition at line 515 of file qdbusutil.cpp.
Referenced by QDBusObjectPath::check(), checkObjectPath(), QDBusConnection::connect(), QDBusXmlParser::object(), QDBusConnection::objectRegisteredAt(), QDBusConnection::registerObject(), and QDBusConnection::unregisterObject().
Q_DBUS_EXPORT bool QDBusUtil::isValidPartOfObjectPath | ( | const QString & | part | ) |
See QDBusUtil::isValidObjectPath
Definition at line 338 of file qdbusutil.cpp.
Referenced by generateSubObjectXml(), and isValidObjectPath().
Q_DBUS_EXPORT bool QDBusUtil::isValidSignature | ( | const QString & | signature | ) |
Returns true if signature is a valid D-Bus type signature for one or more types.
This function returns true if it can all of signature into valid, individual types and no characters remain in signature.
Definition at line 571 of file qdbusutil.cpp.
Referenced by QDBusSignature::check().
Q_DBUS_EXPORT bool QDBusUtil::isValidSingleSignature | ( | const QString & | signature | ) |
Returns true if signature is a valid D-Bus type signature for exactly one full type.
This function tries to convert the type signature into a D-Bus type and, if it succeeds and no characters remain in the signature, it returns true.
Definition at line 593 of file qdbusutil.cpp.
Referenced by QDBusArgumentPrivate::createSignature(), QDBusXmlParser::interfaces(), and parseArgs().
Q_DBUS_EXPORT bool QDBusUtil::isValidUniqueConnectionName | ( | const QString & | connName | ) |
Returns true if connName is a valid unique connection name.
Unique connection names start with a colon (":") and are followed by a list of dot-separated components composed of ASCII letters, digits, the hyphen or the underscore ("_") character.
Definition at line 393 of file qdbusutil.cpp.
Referenced by QDBusConnectionPrivate::getNameOwner(), and isValidBusName().