2018-07-05 22:47:51 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "widgets/BaseWindow.hpp"
|
|
|
|
|
|
|
|
namespace chatterino {
|
|
|
|
|
|
|
|
class Channel;
|
|
|
|
class ChannelView;
|
|
|
|
|
2018-08-11 22:23:06 +02:00
|
|
|
class Channel;
|
|
|
|
using ChannelPtr = std::shared_ptr<Channel>;
|
|
|
|
|
|
|
|
struct Message;
|
|
|
|
using MessagePtr = std::shared_ptr<const Message>;
|
|
|
|
|
2018-07-05 22:47:51 +02:00
|
|
|
class LogsPopup : public BaseWindow
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
LogsPopup();
|
|
|
|
|
|
|
|
void setInfo(std::shared_ptr<Channel> channel, QString userName);
|
|
|
|
|
|
|
|
private:
|
2018-07-06 19:23:47 +02:00
|
|
|
ChannelView *channelView_ = nullptr;
|
2018-08-11 22:23:06 +02:00
|
|
|
ChannelPtr channel_;
|
2018-07-06 19:23:47 +02:00
|
|
|
|
|
|
|
QString userName_;
|
2018-07-23 14:50:09 +02:00
|
|
|
int roomID_;
|
|
|
|
|
|
|
|
void initLayout();
|
|
|
|
void setMessages(std::vector<MessagePtr> &messages);
|
|
|
|
void getRoomID();
|
|
|
|
void getOverrustleLogs();
|
|
|
|
void getLogviewerLogs();
|
2018-07-05 22:47:51 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace chatterino
|