Add viewing logs to UserInfoPopup (#548)
* Add cbenni logviewer * Remove unneeded includes * Updated getLogs to check for logs on Overrustle will check logs on overrustle if none were found on cbenni * Formatting, fix some bugs * Fixes per PR comments * Should really take more time when pushing * Changes per PR, simplify code a lot * Style/formatting fixes
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
#pragma once
|
||||
|
||||
#include "common/Channel.hpp"
|
||||
#include "widgets/BaseWindow.hpp"
|
||||
|
||||
namespace chatterino {
|
||||
|
||||
class Channel;
|
||||
class ChannelView;
|
||||
|
||||
class LogsPopup : public BaseWindow
|
||||
{
|
||||
public:
|
||||
LogsPopup();
|
||||
|
||||
void setInfo(std::shared_ptr<Channel> channel, QString userName);
|
||||
|
||||
private:
|
||||
ChannelView *channelView_ = nullptr;
|
||||
ChannelPtr channel_ = Channel::getEmpty();
|
||||
|
||||
QString userName_;
|
||||
|
||||
void initLayout();
|
||||
void setMessages(std::vector<MessagePtr> &messages);
|
||||
void getOverrustleLogs();
|
||||
void getLogviewerLogs();
|
||||
};
|
||||
|
||||
} // namespace chatterino
|
||||
Reference in New Issue
Block a user