mirror-chatterino2/src/widgets/dialogs/LogsPopup.hpp

38 lines
681 B
C++
Raw Normal View History

#pragma once
#include "widgets/BaseWindow.hpp"
namespace chatterino {
class Channel;
class ChannelView;
class Channel;
using ChannelPtr = std::shared_ptr<Channel>;
struct Message;
using MessagePtr = std::shared_ptr<const Message>;
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;
ChannelPtr channel_;
2018-07-06 19:23:47 +02:00
QString userName_;
int roomID_;
void initLayout();
void setMessages(std::vector<MessagePtr> &messages);
void getRoomID();
void getOverrustleLogs();
void getLogviewerLogs();
};
} // namespace chatterino