2020-10-18 15:54:48 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <boost/optional.hpp>
|
|
|
|
|
|
|
|
#include "providers/irc/Irc2.hpp"
|
|
|
|
#include "widgets/BaseWindow.hpp"
|
|
|
|
|
2021-05-08 15:57:00 +02:00
|
|
|
#include <QDialog>
|
|
|
|
|
2020-10-18 15:54:48 +02:00
|
|
|
namespace Ui {
|
|
|
|
class IrcConnectionEditor;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace chatterino {
|
|
|
|
|
|
|
|
struct IrcServerData;
|
|
|
|
|
|
|
|
class IrcConnectionEditor : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit IrcConnectionEditor(const IrcServerData &data, bool isAdd = false,
|
|
|
|
QWidget *parent = nullptr);
|
|
|
|
~IrcConnectionEditor();
|
|
|
|
|
|
|
|
IrcServerData data();
|
|
|
|
|
|
|
|
private:
|
|
|
|
Ui::IrcConnectionEditor *ui_;
|
|
|
|
IrcServerData data_;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace chatterino
|