2019-09-08 18:06:43 +02:00
|
|
|
#pragma once
|
|
|
|
|
2019-09-10 23:55:43 +02:00
|
|
|
#include <boost/optional.hpp>
|
|
|
|
|
|
|
|
#include "providers/irc/Irc2.hpp"
|
|
|
|
#include "widgets/BaseWindow.hpp"
|
2019-09-08 18:06:43 +02:00
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class IrcConnectionEditor;
|
|
|
|
}
|
|
|
|
|
2019-09-10 23:55:43 +02:00
|
|
|
namespace chatterino {
|
|
|
|
|
2019-09-11 13:51:48 +02:00
|
|
|
struct IrcServerData;
|
2019-09-10 23:55:43 +02:00
|
|
|
|
2019-09-08 18:06:43 +02:00
|
|
|
class IrcConnectionEditor : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2019-09-11 13:51:48 +02:00
|
|
|
explicit IrcConnectionEditor(const IrcServerData &data, bool isAdd = false,
|
2019-09-10 23:55:43 +02:00
|
|
|
QWidget *parent = nullptr);
|
2019-09-08 18:06:43 +02:00
|
|
|
~IrcConnectionEditor();
|
|
|
|
|
2019-09-11 13:51:48 +02:00
|
|
|
IrcServerData data();
|
2019-09-10 23:55:43 +02:00
|
|
|
|
2019-09-08 18:06:43 +02:00
|
|
|
private:
|
2019-09-10 23:55:43 +02:00
|
|
|
Ui::IrcConnectionEditor *ui_;
|
2019-09-11 13:51:48 +02:00
|
|
|
IrcServerData data_;
|
2019-09-08 18:06:43 +02:00
|
|
|
};
|
2019-09-10 23:55:43 +02:00
|
|
|
|
|
|
|
} // namespace chatterino
|