22 lines
324 B
C
22 lines
324 B
C
|
#pragma once
|
||
|
|
||
|
#include "slimchat.h"
|
||
|
#include "view.h"
|
||
|
|
||
|
class ViewChat : public View {
|
||
|
public:
|
||
|
ViewChat(TgTUI& tgtui);
|
||
|
virtual ~ViewChat();
|
||
|
|
||
|
void setChat(const SlimChat* chat);
|
||
|
int64_t getChat() const;
|
||
|
|
||
|
virtual void paint() override;
|
||
|
|
||
|
virtual int keyIn(int key) override;
|
||
|
|
||
|
private:
|
||
|
const SlimChat* chat = nullptr;
|
||
|
|
||
|
};
|