diff options
Diffstat (limited to 'qt/RGBController/irc.h')
-rw-r--r-- | qt/RGBController/irc.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/qt/RGBController/irc.h b/qt/RGBController/irc.h new file mode 100644 index 0000000..b9bdefc --- /dev/null +++ b/qt/RGBController/irc.h @@ -0,0 +1,33 @@ +#ifndef IRC_H +#define IRC_H + +#include <QtNetwork/QTcpSocket> +#include <QDebug> + +class irc : public QObject +{ + Q_OBJECT + public: + explicit irc(QObject *parent = 0); + void setup(QString srv, int p, QString c, QString n); + void discon(); + void sendmsg(QString msg); + private: + QTcpSocket *socket; + QString server; + int port; + QString channel; + QString name; + QString buf; + private slots: + void read(); + void con(); + void handle(QString str); + + signals: + void sendcmd(QString cmd); + + public slots: +}; + +#endif // IRC_H |