diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2012-03-29 09:53:06 -0300 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-04-16 00:07:25 +0200 |
commit | 65e75acd05b16fea11d85f3a6a330d50c8ce7c5d (patch) | |
tree | 60e8b8eb1c60910ecea4dde2d0a35cdac16e93e3 /src/dbus | |
parent | 51fecf80b7643035159bf79970231ee2f4017af5 (diff) |
Update the error codes in QtDBus
Change the old com.trolltech ones to org.qtproject and introduce Use
the alternate domain name for the Qt Project because the dash
character is not valid in interface and error names.
Task-number: QTBUG-23274
Change-Id: Iac1699e70525d67f983c10560932acff6b2ecde6
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
Diffstat (limited to 'src/dbus')
-rw-r--r-- | src/dbus/qdbuserror.cpp | 37 | ||||
-rw-r--r-- | src/dbus/qdbuserror.h | 2 |
2 files changed, 20 insertions, 19 deletions
diff --git a/src/dbus/qdbuserror.cpp b/src/dbus/qdbuserror.cpp index 713ef75a93..9b21adee45 100644 --- a/src/dbus/qdbuserror.cpp +++ b/src/dbus/qdbuserror.cpp @@ -93,12 +93,12 @@ org.freedesktop.DBus.Error.UnknownMethod org.freedesktop.DBus.Error.TimedOut org.freedesktop.DBus.Error.InvalidSignature org.freedesktop.DBus.Error.UnknownInterface -com.trolltech.QtDBus.Error.InternalError org.freedesktop.DBus.Error.UnknownObject -com.trolltech.QtDBus.Error.InvalidService -com.trolltech.QtDBus.Error.InvalidObjectPath -com.trolltech.QtDBus.Error.InvalidInterface -com.trolltech.QtDBus.Error.InvalidMember +org.qtproject.QtDBus.Error.InternalError +org.qtproject.QtDBus.Error.InvalidService +org.qtproject.QtDBus.Error.InvalidObjectPath +org.qtproject.QtDBus.Error.InvalidInterface +org.qtproject.QtDBus.Error.InvalidMember */ // in the same order as KnownErrors! @@ -122,19 +122,19 @@ static const char errorMessages_string[] = "org.freedesktop.DBus.Error.TimedOut\0" "org.freedesktop.DBus.Error.InvalidSignature\0" "org.freedesktop.DBus.Error.UnknownInterface\0" - "com.trolltech.QtDBus.Error.InternalError\0" "org.freedesktop.DBus.Error.UnknownObject\0" - "com.trolltech.QtDBus.Error.InvalidService\0" - "com.trolltech.QtDBus.Error.InvalidObjectPath\0" - "com.trolltech.QtDBus.Error.InvalidInterface\0" - "com.trolltech.QtDBus.Error.InvalidMember\0" + "org.qtproject.QtDBus.Error.InternalError\0" + "org.qtproject.QtDBus.Error.InvalidService\0" + "org.qtproject.QtDBus.Error.InvalidObjectPath\0" + "org.qtproject.QtDBus.Error.InvalidInterface\0" + "org.qtproject.QtDBus.Error.InvalidMember\0" "\0"; static const int errorMessages_indices[] = { - 0, 6, 40, 76, 118, 153, 191, 231, - 273, 313, 349, 384, 421, 461, 501, 540, - 581, 617, 661, 705, 746, 787, 829, 874, - 918, 0 + 0, 6, 40, 76, 118, 153, 191, 231, + 273, 313, 349, 384, 421, 461, 501, 540, + 581, 617, 661, 705, 746, 787, 829, 874, + 918, -1 }; static const int errorMessages_count = sizeof errorMessages_indices / @@ -226,9 +226,12 @@ static inline QDBusError::ErrorType get(const char *name) (\c org.freedesktop.DBus.Error.TimedOut) \value InvalidSignature The type signature is not valid or compatible (\c org.freedesktop.DBus.Error.InvalidSignature) - \value UnknownInterface The interface is not known + \value UnknownInterface The interface is not known in this object + (\c org.freedesktop.DBus.Error.UnknownInterface) + \value UnknownObject The object path points to an object that does not exist + (\c org.freedesktop.DBus.Error.UnknownObject) + \value InternalError An internal error occurred - (\c com.trolltech.QtDBus.Error.InternalError) \value InvalidObjectPath The object path provided is invalid. @@ -237,8 +240,6 @@ static inline QDBusError::ErrorType get(const char *name) \value InvalidMember The member is invalid. \value InvalidInterface The interface is invalid. - - \value UnknownObject The remote object could not be found. */ #ifndef QT_BOOTSTRAPPED diff --git a/src/dbus/qdbuserror.h b/src/dbus/qdbuserror.h index b73ad34db1..a79e66cc04 100644 --- a/src/dbus/qdbuserror.h +++ b/src/dbus/qdbuserror.h @@ -80,8 +80,8 @@ public: TimedOut, InvalidSignature, UnknownInterface, - InternalError, UnknownObject, + InternalError, InvalidService, InvalidObjectPath, InvalidInterface, |