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();
|
|
|
|
|
2018-11-03 15:37:56 +01:00
|
|
|
void setChannelName(QString channelName);
|
|
|
|
void setChannel(std::shared_ptr<Channel> channel);
|
|
|
|
void setTargetUserName(QString userName);
|
|
|
|
|
|
|
|
void getLogs();
|
2018-07-05 22:47:51 +02:00
|
|
|
|
|
|
|
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-10-27 10:53:12 +02:00
|
|
|
QString channelName_;
|
2018-07-23 14:50:09 +02:00
|
|
|
|
|
|
|
void initLayout();
|
|
|
|
void setMessages(std::vector<MessagePtr> &messages);
|
|
|
|
void getOverrustleLogs();
|
2018-10-27 10:53:12 +02:00
|
|
|
void getLogviewerLogs(const QString &roomID);
|
2018-07-05 22:47:51 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace chatterino
|