Merge PR #15: Update license text and add SPDX identifier

This commit is contained in:
jenkins 2025-12-02 10:38:25 +01:00
commit 8a7cbb9736
18 changed files with 221 additions and 220 deletions

1
.gitignore vendored
View File

@ -28,6 +28,7 @@ ui_*.h
*.jsc *.jsc
Makefile* Makefile*
*build-* *build-*
build/
# Qt unit tests # Qt unit tests
target_wrapper.* target_wrapper.*

1
COPYING Symbolic link
View File

@ -0,0 +1 @@
LICENSE.GPL3

1
COPYING.LESSER Symbolic link
View File

@ -0,0 +1 @@
LICENSE.LGPL3

10
README.md Normal file
View File

@ -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.

View File

@ -1,7 +1,7 @@
Source: nymea-gpio Source: nymea-gpio
Section: utils Section: utils
Priority: optional Priority: optional
Maintainer: nymea GmbH <developer@nymea.io> Maintainer: chargebyte austria GmbH <contact@nymea.io>
Standards-Version: 4.6.0 Standards-Version: 4.6.0
Vcs-Git: https://github.com/nymea/nymea-gpio.git Vcs-Git: https://github.com/nymea/nymea-gpio.git
Build-Depends: debhelper, Build-Depends: debhelper,

View File

