Files
MuditaOS/module-apps/application-messages/widgets/ThreadItem.hpp
Radoslaw Wicik a8573a404c Apply new style
2020-03-17 10:03:16 +01:00

42 lines
910 B
C++

/*
* ThreadItem.hpp
*
* Created on: 15 lis 2019
* Author: kuba
*/
#pragma once
#include "Label.hpp"
#include "Image.hpp"
#include "ListItem.hpp"
#include "ThreadModel.hpp"
namespace gui
{
class ThreadItem : public ListItem
{
private:
ThreadModel *model = nullptr;
std::shared_ptr<ThreadRecord> thread = nullptr;
gui::Label *contact = nullptr;
gui::Label *timestamp = nullptr;
gui::Label *preview = nullptr;
gui::Image *dot = nullptr;
public:
ThreadItem(ThreadModel *model);
bool onDimensionChanged(const BoundingBox &oldDim, const BoundingBox &newDim) override;
void setThreadItem(std::shared_ptr<ThreadRecord> &thread);
std::shared_ptr<ThreadRecord> getThreadItem()
{
return thread;
}
};
} /*namespace gui*/