diff options
author | daniel-Jones <daniel@danieljon.es> | 2018-03-10 20:00:20 +1030 |
---|---|---|
committer | daniel-Jones <daniel@danieljon.es> | 2018-03-10 20:00:20 +1030 |
commit | 883568bbc1c879a0eba51e7ad9c962fc343f810a (patch) | |
tree | 2b646bd692e92c2f139ad8eeea84cc1dac82fd6e | |
parent | 55a31f300ec443214b97a1a3f89f57aa2eef8549 (diff) | |
download | RGB-Controller-883568bbc1c879a0eba51e7ad9c962fc343f810a.tar.gz RGB-Controller-883568bbc1c879a0eba51e7ad9c962fc343f810a.zip |
-rw-r--r-- | arduino/rgb/rgb.ino | 19 | ||||
-rw-r--r-- | c/terminalcontroller/main.c | 191 | ||||
-rwxr-xr-x | c/terminalcontroller/rgb | bin | 13672 -> 14192 bytes | |||
-rwxr-xr-x | qt/RGBController/RGBController.pro.user | 2 | ||||
-rwxr-xr-x | qt/RGBController/controllerwindow.cpp | 19 | ||||
-rwxr-xr-x | qt/RGBController/controllerwindow.h | 19 | ||||
-rw-r--r-- | qt/RGBController/irc.cpp | 19 | ||||
-rw-r--r-- | qt/RGBController/irc.h | 19 | ||||
-rwxr-xr-x | qt/RGBController/main.cpp | 19 | ||||
-rw-r--r-- | qt/RGBController/server.cpp | 19 | ||||
-rw-r--r-- | qt/RGBController/server.h | 19 | ||||
-rw-r--r-- | qt/console/main.cpp | 19 | ||||
-rw-r--r-- | qt/consoleserver/irc.cpp | 19 | ||||
-rw-r--r-- | qt/consoleserver/irc.h | 19 | ||||
-rw-r--r-- | qt/consoleserver/main.cpp | 19 | ||||
-rw-r--r-- | qt/consoleserver/serial.cpp | 19 | ||||
-rw-r--r-- | qt/consoleserver/serial.h | 19 | ||||
-rw-r--r-- | qt/consoleserver/server.cpp | 19 | ||||
-rw-r--r-- | qt/consoleserver/server.h | 19 | ||||
-rw-r--r-- | qt/ircbot/main.cpp | 19 | ||||
-rw-r--r-- | qt/ircbot/qtbot.cpp | 19 | ||||
-rw-r--r-- | qt/ircbot/qtbot.h | 19 |
22 files changed, 447 insertions, 107 deletions
diff --git a/arduino/rgb/rgb.ino b/arduino/rgb/rgb.ino index 5e2c289..bf7d5de 100644 --- a/arduino/rgb/rgb.ino +++ b/arduino/rgb/rgb.ino @@ -1,3 +1,22 @@ +/* + * Copyright Daniel Jones 2016-2018 + * + * This file is part of RGBController. + * + * RGBController is free software: you can redistribute it and/or modifiy + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * RGBController is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with RGBController. If not, see <http://www.gnu.org/licenses/>. + */ + #include <SPI.h> #include <Thread.h> diff --git a/c/terminalcontroller/main.c b/c/terminalcontroller/main.c index 5d26966..47467c5 100644 --- a/c/terminalcontroller/main.c +++ b/c/terminalcontroller/main.c @@ -1,61 +1,99 @@ -#include <ncurses.h> +/* + * Copyright Daniel Jones 2016-2018 + * + * This file is part of RGBController. + * + * RGBController is free software: you can redistribute it and/or modifiy + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * RGBController is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with RGBController. If not, see <http://www.gnu.org/licenses/>. + */ + +#include <stdio.h> #include <string.h> +#include <unistd.h> +#include <fcntl.h> +#include <errno.h> +#include <termios.h> +#include <ncurses.h> + +int open_port(); +void write_port(int fd, char *str); -/* server information */ -char host[128]; -char port[128]; +int fd; -/* stores our menu items */ char *main_menu_items[] = { - "setup", - "connect", - "disconnect", + "color", + "fade", "presets", + "raw", "exit", }; - -char *setup_menu_items[] = { - "host", - "port", - "back", -}; - -/* windows */ -WINDOW *menuwindow; /* main menu window */ -WINDOW *setupwindow; /* setup window */ - -/* store the number of items in the menus */ int total_main_items = sizeof(main_menu_items) / sizeof(char *); -int total_setup_items = sizeof(setup_menu_items) / sizeof(char *); -/* menu functions */ -void mainmenu(int index); -void setupmenu(int index); +WINDOW *menuwindow; +WINDOW *fadewindow; +WINDOW *presetswindow; -/* normal menu print function */ -void print_menu(WINDOW *win, int index, char *items[], int itemsize); +void main_menu(int index); +void print_menu(WINDOW *win, int index, char *items[], int itemsize); int main(int argc, char *argv[]) { - /* ncurses setup */ initscr(); clear(); noecho(); cbreak(); curs_set(0); - mvprintw(0, 0, "RGB controller"); - mvprintw(1, 0, "use the arrow keys to navigate the menu, enter to select"); + mvprintw(0, 0, "RGB Controller"); + mvprintw(1, 0, "Use the arrow keys to navigate, enter to select"); clrtoeol(); refresh(); - /* menus */ - mainmenu(1); - /* end ncurses */ + fd = open_port(); + //sleep(2); /* let the arduino wake up */ + write_port(fd, "off\n"); + main_menu(1); + close(fd); endwin(); + delwin(menuwindow); + delwin(fadewindow); + delwin(presetswindow); return 0; } -void mainmenu(int index) +int open_port() +{ + int fd; + fd = open("/dev/ttyACM0", O_RDWR | O_NOCTTY | O_NDELAY); + if (fd == -1) + { + mvprintw(3, 0, "port error: unable to open port\n"); + } + else + { + fcntl(fd, F_SETFL, 0); + } + return fd; +} + +void write_port(int fd, char *str) +{ + int n; + n = write(fd, str, strlen(str)); + if (n < 0) + fputs("writing error:\n", stderr); +} + +void main_menu(int index) { menuwindow = newwin(total_main_items + 4, 16, LINES / 2 - total_main_items, (COLS - 16) / 2); int menuindex = index; /* store menu index */ @@ -89,88 +127,35 @@ void mainmenu(int index) if (selected != 0) break; } - wclear(menuwindow); /* causes flashes, fix */ - wrefresh(menuwindow); - delwin(menuwindow); if (selected - 1 == 0) - setupmenu(1); -} - -void setupmenu(int index) -{ - setupwindow = newwin(total_setup_items + 4, 16, LINES / 2 - total_setup_items, (COLS - 16) / 2); - int menuindex = index; /* store menu index */ - int selected = 0; /* stores the menu item selected */ - int in; /* stores user input */ - keypad(setupwindow, TRUE); - print_menu(setupwindow, menuindex, setup_menu_items, total_setup_items); - /* input loop */ - while (1) { - in = wgetch(setupwindow); - switch (in) - { - case KEY_UP: - if (menuindex == 1) - menuindex = total_setup_items; - else - menuindex--; - break; - case KEY_DOWN: - if (menuindex == total_setup_items) - menuindex = 1; - else - menuindex++; - break; - case 10: - selected = menuindex; - break; - } - print_menu(setupwindow, menuindex, setup_menu_items, total_setup_items); - if (selected != 0) - break; - } - if (selected == 1) - { - move(3, 0); - clrtoeol(); - mvprintw(3, 0, "Enter a server address: "); - echo(); - getstr(host); - noecho(); - move(3, 0); - clrtoeol(); - mvprintw(3, 0, "host set to: %s", host); + mvprintw(3, 0, "option 1"); refresh(); - setupmenu(selected); + main_menu(1); } - if (selected == 2) + if (selected - 1 == 3) { move(3, 0); clrtoeol(); - mvprintw(3, 0, "Enter a server port: "); - echo(); - getstr(port); - noecho(); - move(3, 0); - clrtoeol(); - mvprintw(3, 0, "port set to: %s", port); + mvprintw(3, 0, "Enter string to send: "); refresh(); - setupmenu(selected); + echo(); + char str[128]; + getstr(str); + write_port(fd, "redfade\n"); + main_menu(4); + } + wclear(menuwindow); /* causes flashes, fix by only clearing lines below x */ + wrefresh(menuwindow); } - wclear(setupwindow); - wrefresh(setupwindow); - delwin(setupwindow); - if (selected - 1 == 2) - mainmenu(1); -} void print_menu(WINDOW *win, int index, char *items[], int itemsize) { int x = 2; int y = 2; - box(win, 0, 0); /* draw our border */ + wborder(win, '|', '|', '-', '-', '+', '+', '+', '+'); + for (int i = 0; i < itemsize; i++) { if (index == i + 1) @@ -185,9 +170,3 @@ void print_menu(WINDOW *win, int index, char *items[], int itemsize) wrefresh(win); } } - - - - - - diff --git a/c/terminalcontroller/rgb b/c/terminalcontroller/rgb Binary files differindex face935..f65e7da 100755 --- a/c/terminalcontroller/rgb +++ b/c/terminalcontroller/rgb diff --git a/qt/RGBController/RGBController.pro.user b/qt/RGBController/RGBController.pro.user index 92eee62..4ae768e 100755 --- a/qt/RGBController/RGBController.pro.user +++ b/qt/RGBController/RGBController.pro.user @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE QtCreatorProject> -<!-- Written by QtCreator 4.2.2, 2017-06-07T20:06:36. --> +<!-- Written by QtCreator 4.3.1, 2017-08-14T15:27:31. --> <qtcreator> <data> <variable>EnvironmentId</variable> diff --git a/qt/RGBController/controllerwindow.cpp b/qt/RGBController/controllerwindow.cpp index c96cfb2..ca81fef 100755 --- a/qt/RGBController/controllerwindow.cpp +++ b/qt/RGBController/controllerwindow.cpp @@ -1,3 +1,22 @@ +/* + * Copyright Daniel Jones 2016-2018 + * + * This file is part of RGBController. + * + * RGBController is free software: you can redistribute it and/or modifiy + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * RGBController is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with RGBController. If not, see <http://www.gnu.org/licenses/>. + */ + #include "controllerwindow.h" controllerWindow::controllerWindow(QWidget *parent) : diff --git a/qt/RGBController/controllerwindow.h b/qt/RGBController/controllerwindow.h index b36d70b..1f24d8d 100755 --- a/qt/RGBController/controllerwindow.h +++ b/qt/RGBController/controllerwindow.h @@ -1,3 +1,22 @@ +/* + * Copyright Daniel Jones 2016-2018 + * + * This file is part of RGBController. + * + * RGBController is free software: you can redistribute it and/or modifiy + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * RGBController is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with RGBController. If not, see <http://www.gnu.org/licenses/>. + */ + #ifndef CONTROLLERWINDOW_H #define CONTROLLERWINDOW_H diff --git a/qt/RGBController/irc.cpp b/qt/RGBController/irc.cpp index d87f0be..a1906c4 100644 --- a/qt/RGBController/irc.cpp +++ b/qt/RGBController/irc.cpp @@ -1,3 +1,22 @@ +/* + * Copyright Daniel Jones 2016-2018 + * + * This file is part of RGBController. + * + * RGBController is free software: you can redistribute it and/or modifiy + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * RGBController is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with RGBController. If not, see <http://www.gnu.org/licenses/>. + */ + #include "irc.h" irc::irc(QObject *parent) : QObject(parent) diff --git a/qt/RGBController/irc.h b/qt/RGBController/irc.h index 733bebf..c3b2612 100644 --- a/qt/RGBController/irc.h +++ b/qt/RGBController/irc.h @@ -1,3 +1,22 @@ +/* + * Copyright Daniel Jones 2016-2018 + * + * This file is part of RGBController. + * + * RGBController is free software: you can redistribute it and/or modifiy + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * RGBController is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with RGBController. If not, see <http://www.gnu.org/licenses/>. + */ + #ifndef IRC_H #define IRC_H diff --git a/qt/RGBController/main.cpp b/qt/RGBController/main.cpp index 4d44399..96351dd 100755 --- a/qt/RGBController/main.cpp +++ b/qt/RGBController/main.cpp @@ -1,3 +1,22 @@ +/* + * Copyright Daniel Jones 2016-2018 + * + * This file is part of RGBController. + * + * RGBController is free software: you can redistribute it and/or modifiy + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * RGBController is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with RGBController. If not, see <http://www.gnu.org/licenses/>. + */ + #include "controllerwindow.h" #include <QApplication> diff --git a/qt/RGBController/server.cpp b/qt/RGBController/server.cpp index 8a973e6..519ed97 100644 --- a/qt/RGBController/server.cpp +++ b/qt/RGBController/server.cpp @@ -1,3 +1,22 @@ +/* + * Copyright Daniel Jones 2016-2018 + * + * This file is part of RGBController. + * + * RGBController is free software: you can redistribute it and/or modifiy + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * RGBController is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with RGBController. If not, see <http://www.gnu.org/licenses/>. + */ + #include "server.h" server::server(QObject *parent) : QObject(parent) diff --git a/qt/RGBController/server.h b/qt/RGBController/server.h index 8d46539..7d11166 100644 --- a/qt/RGBController/server.h +++ b/qt/RGBController/server.h @@ -1,3 +1,22 @@ +/* + * Copyright Daniel Jones 2016-2018 + * + * This file is part of RGBController. + * + * RGBController is free software: you can redistribute it and/or modifiy + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * RGBController is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with RGBController. If not, see <http://www.gnu.org/licenses/>. + */ + #ifndef SERVER_H #define SERVER_H diff --git a/qt/console/main.cpp b/qt/console/main.cpp index 90919ca..db2e24f 100644 --- a/qt/console/main.cpp +++ b/qt/console/main.cpp @@ -1,3 +1,22 @@ +/* + * Copyright Daniel Jones 2016-2018 + * + * This file is part of RGBController. + * + * RGBController is free software: you can redistribute it and/or modifiy + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * RGBController is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with RGBController. If not, see <http://www.gnu.org/licenses/>. + */ + #include <QCoreApplication> #include <QDebug> #include <QSerialPortInfo> diff --git a/qt/consoleserver/irc.cpp b/qt/consoleserver/irc.cpp index 3a2ed79..5537440 100644 --- a/qt/consoleserver/irc.cpp +++ b/qt/consoleserver/irc.cpp @@ -1,3 +1,22 @@ +/* + * Copyright Daniel Jones 2016-2018 + * + * This file is part of RGBController. + * + * RGBController is free software: you can redistribute it and/or modifiy + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * RGBController is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with RGBController. If not, see <http://www.gnu.org/licenses/>. + */ + #include "irc.h" irc::irc(QObject *parent) : QObject(parent) diff --git a/qt/consoleserver/irc.h b/qt/consoleserver/irc.h index 733bebf..c3b2612 100644 --- a/qt/consoleserver/irc.h +++ b/qt/consoleserver/irc.h @@ -1,3 +1,22 @@ +/* + * Copyright Daniel Jones 2016-2018 + * + * This file is part of RGBController. + * + * RGBController is free software: you can redistribute it and/or modifiy + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * RGBController is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with RGBController. If not, see <http://www.gnu.org/licenses/>. + */ + #ifndef IRC_H #define IRC_H diff --git a/qt/consoleserver/main.cpp b/qt/consoleserver/main.cpp index c944e38..6ef81d5 100644 --- a/qt/consoleserver/main.cpp +++ b/qt/consoleserver/main.cpp @@ -1,3 +1,22 @@ +/* + * Copyright Daniel Jones 2016-2018 + * + * This file is part of RGBController. + * + * RGBController is free software: you can redistribute it and/or modifiy + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * RGBController is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with RGBController. If not, see <http://www.gnu.org/licenses/>. + */ + #include <QCoreApplication> #include <QObject> #include "serial.h" diff --git a/qt/consoleserver/serial.cpp b/qt/consoleserver/serial.cpp index aea46bb..b83a55f 100644 --- a/qt/consoleserver/serial.cpp +++ b/qt/consoleserver/serial.cpp @@ -1,3 +1,22 @@ +/* + * Copyright Daniel Jones 2016-2018 + * + * This file is part of RGBController. + * + * RGBController is free software: you can redistribute it and/or modifiy + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * RGBController is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with RGBController. If not, see <http://www.gnu.org/licenses/>. + */ + #include "serial.h" #include <QThread> diff --git a/qt/consoleserver/serial.h b/qt/consoleserver/serial.h index 3f0386a..d22adfb 100644 --- a/qt/consoleserver/serial.h +++ b/qt/consoleserver/serial.h @@ -1,3 +1,22 @@ +/* + * Copyright Daniel Jones 2016-2018 + * + * This file is part of RGBController. + * + * RGBController is free software: you can redistribute it and/or modifiy + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * RGBController is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with RGBController. If not, see <http://www.gnu.org/licenses/>. + */ + #ifndef SERIAL_H #define SERIAL_H diff --git a/qt/consoleserver/server.cpp b/qt/consoleserver/server.cpp index 401ee8d..9fd532d 100644 --- a/qt/consoleserver/server.cpp +++ b/qt/consoleserver/server.cpp @@ -1,3 +1,22 @@ +/* + * Copyright Daniel Jones 2016-2018 + * + * This file is part of RGBController. + * + * RGBController is free software: you can redistribute it and/or modifiy + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * RGBController is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with RGBController. If not, see <http://www.gnu.org/licenses/>. + */ + #include "server.h" server::server(QObject *parent) : QObject(parent) diff --git a/qt/consoleserver/server.h b/qt/consoleserver/server.h index 9fd84dc..bccae34 100644 --- a/qt/consoleserver/server.h +++ b/qt/consoleserver/server.h @@ -1,3 +1,22 @@ +/* + * Copyright Daniel Jones 2016-2018 + * + * This file is part of RGBController. + * + * RGBController is free software: you can redistribute it and/or modifiy + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * RGBController is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with RGBController. If not, see <http://www.gnu.org/licenses/>. + */ + #ifndef SERVER_H #define SERVER_H diff --git a/qt/ircbot/main.cpp b/qt/ircbot/main.cpp index 7022866..bae2252 100644 --- a/qt/ircbot/main.cpp +++ b/qt/ircbot/main.cpp @@ -1,3 +1,22 @@ +/* + * Copyright Daniel Jones 2016-2018 + * + * This file is part of RGBController. + * + * RGBController is free software: you can redistribute it and/or modifiy + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * RGBController is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with RGBController. If not, see <http://www.gnu.org/licenses/>. + */ + #include <QCoreApplication> #include <QObject> #include <QTimer> diff --git a/qt/ircbot/qtbot.cpp b/qt/ircbot/qtbot.cpp index 2cb67dd..bf99e93 100644 --- a/qt/ircbot/qtbot.cpp +++ b/qt/ircbot/qtbot.cpp @@ -1,3 +1,22 @@ +/* + * Copyright Daniel Jones 2016-2018 + * + * This file is part of RGBController. + * + * RGBController is free software: you can redistribute it and/or modifiy + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * RGBController is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with RGBController. If not, see <http://www.gnu.org/licenses/>. + */ + #include "qtbot.h" QtBot::QtBot(QObject *parent) : QObject(parent) diff --git a/qt/ircbot/qtbot.h b/qt/ircbot/qtbot.h index 5878def..3395c78 100644 --- a/qt/ircbot/qtbot.h +++ b/qt/ircbot/qtbot.h @@ -1,3 +1,22 @@ +/* + * Copyright Daniel Jones 2016-2018 + * + * This file is part of RGBController. + * + * RGBController is free software: you can redistribute it and/or modifiy + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * RGBController is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with RGBController. If not, see <http://www.gnu.org/licenses/>. + */ + #ifndef QTBOT_H #define QTBOT_H |