Home · All Classes · All Namespaces · Modules · Functions · Files |
Small container class, containing a D-Bus error. More...
#include <TelepathyQt/DBusError>
Public Member Functions | |
DBusError () | |
DBusError (const QString &name, const QString &message) | |
~DBusError () | |
bool | isValid () const |
bool | operator== (const DBusError &other) const |
bool | operator!= (const DBusError &other) const |
QString | name () const |
QString | message () const |
void | set (const QString &name, const QString &message) |
Small container class, containing a D-Bus error.
Tp::DBusError::DBusError | ( | ) |
Construct an empty DBusError
Construct a DBusError with the given error name and message.
name | The D-Bus error name. |
message | A human-readable description of the error. |
Tp::DBusError::~DBusError | ( | ) |
Class destructor.
|
inline |
Return whether this DBusError is set to contain an error or not.
true
if the error name and message have been set, or false
otherwise. bool Tp::DBusError::operator== | ( | const DBusError & | other | ) | const |
Compare this error with another one.
other | The other error to compare to. |
true
if the two errors have the same name and message or false
otherwise. bool Tp::DBusError::operator!= | ( | const DBusError & | other | ) | const |
Compare this error with another one.
other | The other error to compare to. |
false
if the two errors have the same name and message or true
otherwise. QString Tp::DBusError::name | ( | ) | const |
Return the D-Bus name of this error.
QString Tp::DBusError::message | ( | ) | const |
Return the human-readable description of the error.
Copyright © 2008-2011 Collabora Ltd. and Nokia Corporation | Telepathy-Qt 0.9.4 |