mirror-chatterino2/src/widgets/dialogs/LogsPopup.hpp
Rasmus Karlsson bcebfca477 make /logs command better
previously you had to have a split open with the channel, that's not
required anymore.
2018-11-03 15:37:56 +01:00

41 lines
787 B
C++

#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 setChannelName(QString channelName);
void setChannel(std::shared_ptr<Channel> channel);
void setTargetUserName(QString userName);
void getLogs();
private:
ChannelView *channelView_ = nullptr;
ChannelPtr channel_;
QString userName_;
QString channelName_;
void initLayout();
void setMessages(std::vector<MessagePtr> &messages);
void getOverrustleLogs();
void getLogviewerLogs(const QString &roomID);
};
} // namespace chatterino