Files
MuditaOS/module-db/queries/phonebook/QueryContactRemove.cpp
Lukasz Mastalerz 4f7ec2efd3 [CP-1831] Editing contact which is deleted via Center can still be saved but with incomplete data
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.
2023-02-24 10:28:55 +01:00

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";
}