/** * Compare this error with another one. * * \param other The other error to compare to. * \return \c true if the two errors have the same name and message * or \c false otherwise. */ bool DBusError::operator==(const DBusError &other) const { if (!isValid() && !other.isValid()) { return true; } else if (!isValid() || !other.isValid()) { return false; } return mPriv->name == other.mPriv->name && mPriv->message == other.mPriv->message; }
void BaseChannelTextType::Adaptee::acknowledgePendingMessages(const Tp::UIntList &IDs, const Tp::Service::ChannelTypeTextAdaptor::AcknowledgePendingMessagesContextPtr &context) { qDebug() << "BaseConnectionContactsInterface::acknowledgePendingMessages " << IDs; DBusError error; mInterface->acknowledgePendingMessages(IDs, &error); if (error.isValid()) { context->setFinishedWithError(error.name(), error.message()); return; } context->setFinished(); }