Files
MuditaOS/module-apps/application-messages/widgets/ThreadItem.hpp
kkleczkowski b66ae1fa8b Edg 2286 browsing history of conversations (#92)
* WiP on thread view.

* Missing db code.

* Fixes in sericeDB, working on listView in threads window.

* Changes in thread Db message.

* Missing responseTo value bug tracking.

* Fixed threads DB getter.

* Show threads list.

* Added missing code in service-db.

* Small fixes.

* WiP listView swich page.

* Code clean-up.

* Code formatted.

* PR sugestions applied.
2019-11-27 10:09:03 +01:00

36 lines
674 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);
};
} /*namespace gui*/