mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-07-04 21:27:30 -04:00
* 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.
36 lines
674 B
C++
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*/
|