mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-07-25 07:24:20 -04:00
29 lines
812 B
C++
29 lines
812 B
C++
// Copyright (c) 2017-2020, Mudita Sp. z.o.o. All rights reserved.
|
|
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
|
|
|
|
#pragma once
|
|
|
|
#include "DatabaseModel.hpp"
|
|
#include "Application.hpp"
|
|
#include "ListItemProvider.hpp"
|
|
#include "Common/Query.hpp"
|
|
#include "Interface/ThreadRecord.hpp"
|
|
|
|
#include <vector>
|
|
|
|
class BaseThreadsRecordModel : public app::DatabaseModel<ThreadRecord>, public gui::ListItemProvider
|
|
{
|
|
public:
|
|
BaseThreadsRecordModel() = delete;
|
|
BaseThreadsRecordModel(app::Application *app);
|
|
|
|
unsigned int requestRecordsCount() override;
|
|
bool updateRecords(std::vector<ThreadRecord> records) override;
|
|
void requestRecords(const uint32_t offset, const uint32_t limit) override;
|
|
|
|
app::Application *getApplication(void)
|
|
{
|
|
return application;
|
|
};
|
|
};
|