From d51c38c42028093cfff877806c7304360c92c911 Mon Sep 17 00:00:00 2001 From: Carlo Baratto Date: Mon, 12 Oct 2026 15:17:23 +0200 Subject: [PATCH] Licenza MIT e nome mostrato Thinq-like - aggiunto LICENSE (MIT, Carlo Baratto) e installato col pacchetto in /usr/share/doc/harbour-thinq/ - nome nel launcher e nel centro notifiche: Thinq-like; il marchio LG resta solo nella descrizione, dove e' lecito citarlo - README: nota su nome e licenza --- LICENSE | 21 +++++++++++++++++++++ README.md | 7 +++++-- qml/harbour-thinq.qml | 2 +- rpm/harbour-thinq.desktop | 4 ++-- rpm/harbour-thinq.spec | 11 ++++++++++- src/main.cpp | 4 ++-- 6 files changed, 41 insertions(+), 8 deletions(-) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..7f51078 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2026 Carlo Baratto + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md index 7cea285..8bbed74 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# ThinQ (harbour-thinq) +# Thinq-like (harbour-thinq) App per Sailfish OS che controlla una lavatrice/lavasciuga **LG ThinQ** parlando **direttamente con il cloud LG**: nessun ponte, nessun server di mezzo, nessuna @@ -77,4 +77,7 @@ sh scripts/publish-rpm.sh LG ThinQ Connect API (`https://api-.lgthinq.com`, Italia = `api-eic`): `GET /devices`, `GET /devices/{id}/state`, `POST /devices/{id}/control` con `Authorization: Bearer `, `x-country`, `x-client-id`, `x-message-id`. -Licenza: MIT. +Licenza: MIT (vedi il file LICENSE). Il nome mostrato sul telefono è +«Thinq-like»: l'app non è di LG e non è approvata da LG. LG ThinQ è un marchio +dei rispettivi proprietari e qui è citato solo per dire con quali macchine +l'app parla. diff --git a/qml/harbour-thinq.qml b/qml/harbour-thinq.qml index c356732..2135dbf 100644 --- a/qml/harbour-thinq.qml +++ b/qml/harbour-thinq.qml @@ -16,7 +16,7 @@ ApplicationWindow // alla prima riapertura. Notification { id: cycleNotice - appName: "ThinQ" + appName: "Thinq-like" appIcon: "harbour-thinq" urgency: Notification.Normal expireTimeout: 10000 diff --git a/rpm/harbour-thinq.desktop b/rpm/harbour-thinq.desktop index 08e0c2c..32869e5 100644 --- a/rpm/harbour-thinq.desktop +++ b/rpm/harbour-thinq.desktop @@ -1,6 +1,6 @@ [Desktop Entry] -Name=ThinQ -Name[it_IT]=ThinQ +Name=Thinq-like +Name[it_IT]=Thinq-like Comment=Control an LG ThinQ washing machine Comment[it_IT]=Controlla una lavatrice LG ThinQ Exec=harbour-thinq diff --git a/rpm/harbour-thinq.spec b/rpm/harbour-thinq.spec index 0f1a166..145216b 100644 --- a/rpm/harbour-thinq.spec +++ b/rpm/harbour-thinq.spec @@ -1,6 +1,6 @@ Name: harbour-thinq Summary: Control an LG ThinQ washing machine -Version: 0.2.1 +Version: 0.2.2 Release: 1 Group: Qt/Qt License: MIT @@ -26,6 +26,11 @@ ThinQ Connect cloud from the phone: no server in between. The access token is stored only on the device, in the app private configuration file. %changelog +* Mon Oct 12 2026 Carlo - 0.2.2-1 +- nome mostrato nel launcher: Thinq-like (il marchio LG resta solo nella + descrizione, dove e' lecito: l'app non e' di LG) +- aggiunto il file di licenza MIT, installato col pacchetto + * Mon Oct 12 2026 Carlo - 0.2.1-1 - l'elenco delle macchine si aggiorna davvero: stato, fase e tempo rimanente erano letti con funzioni, che in QML non si aggiornano da sole (si vedevano i @@ -80,10 +85,14 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop || tr mkdir -p %{buildroot}%{_datadir}/%{name}/translations install -m 0644 %{_builddir}/%{name}_it.qm %{buildroot}%{_datadir}/%{name}/translations/ +# La licenza viaggia col pacchetto: e' la prima cosa che uno store controlla. +install -D -m 0644 LICENSE %{buildroot}%{_docdir}/%{name}/LICENSE + %files %defattr(-,root,root,-) %{_bindir}/%{name} %{_datadir}/applications/%{name}.desktop +%{_docdir}/%{name}/LICENSE %{_datadir}/icons/hicolor/86x86/apps/%{name}.png %{_datadir}/icons/hicolor/108x108/apps/%{name}.png %{_datadir}/icons/hicolor/128x128/apps/%{name}.png diff --git a/src/main.cpp b/src/main.cpp index c2de04a..94385b1 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -21,7 +21,7 @@ Q_DECL_EXPORT int main(int argc, char *argv[]) app->setOrganizationName(QStringLiteral("harbour")); app->setApplicationName(QStringLiteral("thinq")); - app->setApplicationVersion(QStringLiteral("0.2.1")); + app->setApplicationVersion(QStringLiteral("0.2.2")); Settings settings; ThinQClient api(&settings); @@ -34,7 +34,7 @@ Q_DECL_EXPORT int main(int argc, char *argv[]) QQuickView *view = SailfishApp::createView(); // Prima riga del log: dice se il device sta girando la build nuova o una stale. - qDebug() << "harbour-thinq v0.2.1 build" << __DATE__ << __TIME__; + qDebug() << "harbour-thinq v0.2.2 build" << __DATE__ << __TIME__; view->rootContext()->setContextProperty(QStringLiteral("appSettings"), &settings); view->rootContext()->setContextProperty(QStringLiteral("api"), &api);