mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-02-02 02:13:02 -05:00
24 lines
644 B
C++
24 lines
644 B
C++
// Copyright (c) 2017-2020, Mudita Sp. z.o.o. All rights reserved.
|
|
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
|
|
|
|
#include "BaseThreadsRecordModel.hpp"
|
|
#include "ListView.hpp"
|
|
#include <service-db/DBServiceAPI.hpp>
|
|
|
|
BaseThreadsRecordModel::BaseThreadsRecordModel(app::Application *app) : DatabaseModel(app)
|
|
{
|
|
requestRecordsCount();
|
|
}
|
|
|
|
unsigned int BaseThreadsRecordModel::requestRecordsCount()
|
|
{
|
|
return recordsCount;
|
|
}
|
|
|
|
bool BaseThreadsRecordModel::updateRecords(std::vector<ThreadListStruct> records)
|
|
{
|
|
DatabaseModel::updateRecords(std::move(records));
|
|
list->onProviderDataUpdate();
|
|
return true;
|
|
}
|