mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
32 lines
609 B
C++
32 lines
609 B
C++
#pragma once
|
|
|
|
#include "pajlada/signals/signalholder.hpp"
|
|
#include "singletons/Updates.hpp"
|
|
#include "widgets/BaseWindow.hpp"
|
|
#include "widgets/Label.hpp"
|
|
|
|
class QPushButton;
|
|
|
|
namespace chatterino {
|
|
|
|
class UpdateDialog : public BaseWindow
|
|
{
|
|
public:
|
|
enum Button { Dismiss, Install };
|
|
|
|
UpdateDialog();
|
|
|
|
pajlada::Signals::Signal<Button> buttonClicked;
|
|
|
|
private:
|
|
void updateStatusChanged(Updates::Status status);
|
|
|
|
struct {
|
|
Label *label = nullptr;
|
|
QPushButton *installButton = nullptr;
|
|
} ui_;
|
|
|
|
pajlada::Signals::SignalHolder connections_;
|
|
};
|
|
|
|
} // namespace chatterino
|