diff --git a/.gitignore b/.gitignore index 8176148..badcd2a 100644 --- a/.gitignore +++ b/.gitignore @@ -28,6 +28,7 @@ ui_*.h *.jsc Makefile* *build-* +build/ # Qt unit tests target_wrapper.* diff --git a/COPYING b/COPYING new file mode 120000 index 0000000..2eac441 --- /dev/null +++ b/COPYING @@ -0,0 +1 @@ +LICENSE.GPL3 \ No newline at end of file diff --git a/COPYING.LESSER b/COPYING.LESSER new file mode 120000 index 0000000..dc71033 --- /dev/null +++ b/COPYING.LESSER @@ -0,0 +1 @@ +LICENSE.LGPL3 \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..480ae29 --- /dev/null +++ b/README.md @@ -0,0 +1,10 @@ +# nymea-gpio + +This repository contains `libnymea-gpio`, a reusable Qt/C++ helper library that allows nymea and other applications to configure and interact with general purpose I/O pins on supported platforms, and `nymea-gpio-tool`, a small CLI utility that exposes the same functionality for scripting and diagnostics. + +Both components are developed together to keep their pin-handling logic and configuration formats in sync, so the command line tool doubles as a reference implementation for the library. + +## License + +- `libnymea-gpio` is licensed under the terms of the GNU Lesser General Public License v3.0 or (at your option) any later version. See `LICENSE.LGPL3` for the full text. +- `nymea-gpio-tool` is licensed under the terms of the GNU General Public License v3.0 or (at your option) any later version. See `LICENSE.GPL3` for the full text. diff --git a/debian-qt5/control b/debian-qt5/control index c335135..009fe2e 100644 --- a/debian-qt5/control +++ b/debian-qt5/control @@ -1,7 +1,7 @@ Source: nymea-gpio Section: utils Priority: optional -Maintainer: nymea GmbH +Maintainer: chargebyte austria GmbH Standards-Version: 4.6.0 Vcs-Git: https://github.com/nymea/nymea-gpio.git Build-Depends: debhelper, diff --git a/debian-qt5/copyright b/debian-qt5/copyright index 7a89709..2aaa1a8 100644 --- a/debian-qt5/copyright +++ b/debian-qt5/copyright @@ -1,19 +1,39 @@ Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ -Author: Simon Stürz +Upstream-Contact: chargebyte austria GmbH +Copyright: 2019-2024, nymea GmbH + 2024-2025, chargebyte austria GmbH Download: https://github.com/nymea/nymea-gpio +Source: https://github.com/nymea/nymea-gpio.git -License: LGPL-3 - On Debian systems, the complete text of the GNU General - Public License can be found in `/usr/share/common-licenses/LGPL-3'. +License: LGPL-3+ + This library is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as + published by the Free Software Foundation, either version 3 of the + License, or (at your option) any later version. + . + On Debian systems, the complete text of the GNU Lesser General Public + License can be found in `/usr/share/common-licenses/LGPL-3'. -License: GPL-3 - On Debian systems, the complete text of the GNU General - Public License can be found in `/usr/share/common-licenses/GPL-3'. +License: GPL-3+ + This program is free software: you can redistribute it and/or modify + 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. + . + On Debian systems, the complete text of the GNU General Public License + can be found in `/usr/share/common-licenses/GPL-3'. + +Files: * +License: GPL-3+ +Copyright: 2019-2024, nymea GmbH + 2024-2025, chargebyte austria GmbH Files: libnymea-gpio/* -Copyright: (C) 2019 - 2025 nymea GmbH -License: LGPL-3 +License: LGPL-3+ +Copyright: 2019-2024, nymea GmbH + 2024-2025, chargebyte austria GmbH Files: nymea-gpio-tool/* -Copyright: (C) 2019 - 2025 nymea GmbH -License: GPL-3 +License: GPL-3+ +Copyright: 2019-2024, nymea GmbH + 2024-2025, chargebyte austria GmbH diff --git a/debian-qt6/control b/debian-qt6/control index 7374cf7..ac84947 100644 --- a/debian-qt6/control +++ b/debian-qt6/control @@ -1,7 +1,7 @@ Source: nymea-gpio Section: utils Priority: optional -Maintainer: nymea GmbH +Maintainer: chargebyte austria GmbH Standards-Version: 4.7.2 Vcs-Git: https://github.com/nymea/nymea-gpio.git Build-Depends: debhelper, diff --git a/docs/config.qdocconf b/docs/config.qdocconf index ef63711..74152eb 100644 --- a/docs/config.qdocconf +++ b/docs/config.qdocconf @@ -5,9 +5,9 @@ description = nymea-gpio documentation dita.metadata.default.author = Simon Stürz dita.metadata.default.permissions = all -dita.metadata.default.publisher = guh GmbH -dita.metadata.default.copyryear = 2019 -dita.metadata.default.copyrholder = Simon Stürz +dita.metadata.default.publisher = chargebyte austria GmbH +dita.metadata.default.copyryear = 2013-2025 +dita.metadata.default.copyrholder = nymea GmbH; chargebyte austria GmbH dita.metadata.default.audience = programmer outputdir = html diff --git a/libnymea-gpio/gpio.cpp b/libnymea-gpio/gpio.cpp index 596251a..a427df6 100644 --- a/libnymea-gpio/gpio.cpp +++ b/libnymea-gpio/gpio.cpp @@ -1,32 +1,29 @@ +// SPDX-License-Identifier: LGPL-3.0-or-later + /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -* Copyright 2013 - 2020, nymea GmbH -* Contact: contact@nymea.io +* nymea-gpio +* GPIO library for nymea * -* This file is part of nymea. -* This project including source code and documentation is protected by -* copyright law, and remains the property of nymea GmbH. All rights, including -* reproduction, publication, editing and translation, are reserved. The use of -* this project is subject to the terms of a license agreement to be concluded -* with nymea GmbH in accordance with the terms of use of nymea GmbH, available -* under https://nymea.io/license +* Copyright (C) 2013 - 2024, nymea GmbH +* Copyright (C) 2024 - 2025, chargebyte austria GmbH * -* GNU Lesser General Public License Usage -* Alternatively, this project may be redistributed and/or modified under the -* terms of the GNU Lesser General Public License as published by the Free -* Software Foundation; version 3. This project 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 -* Lesser General Public License for more details. +* This file is part of nymea-gpio. +* +* nymea-gpio is free software: you can redistribute it and/or +* modify it under the terms of the GNU Lesser General Public License +* as published by the Free Software Foundation, either version 3 +* of the License, or (at your option) any later version. +* +* nymea-gpio 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License -* along with this project. If not, see . +* along with nymea-gpio. If not, see . * -* For any further details and any questions please contact us under -* contact@nymea.io or see our FAQ/Licensing Information on -* https://nymea.io/license/faq -* -* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ +* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /*! \class Gpio diff --git a/libnymea-gpio/gpio.h b/libnymea-gpio/gpio.h index 8c1a6c4..db66b8d 100644 --- a/libnymea-gpio/gpio.h +++ b/libnymea-gpio/gpio.h @@ -1,32 +1,29 @@ +// SPDX-License-Identifier: LGPL-3.0-or-later + /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -* Copyright 2013 - 2020, nymea GmbH -* Contact: contact@nymea.io +* nymea-gpio +* GPIO library for nymea * -* This file is part of nymea. -* This project including source code and documentation is protected by -* copyright law, and remains the property of nymea GmbH. All rights, including -* reproduction, publication, editing and translation, are reserved. The use of -* this project is subject to the terms of a license agreement to be concluded -* with nymea GmbH in accordance with the terms of use of nymea GmbH, available -* under https://nymea.io/license +* Copyright (C) 2013 - 2024, nymea GmbH +* Copyright (C) 2024 - 2025, chargebyte austria GmbH * -* GNU Lesser General Public License Usage -* Alternatively, this project may be redistributed and/or modified under the -* terms of the GNU Lesser General Public License as published by the Free -* Software Foundation; version 3. This project 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 -* Lesser General Public License for more details. +* This file is part of nymea-gpio. +* +* nymea-gpio is free software: you can redistribute it and/or +* modify it under the terms of the GNU Lesser General Public License +* as published by the Free Software Foundation, either version 3 +* of the License, or (at your option) any later version. +* +* nymea-gpio 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License -* along with this project. If not, see . +* along with nymea-gpio. If not, see . * -* For any further details and any questions please contact us under -* contact@nymea.io or see our FAQ/Licensing Information on -* https://nymea.io/license/faq -* -* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ +* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ #ifndef GPIO_H #define GPIO_H diff --git a/libnymea-gpio/gpiobutton.cpp b/libnymea-gpio/gpiobutton.cpp index ac6b5e0..037c412 100644 --- a/libnymea-gpio/gpiobutton.cpp +++ b/libnymea-gpio/gpiobutton.cpp @@ -1,32 +1,29 @@ +// SPDX-License-Identifier: LGPL-3.0-or-later + /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -* Copyright 2013 - 2020, nymea GmbH -* Contact: contact@nymea.io +* nymea-gpio +* GPIO library for nymea * -* This file is part of nymea. -* This project including source code and documentation is protected by -* copyright law, and remains the property of nymea GmbH. All rights, including -* reproduction, publication, editing and translation, are reserved. The use of -* this project is subject to the terms of a license agreement to be concluded -* with nymea GmbH in accordance with the terms of use of nymea GmbH, available -* under https://nymea.io/license +* Copyright (C) 2013 - 2024, nymea GmbH +* Copyright (C) 2024 - 2025, chargebyte austria GmbH * -* GNU Lesser General Public License Usage -* Alternatively, this project may be redistributed and/or modified under the -* terms of the GNU Lesser General Public License as published by the Free -* Software Foundation; version 3. This project 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 -* Lesser General Public License for more details. +* This file is part of nymea-gpio. +* +* nymea-gpio is free software: you can redistribute it and/or +* modify it under the terms of the GNU Lesser General Public License +* as published by the Free Software Foundation, either version 3 +* of the License, or (at your option) any later version. +* +* nymea-gpio 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License -* along with this project. If not, see . +* along with nymea-gpio. If not, see . * -* For any further details and any questions please contact us under -* contact@nymea.io or see our FAQ/Licensing Information on -* https://nymea.io/license/faq -* -* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ +* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /*! \class GpioButton diff --git a/libnymea-gpio/gpiobutton.h b/libnymea-gpio/gpiobutton.h index 77dc7ea..76b29f6 100644 --- a/libnymea-gpio/gpiobutton.h +++ b/libnymea-gpio/gpiobutton.h @@ -1,32 +1,29 @@ +// SPDX-License-Identifier: LGPL-3.0-or-later + /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -* Copyright 2013 - 2020, nymea GmbH -* Contact: contact@nymea.io +* nymea-gpio +* GPIO library for nymea * -* This file is part of nymea. -* This project including source code and documentation is protected by -* copyright law, and remains the property of nymea GmbH. All rights, including -* reproduction, publication, editing and translation, are reserved. The use of -* this project is subject to the terms of a license agreement to be concluded -* with nymea GmbH in accordance with the terms of use of nymea GmbH, available -* under https://nymea.io/license +* Copyright (C) 2013 - 2024, nymea GmbH +* Copyright (C) 2024 - 2025, chargebyte austria GmbH * -* GNU Lesser General Public License Usage -* Alternatively, this project may be redistributed and/or modified under the -* terms of the GNU Lesser General Public License as published by the Free -* Software Foundation; version 3. This project 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 -* Lesser General Public License for more details. +* This file is part of nymea-gpio. +* +* nymea-gpio is free software: you can redistribute it and/or +* modify it under the terms of the GNU Lesser General Public License +* as published by the Free Software Foundation, either version 3 +* of the License, or (at your option) any later version. +* +* nymea-gpio 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License -* along with this project. If not, see . +* along with nymea-gpio. If not, see . * -* For any further details and any questions please contact us under -* contact@nymea.io or see our FAQ/Licensing Information on -* https://nymea.io/license/faq -* -* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ +* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ #ifndef GPIOBUTTON_H #define GPIOBUTTON_H diff --git a/libnymea-gpio/gpiomonitor.cpp b/libnymea-gpio/gpiomonitor.cpp index ef6af85..107c4e5 100644 --- a/libnymea-gpio/gpiomonitor.cpp +++ b/libnymea-gpio/gpiomonitor.cpp @@ -1,32 +1,29 @@ +// SPDX-License-Identifier: LGPL-3.0-or-later + /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -* Copyright 2013 - 2021, nymea GmbH -* Contact: contact@nymea.io +* nymea-gpio +* GPIO library for nymea * -* This file is part of nymea. -* This project including source code and documentation is protected by -* copyright law, and remains the property of nymea GmbH. All rights, including -* reproduction, publication, editing and translation, are reserved. The use of -* this project is subject to the terms of a license agreement to be concluded -* with nymea GmbH in accordance with the terms of use of nymea GmbH, available -* under https://nymea.io/license +* Copyright (C) 2013 - 2024, nymea GmbH +* Copyright (C) 2024 - 2025, chargebyte austria GmbH * -* GNU Lesser General Public License Usage -* Alternatively, this project may be redistributed and/or modified under the -* terms of the GNU Lesser General Public License as published by the Free -* Software Foundation; version 3. This project 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 -* Lesser General Public License for more details. +* This file is part of nymea-gpio. +* +* nymea-gpio is free software: you can redistribute it and/or +* modify it under the terms of the GNU Lesser General Public License +* as published by the Free Software Foundation, either version 3 +* of the License, or (at your option) any later version. +* +* nymea-gpio 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License -* along with this project. If not, see . +* along with nymea-gpio. If not, see . * -* For any further details and any questions please contact us under -* contact@nymea.io or see our FAQ/Licensing Information on -* https://nymea.io/license/faq -* -* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ +* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /*! \class GpioMonitor diff --git a/libnymea-gpio/gpiomonitor.h b/libnymea-gpio/gpiomonitor.h index da641a8..f9217f6 100644 --- a/libnymea-gpio/gpiomonitor.h +++ b/libnymea-gpio/gpiomonitor.h @@ -1,31 +1,29 @@ -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ** -* Copyright 2013 - 2021, nymea GmbH -* Contact: contact@nymea.io +// SPDX-License-Identifier: LGPL-3.0-or-later + +/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -* This file is part of nymea. -* This project including source code and documentation is protected by -* copyright law, and remains the property of nymea GmbH. All rights, including -* reproduction, publication, editing and translation, are reserved. The use of -* this project is subject to the terms of a license agreement to be concluded -* with nymea GmbH in accordance with the terms of use of nymea GmbH, available -* under https://nymea.io/license +* nymea-gpio +* GPIO library for nymea * -* GNU Lesser General Public License Usage -* Alternatively, this project may be redistributed and/or modified under the -* terms of the GNU Lesser General Public License as published by the Free -* Software Foundation; version 3. This project 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 -* Lesser General Public License for more details. +* Copyright (C) 2013 - 2024, nymea GmbH +* Copyright (C) 2024 - 2025, chargebyte austria GmbH +* +* This file is part of nymea-gpio. +* +* nymea-gpio is free software: you can redistribute it and/or +* modify it under the terms of the GNU Lesser General Public License +* as published by the Free Software Foundation, either version 3 +* of the License, or (at your option) any later version. +* +* nymea-gpio 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License -* along with this project. If not, see . +* along with nymea-gpio. If not, see . * -* For any further details and any questions please contact us under -* contact@nymea.io or see our FAQ/Licensing Information on -* https://nymea.io/license/faq -* -* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ +* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ #ifndef GPIOMONITOR_H #define GPIOMONITOR_H diff --git a/nymea-gpio-tool/application.cpp b/nymea-gpio-tool/application.cpp index 4184170..b03f3a2 100644 --- a/nymea-gpio-tool/application.cpp +++ b/nymea-gpio-tool/application.cpp @@ -1,32 +1,27 @@ +// SPDX-License-Identifier: GPL-3.0-or-later + /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -* Copyright 2013 - 2020, nymea GmbH -* Contact: contact@nymea.io +* Copyright (C) 2013 - 2024, nymea GmbH +* Copyright (C) 2024 - 2025, chargebyte austria GmbH * -* This file is part of nymea. -* This project including source code and documentation is protected by -* copyright law, and remains the property of nymea GmbH. All rights, including -* reproduction, publication, editing and translation, are reserved. The use of -* this project is subject to the terms of a license agreement to be concluded -* with nymea GmbH in accordance with the terms of use of nymea GmbH, available -* under https://nymea.io/license +* This file is part of nymea-gpio. * -* GNU General Public License Usage -* Alternatively, this project may be redistributed and/or modified under the -* terms of the GNU General Public License as published by the Free Software -* Foundation, GNU version 3. This project 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. +* nymea-gpio is free software: you can redistribute it and/or modify +* 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. * -* You should have received a copy of the GNU General Public License along with -* this project. If not, see . +* nymea-gpio 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. * -* For any further details and any questions please contact us under -* contact@nymea.io or see our FAQ/Licensing Information on -* https://nymea.io/license/faq +* You should have received a copy of the GNU General Public License +* along with nymea-gpio. If not, see . * -* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ +* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ + #include "application.h" #include diff --git a/nymea-gpio-tool/application.h b/nymea-gpio-tool/application.h index f0e5f7a..2111928 100644 --- a/nymea-gpio-tool/application.h +++ b/nymea-gpio-tool/application.h @@ -1,32 +1,27 @@ +// SPDX-License-Identifier: GPL-3.0-or-later + /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -* Copyright 2013 - 2020, nymea GmbH -* Contact: contact@nymea.io +* Copyright (C) 2013 - 2024, nymea GmbH +* Copyright (C) 2024 - 2025, chargebyte austria GmbH * -* This file is part of nymea. -* This project including source code and documentation is protected by -* copyright law, and remains the property of nymea GmbH. All rights, including -* reproduction, publication, editing and translation, are reserved. The use of -* this project is subject to the terms of a license agreement to be concluded -* with nymea GmbH in accordance with the terms of use of nymea GmbH, available -* under https://nymea.io/license +* This file is part of nymea-gpio. * -* GNU General Public License Usage -* Alternatively, this project may be redistributed and/or modified under the -* terms of the GNU General Public License as published by the Free Software -* Foundation, GNU version 3. This project 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. +* nymea-gpio is free software: you can redistribute it and/or modify +* 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. * -* You should have received a copy of the GNU General Public License along with -* this project. If not, see . +* nymea-gpio 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. * -* For any further details and any questions please contact us under -* contact@nymea.io or see our FAQ/Licensing Information on -* https://nymea.io/license/faq +* You should have received a copy of the GNU General Public License +* along with nymea-gpio. If not, see . * -* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ +* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ + #ifndef APPLICATION_H #define APPLICATION_H diff --git a/nymea-gpio-tool/main.cpp b/nymea-gpio-tool/main.cpp index 15ea030..ae87dec 100644 --- a/nymea-gpio-tool/main.cpp +++ b/nymea-gpio-tool/main.cpp @@ -1,32 +1,26 @@ +// SPDX-License-Identifier: GPL-3.0-or-later + /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -* Copyright 2013 - 2020, nymea GmbH -* Contact: contact@nymea.io +* Copyright (C) 2013 - 2024, nymea GmbH +* Copyright (C) 2024 - 2025, chargebyte austria GmbH * -* This file is part of nymea. -* This project including source code and documentation is protected by -* copyright law, and remains the property of nymea GmbH. All rights, including -* reproduction, publication, editing and translation, are reserved. The use of -* this project is subject to the terms of a license agreement to be concluded -* with nymea GmbH in accordance with the terms of use of nymea GmbH, available -* under https://nymea.io/license +* This file is part of nymea-gpio. * -* GNU General Public License Usage -* Alternatively, this project may be redistributed and/or modified under the -* terms of the GNU General Public License as published by the Free Software -* Foundation, GNU version 3. This project 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. +* nymea-gpio is free software: you can redistribute it and/or modify +* 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. * -* You should have received a copy of the GNU General Public License along with -* this project. If not, see . +* nymea-gpio 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. * -* For any further details and any questions please contact us under -* contact@nymea.io or see our FAQ/Licensing Information on -* https://nymea.io/license/faq +* You should have received a copy of the GNU General Public License +* along with nymea-gpio. If not, see . * -* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ +* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ #include @@ -36,17 +30,19 @@ int main(int argc, char *argv[]) { Application application(argc, argv); - application.setOrganizationName("guh"); + application.setOrganizationName("nymea GmbH"); application.setApplicationName("nymea-gpio-tool"); application.setApplicationVersion(VERSION_STRING); QCommandLineParser parser; parser.addHelpOption(); parser.addVersionOption(); - QString applicationDescription = QString("\nnymea-gpio-tool is a command line tool which allowes to interact with GPIOs.\n" + QString applicationDescription = QString("\nnymea-gpio-tool is a command line tool which allows to interact with GPIOs.\n" "Version: %1\n" - "Copyright %2 2019 Simon Stürz \n\n" - "Released under the GNU GENERAL PUBLIC LICENSE Version 3.\n").arg(application.applicationVersion()).arg(QChar(0xA9)); + "Copyright (C) 2013 - 2024 nymea GmbH\n" + "Copyright (C) 2024 - 2025 chargebyte austria GmbH\n\n" + "Released under the GNU General Public License v3.0 or (at your option) any later version.\n") + .arg(application.applicationVersion()); parser.setApplicationDescription(applicationDescription); QCommandLineOption gpioOption(QStringList() << "g" << "gpio", "The gpio number to use.", "GPIO"); diff --git a/nymea-gpio.pro b/nymea-gpio.pro index 57b0086..a508f0c 100644 --- a/nymea-gpio.pro +++ b/nymea-gpio.pro @@ -1,4 +1,3 @@ TEMPLATE = subdirs SUBDIRS = libnymea-gpio nymea-gpio-tool nymea-gpio-tool.depends = libnymea-gpio -