mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-06-09 00:55:19 -04:00
This PR adds proper notification on call notifications coming from single number. To that end following changes have been introduced: * extension of Notification DB record with contact_id filed * use of `ContactRecordInterface` in `NotificationsRecordInterface` * extension of `Increment` query to require `PhoneNumber::View` * multiple minor changes on path from creating/handling `NotificationsRecord` to displaying respective notification.
29 lines
643 B
C++
29 lines
643 B
C++
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
|
|
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
|
|
|
|
#pragma once
|
|
|
|
#include <Common/Query.hpp>
|
|
#include <string>
|
|
|
|
namespace db::query::calllog
|
|
{
|
|
class SetAllRead : public Query
|
|
{
|
|
public:
|
|
SetAllRead();
|
|
|
|
[[nodiscard]] auto debugInfo() const -> std::string override;
|
|
};
|
|
|
|
class SetAllReadResult : public QueryResult
|
|
{
|
|
public:
|
|
explicit SetAllReadResult(bool ret);
|
|
[[nodiscard]] auto debugInfo() const -> std::string override;
|
|
|
|
const bool ret = true;
|
|
};
|
|
|
|
}; // namespace db::query::calllog
|