From 2ce2f6376152402c3fc0d750720770b963a7d3cf Mon Sep 17 00:00:00 2001 From: daniel-Jones Date: Wed, 17 May 2017 01:13:47 +0930 Subject: Major update, UI redesigned to fit a smaller footprint using tabs and an irc bot has been introduced in the IRC tab to allow control of my leds from literally anywhere. --- qt/RGBController/irc.h | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 qt/RGBController/irc.h (limited to 'qt/RGBController/irc.h') 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 +#include + +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 -- cgit v1.2.3