@ -1,19 +1,39 @@
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Author: Simon Stürz <simon.stuerz@nymea.io> Upstream-Contact: chargebyte austria GmbH <contact@nymea.io>
Copyright: 2019-2024, nymea GmbH
2024-2025, chargebyte austria GmbH
Download: https://github.com/nymea/nymea-gpio Download: https://github.com/nymea/nymea-gpio
Source: https://github.com/nymea/nymea-gpio.git
License: LGPL-3 License: LGPL-3+
On Debian systems, the complete text of the GNU General This library is free software: you can redistribute it and/or modify
Public License can be found in `/usr/share/common-licenses/LGPL-3'. 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 License: GPL-3+
On Debian systems, the complete text of the GNU General This program is free software: you can redistribute it and/or modify
Public License can be found in `/usr/share/common-licenses/GPL-3'. 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/* Files: libnymea-gpio/*
Copyright: (C) 2019 - 2025 nymea GmbH <contact@nymea.io> License: LGPL-3+
License: LGPL-3 Copyright: 2019-2024, nymea GmbH
2024-2025, chargebyte austria GmbH
Files: nymea-gpio-tool/* Files: nymea-gpio-tool/*
Copyright: (C) 2019 - 2025 nymea GmbH <contact@nymea.io> License: GPL-3+
License: GPL-3 Copyright: 2019-2024, nymea GmbH
2024-2025, chargebyte austria GmbH

View File

@ -1,7 +1,7 @@
Source: nymea-gpio Source: nymea-gpio
Section: utils Section: utils
Priority: optional Priority: optional
Maintainer: nymea GmbH <developer@nymea.io> Maintainer: chargebyte austria GmbH <contact@nymea.io>
Standards-Version: 4.7.2 Standards-Version: 4.7.2
Vcs-Git: https://github.com/nymea/nymea-gpio.git Vcs-Git: https://github.com/nymea/nymea-gpio.git
Build-Depends: debhelper, Build-Depends: debhelper,

View File

@ -5,9 +5,9 @@ description = nymea-gpio documentation
dita.metadata.default.author = Simon Stürz dita.metadata.default.author = Simon Stürz
dita.metadata.default.permissions = all dita.metadata.default.permissions = all
dita.metadata.default.publisher = guh GmbH dita.metadata.default.publisher = chargebyte austria GmbH
dita.metadata.default.copyryear = 2019 dita.metadata.default.copyryear = 2013-2025
dita.metadata.default.copyrholder = Simon Stürz dita.metadata.default.copyrholder = nymea GmbH; chargebyte austria GmbH
dita.metadata.default.audience = programmer dita.metadata.default.audience = programmer
outputdir = html outputdir = html

View File

@ -1,32 +1,29 @@
// SPDX-License-Identifier: LGPL-3.0-or-later
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* *
* Copyright 2013 - 2020, nymea GmbH * nymea-gpio
* Contact: contact@nymea.io * GPIO library for nymea
* *
* This file is part of nymea. * Copyright (C) 2013 - 2024, nymea GmbH
* This project including source code and documentation is protected by * Copyright (C) 2024 - 2025, chargebyte austria GmbH
* 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
* *
* GNU Lesser General Public License Usage * This file is part of nymea-gpio.
* Alternatively, this project may be redistributed and/or modified under the *
* terms of the GNU Lesser General Public License as published by the Free * nymea-gpio is free software: you can redistribute it and/or
* Software Foundation; version 3. This project is distributed in the hope that * modify it under the terms of the GNU Lesser General Public License
* it will be useful, but WITHOUT ANY WARRANTY; without even the implied * as published by the Free Software Foundation, either version 3
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * of the License, or (at your option) any later version.
* Lesser General Public License for more details. *
* 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 * You should have received a copy of the GNU Lesser General Public License
* along with this project. If not, see <https://www.gnu.org/licenses/>. * along with nymea-gpio. If not, see <https://www.gnu.org/licenses/>.
* *
* 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 \class Gpio

View File

@ -1,32 +1,29 @@
// SPDX-License-Identifier: LGPL-3.0-or-later
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* *
* Copyright 2013 - 2020, nymea GmbH * nymea-gpio
* Contact: contact@nymea.io * GPIO library for nymea
* *
* This file is part of nymea. * Copyright (C) 2013 - 2024, nymea GmbH
* This project including source code and documentation is protected by * Copyright (C) 2024 - 2025, chargebyte austria GmbH
* 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
* *
* GNU Lesser General Public License Usage * This file is part of nymea-gpio.
* Alternatively, this project may be redistributed and/or modified under the *
* terms of the GNU Lesser General Public License as published by the Free * nymea-gpio is free software: you can redistribute it and/or
* Software Foundation; version 3. This project is distributed in the hope that * modify it under the terms of the GNU Lesser General Public License
* it will be useful, but WITHOUT ANY WARRANTY; without even the implied * as published by the Free Software Foundation, either version 3
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * of the License, or (at your option) any later version.
* Lesser General Public License for more details. *
* 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 * You should have received a copy of the GNU Lesser General Public License
* along with this project. If not, see <https://www.gnu.org/licenses/>. * along with nymea-gpio. If not, see <https://www.gnu.org/licenses/>.
* *
* 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 #ifndef GPIO_H
#define GPIO_H #define GPIO_H

View File

@ -1,32 +1,29 @@
// SPDX-License-Identifier: LGPL-3.0-or-later
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* *
* Copyright 2013 - 2020, nymea GmbH * nymea-gpio
* Contact: contact@nymea.io * GPIO library for nymea
* *
* This file is part of nymea. * Copyright (C) 2013 - 2024, nymea GmbH
* This project including source code and documentation is protected by * Copyright (C) 2024 - 2025, chargebyte austria GmbH
* 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
* *
* GNU Lesser General Public License Usage * This file is part of nymea-gpio.
* Alternatively, this project may be redistributed and/or modified under the *
* terms of the GNU Lesser General Public License as published by the Free * nymea-gpio is free software: you can redistribute it and/or
* Software Foundation; version 3. This project is distributed in the hope that * modify it under the terms of the GNU Lesser General Public License
* it will be useful, but WITHOUT ANY WARRANTY; without even the implied * as published by the Free Software Foundation, either version 3
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * of the License, or (at your option) any later version.
* Lesser General Public License for more details. *
* 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 * You should have received a copy of the GNU Lesser General Public License
* along with this project. If not, see <https://www.gnu.org/licenses/>. * along with nymea-gpio. If not, see <https://www.gnu.org/licenses/>.
* *
* 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 \class GpioButton

View File

@ -1,32 +1,29 @@
// SPDX-License-Identifier: LGPL-3.0-or-later
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* *
* Copyright 2013 - 2020, nymea GmbH * nymea-gpio
* Contact: contact@nymea.io * GPIO library for nymea
* *
* This file is part of nymea. * Copyright (C) 2013 - 2024, nymea GmbH
* This project including source code and documentation is protected by * Copyright (C) 2024 - 2025, chargebyte austria GmbH
* 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
* *
* GNU Lesser General Public License Usage * This file is part of nymea-gpio.
* Alternatively, this project may be redistributed and/or modified under the *
* terms of the GNU Lesser General Public License as published by the Free * nymea-gpio is free software: you can redistribute it and/or
* Software Foundation; version 3. This project is distributed in the hope that * modify it under the terms of the GNU Lesser General Public License
* it will be useful, but WITHOUT ANY WARRANTY; without even the implied * as published by the Free Software Foundation, either version 3
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * of the License, or (at your option) any later version.
* Lesser General Public License for more details. *
* 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 * You should have received a copy of the GNU Lesser General Public License
* along with this project. If not, see <https://www.gnu.org/licenses/>. * along with nymea-gpio. If not, see <https://www.gnu.org/licenses/>.
* *
* 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 #ifndef GPIOBUTTON_H
#define GPIOBUTTON_H #define GPIOBUTTON_H

View File

@ -1,32 +1,29 @@
// SPDX-License-Identifier: LGPL-3.0-or-later
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* *
* Copyright 2013 - 2021, nymea GmbH * nymea-gpio
* Contact: contact@nymea.io * GPIO library for nymea
* *
* This file is part of nymea. * Copyright (C) 2013 - 2024, nymea GmbH
* This project including source code and documentation is protected by * Copyright (C) 2024 - 2025, chargebyte austria GmbH
* 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
* *
* GNU Lesser General Public License Usage * This file is part of nymea-gpio.
* Alternatively, this project may be redistributed and/or modified under the *
* terms of the GNU Lesser General Public License as published by the Free * nymea-gpio is free software: you can redistribute it and/or
* Software Foundation; version 3. This project is distributed in the hope that * modify it under the terms of the GNU Lesser General Public License
* it will be useful, but WITHOUT ANY WARRANTY; without even the implied * as published by the Free Software Foundation, either version 3
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * of the License, or (at your option) any later version.
* Lesser General Public License for more details. *
* 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 * You should have received a copy of the GNU Lesser General Public License
* along with this project. If not, see <https://www.gnu.org/licenses/>. * along with nymea-gpio. If not, see <https://www.gnu.org/licenses/>.
* *
* 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 \class GpioMonitor

View File

@ -1,31 +1,29 @@
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ** // SPDX-License-Identifier: LGPL-3.0-or-later
* Copyright 2013 - 2021, nymea GmbH
* Contact: contact@nymea.io /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* *
* This file is part of nymea. * nymea-gpio
* This project including source code and documentation is protected by * GPIO library for nymea
* 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
* *
* GNU Lesser General Public License Usage * Copyright (C) 2013 - 2024, nymea GmbH
* Alternatively, this project may be redistributed and/or modified under the * Copyright (C) 2024 - 2025, chargebyte austria GmbH
* 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 * This file is part of nymea-gpio.
* it will be useful, but WITHOUT ANY WARRANTY; without even the implied *
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * nymea-gpio is free software: you can redistribute it and/or
* Lesser General Public License for more details. * 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 * You should have received a copy of the GNU Lesser General Public License
* along with this project. If not, see <https://www.gnu.org/licenses/>. * along with nymea-gpio. If not, see <https://www.gnu.org/licenses/>.
* *
* 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 #ifndef GPIOMONITOR_H
#define GPIOMONITOR_H #define GPIOMONITOR_H

View File

@ -1,32 +1,27 @@
// SPDX-License-Identifier: GPL-3.0-or-later
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* *
* Copyright 2013 - 2020, nymea GmbH * Copyright (C) 2013 - 2024, nymea GmbH
* Contact: contact@nymea.io * Copyright (C) 2024 - 2025, chargebyte austria GmbH
* *
* This file is part of nymea. * This file is part of nymea-gpio.
* 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
* *
* GNU General Public License Usage * nymea-gpio is free software: you can redistribute it and/or modify
* Alternatively, this project may be redistributed and/or modified under the * it under the terms of the GNU General Public License as published by
* terms of the GNU General Public License as published by the Free Software * the Free Software Foundation, either version 3 of the License, or
* Foundation, GNU version 3. This project is distributed in the hope that it * (at your option) any later version.
* 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 * nymea-gpio is distributed in the hope that it will be useful,
* this project. If not, see <https://www.gnu.org/licenses/>. * 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 * You should have received a copy of the GNU General Public License
* contact@nymea.io or see our FAQ/Licensing Information on * along with nymea-gpio. If not, see <https://www.gnu.org/licenses/>.
* https://nymea.io/license/faq
* *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
#include "application.h" #include "application.h"
#include <QDebug> #include <QDebug>

View File

@ -1,32 +1,27 @@
// SPDX-License-Identifier: GPL-3.0-or-later
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* *
* Copyright 2013 - 2020, nymea GmbH * Copyright (C) 2013 - 2024, nymea GmbH
* Contact: contact@nymea.io * Copyright (C) 2024 - 2025, chargebyte austria GmbH
* *
* This file is part of nymea. * This file is part of nymea-gpio.
* 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
* *
* GNU General Public License Usage * nymea-gpio is free software: you can redistribute it and/or modify
* Alternatively, this project may be redistributed and/or modified under the * it under the terms of the GNU General Public License as published by
* terms of the GNU General Public License as published by the Free Software * the Free Software Foundation, either version 3 of the License, or
* Foundation, GNU version 3. This project is distributed in the hope that it * (at your option) any later version.
* 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 * nymea-gpio is distributed in the hope that it will be useful,
* this project. If not, see <https://www.gnu.org/licenses/>. * 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 * You should have received a copy of the GNU General Public License
* contact@nymea.io or see our FAQ/Licensing Information on * along with nymea-gpio. If not, see <https://www.gnu.org/licenses/>.
* https://nymea.io/license/faq
* *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
#ifndef APPLICATION_H #ifndef APPLICATION_H
#define APPLICATION_H #define APPLICATION_H

View File

@ -1,32 +1,26 @@
// SPDX-License-Identifier: GPL-3.0-or-later
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* *
* Copyright 2013 - 2020, nymea GmbH * Copyright (C) 2013 - 2024, nymea GmbH
* Contact: contact@nymea.io * Copyright (C) 2024 - 2025, chargebyte austria GmbH
* *
* This file is part of nymea. * This file is part of nymea-gpio.
* 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
* *
* GNU General Public License Usage * nymea-gpio is free software: you can redistribute it and/or modify
* Alternatively, this project may be redistributed and/or modified under the * it under the terms of the GNU General Public License as published by
* terms of the GNU General Public License as published by the Free Software * the Free Software Foundation, either version 3 of the License, or
* Foundation, GNU version 3. This project is distributed in the hope that it * (at your option) any later version.
* 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 * nymea-gpio is distributed in the hope that it will be useful,
* this project. If not, see <https://www.gnu.org/licenses/>. * 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 * You should have received a copy of the GNU General Public License
* contact@nymea.io or see our FAQ/Licensing Information on * along with nymea-gpio. If not, see <https://www.gnu.org/licenses/>.
* https://nymea.io/license/faq
* *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
#include <QCommandLineParser> #include <QCommandLineParser>
@ -36,17 +30,19 @@
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
Application application(argc, argv); Application application(argc, argv);
application.setOrganizationName("guh"); application.setOrganizationName("nymea GmbH");
application.setApplicationName("nymea-gpio-tool"); application.setApplicationName("nymea-gpio-tool");
application.setApplicationVersion(VERSION_STRING); application.setApplicationVersion(VERSION_STRING);
QCommandLineParser parser; QCommandLineParser parser;
parser.addHelpOption(); parser.addHelpOption();
parser.addVersionOption(); 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" "Version: %1\n"
"Copyright %2 2019 Simon Stürz <simon.stuerz@nymea.io>\n\n" "Copyright (C) 2013 - 2024 nymea GmbH\n"
"Released under the GNU GENERAL PUBLIC LICENSE Version 3.\n").arg(application.applicationVersion()).arg(QChar(0xA9)); "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); parser.setApplicationDescription(applicationDescription);
QCommandLineOption gpioOption(QStringList() << "g" << "gpio", "The gpio number to use.", "GPIO"); QCommandLineOption gpioOption(QStringList() << "g" << "gpio", "The gpio number to use.", "GPIO");

View File

@ -1,4 +1,3 @@
TEMPLATE = subdirs TEMPLATE = subdirs
SUBDIRS = libnymea-gpio nymea-gpio-tool SUBDIRS = libnymea-gpio nymea-gpio-tool
nymea-gpio-tool.depends = libnymea-gpio nymea-gpio-tool.depends = libnymea-gpio