From 1b7a8f4fab5b16619081a7e2201d44e2d1a0f73b Mon Sep 17 00:00:00 2001 From: Renaud G Date: Sat, 6 Dec 2014 10:13:40 +0100 Subject: Add irc bot code --- irc/mainwindow.h | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 irc/mainwindow.h (limited to 'irc/mainwindow.h') diff --git a/irc/mainwindow.h b/irc/mainwindow.h new file mode 100644 index 0000000..9098e56 --- /dev/null +++ b/irc/mainwindow.h @@ -0,0 +1,34 @@ +#ifndef MAINWINDOW_H +#define MAINWINDOW_H + +#include +#include "diceparser.h" + +#include + +namespace Ui { +class MainWindow; +} + +class MainWindow : public QMainWindow +{ + Q_OBJECT + +public: + explicit MainWindow(QWidget *parent = 0); + ~MainWindow(); + +private: + Ui::MainWindow *ui; + QTcpSocket * socket; + DiceParser* m_parser; + +private slots: + void readData(); + void connectToServer(); + void disconnectFromServer(); + void authentificationProcess(); + void joinChannel(); +}; + +#endif // MAINWINDOW_H -- cgit v1.2.3-70-g09d2