mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-07-19 12:34:31 -04:00
Fix for editing contact when it was deleted via Center. Edited contact cannot be saved if it was deleted earlier. Proper communication is shown. Fix for phonebook app was not handling database notifications correctly.
25 lines
591 B
C++
25 lines
591 B
C++
// Copyright (c) 2017-2023, Mudita Sp. z.o.o. All rights reserved.
|
|
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
|
|
|
|
#include "QueryContactRemove.hpp"
|
|
|
|
#include <string>
|
|
|
|
using namespace db::query;
|
|
|
|
ContactRemove::ContactRemove(unsigned int id) : Query(Query::Type::Delete), id(id)
|
|
{}
|
|
|
|
ContactRemoveResult::ContactRemoveResult(bool result) : result(result)
|
|
{}
|
|
|
|
[[nodiscard]] auto ContactRemove::debugInfo() const -> std::string
|
|
{
|
|
return "ContactRemove";
|
|
}
|
|
|
|
[[nodiscard]] auto ContactRemoveResult::debugInfo() const -> std::string
|
|
{
|
|
return "ContactRemoveResult";
|
|
}
|