mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
f3235d036d
* Replaced 3rd party getting channel ID with own implementation. * Removed useless roomID_ from LogsPopup. * Refactored channelName_ in LogsPopup. * Cleaned up LogsPopup. * Removed getRoomID() method in LogsPopup.
37 lines
689 B
C++
37 lines
689 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 setInfo(std::shared_ptr<Channel> channel, QString userName);
|
|
|
|
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
|