mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-07-19 20:44:44 -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.
27 lines
674 B
C++
27 lines
674 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 "QueryContactAdd.hpp"
|
|
#include "ContactRecord.hpp"
|
|
|
|
#include <string>
|
|
|
|
using namespace db::query;
|
|
|
|
ContactAdd::ContactAdd(const ContactRecord &rec) : Query(Query::Type::Create), rec(rec)
|
|
{}
|
|
|
|
ContactAddResult::ContactAddResult(bool result, unsigned int id, bool duplicated)
|
|
: result(result), duplicated(duplicated), id(id)
|
|
{}
|
|
|
|
[[nodiscard]] auto ContactAdd::debugInfo() const -> std::string
|
|
{
|
|
return "ContactAdd";
|
|
}
|
|
|
|
[[nodiscard]] auto ContactAddResult::debugInfo() const -> std::string
|
|
{
|
|
return "ContactAddResult";
|
|
}
|