diff --git a/src/namedirectory.cpp b/src/namedirectory.cpp index fa848b239911e454842b6ffd6582aa3c77a4f8eb..8dffce6937ec3f690e453b6a8e25b196973c6910 100644 --- a/src/namedirectory.cpp +++ b/src/namedirectory.cpp @@ -62,7 +62,19 @@ void NameDirectoryPrivate::slotNameRegistrationEnded(const QString& accountId, i //Registered Name found void NameDirectoryPrivate::slotRegisteredNameFound(const QString& accountId, int status, const QString& address, const QString& name) { - qDebug() << "Registered Name found. Account:" << accountId << "status:" << status << "name:" << name; + switch (static_cast<NameDirectory::LookupStatus>(status)) { + case NameDirectory::LookupStatus::INVALID_NAME: + qDebug() << "lookup name is INVALID:" << name << accountId; + break; + case NameDirectory::LookupStatus::NOT_FOUND: + qDebug() << "lookup name NOT FOUND:" << name << accountId; + break; + case NameDirectory::LookupStatus::ERROR: + qDebug() << "lookup name ERROR:" << name << accountId; + break; + case NameDirectory::LookupStatus::SUCCESS: + break; + } Account* account = AccountModel::instance().getById(accountId.toLatin1());