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:
DatGuy1
2018-07-05 23:47:51 +03:00
committed by fourtf
parent eeb514c444
commit 086ae010b1
6 changed files with 191 additions and 1 deletions
+30
View File
@@ -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