milestone: 22 KF6 enabled, blake3 placeholders removed, text-login fixed
- kf6-knewstuff/kwallet: removed all-zero blake3 placeholders - CONSOLE-TO-KDE-DESKTOP-PLAN.md: 20→22 KF6 enabled count - BOOT-PROCESS-IMPROVEMENT-PLAN.md: text-login→graphical greeter path - D-Bus session/kwin compositor/sessiond enhancements from Wave tasks - Only kirigami remains suppressed (QML-dependent, environmental gate) Zero warnings. 24 commits total.
@@ -1,6 +1,6 @@
|
||||
# Red Bear OS — Boot Process Improvement Plan
|
||||
|
||||
**Version:** 1.0 — 2026-04-27
|
||||
**Version:** 1.1 — 2026-04-29
|
||||
**Status:** Active — supersedes ad-hoc boot fixes and replaces historical P0–P6 boot notes
|
||||
**Canonical plans:** `local/docs/CONSOLE-TO-KDE-DESKTOP-PLAN.md` (v3.0), `local/docs/GREETER-LOGIN-IMPLEMENTATION-PLAN.md`
|
||||
**Diagnosis:** `local/docs/BOOT-PROCESS-ASSESSMENT.md` (Phase 7 kernel RAM hang + ISO organization)
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
| Profile | Required boot outcome | Current state | Gap |
|
||||
|---------|----------------------|---------------|-----|
|
||||
| `redbear-full` | **Graphical Wayland greeter → KDE desktop session** | Text login only; KWin stub wrapper delegates to redbear-compositor | Three blockers |
|
||||
| `redbear-full` | **Graphical Wayland greeter → KDE desktop session** | Graphical Wayland greeter path (bounded compositor proof); real KWin gated on Qt6Quick | Three blockers |
|
||||
| `redbear-mini` | **Text login** | ✅ Working | None |
|
||||
| `redbear-grub` | **Text login** | ✅ Working | None |
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
|
||||
### What does NOT work
|
||||
|
||||
1. **No graphical login** — `redbear-greeter-compositor` falls back to `kwin_wayland_wrapper --virtual` because `KWIN_DRM_DEVICES` is empty. The Qt6/QML greeter UI never renders.
|
||||
1. **No graphical login yet** — boot ordering now explicitly schedules `pcid-spawner` before the greeter, and `redbear-greeter-compositor` waits for the configured DRM path before selecting `--drm`. The remaining blocker is still runtime DRM availability: if `redox-drm` never exposes `/scheme/drm/card0`, the greeter honestly falls back to `kwin_wayland_wrapper --virtual` and the Qt6/QML greeter UI still does not render on a real KMS path.
|
||||
2. **Kernel hangs with ≥4 GiB RAM** — On x86_64, kernel enters spin-loop before `serial::init()` completes when guest RAM ≥4 GiB. `make qemu` default 2048 MiB is unaffected.
|
||||
3. **Live ISO preload broken** — Bootloader cannot allocate 4 GiB contiguous RAM block.
|
||||
|
||||
@@ -75,20 +75,22 @@
|
||||
|
||||
1. `redox-drm` daemon is not being spawned by `pcid-spawner` for the active GPU
|
||||
2. No `/scheme/drm/card0` device exists
|
||||
3. `KWIN_DRM_DEVICES` environment variable is not set to the correct path
|
||||
4. KWin's `--drm` path never activates
|
||||
3. `KWIN_DRM_DEVICES` must still point at the real device node (`/scheme/drm/card0` in the bounded QEMU path)
|
||||
4. The compositor wrapper must wait for that node even when the environment is already populated, because `pcid-spawner` is intentionally asynchronous in Red Bear OS
|
||||
|
||||
**Files to modify:**
|
||||
|
||||
| File | Change | Why |
|
||||
|------|--------|-----|
|
||||
| `config/redbear-full.toml` — `20_greeter.service` | Add `KWIN_DRM_DEVICES = "/scheme/drm/card0"` to greeter env | Tells greeter compositor where to find DRM device |
|
||||
| `config/redbear-full.toml` — `20_greeter.service` | Keep explicit `00_pcid-spawner.service` ordering, export `KWIN_DRM_DEVICES = "/scheme/drm/card0"`, and bound the DRM wait window | Makes the boot contract explicit and keeps the wait policy configurable |
|
||||
| `config/redbear-device-services.toml` | Verify `/lib/pcid.d/` rules are installed with correct paths and vendor/class match patterns | pcid-spawner needs matching rules to auto-spawn redox-drm |
|
||||
| `local/recipes/gpu/redox-drm/source/src/main.rs` | Add startup logging (which PCI device matched, driver initialized, scheme registered) | Diagnostic visibility — confirms daemon runs |
|
||||
| `local/recipes/system/redbear-greeter/source/redbear-greeter-compositor` | Add `KWIN_DRM_DEVICES` awareness and fallback logging | Already partially done — verify env propagation from init service |
|
||||
| `local/recipes/system/redbear-greeter/source/redbear-greeter-compositor` | Wait for the configured DRM node even when `KWIN_DRM_DEVICES` is pre-set, then fall back honestly if the node never appears | Service ordering alone cannot prove `/scheme/drm/card0` exists |
|
||||
|
||||
**QEMU-specific fix:** The `virtio-vga` device (vendor `0x1AF4`, class `0x0300`) needs a pcid rule. Check if `config/redbear-full.toml`'s `virtio-gpud.toml` matches.
|
||||
|
||||
**Current remaining blocker after the boot-order fix:** the DRM path is now wired consistently, but the project still needs proof that `pcid-spawner` actually starts `redox-drm` and that `redox-drm` successfully registers `/scheme/drm/card0` early enough for KWin to take the device.
|
||||
|
||||
**Acceptance criteria:**
|
||||
- [ ] `redox-drm` daemon appears in `ps` after boot (or logs "DRM daemon started" in boot log)
|
||||
- [ ] `/scheme/drm/card0` is accessible from the guest
|
||||
|
||||
@@ -86,7 +86,7 @@ and what must happen, in what order, to reach a usable KDE Plasma desktop.**
|
||||
| qtdeclarative | **builds** | enabled | Qt6Quick metadata exported; QML JIT disabled for Redox; downstream proof insufficient |
|
||||
| qtwayland | **builds** | enabled | Wayland QPA plugin |
|
||||
| qtsvg | **builds** | enabled | SVG support |
|
||||
| KF6 frameworks (30/32) | **build real** | 20 enabled + kglobalacceld | 30 real cmake builds; 2 stubs (knewstuff, kwallet); 3 suppressed (kirigami, knewstuff, kwallet) |
|
||||
| KF6 frameworks (30/32) | **build real** | 22 enabled + kglobalacceld | 30 real cmake builds; knewstuff/kwallet now have real cmake attempts; 1 suppressed (kirigami, QML-dependent) |
|
||||
| kf6-kio | **honest build** | enabled | KIOCore-only; local Redox compat headers; no sysroot fakery |
|
||||
| kirigami | **stub** | suppressed | QML-dependent; gated on Qt6Quick downstream proof |
|
||||
| kf6-knewstuff | **stub** | suppressed | cmake configs only; deferrable |
|
||||
@@ -152,7 +152,7 @@ Blocked gate: Layer 1 (GPU CS ioctl) ← hardware + Mesa HW cross-compilation
|
||||
|
||||
`config/redbear-full.toml` enables the full desktop-capable surface including:
|
||||
|
||||
- 20 KF6 frameworks + kglobalacceld
|
||||
- 22 KF6 frameworks + kglobalacceld
|
||||
- 3 Plasma packages (framework, workspace, desktop)
|
||||
- kwin (stub with wrapper scripts) + redbear-compositor (real Rust compositor)
|
||||
- mesa + libdrm
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Red Bear OS D-Bus Integration Plan
|
||||
|
||||
**Version:** 1.0 — 2026-04-17
|
||||
**Version:** 3.0 — 2026-04-29
|
||||
**Status:** Active plan
|
||||
**Scope:** Full D-Bus infrastructure for KDE Plasma 6 on Wayland, tightly integrated with Redox scheme IPC
|
||||
**Parent plan:** `local/docs/CONSOLE-TO-KDE-DESKTOP-PLAN.md` (v3.0)
|
||||
@@ -23,10 +23,12 @@ This plan defines a Redox-native D-Bus service architecture built on three decis
|
||||
supports traditional `.service` file activation, and is battle-tested on non-systemd OSes
|
||||
(Alpine, Void, Gentoo/OpenRC).
|
||||
|
||||
2. **Build `redbear-sessiond`** — a small Rust daemon (using `zbus`) that exposes the minimal
|
||||
`org.freedesktop.login1` subset KWin already expects. Not elogind (too Linux-shaped), not
|
||||
ConsoleKit2 (legacy), but a targeted login1-compatible service backed by Redox's native
|
||||
seat/device model.
|
||||
2. **Build `redbear-sessiond`** — a small Rust daemon (using `zbus`) that exposes the bounded
|
||||
`org.freedesktop.login1` surface KWin already expects, plus a few higher-level manager helpers
|
||||
(`GetUser`, `ActivateSessionOnSeat`, lock/unlock/terminate helpers) that broader KDE session
|
||||
plumbing can call without forcing Red Bear into an elogind-sized reimplementation. Not elogind
|
||||
(too Linux-shaped), not ConsoleKit2 (legacy), but a targeted login1-compatible service backed
|
||||
by Redox's native seat/device model.
|
||||
|
||||
3. **Keep schemes and D-Bus separate.** Schemes are the native resource plane. D-Bus is the
|
||||
desktop compatibility plane. Only add D-Bus facades when there is a real published freedesktop
|
||||
@@ -105,11 +107,12 @@ specific schemes it needs. This keeps the architecture honest and avoids a leaky
|
||||
| **libdbus-1** | Part of dbus package | ✅ Builds | `libdbus-1.so.3.38.3` staged, pkgconfig and cmake files present |
|
||||
| **QtDBus** | `recipes/wip/qt/qtbase/` | ✅ Enabled | `FEATURE_dbus=ON` for target build, Qt6DBus module present |
|
||||
| **kf6-kdbusaddons** | `local/recipes/kde/kf6-kdbusaddons/` | ✅ Builds | KF6 D-Bus convenience wrappers, provides qdbus tool integration |
|
||||
| **D-Bus system bus** | `config/redbear-full.toml`, `redbear-kde.toml` | ✅ Wired | `12_dbus.service` launches `dbus-daemon --system`, `messagebus` user (uid=100), `/var/lib/dbus` + `/run/dbus` directories |
|
||||
| **D-Bus session bus** | `config/redbear-kde.toml` | ✅ Scripted | `redbear-kde-session` launches `dbus-launch --sh-syntax` before KWin |
|
||||
| **seatd** | `config/redbear-kde.toml` | ✅ Wired | `13_seatd.service`, `LIBSEAT_BACKEND=seatd`, `SEATD_SOCK=/run/seatd.sock` |
|
||||
| **D-Bus system bus** | `config/redbear-full.toml` | ✅ Wired | `12_dbus.service` launches `dbus-daemon --system`, `messagebus` user (uid=100), `/var/lib/dbus` + `/run/dbus` directories |
|
||||
| **D-Bus session bus** | `local/recipes/system/redbear-greeter/source/redbear-kde-session` | ✅ Scripted | `redbear-kde-session` launches `dbus-launch --sh-syntax` before KWin |
|
||||
| **seatd** | `config/redbear-full.toml` | ✅ Wired | `13_seatd.service`, `LIBSEAT_BACKEND=seatd`, `SEATD_SOCK=/run/seatd.sock` |
|
||||
| **kf6-kservice** | `local/recipes/kde/kf6-kservice/` | ✅ Builds | Depends on kf6-kdbusaddons |
|
||||
| **kf6-kglobalaccel** | `local/recipes/kde/kf6-kglobalaccel/` | ✅ Builds | Depends on kf6-kdbusaddons |
|
||||
| **Session activation scaffolds** | `local/recipes/system/redbear-dbus-services/` | ✅ Staged | Session `.service` files now cover kded6, kglobalaccel, ActivityManager, JobViewServer, ksmserver, notifications, and StatusNotifierWatcher |
|
||||
| **KWin (D-Bus)** | `local/recipes/kde/kwin/` | ✅ USE_DBUS=ON | Registers `org.kde.KWin` on session bus |
|
||||
|
||||
### 3.2 What Exists But Is Incomplete
|
||||
@@ -132,7 +135,7 @@ specific schemes it needs. This keeps the architecture honest and avoids a leaky
|
||||
| **Polkit** | `org.freedesktop.PolicyKit1` | Authorization scaffold (always-permit) | KAuth |
|
||||
| **UPower** | `org.freedesktop.UPower` | Provisional ACPI-backed power service; current backing power surface is still incomplete | kf6-solid, PowerDevil |
|
||||
| **UDisks2** | `org.freedesktop.UDisks2` | Bounded real `disk.*` / partition enumeration | kf6-solid |
|
||||
| **D-Bus service files** | `/usr/share/dbus-1/` | Activation is staged and shipped, but only for the current scaffold services | All D-Bus services |
|
||||
| **D-Bus service files** | `/usr/share/dbus-1/` | Activation is staged and shipped for the current scaffold services plus bounded KDE session daemons (`kded6`, `kglobalaccel`, ActivityManager, JobViewServer, ksmserver) | All D-Bus services |
|
||||
| **D-Bus policy files** | `/etc/dbus-1/` | Policy is staged and shipped for the current scaffold services | All D-Bus services |
|
||||
| **zbus crate marker** | `local/recipes/libs/zbus/` | Build-ordering marker; actual zbus crate is fetched by downstream Cargo builds | Future Rust D-Bus services |
|
||||
|
||||
@@ -166,8 +169,8 @@ from `openRestricted()` — meaning it can start but cannot manage real devices.
|
||||
```
|
||||
plasma-workspace needs:
|
||||
org.kde.KWin ✅ KWin provides
|
||||
org.kde.kglobalaccel ❌ NEEDS SERVICE — kf6-kglobalaccel daemon
|
||||
org.kde.kded6 ❌ NEEDS SERVICE — KDE daemon
|
||||
org.kde.kglobalaccel ⚠️ activation file staged — daemon/runtime proof still needed
|
||||
org.kde.kded6 ⚠️ activation file staged — daemon/runtime proof still needed
|
||||
org.kde.plasmashell ✅ plasmashell provides (self-register)
|
||||
org.kde.osdService ✅ plasmashell provides
|
||||
org.freedesktop.Notifications ✅ scaffold exists — current daemon logs to stderr only
|
||||
@@ -181,10 +184,10 @@ Complete Plasma needs (after re-enabling disabled components):
|
||||
org.freedesktop.UDisks2 ✅ bounded real enumeration exists — still needs runtime validation for kf6-solid
|
||||
org.freedesktop.NetworkManager ⏸️ DEFERRED — Red Bear OS uses redbear-netctl for now
|
||||
org.freedesktop.PolicyKit1 ⚠️ scaffold exists — KAuth still blocked on missing PolkitQt6-1 packaging
|
||||
org.freedesktop.StatusNotifierWatcher ❌ NEEDS SERVICE — system tray
|
||||
org.kde.JobViewServer ❌ NEEDS SERVICE — job progress tracking
|
||||
org.kde.ksmserver ❌ NEEDS SERVICE — session management
|
||||
org.kde.ActivityManager ❌ NEEDS SERVICE — KDE activities
|
||||
org.freedesktop.StatusNotifierWatcher ✅ activation file staged — runtime watcher still needs broader desktop proof
|
||||
org.kde.JobViewServer ⚠️ activation file staged — kuiserver binary/runtime still open
|
||||
org.kde.ksmserver ⚠️ activation file staged — session manager binary/runtime still open
|
||||
org.kde.ActivityManager ⚠️ activation file staged — activity manager binary/runtime still open
|
||||
org.freedesktop.ScreenSaver ❌ NEEDS SERVICE — screen locking
|
||||
```
|
||||
|
||||
@@ -195,7 +198,7 @@ Complete Plasma needs (after re-enabling disabled components):
|
||||
| `zbus` recipe is only a marker | Build-ordering marker exists; actual Rust crate comes from downstream Cargo resolution |
|
||||
| D-Bus service activation is scaffolded | `/usr/share/dbus-1/system-services/` and `session-services/` are staged for current services |
|
||||
| D-Bus policy configuration is scaffolded | `/etc/dbus-1/system.d/` XML policy files are staged for current services |
|
||||
| Activation coverage is still partial | Only current scaffold services have `.service` files and policies |
|
||||
| Activation coverage is still partial | Core system services and several KDE session daemons now have `.service` files, but screen-lock/session-polish services are still missing |
|
||||
| kf6-knotifications now D-Bus enabled | Enabled against a minimal notification daemon scaffold |
|
||||
| kf6-solid D-Bus disabled | Must re-enable after UPower/udisks2 backends exist |
|
||||
| kf6-kio D-Bus disabled | Must re-enable for full KIO functionality |
|
||||
@@ -218,8 +221,11 @@ Complete Plasma needs (after re-enabling disabled components):
|
||||
│ ┌──────────────────────────────────────────────────────────────────┐ │
|
||||
│ │ org.kde.KWin (KWin self-registers) │ │
|
||||
│ │ org.kde.plasmashell (plasmashell self-registers) │ │
|
||||
│ │ org.kde.kglobalaccel (kglobalaccel daemon) │ │
|
||||
│ │ org.kde.kglobalaccel (kglobalaccel daemon) │ │
|
||||
│ │ org.kde.kded6 (KDE daemon) │ │
|
||||
│ │ org.kde.ActivityManager (kactivitymanagerd scaffold) │ │
|
||||
│ │ org.kde.JobViewServer (kuiserver scaffold) │ │
|
||||
│ │ org.kde.ksmserver (ksmserver scaffold) │ │
|
||||
│ │ org.freedesktop.Notifications (redbear-notifications) │ │
|
||||
│ │ org.freedesktop.StatusNotifierWatcher (redbear-statusnotifier)│ │
|
||||
│ └──────────────────────────────────────────────────────────────────┘ │
|
||||
@@ -301,8 +307,13 @@ device access control, session management, and power signaling.
|
||||
| Interface | Method/Signal | Signature | Description |
|
||||
|-----------|--------------|-----------|-------------|
|
||||
| `org.freedesktop.login1.Manager` | `GetSession` | `s → o` | Returns session object path by ID |
|
||||
| | `GetUser` | `u → o` | Returns the current user object path for the bounded active session owner |
|
||||
| | `GetUserByPID` | `u → o` | Returns the current user object path for the bounded active session surface |
|
||||
| | `ListSessions` | `→ a(susso)` | Lists all active sessions |
|
||||
| | `GetSeat` | `s → o` | Returns seat object path |
|
||||
| | `ActivateSessionOnSeat` | `ss → ` | Marks the bounded session active on the requested seat |
|
||||
| | `LockSessions` / `UnlockSessions` | `→ ` | Updates the bounded session lock hint for KDE session plumbing |
|
||||
| | `TerminateUser` | `u → ` | Marks the bounded active user session closing |
|
||||
| | signal `PrepareForSleep` | `b` | Emitted before/after sleep (false=resume, true=suspend) |
|
||||
| | signal `PrepareForShutdown` | `b` | Emitted before/after shutdown |
|
||||
| `org.freedesktop.DBus.Properties` | `Get` | `ss → v` | Property access |
|
||||
@@ -408,6 +419,21 @@ org.kde.kded6.service:
|
||||
Name=org.kde.kded6
|
||||
Exec=/usr/bin/kded6
|
||||
|
||||
org.kde.ActivityManager.service:
|
||||
[D-BUS Service]
|
||||
Name=org.kde.ActivityManager
|
||||
Exec=/usr/bin/kactivitymanagerd
|
||||
|
||||
org.kde.JobViewServer.service:
|
||||
[D-BUS Service]
|
||||
Name=org.kde.JobViewServer
|
||||
Exec=/usr/bin/kuiserver
|
||||
|
||||
org.kde.ksmserver.service:
|
||||
[D-BUS Service]
|
||||
Name=org.kde.ksmserver
|
||||
Exec=/usr/bin/ksmserver
|
||||
|
||||
org.freedesktop.Notifications.service:
|
||||
[D-BUS Service]
|
||||
Name=org.freedesktop.Notifications
|
||||
@@ -427,6 +453,9 @@ local/recipes/system/redbear-dbus-services/
|
||||
├── session-services/
|
||||
│ ├── org.kde.kglobalaccel.service
|
||||
│ ├── org.kde.kded6.service
|
||||
│ ├── org.kde.ActivityManager.service
|
||||
│ ├── org.kde.JobViewServer.service
|
||||
│ ├── org.kde.ksmserver.service
|
||||
│ └── org.freedesktop.Notifications.service
|
||||
├── system.d/
|
||||
│ ├── org.freedesktop.login1.conf
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
# Full NewStuffQuick/NewStuffWidgets require Qt6Quick which is not yet QML-proven.
|
||||
[source]
|
||||
tar = "https://invent.kde.org/frameworks/knewstuff/-/archive/v6.10.0/knewstuff-v6.10.0.tar.gz"
|
||||
blake3 = "0000000000000000000000000000000000000000000000000000000000000000"
|
||||
|
||||
[build]
|
||||
template = "custom"
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
# SPDX-FileCopyrightText: none
|
||||
# SPDX-License-Identifier: CC0-1.0
|
||||
|
||||
# clang-format/tidy
|
||||
3369dc89acf91e6b22353288ab06cfe67ccdd83d
|
||||
b76f101a26022ba122688fe1998f10dff421b492
|
||||
074ea06fef7626f4e4761fec755508e19367a2eb
|
||||
@@ -0,0 +1 @@
|
||||
*.svg binary
|
||||
@@ -0,0 +1,31 @@
|
||||
# SPDX-FileCopyrightText: none
|
||||
# SPDX-License-Identifier: CC0-1.0
|
||||
# Ignore the following files
|
||||
*~
|
||||
*.[oa]
|
||||
*.diff
|
||||
*.kate-swp
|
||||
*.kdev4
|
||||
.kdev_include_paths
|
||||
*.kdevelop.pcs
|
||||
*.moc
|
||||
*.moc.cpp
|
||||
*.orig
|
||||
*.user
|
||||
.*.swp
|
||||
.swp.*
|
||||
Doxyfile
|
||||
Makefile
|
||||
avail
|
||||
random_seed
|
||||
/build*/
|
||||
CMakeLists.txt.user*
|
||||
*.unc-backup*
|
||||
.cmake/
|
||||
.clang-format
|
||||
/compile_commands.json
|
||||
.clangd
|
||||
.idea
|
||||
.vscode
|
||||
/cmake-build*
|
||||
.cache
|
||||
@@ -0,0 +1,10 @@
|
||||
# SPDX-FileCopyrightText: 2020 Volker Krause <vkrause@kde.org>
|
||||
# SPDX-License-Identifier: CC0-1.0
|
||||
|
||||
include:
|
||||
- project: sysadmin/ci-utilities
|
||||
file:
|
||||
- /gitlab-templates/linux-qt6.yml
|
||||
- /gitlab-templates/alpine-qt6.yml
|
||||
- /gitlab-templates/freebsd-qt6.yml
|
||||
- /gitlab-templates/windows-qt6.yml
|
||||
@@ -0,0 +1,23 @@
|
||||
# SPDX-FileCopyrightText: none
|
||||
# SPDX-License-Identifier: CC0-1.0
|
||||
|
||||
Dependencies:
|
||||
- 'on': ['Linux', 'FreeBSD', 'Windows', 'macOS']
|
||||
'require':
|
||||
'frameworks/extra-cmake-modules': '@same'
|
||||
'frameworks/kcoreaddons' : '@same'
|
||||
'frameworks/attica' : '@same'
|
||||
'frameworks/ki18n' : '@same'
|
||||
'frameworks/kconfig' : '@same'
|
||||
'frameworks/karchive' : '@same'
|
||||
'frameworks/kirigami' : '@same'
|
||||
'frameworks/kpackage' : '@same'
|
||||
'frameworks/syndication' : '@same'
|
||||
'frameworks/kwidgetsaddons' : '@same'
|
||||
|
||||
runtime-dependencies:
|
||||
'frameworks/kcmutils' : '@same'
|
||||
|
||||
Options:
|
||||
test-before-installing: True
|
||||
require-passing-tests-on: [ 'Linux', 'FreeBSD' ]
|
||||
@@ -0,0 +1,9 @@
|
||||
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||||
Upstream-Name: knewstuff
|
||||
Upstream-Contact: Dan Leinir Turthra Jensen <admin@leinir.dk>
|
||||
Source: https://invent.kde.org/frameworks/knewstuff
|
||||
|
||||
Files: autotests/core/data/*
|
||||
Copyright: Alexander Lohnau <alexander.lohnau@gmx.de>
|
||||
License: CC0-1.0
|
||||
|
||||
@@ -0,0 +1,155 @@
|
||||
# SPDX-FileCopyrightText: KDE Contributors
|
||||
# SPDX-License-Identifier: BSD-2-Clause
|
||||
|
||||
cmake_minimum_required(VERSION 3.16)
|
||||
|
||||
set(KF_VERSION "6.10.0") # handled by release scripts
|
||||
set(KF_DEP_VERSION "6.10.0") # handled by release scripts
|
||||
project(KNewStuff VERSION ${KF_VERSION})
|
||||
|
||||
set(CMAKE_CXX_EXTENSIONS OFF)
|
||||
|
||||
include(FeatureSummary)
|
||||
find_package(ECM 6.10.0 NO_MODULE)
|
||||
set_package_properties(ECM PROPERTIES TYPE REQUIRED DESCRIPTION "Extra CMake Modules." URL "https://commits.kde.org/extra-cmake-modules")
|
||||
feature_summary(WHAT REQUIRED_PACKAGES_NOT_FOUND FATAL_ON_MISSING_REQUIRED_PACKAGES)
|
||||
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH})
|
||||
|
||||
include(KDEInstallDirs)
|
||||
include(KDECMakeSettings)
|
||||
|
||||
include(ECMQmlModule)
|
||||
include(ECMQtDeclareLoggingCategory)
|
||||
include(KDEFrameworkCompilerSettings NO_POLICY_SCOPE)
|
||||
|
||||
set(REQUIRED_QT_VERSION 6.6.0)
|
||||
find_package(Qt6 ${REQUIRED_QT_VERSION} NO_MODULE REQUIRED COMPONENTS Gui Widgets Xml Qml Quick QuickWidgets)
|
||||
find_package(KF6Archive ${KF_DEP_VERSION} REQUIRED)
|
||||
find_package(KF6Config ${KF_DEP_VERSION} REQUIRED)
|
||||
find_package(KF6CoreAddons ${KF_DEP_VERSION} REQUIRED)
|
||||
find_package(KF6I18n ${KF_DEP_VERSION} REQUIRED)
|
||||
find_package(KF6Package ${KF_DEP_VERSION} REQUIRED)
|
||||
find_package(KF6WidgetsAddons ${KF_DEP_VERSION} REQUIRED)
|
||||
|
||||
include(ECMGenerateExportHeader)
|
||||
include(ECMSetupVersion)
|
||||
include(ECMGenerateHeaders)
|
||||
include(ECMAddQch)
|
||||
include(ECMDeprecationSettings)
|
||||
include(KDEClangFormat)
|
||||
include(KDEGitCommitHooks)
|
||||
include(CMakeDependentOption)
|
||||
|
||||
find_package(KF6Attica ${KF_DEP_VERSION} CONFIG REQUIRED)
|
||||
set_package_properties(KF6Attica PROPERTIES DESCRIPTION "A Qt library that implements the Open Collaboration Services API"
|
||||
PURPOSE "Support for Get Hot New Stuff in KNewStuff"
|
||||
URL "https://commits.kde.org/attica"
|
||||
TYPE REQUIRED
|
||||
)
|
||||
find_package(KF6Kirigami2 2.12.0)
|
||||
set_package_properties(KF6Kirigami2 PROPERTIES
|
||||
DESCRIPTION "KDE's lightweight user interface framework for mobile and convergent applications"
|
||||
URL "https://techbase.kde.org/Kirigami"
|
||||
PURPOSE "Required by KNewStuffQuick's qml components"
|
||||
TYPE RUNTIME)
|
||||
|
||||
find_package(KF6Syndication ${KF6_DEP_VERSION})
|
||||
set_package_properties(KF6Syndication PROPERTIES
|
||||
DESCRIPTION "KDE's RSS/Atom parser library"
|
||||
PURPOSE "Used by the OPDS provider to handle most of the parsing."
|
||||
TYPE OPTIONAL
|
||||
)
|
||||
|
||||
|
||||
option(BUILD_QCH "Build API documentation in QCH format (for e.g. Qt Assistant, Qt Creator & KDevelop)" OFF)
|
||||
add_feature_info(QCH ${BUILD_QCH} "API documentation in QCH format (for e.g. Qt Assistant, Qt Creator & KDevelop)")
|
||||
|
||||
cmake_dependent_option(BUILD_DESIGNERPLUGIN "Build plugin for Qt Designer" ON "NOT CMAKE_CROSSCOMPILING" OFF)
|
||||
add_feature_info(DESIGNERPLUGIN ${BUILD_DESIGNERPLUGIN} "Build plugin for Qt Designer")
|
||||
|
||||
set(EXCLUDE_DEPRECATED_BEFORE_AND_AT 0 CACHE STRING "Control the range of deprecated API excluded from the build [default=0].")
|
||||
|
||||
ecm_setup_version(PROJECT VARIABLE_PREFIX KNEWSTUFF
|
||||
VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/knewstuff_version.h"
|
||||
PACKAGE_VERSION_FILE "${CMAKE_CURRENT_BINARY_DIR}/KF6NewStuffConfigVersion.cmake"
|
||||
SOVERSION 6)
|
||||
ecm_setup_version(PROJECT VARIABLE_PREFIX KNEWSTUFFCORE
|
||||
PACKAGE_VERSION_FILE "${CMAKE_CURRENT_BINARY_DIR}/KF6NewStuffCoreConfigVersion.cmake"
|
||||
SOVERSION 6)
|
||||
ecm_setup_version(PROJECT VARIABLE_PREFIX KNEWSTUFFWIDGETS
|
||||
PACKAGE_VERSION_FILE "${CMAKE_CURRENT_BINARY_DIR}/KF6NewStuffWidgetsConfigVersion.cmake"
|
||||
SOVERSION 6)
|
||||
|
||||
add_definitions(-DTRANSLATION_DOMAIN=\"knewstuff6\")
|
||||
ecm_set_disabled_deprecation_versions(
|
||||
QT 6.8.0
|
||||
KF 6.8.0
|
||||
)
|
||||
|
||||
ki18n_install(po)
|
||||
add_subdirectory(src)
|
||||
if (BUILD_TESTING)
|
||||
add_subdirectory(autotests)
|
||||
endif()
|
||||
|
||||
set(CMAKECONFIG_INSTALL_DIR "${KDE_INSTALL_CMAKEPACKAGEDIR}/KF6NewStuff")
|
||||
set(CMAKECONFIG_CORE_INSTALL_DIR "${KDE_INSTALL_CMAKEPACKAGEDIR}/KF6NewStuffCore")
|
||||
|
||||
if (BUILD_QCH)
|
||||
ecm_install_qch_export(
|
||||
TARGETS KF6NewStuff_QCH
|
||||
FILE KF6NewStuffQchTargets.cmake
|
||||
DESTINATION "${CMAKECONFIG_INSTALL_DIR}"
|
||||
COMPONENT Devel
|
||||
)
|
||||
set(PACKAGE_INCLUDE_QCHTARGETS "include(\"\${CMAKE_CURRENT_LIST_DIR}/KF6NewStuffQchTargets.cmake\")")
|
||||
ecm_install_qch_export(
|
||||
TARGETS KF6NewStuffCore_QCH
|
||||
FILE KF6NewStuffCoreQchTargets.cmake
|
||||
DESTINATION "${CMAKECONFIG_CORE_INSTALL_DIR}"
|
||||
COMPONENT Devel
|
||||
)
|
||||
set(PACKAGE_INCLUDE_CORE_QCHTARGETS "include(\"\${CMAKE_CURRENT_LIST_DIR}/KF6NewStuffCoreQchTargets.cmake\")")
|
||||
# TODO: KF6NewStuffQuick
|
||||
endif()
|
||||
|
||||
include(CMakePackageConfigHelpers)
|
||||
|
||||
configure_package_config_file(
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/KF6NewStuffConfig.cmake.in"
|
||||
"${CMAKE_CURRENT_BINARY_DIR}/KF6NewStuffConfig.cmake"
|
||||
INSTALL_DESTINATION ${CMAKECONFIG_INSTALL_DIR}
|
||||
)
|
||||
|
||||
configure_package_config_file(
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/KF6NewStuffCoreConfig.cmake.in"
|
||||
"${CMAKE_CURRENT_BINARY_DIR}/KF6NewStuffCoreConfig.cmake"
|
||||
INSTALL_DESTINATION ${CMAKECONFIG_CORE_INSTALL_DIR}
|
||||
)
|
||||
|
||||
install(FILES
|
||||
"${CMAKE_CURRENT_BINARY_DIR}/KF6NewStuffConfig.cmake"
|
||||
"${CMAKE_CURRENT_BINARY_DIR}/KF6NewStuffConfigVersion.cmake"
|
||||
DESTINATION "${CMAKECONFIG_INSTALL_DIR}"
|
||||
COMPONENT Devel
|
||||
)
|
||||
install(FILES
|
||||
"${CMAKE_CURRENT_BINARY_DIR}/KF6NewStuffCoreConfig.cmake"
|
||||
"${CMAKE_CURRENT_BINARY_DIR}/KF6NewStuffCoreConfigVersion.cmake"
|
||||
DESTINATION "${CMAKECONFIG_CORE_INSTALL_DIR}"
|
||||
COMPONENT Devel
|
||||
)
|
||||
|
||||
install(EXPORT KF6NewStuffTargets DESTINATION "${CMAKECONFIG_INSTALL_DIR}" FILE KF6NewStuffTargets.cmake NAMESPACE KF6::)
|
||||
install(EXPORT KF6NewStuffCoreTargets DESTINATION "${CMAKECONFIG_CORE_INSTALL_DIR}" FILE KF6NewStuffCoreTargets.cmake NAMESPACE KF6::)
|
||||
|
||||
install(
|
||||
FILES ${CMAKE_CURRENT_BINARY_DIR}/knewstuff_version.h
|
||||
DESTINATION ${KDE_INSTALL_INCLUDEDIR_KF}/KNewStuff
|
||||
COMPONENT Devel
|
||||
)
|
||||
|
||||
include(ECMFeatureSummary)
|
||||
ecm_feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
|
||||
|
||||
kde_configure_git_pre_commit_hook(CHECKS CLANG_FORMAT)
|
||||
@@ -0,0 +1,19 @@
|
||||
# SPDX-FileCopyrightText: KDE Contributors
|
||||
# SPDX-License-Identifier: BSD-2-Clause
|
||||
|
||||
@PACKAGE_INIT@
|
||||
|
||||
include(CMakeFindDependencyMacro)
|
||||
|
||||
find_dependency(KF6NewStuffCore "@KF_VERSION@")
|
||||
find_dependency(Qt6Widgets @REQUIRED_QT_VERSION@)
|
||||
|
||||
if (NOT @BUILD_SHARED_LIBS@)
|
||||
find_dependency(Qt6Qml @REQUIRED_QT_VERSION@)
|
||||
find_dependency(Qt6Quick @REQUIRED_QT_VERSION@)
|
||||
|
||||
find_dependency(KF6I18n "@KF_DEP_VERSION@")
|
||||
endif()
|
||||
|
||||
include("${CMAKE_CURRENT_LIST_DIR}/KF6NewStuffTargets.cmake")
|
||||
@PACKAGE_INCLUDE_QCHTARGETS@
|
||||
@@ -0,0 +1,26 @@
|
||||
# SPDX-FileCopyrightText: KDE Contributors
|
||||
# SPDX-License-Identifier: BSD-2-Clause
|
||||
|
||||
@PACKAGE_INIT@
|
||||
|
||||
include(CMakeFindDependencyMacro)
|
||||
find_dependency(Qt6Gui @REQUIRED_QT_VERSION@)
|
||||
|
||||
find_dependency(KF6Attica "@KF_DEP_VERSION@")
|
||||
find_dependency(KF6CoreAddons "@KF_DEP_VERSION@")
|
||||
|
||||
if (NOT @BUILD_SHARED_LIBS@)
|
||||
find_dependency(KF6I18n "@KF_DEP_VERSION@")
|
||||
find_dependency(KF6Archive "@KF_DEP_VERSION@")
|
||||
find_dependency(KF6Package "@KF_DEP_VERSION@")
|
||||
find_dependency(KF6Config "@KF_DEP_VERSION@")
|
||||
|
||||
if(@KF6Syndication_FOUND@)
|
||||
find_dependency(KF6Syndication "@KF_VERSION@")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
set(KDE_INSTALL_KNSRCDIR "@KDE_INSTALL_DATADIR@/knsrcfiles")
|
||||
|
||||
include("${CMAKE_CURRENT_LIST_DIR}/KF6NewStuffCoreTargets.cmake")
|
||||
@PACKAGE_INCLUDE_CORE_QCHTARGETS@
|
||||
@@ -0,0 +1,9 @@
|
||||
Copyright (c) <year> <owner> All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
||||
|
||||
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
||||
|
||||
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
@@ -0,0 +1,121 @@
|
||||
Creative Commons Legal Code
|
||||
|
||||
CC0 1.0 Universal
|
||||
|
||||
CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
|
||||
LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN
|
||||
ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS
|
||||
INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES
|
||||
REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS
|
||||
PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM
|
||||
THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED
|
||||
HEREUNDER.
|
||||
|
||||
Statement of Purpose
|
||||
|
||||
The laws of most jurisdictions throughout the world automatically confer
|
||||
exclusive Copyright and Related Rights (defined below) upon the creator
|
||||
and subsequent owner(s) (each and all, an "owner") of an original work of
|
||||
authorship and/or a database (each, a "Work").
|
||||
|
||||
Certain owners wish to permanently relinquish those rights to a Work for
|
||||
the purpose of contributing to a commons of creative, cultural and
|
||||
scientific works ("Commons") that the public can reliably and without fear
|
||||
of later claims of infringement build upon, modify, incorporate in other
|
||||
works, reuse and redistribute as freely as possible in any form whatsoever
|
||||
and for any purposes, including without limitation commercial purposes.
|
||||
These owners may contribute to the Commons to promote the ideal of a free
|
||||
culture and the further production of creative, cultural and scientific
|
||||
works, or to gain reputation or greater distribution for their Work in
|
||||
part through the use and efforts of others.
|
||||
|
||||
For these and/or other purposes and motivations, and without any
|
||||
expectation of additional consideration or compensation, the person
|
||||
associating CC0 with a Work (the "Affirmer"), to the extent that he or she
|
||||
is an owner of Copyright and Related Rights in the Work, voluntarily
|
||||
elects to apply CC0 to the Work and publicly distribute the Work under its
|
||||
terms, with knowledge of his or her Copyright and Related Rights in the
|
||||
Work and the meaning and intended legal effect of CC0 on those rights.
|
||||
|
||||
1. Copyright and Related Rights. A Work made available under CC0 may be
|
||||
protected by copyright and related or neighboring rights ("Copyright and
|
||||
Related Rights"). Copyright and Related Rights include, but are not
|
||||
limited to, the following:
|
||||
|
||||
i. the right to reproduce, adapt, distribute, perform, display,
|
||||
communicate, and translate a Work;
|
||||
ii. moral rights retained by the original author(s) and/or performer(s);
|
||||
iii. publicity and privacy rights pertaining to a person's image or
|
||||
likeness depicted in a Work;
|
||||
iv. rights protecting against unfair competition in regards to a Work,
|
||||
subject to the limitations in paragraph 4(a), below;
|
||||
v. rights protecting the extraction, dissemination, use and reuse of data
|
||||
in a Work;
|
||||
vi. database rights (such as those arising under Directive 96/9/EC of the
|
||||
European Parliament and of the Council of 11 March 1996 on the legal
|
||||
protection of databases, and under any national implementation
|
||||
thereof, including any amended or successor version of such
|
||||
directive); and
|
||||
vii. other similar, equivalent or corresponding rights throughout the
|
||||
world based on applicable law or treaty, and any national
|
||||
implementations thereof.
|
||||
|
||||
2. Waiver. To the greatest extent permitted by, but not in contravention
|
||||
of, applicable law, Affirmer hereby overtly, fully, permanently,
|
||||
irrevocably and unconditionally waives, abandons, and surrenders all of
|
||||
Affirmer's Copyright and Related Rights and associated claims and causes
|
||||
of action, whether now known or unknown (including existing as well as
|
||||
future claims and causes of action), in the Work (i) in all territories
|
||||
worldwide, (ii) for the maximum duration provided by applicable law or
|
||||
treaty (including future time extensions), (iii) in any current or future
|
||||
medium and for any number of copies, and (iv) for any purpose whatsoever,
|
||||
including without limitation commercial, advertising or promotional
|
||||
purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each
|
||||
member of the public at large and to the detriment of Affirmer's heirs and
|
||||
successors, fully intending that such Waiver shall not be subject to
|
||||
revocation, rescission, cancellation, termination, or any other legal or
|
||||
equitable action to disrupt the quiet enjoyment of the Work by the public
|
||||
as contemplated by Affirmer's express Statement of Purpose.
|
||||
|
||||
3. Public License Fallback. Should any part of the Waiver for any reason
|
||||
be judged legally invalid or ineffective under applicable law, then the
|
||||
Waiver shall be preserved to the maximum extent permitted taking into
|
||||
account Affirmer's express Statement of Purpose. In addition, to the
|
||||
extent the Waiver is so judged Affirmer hereby grants to each affected
|
||||
person a royalty-free, non transferable, non sublicensable, non exclusive,
|
||||
irrevocable and unconditional license to exercise Affirmer's Copyright and
|
||||
Related Rights in the Work (i) in all territories worldwide, (ii) for the
|
||||
maximum duration provided by applicable law or treaty (including future
|
||||
time extensions), (iii) in any current or future medium and for any number
|
||||
of copies, and (iv) for any purpose whatsoever, including without
|
||||
limitation commercial, advertising or promotional purposes (the
|
||||
"License"). The License shall be deemed effective as of the date CC0 was
|
||||
applied by Affirmer to the Work. Should any part of the License for any
|
||||
reason be judged legally invalid or ineffective under applicable law, such
|
||||
partial invalidity or ineffectiveness shall not invalidate the remainder
|
||||
of the License, and in such case Affirmer hereby affirms that he or she
|
||||
will not (i) exercise any of his or her remaining Copyright and Related
|
||||
Rights in the Work or (ii) assert any associated claims and causes of
|
||||
action with respect to the Work, in either case contrary to Affirmer's
|
||||
express Statement of Purpose.
|
||||
|
||||
4. Limitations and Disclaimers.
|
||||
|
||||
a. No trademark or patent rights held by Affirmer are waived, abandoned,
|
||||
surrendered, licensed or otherwise affected by this document.
|
||||
b. Affirmer offers the Work as-is and makes no representations or
|
||||
warranties of any kind concerning the Work, express, implied,
|
||||
statutory or otherwise, including without limitation warranties of
|
||||
title, merchantability, fitness for a particular purpose, non
|
||||
infringement, or the absence of latent or other defects, accuracy, or
|
||||
the present or absence of errors, whether or not discoverable, all to
|
||||
the greatest extent permissible under applicable law.
|
||||
c. Affirmer disclaims responsibility for clearing rights of other persons
|
||||
that may apply to the Work or any use thereof, including without
|
||||
limitation any person's Copyright and Related Rights in the Work.
|
||||
Further, Affirmer disclaims responsibility for obtaining any necessary
|
||||
consents, permissions or other rights required for any use of the
|
||||
Work.
|
||||
d. Affirmer understands and acknowledges that Creative Commons is not a
|
||||
party to this document and has no duty or obligation with respect to
|
||||
this CC0 or use of the Work.
|
||||
@@ -0,0 +1,319 @@
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
|
||||
Version 2, June 1991
|
||||
|
||||
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
|
||||
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
|
||||
Everyone is permitted to copy and distribute verbatim copies of this license
|
||||
document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The licenses for most software are designed to take away your freedom to share
|
||||
and change it. By contrast, the GNU General Public License is intended to
|
||||
guarantee your freedom to share and change free software--to make sure the
|
||||
software is free for all its users. This General Public License applies to
|
||||
most of the Free Software Foundation's software and to any other program whose
|
||||
authors commit to using it. (Some other Free Software Foundation software
|
||||
is covered by the GNU Lesser General Public License instead.) You can apply
|
||||
it to your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not price. Our
|
||||
General Public Licenses are designed to make sure that you have the freedom
|
||||
to distribute copies of free software (and charge for this service if you
|
||||
wish), that you receive source code or can get it if you want it, that you
|
||||
can change the software or use pieces of it in new free programs; and that
|
||||
you know you can do these things.
|
||||
|
||||
To protect your rights, we need to make restrictions that forbid anyone to
|
||||
deny you these rights or to ask you to surrender the rights. These restrictions
|
||||
translate to certain responsibilities for you if you distribute copies of
|
||||
the software, or if you modify it.
|
||||
|
||||
For example, if you distribute copies of such a program, whether gratis or
|
||||
for a fee, you must give the recipients all the rights that you have. You
|
||||
must make sure that they, too, receive or can get the source code. And you
|
||||
must show them these terms so they know their rights.
|
||||
|
||||
We protect your rights with two steps: (1) copyright the software, and (2)
|
||||
offer you this license which gives you legal permission to copy, distribute
|
||||
and/or modify the software.
|
||||
|
||||
Also, for each author's protection and ours, we want to make certain that
|
||||
everyone understands that there is no warranty for this free software. If
|
||||
the software is modified by someone else and passed on, we want its recipients
|
||||
to know that what they have is not the original, so that any problems introduced
|
||||
by others will not reflect on the original authors' reputations.
|
||||
|
||||
Finally, any free program is threatened constantly by software patents. We
|
||||
wish to avoid the danger that redistributors of a free program will individually
|
||||
obtain patent licenses, in effect making the program proprietary. To prevent
|
||||
this, we have made it clear that any patent must be licensed for everyone's
|
||||
free use or not licensed at all.
|
||||
|
||||
The precise terms and conditions for copying, distribution and modification
|
||||
follow.
|
||||
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. This License applies to any program or other work which contains a notice
|
||||
placed by the copyright holder saying it may be distributed under the terms
|
||||
of this General Public License. The "Program", below, refers to any such program
|
||||
or work, and a "work based on the Program" means either the Program or any
|
||||
derivative work under copyright law: that is to say, a work containing the
|
||||
Program or a portion of it, either verbatim or with modifications and/or translated
|
||||
into another language. (Hereinafter, translation is included without limitation
|
||||
in the term "modification".) Each licensee is addressed as "you".
|
||||
|
||||
Activities other than copying, distribution and modification are not covered
|
||||
by this License; they are outside its scope. The act of running the Program
|
||||
is not restricted, and the output from the Program is covered only if its
|
||||
contents constitute a work based on the Program (independent of having been
|
||||
made by running the Program). Whether that is true depends on what the Program
|
||||
does.
|
||||
|
||||
1. You may copy and distribute verbatim copies of the Program's source code
|
||||
as you receive it, in any medium, provided that you conspicuously and appropriately
|
||||
publish on each copy an appropriate copyright notice and disclaimer of warranty;
|
||||
keep intact all the notices that refer to this License and to the absence
|
||||
of any warranty; and give any other recipients of the Program a copy of this
|
||||
License along with the Program.
|
||||
|
||||
You may charge a fee for the physical act of transferring a copy, and you
|
||||
may at your option offer warranty protection in exchange for a fee.
|
||||
|
||||
2. You may modify your copy or copies of the Program or any portion of it,
|
||||
thus forming a work based on the Program, and copy and distribute such modifications
|
||||
or work under the terms of Section 1 above, provided that you also meet all
|
||||
of these conditions:
|
||||
|
||||
a) You must cause the modified files to carry prominent notices stating that
|
||||
you changed the files and the date of any change.
|
||||
|
||||
b) You must cause any work that you distribute or publish, that in whole or
|
||||
in part contains or is derived from the Program or any part thereof, to be
|
||||
licensed as a whole at no charge to all third parties under the terms of this
|
||||
License.
|
||||
|
||||
c) If the modified program normally reads commands interactively when run,
|
||||
you must cause it, when started running for such interactive use in the most
|
||||
ordinary way, to print or display an announcement including an appropriate
|
||||
copyright notice and a notice that there is no warranty (or else, saying that
|
||||
you provide a warranty) and that users may redistribute the program under
|
||||
these conditions, and telling the user how to view a copy of this License.
|
||||
(Exception: if the Program itself is interactive but does not normally print
|
||||
such an announcement, your work based on the Program is not required to print
|
||||
an announcement.)
|
||||
|
||||
These requirements apply to the modified work as a whole. If identifiable
|
||||
sections of that work are not derived from the Program, and can be reasonably
|
||||
considered independent and separate works in themselves, then this License,
|
||||
and its terms, do not apply to those sections when you distribute them as
|
||||
separate works. But when you distribute the same sections as part of a whole
|
||||
which is a work based on the Program, the distribution of the whole must be
|
||||
on the terms of this License, whose permissions for other licensees extend
|
||||
to the entire whole, and thus to each and every part regardless of who wrote
|
||||
it.
|
||||
|
||||
Thus, it is not the intent of this section to claim rights or contest your
|
||||
rights to work written entirely by you; rather, the intent is to exercise
|
||||
the right to control the distribution of derivative or collective works based
|
||||
on the Program.
|
||||
|
||||
In addition, mere aggregation of another work not based on the Program with
|
||||
the Program (or with a work based on the Program) on a volume of a storage
|
||||
or distribution medium does not bring the other work under the scope of this
|
||||
License.
|
||||
|
||||
3. You may copy and distribute the Program (or a work based on it, under Section
|
||||
2) in object code or executable form under the terms of Sections 1 and 2 above
|
||||
provided that you also do one of the following:
|
||||
|
||||
a) Accompany it with the complete corresponding machine-readable source code,
|
||||
which must be distributed under the terms of Sections 1 and 2 above on a medium
|
||||
customarily used for software interchange; or,
|
||||
|
||||
b) Accompany it with a written offer, valid for at least three years, to give
|
||||
any third party, for a charge no more than your cost of physically performing
|
||||
source distribution, a complete machine-readable copy of the corresponding
|
||||
source code, to be distributed under the terms of Sections 1 and 2 above on
|
||||
a medium customarily used for software interchange; or,
|
||||
|
||||
c) Accompany it with the information you received as to the offer to distribute
|
||||
corresponding source code. (This alternative is allowed only for noncommercial
|
||||
distribution and only if you received the program in object code or executable
|
||||
form with such an offer, in accord with Subsection b above.)
|
||||
|
||||
The source code for a work means the preferred form of the work for making
|
||||
modifications to it. For an executable work, complete source code means all
|
||||
the source code for all modules it contains, plus any associated interface
|
||||
definition files, plus the scripts used to control compilation and installation
|
||||
of the executable. However, as a special exception, the source code distributed
|
||||
need not include anything that is normally distributed (in either source or
|
||||
binary form) with the major components (compiler, kernel, and so on) of the
|
||||
operating system on which the executable runs, unless that component itself
|
||||
accompanies the executable.
|
||||
|
||||
If distribution of executable or object code is made by offering access to
|
||||
copy from a designated place, then offering equivalent access to copy the
|
||||
source code from the same place counts as distribution of the source code,
|
||||
even though third parties are not compelled to copy the source along with
|
||||
the object code.
|
||||
|
||||
4. You may not copy, modify, sublicense, or distribute the Program except
|
||||
as expressly provided under this License. Any attempt otherwise to copy, modify,
|
||||
sublicense or distribute the Program is void, and will automatically terminate
|
||||
your rights under this License. However, parties who have received copies,
|
||||
or rights, from you under this License will not have their licenses terminated
|
||||
so long as such parties remain in full compliance.
|
||||
|
||||
5. You are not required to accept this License, since you have not signed
|
||||
it. However, nothing else grants you permission to modify or distribute the
|
||||
Program or its derivative works. These actions are prohibited by law if you
|
||||
do not accept this License. Therefore, by modifying or distributing the Program
|
||||
(or any work based on the Program), you indicate your acceptance of this License
|
||||
to do so, and all its terms and conditions for copying, distributing or modifying
|
||||
the Program or works based on it.
|
||||
|
||||
6. Each time you redistribute the Program (or any work based on the Program),
|
||||
the recipient automatically receives a license from the original licensor
|
||||
to copy, distribute or modify the Program subject to these terms and conditions.
|
||||
You may not impose any further restrictions on the recipients' exercise of
|
||||
the rights granted herein. You are not responsible for enforcing compliance
|
||||
by third parties to this License.
|
||||
|
||||
7. If, as a consequence of a court judgment or allegation of patent infringement
|
||||
or for any other reason (not limited to patent issues), conditions are imposed
|
||||
on you (whether by court order, agreement or otherwise) that contradict the
|
||||
conditions of this License, they do not excuse you from the conditions of
|
||||
this License. If you cannot distribute so as to satisfy simultaneously your
|
||||
obligations under this License and any other pertinent obligations, then as
|
||||
a consequence you may not distribute the Program at all. For example, if a
|
||||
patent license would not permit royalty-free redistribution of the Program
|
||||
by all those who receive copies directly or indirectly through you, then the
|
||||
only way you could satisfy both it and this License would be to refrain entirely
|
||||
from distribution of the Program.
|
||||
|
||||
If any portion of this section is held invalid or unenforceable under any
|
||||
particular circumstance, the balance of the section is intended to apply and
|
||||
the section as a whole is intended to apply in other circumstances.
|
||||
|
||||
It is not the purpose of this section to induce you to infringe any patents
|
||||
or other property right claims or to contest validity of any such claims;
|
||||
this section has the sole purpose of protecting the integrity of the free
|
||||
software distribution system, which is implemented by public license practices.
|
||||
Many people have made generous contributions to the wide range of software
|
||||
distributed through that system in reliance on consistent application of that
|
||||
system; it is up to the author/donor to decide if he or she is willing to
|
||||
distribute software through any other system and a licensee cannot impose
|
||||
that choice.
|
||||
|
||||
This section is intended to make thoroughly clear what is believed to be a
|
||||
consequence of the rest of this License.
|
||||
|
||||
8. If the distribution and/or use of the Program is restricted in certain
|
||||
countries either by patents or by copyrighted interfaces, the original copyright
|
||||
holder who places the Program under this License may add an explicit geographical
|
||||
distribution limitation excluding those countries, so that distribution is
|
||||
permitted only in or among countries not thus excluded. In such case, this
|
||||
License incorporates the limitation as if written in the body of this License.
|
||||
|
||||
9. The Free Software Foundation may publish revised and/or new versions of
|
||||
the General Public License from time to time. Such new versions will be similar
|
||||
in spirit to the present version, but may differ in detail to address new
|
||||
problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Program specifies
|
||||
a version number of this License which applies to it and "any later version",
|
||||
you have the option of following the terms and conditions either of that version
|
||||
or of any later version published by the Free Software Foundation. If the
|
||||
Program does not specify a version number of this License, you may choose
|
||||
any version ever published by the Free Software Foundation.
|
||||
|
||||
10. If you wish to incorporate parts of the Program into other free programs
|
||||
whose distribution conditions are different, write to the author to ask for
|
||||
permission. For software which is copyrighted by the Free Software Foundation,
|
||||
write to the Free Software Foundation; we sometimes make exceptions for this.
|
||||
Our decision will be guided by the two goals of preserving the free status
|
||||
of all derivatives of our free software and of promoting the sharing and reuse
|
||||
of software generally.
|
||||
|
||||
NO WARRANTY
|
||||
|
||||
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR
|
||||
THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE
|
||||
STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM
|
||||
"AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
|
||||
BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE
|
||||
OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME
|
||||
THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE
|
||||
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE
|
||||
OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA
|
||||
OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES
|
||||
OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH
|
||||
HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest possible
|
||||
use to the public, the best way to achieve this is to make it free software
|
||||
which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest to attach
|
||||
them to the start of each source file to most effectively convey the exclusion
|
||||
of warranty; and each file should have at least the "copyright" line and a
|
||||
pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and an idea of what it does.>
|
||||
|
||||
Copyright (C)< yyyy> <name of author>
|
||||
|
||||
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 2 of the License, or (at your option) any later
|
||||
version.
|
||||
|
||||
This program 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
|
||||
this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
|
||||
Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program is interactive, make it output a short notice like this when
|
||||
it starts in an interactive mode:
|
||||
|
||||
Gnomovision version 69, Copyright (C) year name of author Gnomovision comes
|
||||
with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software,
|
||||
and you are welcome to redistribute it under certain conditions; type `show
|
||||
c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||
parts of the General Public License. Of course, the commands you use may be
|
||||
called something other than `show w' and `show c'; they could even be mouse-clicks
|
||||
or menu items--whatever suits your program.
|
||||
|
||||
You should also get your employer (if you work as a programmer) or your school,
|
||||
if any, to sign a "copyright disclaimer" for the program, if necessary. Here
|
||||
is a sample; alter the names:
|
||||
|
||||
Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision'
|
||||
(which makes passes at compilers) written by James Hacker.
|
||||
|
||||
<signature of Ty Coon >, 1 April 1989 Ty Coon, President of Vice This General
|
||||
Public License does not permit incorporating your program into proprietary
|
||||
programs. If your program is a subroutine library, you may consider it more
|
||||
useful to permit linking proprietary applications with the library. If this
|
||||
is what you want to do, use the GNU Lesser General Public License instead
|
||||
of this License.
|
||||
@@ -0,0 +1,625 @@
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
|
||||
Version 3, 29 June 2007
|
||||
|
||||
Copyright © 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
||||
|
||||
Everyone is permitted to copy and distribute verbatim copies of this license
|
||||
document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The GNU General Public License is a free, copyleft license for software and
|
||||
other kinds of works.
|
||||
|
||||
The licenses for most software and other practical works are designed to take
|
||||
away your freedom to share and change the works. By contrast, the GNU General
|
||||
Public License is intended to guarantee your freedom to share and change all
|
||||
versions of a program--to make sure it remains free software for all its users.
|
||||
We, the Free Software Foundation, use the GNU General Public License for most
|
||||
of our software; it applies also to any other work released this way by its
|
||||
authors. You can apply it to your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not price. Our
|
||||
General Public Licenses are designed to make sure that you have the freedom
|
||||
to distribute copies of free software (and charge for them if you wish), that
|
||||
you receive source code or can get it if you want it, that you can change
|
||||
the software or use pieces of it in new free programs, and that you know you
|
||||
can do these things.
|
||||
|
||||
To protect your rights, we need to prevent others from denying you these rights
|
||||
or asking you to surrender the rights. Therefore, you have certain responsibilities
|
||||
if you distribute copies of the software, or if you modify it: responsibilities
|
||||
to respect the freedom of others.
|
||||
|
||||
For example, if you distribute copies of such a program, whether gratis or
|
||||
for a fee, you must pass on to the recipients the same freedoms that you received.
|
||||
You must make sure that they, too, receive or can get the source code. And
|
||||
you must show them these terms so they know their rights.
|
||||
|
||||
Developers that use the GNU GPL protect your rights with two steps: (1) assert
|
||||
copyright on the software, and (2) offer you this License giving you legal
|
||||
permission to copy, distribute and/or modify it.
|
||||
|
||||
For the developers' and authors' protection, the GPL clearly explains that
|
||||
there is no warranty for this free software. For both users' and authors'
|
||||
sake, the GPL requires that modified versions be marked as changed, so that
|
||||
their problems will not be attributed erroneously to authors of previous versions.
|
||||
|
||||
Some devices are designed to deny users access to install or run modified
|
||||
versions of the software inside them, although the manufacturer can do so.
|
||||
This is fundamentally incompatible with the aim of protecting users' freedom
|
||||
to change the software. The systematic pattern of such abuse occurs in the
|
||||
area of products for individuals to use, which is precisely where it is most
|
||||
unacceptable. Therefore, we have designed this version of the GPL to prohibit
|
||||
the practice for those products. If such problems arise substantially in other
|
||||
domains, we stand ready to extend this provision to those domains in future
|
||||
versions of the GPL, as needed to protect the freedom of users.
|
||||
|
||||
Finally, every program is threatened constantly by software patents. States
|
||||
should not allow patents to restrict development and use of software on general-purpose
|
||||
computers, but in those that do, we wish to avoid the special danger that
|
||||
patents applied to a free program could make it effectively proprietary. To
|
||||
prevent this, the GPL assures that patents cannot be used to render the program
|
||||
non-free.
|
||||
|
||||
The precise terms and conditions for copying, distribution and modification
|
||||
follow.
|
||||
|
||||
TERMS AND CONDITIONS
|
||||
|
||||
0. Definitions.
|
||||
|
||||
"This License" refers to version 3 of the GNU General Public License.
|
||||
|
||||
"Copyright" also means copyright-like laws that apply to other kinds of works,
|
||||
such as semiconductor masks.
|
||||
|
||||
"The Program" refers to any copyrightable work licensed under this License.
|
||||
Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals
|
||||
or organizations.
|
||||
|
||||
To "modify" a work means to copy from or adapt all or part of the work in
|
||||
a fashion requiring copyright permission, other than the making of an exact
|
||||
copy. The resulting work is called a "modified version" of the earlier work
|
||||
or a work "based on" the earlier work.
|
||||
|
||||
A "covered work" means either the unmodified Program or a work based on the
|
||||
Program.
|
||||
|
||||
To "propagate" a work means to do anything with it that, without permission,
|
||||
would make you directly or secondarily liable for infringement under applicable
|
||||
copyright law, except executing it on a computer or modifying a private copy.
|
||||
Propagation includes copying, distribution (with or without modification),
|
||||
making available to the public, and in some countries other activities as
|
||||
well.
|
||||
|
||||
To "convey" a work means any kind of propagation that enables other parties
|
||||
to make or receive copies. Mere interaction with a user through a computer
|
||||
network, with no transfer of a copy, is not conveying.
|
||||
|
||||
An interactive user interface displays "Appropriate Legal Notices" to the
|
||||
extent that it includes a convenient and prominently visible feature that
|
||||
(1) displays an appropriate copyright notice, and (2) tells the user that
|
||||
there is no warranty for the work (except to the extent that warranties are
|
||||
provided), that licensees may convey the work under this License, and how
|
||||
to view a copy of this License. If the interface presents a list of user commands
|
||||
or options, such as a menu, a prominent item in the list meets this criterion.
|
||||
|
||||
1. Source Code.
|
||||
|
||||
The "source code" for a work means the preferred form of the work for making
|
||||
modifications to it. "Object code" means any non-source form of a work.
|
||||
|
||||
A "Standard Interface" means an interface that either is an official standard
|
||||
defined by a recognized standards body, or, in the case of interfaces specified
|
||||
for a particular programming language, one that is widely used among developers
|
||||
working in that language.
|
||||
|
||||
The "System Libraries" of an executable work include anything, other than
|
||||
the work as a whole, that (a) is included in the normal form of packaging
|
||||
a Major Component, but which is not part of that Major Component, and (b)
|
||||
serves only to enable use of the work with that Major Component, or to implement
|
||||
a Standard Interface for which an implementation is available to the public
|
||||
in source code form. A "Major Component", in this context, means a major essential
|
||||
component (kernel, window system, and so on) of the specific operating system
|
||||
(if any) on which the executable work runs, or a compiler used to produce
|
||||
the work, or an object code interpreter used to run it.
|
||||
|
||||
The "Corresponding Source" for a work in object code form means all the source
|
||||
code needed to generate, install, and (for an executable work) run the object
|
||||
code and to modify the work, including scripts to control those activities.
|
||||
However, it does not include the work's System Libraries, or general-purpose
|
||||
tools or generally available free programs which are used unmodified in performing
|
||||
those activities but which are not part of the work. For example, Corresponding
|
||||
Source includes interface definition files associated with source files for
|
||||
the work, and the source code for shared libraries and dynamically linked
|
||||
subprograms that the work is specifically designed to require, such as by
|
||||
intimate data communication or control flow between those subprograms and
|
||||
other parts of the work.
|
||||
|
||||
The Corresponding Source need not include anything that users can regenerate
|
||||
automatically from other parts of the Corresponding Source.
|
||||
|
||||
The Corresponding Source for a work in source code form is that same work.
|
||||
|
||||
2. Basic Permissions.
|
||||
|
||||
All rights granted under this License are granted for the term of copyright
|
||||
on the Program, and are irrevocable provided the stated conditions are met.
|
||||
This License explicitly affirms your unlimited permission to run the unmodified
|
||||
Program. The output from running a covered work is covered by this License
|
||||
only if the output, given its content, constitutes a covered work. This License
|
||||
acknowledges your rights of fair use or other equivalent, as provided by copyright
|
||||
law.
|
||||
|
||||
You may make, run and propagate covered works that you do not convey, without
|
||||
conditions so long as your license otherwise remains in force. You may convey
|
||||
covered works to others for the sole purpose of having them make modifications
|
||||
exclusively for you, or provide you with facilities for running those works,
|
||||
provided that you comply with the terms of this License in conveying all material
|
||||
for which you do not control copyright. Those thus making or running the covered
|
||||
works for you must do so exclusively on your behalf, under your direction
|
||||
and control, on terms that prohibit them from making any copies of your copyrighted
|
||||
material outside their relationship with you.
|
||||
|
||||
Conveying under any other circumstances is permitted solely under the conditions
|
||||
stated below. Sublicensing is not allowed; section 10 makes it unnecessary.
|
||||
|
||||
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||
|
||||
No covered work shall be deemed part of an effective technological measure
|
||||
under any applicable law fulfilling obligations under article 11 of the WIPO
|
||||
copyright treaty adopted on 20 December 1996, or similar laws prohibiting
|
||||
or restricting circumvention of such measures.
|
||||
|
||||
When you convey a covered work, you waive any legal power to forbid circumvention
|
||||
of technological measures to the extent such circumvention is effected by
|
||||
exercising rights under this License with respect to the covered work, and
|
||||
you disclaim any intention to limit operation or modification of the work
|
||||
as a means of enforcing, against the work's users, your or third parties'
|
||||
legal rights to forbid circumvention of technological measures.
|
||||
|
||||
4. Conveying Verbatim Copies.
|
||||
|
||||
You may convey verbatim copies of the Program's source code as you receive
|
||||
it, in any medium, provided that you conspicuously and appropriately publish
|
||||
on each copy an appropriate copyright notice; keep intact all notices stating
|
||||
that this License and any non-permissive terms added in accord with section
|
||||
7 apply to the code; keep intact all notices of the absence of any warranty;
|
||||
and give all recipients a copy of this License along with the Program.
|
||||
|
||||
You may charge any price or no price for each copy that you convey, and you
|
||||
may offer support or warranty protection for a fee.
|
||||
|
||||
5. Conveying Modified Source Versions.
|
||||
|
||||
You may convey a work based on the Program, or the modifications to produce
|
||||
it from the Program, in the form of source code under the terms of section
|
||||
4, provided that you also meet all of these conditions:
|
||||
|
||||
a) The work must carry prominent notices stating that you modified it, and
|
||||
giving a relevant date.
|
||||
|
||||
b) The work must carry prominent notices stating that it is released under
|
||||
this License and any conditions added under section 7. This requirement modifies
|
||||
the requirement in section 4 to "keep intact all notices".
|
||||
|
||||
c) You must license the entire work, as a whole, under this License to anyone
|
||||
who comes into possession of a copy. This License will therefore apply, along
|
||||
with any applicable section 7 additional terms, to the whole of the work,
|
||||
and all its parts, regardless of how they are packaged. This License gives
|
||||
no permission to license the work in any other way, but it does not invalidate
|
||||
such permission if you have separately received it.
|
||||
|
||||
d) If the work has interactive user interfaces, each must display Appropriate
|
||||
Legal Notices; however, if the Program has interactive interfaces that do
|
||||
not display Appropriate Legal Notices, your work need not make them do so.
|
||||
|
||||
A compilation of a covered work with other separate and independent works,
|
||||
which are not by their nature extensions of the covered work, and which are
|
||||
not combined with it such as to form a larger program, in or on a volume of
|
||||
a storage or distribution medium, is called an "aggregate" if the compilation
|
||||
and its resulting copyright are not used to limit the access or legal rights
|
||||
of the compilation's users beyond what the individual works permit. Inclusion
|
||||
of a covered work in an aggregate does not cause this License to apply to
|
||||
the other parts of the aggregate.
|
||||
|
||||
6. Conveying Non-Source Forms.
|
||||
|
||||
You may convey a covered work in object code form under the terms of sections
|
||||
4 and 5, provided that you also convey the machine-readable Corresponding
|
||||
Source under the terms of this License, in one of these ways:
|
||||
|
||||
a) Convey the object code in, or embodied in, a physical product (including
|
||||
a physical distribution medium), accompanied by the Corresponding Source fixed
|
||||
on a durable physical medium customarily used for software interchange.
|
||||
|
||||
b) Convey the object code in, or embodied in, a physical product (including
|
||||
a physical distribution medium), accompanied by a written offer, valid for
|
||||
at least three years and valid for as long as you offer spare parts or customer
|
||||
support for that product model, to give anyone who possesses the object code
|
||||
either (1) a copy of the Corresponding Source for all the software in the
|
||||
product that is covered by this License, on a durable physical medium customarily
|
||||
used for software interchange, for a price no more than your reasonable cost
|
||||
of physically performing this conveying of source, or (2) access to copy the
|
||||
Corresponding Source from a network server at no charge.
|
||||
|
||||
c) Convey individual copies of the object code with a copy of the written
|
||||
offer to provide the Corresponding Source. This alternative is allowed only
|
||||
occasionally and noncommercially, and only if you received the object code
|
||||
with such an offer, in accord with subsection 6b.
|
||||
|
||||
d) Convey the object code by offering access from a designated place (gratis
|
||||
or for a charge), and offer equivalent access to the Corresponding Source
|
||||
in the same way through the same place at no further charge. You need not
|
||||
require recipients to copy the Corresponding Source along with the object
|
||||
code. If the place to copy the object code is a network server, the Corresponding
|
||||
Source may be on a different server (operated by you or a third party) that
|
||||
supports equivalent copying facilities, provided you maintain clear directions
|
||||
next to the object code saying where to find the Corresponding Source. Regardless
|
||||
of what server hosts the Corresponding Source, you remain obligated to ensure
|
||||
that it is available for as long as needed to satisfy these requirements.
|
||||
|
||||
e) Convey the object code using peer-to-peer transmission, provided you inform
|
||||
other peers where the object code and Corresponding Source of the work are
|
||||
being offered to the general public at no charge under subsection 6d.
|
||||
|
||||
A separable portion of the object code, whose source code is excluded from
|
||||
the Corresponding Source as a System Library, need not be included in conveying
|
||||
the object code work.
|
||||
|
||||
A "User Product" is either (1) a "consumer product", which means any tangible
|
||||
personal property which is normally used for personal, family, or household
|
||||
purposes, or (2) anything designed or sold for incorporation into a dwelling.
|
||||
In determining whether a product is a consumer product, doubtful cases shall
|
||||
be resolved in favor of coverage. For a particular product received by a particular
|
||||
user, "normally used" refers to a typical or common use of that class of product,
|
||||
regardless of the status of the particular user or of the way in which the
|
||||
particular user actually uses, or expects or is expected to use, the product.
|
||||
A product is a consumer product regardless of whether the product has substantial
|
||||
commercial, industrial or non-consumer uses, unless such uses represent the
|
||||
only significant mode of use of the product.
|
||||
|
||||
"Installation Information" for a User Product means any methods, procedures,
|
||||
authorization keys, or other information required to install and execute modified
|
||||
versions of a covered work in that User Product from a modified version of
|
||||
its Corresponding Source. The information must suffice to ensure that the
|
||||
continued functioning of the modified object code is in no case prevented
|
||||
or interfered with solely because modification has been made.
|
||||
|
||||
If you convey an object code work under this section in, or with, or specifically
|
||||
for use in, a User Product, and the conveying occurs as part of a transaction
|
||||
in which the right of possession and use of the User Product is transferred
|
||||
to the recipient in perpetuity or for a fixed term (regardless of how the
|
||||
transaction is characterized), the Corresponding Source conveyed under this
|
||||
section must be accompanied by the Installation Information. But this requirement
|
||||
does not apply if neither you nor any third party retains the ability to install
|
||||
modified object code on the User Product (for example, the work has been installed
|
||||
in ROM).
|
||||
|
||||
The requirement to provide Installation Information does not include a requirement
|
||||
to continue to provide support service, warranty, or updates for a work that
|
||||
has been modified or installed by the recipient, or for the User Product in
|
||||
which it has been modified or installed. Access to a network may be denied
|
||||
when the modification itself materially and adversely affects the operation
|
||||
of the network or violates the rules and protocols for communication across
|
||||
the network.
|
||||
|
||||
Corresponding Source conveyed, and Installation Information provided, in accord
|
||||
with this section must be in a format that is publicly documented (and with
|
||||
an implementation available to the public in source code form), and must require
|
||||
no special password or key for unpacking, reading or copying.
|
||||
|
||||
7. Additional Terms.
|
||||
|
||||
"Additional permissions" are terms that supplement the terms of this License
|
||||
by making exceptions from one or more of its conditions. Additional permissions
|
||||
that are applicable to the entire Program shall be treated as though they
|
||||
were included in this License, to the extent that they are valid under applicable
|
||||
law. If additional permissions apply only to part of the Program, that part
|
||||
may be used separately under those permissions, but the entire Program remains
|
||||
governed by this License without regard to the additional permissions.
|
||||
|
||||
When you convey a copy of a covered work, you may at your option remove any
|
||||
additional permissions from that copy, or from any part of it. (Additional
|
||||
permissions may be written to require their own removal in certain cases when
|
||||
you modify the work.) You may place additional permissions on material, added
|
||||
by you to a covered work, for which you have or can give appropriate copyright
|
||||
permission.
|
||||
|
||||
Notwithstanding any other provision of this License, for material you add
|
||||
to a covered work, you may (if authorized by the copyright holders of that
|
||||
material) supplement the terms of this License with terms:
|
||||
|
||||
a) Disclaiming warranty or limiting liability differently from the terms of
|
||||
sections 15 and 16 of this License; or
|
||||
|
||||
b) Requiring preservation of specified reasonable legal notices or author
|
||||
attributions in that material or in the Appropriate Legal Notices displayed
|
||||
by works containing it; or
|
||||
|
||||
c) Prohibiting misrepresentation of the origin of that material, or requiring
|
||||
that modified versions of such material be marked in reasonable ways as different
|
||||
from the original version; or
|
||||
|
||||
d) Limiting the use for publicity purposes of names of licensors or authors
|
||||
of the material; or
|
||||
|
||||
e) Declining to grant rights under trademark law for use of some trade names,
|
||||
trademarks, or service marks; or
|
||||
|
||||
f) Requiring indemnification of licensors and authors of that material by
|
||||
anyone who conveys the material (or modified versions of it) with contractual
|
||||
assumptions of liability to the recipient, for any liability that these contractual
|
||||
assumptions directly impose on those licensors and authors.
|
||||
|
||||
All other non-permissive additional terms are considered "further restrictions"
|
||||
within the meaning of section 10. If the Program as you received it, or any
|
||||
part of it, contains a notice stating that it is governed by this License
|
||||
along with a term that is a further restriction, you may remove that term.
|
||||
If a license document contains a further restriction but permits relicensing
|
||||
or conveying under this License, you may add to a covered work material governed
|
||||
by the terms of that license document, provided that the further restriction
|
||||
does not survive such relicensing or conveying.
|
||||
|
||||
If you add terms to a covered work in accord with this section, you must place,
|
||||
in the relevant source files, a statement of the additional terms that apply
|
||||
to those files, or a notice indicating where to find the applicable terms.
|
||||
|
||||
Additional terms, permissive or non-permissive, may be stated in the form
|
||||
of a separately written license, or stated as exceptions; the above requirements
|
||||
apply either way.
|
||||
|
||||
8. Termination.
|
||||
|
||||
You may not propagate or modify a covered work except as expressly provided
|
||||
under this License. Any attempt otherwise to propagate or modify it is void,
|
||||
and will automatically terminate your rights under this License (including
|
||||
any patent licenses granted under the third paragraph of section 11).
|
||||
|
||||
However, if you cease all violation of this License, then your license from
|
||||
a particular copyright holder is reinstated (a) provisionally, unless and
|
||||
until the copyright holder explicitly and finally terminates your license,
|
||||
and (b) permanently, if the copyright holder fails to notify you of the violation
|
||||
by some reasonable means prior to 60 days after the cessation.
|
||||
|
||||
Moreover, your license from a particular copyright holder is reinstated permanently
|
||||
if the copyright holder notifies you of the violation by some reasonable means,
|
||||
this is the first time you have received notice of violation of this License
|
||||
(for any work) from that copyright holder, and you cure the violation prior
|
||||
to 30 days after your receipt of the notice.
|
||||
|
||||
Termination of your rights under this section does not terminate the licenses
|
||||
of parties who have received copies or rights from you under this License.
|
||||
If your rights have been terminated and not permanently reinstated, you do
|
||||
not qualify to receive new licenses for the same material under section 10.
|
||||
|
||||
9. Acceptance Not Required for Having Copies.
|
||||
|
||||
You are not required to accept this License in order to receive or run a copy
|
||||
of the Program. Ancillary propagation of a covered work occurring solely as
|
||||
a consequence of using peer-to-peer transmission to receive a copy likewise
|
||||
does not require acceptance. However, nothing other than this License grants
|
||||
you permission to propagate or modify any covered work. These actions infringe
|
||||
copyright if you do not accept this License. Therefore, by modifying or propagating
|
||||
a covered work, you indicate your acceptance of this License to do so.
|
||||
|
||||
10. Automatic Licensing of Downstream Recipients.
|
||||
|
||||
Each time you convey a covered work, the recipient automatically receives
|
||||
a license from the original licensors, to run, modify and propagate that work,
|
||||
subject to this License. You are not responsible for enforcing compliance
|
||||
by third parties with this License.
|
||||
|
||||
An "entity transaction" is a transaction transferring control of an organization,
|
||||
or substantially all assets of one, or subdividing an organization, or merging
|
||||
organizations. If propagation of a covered work results from an entity transaction,
|
||||
each party to that transaction who receives a copy of the work also receives
|
||||
whatever licenses to the work the party's predecessor in interest had or could
|
||||
give under the previous paragraph, plus a right to possession of the Corresponding
|
||||
Source of the work from the predecessor in interest, if the predecessor has
|
||||
it or can get it with reasonable efforts.
|
||||
|
||||
You may not impose any further restrictions on the exercise of the rights
|
||||
granted or affirmed under this License. For example, you may not impose a
|
||||
license fee, royalty, or other charge for exercise of rights granted under
|
||||
this License, and you may not initiate litigation (including a cross-claim
|
||||
or counterclaim in a lawsuit) alleging that any patent claim is infringed
|
||||
by making, using, selling, offering for sale, or importing the Program or
|
||||
any portion of it.
|
||||
|
||||
11. Patents.
|
||||
|
||||
A "contributor" is a copyright holder who authorizes use under this License
|
||||
of the Program or a work on which the Program is based. The work thus licensed
|
||||
is called the contributor's "contributor version".
|
||||
|
||||
A contributor's "essential patent claims" are all patent claims owned or controlled
|
||||
by the contributor, whether already acquired or hereafter acquired, that would
|
||||
be infringed by some manner, permitted by this License, of making, using,
|
||||
or selling its contributor version, but do not include claims that would be
|
||||
infringed only as a consequence of further modification of the contributor
|
||||
version. For purposes of this definition, "control" includes the right to
|
||||
grant patent sublicenses in a manner consistent with the requirements of this
|
||||
License.
|
||||
|
||||
Each contributor grants you a non-exclusive, worldwide, royalty-free patent
|
||||
license under the contributor's essential patent claims, to make, use, sell,
|
||||
offer for sale, import and otherwise run, modify and propagate the contents
|
||||
of its contributor version.
|
||||
|
||||
In the following three paragraphs, a "patent license" is any express agreement
|
||||
or commitment, however denominated, not to enforce a patent (such as an express
|
||||
permission to practice a patent or covenant not to sue for patent infringement).
|
||||
To "grant" such a patent license to a party means to make such an agreement
|
||||
or commitment not to enforce a patent against the party.
|
||||
|
||||
If you convey a covered work, knowingly relying on a patent license, and the
|
||||
Corresponding Source of the work is not available for anyone to copy, free
|
||||
of charge and under the terms of this License, through a publicly available
|
||||
network server or other readily accessible means, then you must either (1)
|
||||
cause the Corresponding Source to be so available, or (2) arrange to deprive
|
||||
yourself of the benefit of the patent license for this particular work, or
|
||||
(3) arrange, in a manner consistent with the requirements of this License,
|
||||
to extend the patent license to downstream recipients. "Knowingly relying"
|
||||
means you have actual knowledge that, but for the patent license, your conveying
|
||||
the covered work in a country, or your recipient's use of the covered work
|
||||
in a country, would infringe one or more identifiable patents in that country
|
||||
that you have reason to believe are valid.
|
||||
|
||||
If, pursuant to or in connection with a single transaction or arrangement,
|
||||
you convey, or propagate by procuring conveyance of, a covered work, and grant
|
||||
a patent license to some of the parties receiving the covered work authorizing
|
||||
them to use, propagate, modify or convey a specific copy of the covered work,
|
||||
then the patent license you grant is automatically extended to all recipients
|
||||
of the covered work and works based on it.
|
||||
|
||||
A patent license is "discriminatory" if it does not include within the scope
|
||||
of its coverage, prohibits the exercise of, or is conditioned on the non-exercise
|
||||
of one or more of the rights that are specifically granted under this License.
|
||||
You may not convey a covered work if you are a party to an arrangement with
|
||||
a third party that is in the business of distributing software, under which
|
||||
you make payment to the third party based on the extent of your activity of
|
||||
conveying the work, and under which the third party grants, to any of the
|
||||
parties who would receive the covered work from you, a discriminatory patent
|
||||
license (a) in connection with copies of the covered work conveyed by you
|
||||
(or copies made from those copies), or (b) primarily for and in connection
|
||||
with specific products or compilations that contain the covered work, unless
|
||||
you entered into that arrangement, or that patent license was granted, prior
|
||||
to 28 March 2007.
|
||||
|
||||
Nothing in this License shall be construed as excluding or limiting any implied
|
||||
license or other defenses to infringement that may otherwise be available
|
||||
to you under applicable patent law.
|
||||
|
||||
12. No Surrender of Others' Freedom.
|
||||
|
||||
If conditions are imposed on you (whether by court order, agreement or otherwise)
|
||||
that contradict the conditions of this License, they do not excuse you from
|
||||
the conditions of this License. If you cannot convey a covered work so as
|
||||
to satisfy simultaneously your obligations under this License and any other
|
||||
pertinent obligations, then as a consequence you may not convey it at all.
|
||||
For example, if you agree to terms that obligate you to collect a royalty
|
||||
for further conveying from those to whom you convey the Program, the only
|
||||
way you could satisfy both those terms and this License would be to refrain
|
||||
entirely from conveying the Program.
|
||||
|
||||
13. Use with the GNU Affero General Public License.
|
||||
|
||||
Notwithstanding any other provision of this License, you have permission to
|
||||
link or combine any covered work with a work licensed under version 3 of the
|
||||
GNU Affero General Public License into a single combined work, and to convey
|
||||
the resulting work. The terms of this License will continue to apply to the
|
||||
part which is the covered work, but the special requirements of the GNU Affero
|
||||
General Public License, section 13, concerning interaction through a network
|
||||
will apply to the combination as such.
|
||||
|
||||
14. Revised Versions of this License.
|
||||
|
||||
The Free Software Foundation may publish revised and/or new versions of the
|
||||
GNU General Public License from time to time. Such new versions will be similar
|
||||
in spirit to the present version, but may differ in detail to address new
|
||||
problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Program specifies
|
||||
that a certain numbered version of the GNU General Public License "or any
|
||||
later version" applies to it, you have the option of following the terms and
|
||||
conditions either of that numbered version or of any later version published
|
||||
by the Free Software Foundation. If the Program does not specify a version
|
||||
number of the GNU General Public License, you may choose any version ever
|
||||
published by the Free Software Foundation.
|
||||
|
||||
If the Program specifies that a proxy can decide which future versions of
|
||||
the GNU General Public License can be used, that proxy's public statement
|
||||
of acceptance of a version permanently authorizes you to choose that version
|
||||
for the Program.
|
||||
|
||||
Later license versions may give you additional or different permissions. However,
|
||||
no additional obligations are imposed on any author or copyright holder as
|
||||
a result of your choosing to follow a later version.
|
||||
|
||||
15. Disclaimer of Warranty.
|
||||
|
||||
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE
|
||||
LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
|
||||
OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER
|
||||
EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
||||
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
||||
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM
|
||||
PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR
|
||||
CORRECTION.
|
||||
|
||||
16. Limitation of Liability.
|
||||
|
||||
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL
|
||||
ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM
|
||||
AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL,
|
||||
INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO
|
||||
USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED
|
||||
INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE
|
||||
PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER
|
||||
PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
|
||||
|
||||
17. Interpretation of Sections 15 and 16.
|
||||
|
||||
If the disclaimer of warranty and limitation of liability provided above cannot
|
||||
be given local legal effect according to their terms, reviewing courts shall
|
||||
apply local law that most closely approximates an absolute waiver of all civil
|
||||
liability in connection with the Program, unless a warranty or assumption
|
||||
of liability accompanies a copy of the Program in return for a fee. END OF
|
||||
TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest possible
|
||||
use to the public, the best way to achieve this is to make it free software
|
||||
which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest to attach
|
||||
them to the start of each source file to most effectively state the exclusion
|
||||
of warranty; and each file should have at least the "copyright" line and a
|
||||
pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
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.
|
||||
|
||||
This program 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
|
||||
this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program does terminal interaction, make it output a short notice like
|
||||
this when it starts in an interactive mode:
|
||||
|
||||
<program> Copyright (C) <year> <name of author>
|
||||
|
||||
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
|
||||
This is free software, and you are welcome to redistribute it under certain
|
||||
conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||
parts of the General Public License. Of course, your program's commands might
|
||||
be different; for a GUI interface, you would use an "about box".
|
||||
|
||||
You should also get your employer (if you work as a programmer) or school,
|
||||
if any, to sign a "copyright disclaimer" for the program, if necessary. For
|
||||
more information on this, and how to apply and follow the GNU GPL, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
The GNU General Public License does not permit incorporating your program
|
||||
into proprietary programs. If your program is a subroutine library, you may
|
||||
consider it more useful to permit linking proprietary applications with the
|
||||
library. If this is what you want to do, use the GNU Lesser General Public
|
||||
License instead of this License. But first, please read <https://www.gnu.org/
|
||||
licenses /why-not-lgpl.html>.
|
||||
@@ -0,0 +1,446 @@
|
||||
GNU LIBRARY GENERAL PUBLIC LICENSE
|
||||
|
||||
Version 2, June 1991 Copyright (C) 1991 Free Software Foundation, Inc.
|
||||
|
||||
51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
|
||||
Everyone is permitted to copy and distribute verbatim copies of this license
|
||||
document, but changing it is not allowed.
|
||||
|
||||
[This is the first released version of the library GPL. It is numbered 2 because
|
||||
it goes with version 2 of the ordinary GPL.]
|
||||
|
||||
Preamble
|
||||
|
||||
The licenses for most software are designed to take away your freedom to share
|
||||
and change it. By contrast, the GNU General Public Licenses are intended to
|
||||
guarantee your freedom to share and change free software--to make sure the
|
||||
software is free for all its users.
|
||||
|
||||
This license, the Library General Public License, applies to some specially
|
||||
designated Free Software Foundation software, and to any other libraries whose
|
||||
authors decide to use it. You can use it for your libraries, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not price. Our
|
||||
General Public Licenses are designed to make sure that you have the freedom
|
||||
to distribute copies of free software (and charge for this service if you
|
||||
wish), that you receive source code or can get it if you want it, that you
|
||||
can change the software or use pieces of it in new free programs; and that
|
||||
you know you can do these things.
|
||||
|
||||
To protect your rights, we need to make restrictions that forbid anyone to
|
||||
deny you these rights or to ask you to surrender the rights. These restrictions
|
||||
translate to certain responsibilities for you if you distribute copies of
|
||||
the library, or if you modify it.
|
||||
|
||||
For example, if you distribute copies of the library, whether gratis or for
|
||||
a fee, you must give the recipients all the rights that we gave you. You must
|
||||
make sure that they, too, receive or can get the source code. If you link
|
||||
a program with the library, you must provide complete object files to the
|
||||
recipients so that they can relink them with the library, after making changes
|
||||
to the library and recompiling it. And you must show them these terms so they
|
||||
know their rights.
|
||||
|
||||
Our method of protecting your rights has two steps: (1) copyright the library,
|
||||
and (2) offer you this license which gives you legal permission to copy, distribute
|
||||
and/or modify the library.
|
||||
|
||||
Also, for each distributor's protection, we want to make certain that everyone
|
||||
understands that there is no warranty for this free library. If the library
|
||||
is modified by someone else and passed on, we want its recipients to know
|
||||
that what they have is not the original version, so that any problems introduced
|
||||
by others will not reflect on the original authors' reputations.
|
||||
|
||||
Finally, any free program is threatened constantly by software patents. We
|
||||
wish to avoid the danger that companies distributing free software will individually
|
||||
obtain patent licenses, thus in effect transforming the program into proprietary
|
||||
software. To prevent this, we have made it clear that any patent must be licensed
|
||||
for everyone's free use or not licensed at all.
|
||||
|
||||
Most GNU software, including some libraries, is covered by the ordinary GNU
|
||||
General Public License, which was designed for utility programs. This license,
|
||||
the GNU Library General Public License, applies to certain designated libraries.
|
||||
This license is quite different from the ordinary one; be sure to read it
|
||||
in full, and don't assume that anything in it is the same as in the ordinary
|
||||
license.
|
||||
|
||||
The reason we have a separate public license for some libraries is that they
|
||||
blur the distinction we usually make between modifying or adding to a program
|
||||
and simply using it. Linking a program with a library, without changing the
|
||||
library, is in some sense simply using the library, and is analogous to running
|
||||
a utility program or application program. However, in a textual and legal
|
||||
sense, the linked executable is a combined work, a derivative of the original
|
||||
library, and the ordinary General Public License treats it as such.
|
||||
|
||||
Because of this blurred distinction, using the ordinary General Public License
|
||||
for libraries did not effectively promote software sharing, because most developers
|
||||
did not use the libraries. We concluded that weaker conditions might promote
|
||||
sharing better.
|
||||
|
||||
However, unrestricted linking of non-free programs would deprive the users
|
||||
of those programs of all benefit from the free status of the libraries themselves.
|
||||
This Library General Public License is intended to permit developers of non-free
|
||||
programs to use free libraries, while preserving your freedom as a user of
|
||||
such programs to change the free libraries that are incorporated in them.
|
||||
(We have not seen how to achieve this as regards changes in header files,
|
||||
but we have achieved it as regards changes in the actual functions of the
|
||||
Library.) The hope is that this will lead to faster development of free libraries.
|
||||
|
||||
The precise terms and conditions for copying, distribution and modification
|
||||
follow. Pay close attention to the difference between a "work based on the
|
||||
library" and a "work that uses the library". The former contains code derived
|
||||
from the library, while the latter only works together with the library.
|
||||
|
||||
Note that it is possible for a library to be covered by the ordinary General
|
||||
Public License rather than by this special one.
|
||||
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. This License Agreement applies to any software library which contains a
|
||||
notice placed by the copyright holder or other authorized party saying it
|
||||
may be distributed under the terms of this Library General Public License
|
||||
(also called "this License"). Each licensee is addressed as "you".
|
||||
|
||||
A "library" means a collection of software functions and/or data prepared
|
||||
so as to be conveniently linked with application programs (which use some
|
||||
of those functions and data) to form executables.
|
||||
|
||||
The "Library", below, refers to any such software library or work which has
|
||||
been distributed under these terms. A "work based on the Library" means either
|
||||
the Library or any derivative work under copyright law: that is to say, a
|
||||
work containing the Library or a portion of it, either verbatim or with modifications
|
||||
and/or translated straightforwardly into another language. (Hereinafter, translation
|
||||
is included without limitation in the term "modification".)
|
||||
|
||||
"Source code" for a work means the preferred form of the work for making modifications
|
||||
to it. For a library, complete source code means all the source code for all
|
||||
modules it contains, plus any associated interface definition files, plus
|
||||
the scripts used to control compilation and installation of the library.
|
||||
|
||||
Activities other than copying, distribution and modification are not covered
|
||||
by this License; they are outside its scope. The act of running a program
|
||||
using the Library is not restricted, and output from such a program is covered
|
||||
only if its contents constitute a work based on the Library (independent of
|
||||
the use of the Library in a tool for writing it). Whether that is true depends
|
||||
on what the Library does and what the program that uses the Library does.
|
||||
|
||||
1. You may copy and distribute verbatim copies of the Library's complete source
|
||||
code as you receive it, in any medium, provided that you conspicuously and
|
||||
appropriately publish on each copy an appropriate copyright notice and disclaimer
|
||||
of warranty; keep intact all the notices that refer to this License and to
|
||||
the absence of any warranty; and distribute a copy of this License along with
|
||||
the Library.
|
||||
|
||||
You may charge a fee for the physical act of transferring a copy, and you
|
||||
may at your option offer warranty protection in exchange for a fee.
|
||||
|
||||
2. You may modify your copy or copies of the Library or any portion of it,
|
||||
thus forming a work based on the Library, and copy and distribute such modifications
|
||||
or work under the terms of Section 1 above, provided that you also meet all
|
||||
of these conditions:
|
||||
|
||||
a) The modified work must itself be a software library.
|
||||
|
||||
b) You must cause the files modified to carry prominent notices stating that
|
||||
you changed the files and the date of any change.
|
||||
|
||||
c) You must cause the whole of the work to be licensed at no charge to all
|
||||
third parties under the terms of this License.
|
||||
|
||||
d) If a facility in the modified Library refers to a function or a table of
|
||||
data to be supplied by an application program that uses the facility, other
|
||||
than as an argument passed when the facility is invoked, then you must make
|
||||
a good faith effort to ensure that, in the event an application does not supply
|
||||
such function or table, the facility still operates, and performs whatever
|
||||
part of its purpose remains meaningful.
|
||||
|
||||
(For example, a function in a library to compute square roots has a purpose
|
||||
that is entirely well-defined independent of the application. Therefore, Subsection
|
||||
2d requires that any application-supplied function or table used by this function
|
||||
must be optional: if the application does not supply it, the square root function
|
||||
must still compute square roots.)
|
||||
|
||||
These requirements apply to the modified work as a whole. If identifiable
|
||||
sections of that work are not derived from the Library, and can be reasonably
|
||||
considered independent and separate works in themselves, then this License,
|
||||
and its terms, do not apply to those sections when you distribute them as
|
||||
separate works. But when you distribute the same sections as part of a whole
|
||||
which is a work based on the Library, the distribution of the whole must be
|
||||
on the terms of this License, whose permissions for other licensees extend
|
||||
to the entire whole, and thus to each and every part regardless of who wrote
|
||||
it.
|
||||
|
||||
Thus, it is not the intent of this section to claim rights or contest your
|
||||
rights to work written entirely by you; rather, the intent is to exercise
|
||||
the right to control the distribution of derivative or collective works based
|
||||
on the Library.
|
||||
|
||||
In addition, mere aggregation of another work not based on the Library with
|
||||
the Library (or with a work based on the Library) on a volume of a storage
|
||||
or distribution medium does not bring the other work under the scope of this
|
||||
License.
|
||||
|
||||
3. You may opt to apply the terms of the ordinary GNU General Public License
|
||||
instead of this License to a given copy of the Library. To do this, you must
|
||||
alter all the notices that refer to this License, so that they refer to the
|
||||
ordinary GNU General Public License, version 2, instead of to this License.
|
||||
(If a newer version than version 2 of the ordinary GNU General Public License
|
||||
has appeared, then you can specify that version instead if you wish.) Do not
|
||||
make any other change in these notices.
|
||||
|
||||
Once this change is made in a given copy, it is irreversible for that copy,
|
||||
so the ordinary GNU General Public License applies to all subsequent copies
|
||||
and derivative works made from that copy.
|
||||
|
||||
This option is useful when you wish to copy part of the code of the Library
|
||||
into a program that is not a library.
|
||||
|
||||
4. You may copy and distribute the Library (or a portion or derivative of
|
||||
it, under Section 2) in object code or executable form under the terms of
|
||||
Sections 1 and 2 above provided that you accompany it with the complete corresponding
|
||||
machine-readable source code, which must be distributed under the terms of
|
||||
Sections 1 and 2 above on a medium customarily used for software interchange.
|
||||
|
||||
If distribution of object code is made by offering access to copy from a designated
|
||||
place, then offering equivalent access to copy the source code from the same
|
||||
place satisfies the requirement to distribute the source code, even though
|
||||
third parties are not compelled to copy the source along with the object code.
|
||||
|
||||
5. A program that contains no derivative of any portion of the Library, but
|
||||
is designed to work with the Library by being compiled or linked with it,
|
||||
is called a "work that uses the Library". Such a work, in isolation, is not
|
||||
a derivative work of the Library, and therefore falls outside the scope of
|
||||
this License.
|
||||
|
||||
However, linking a "work that uses the Library" with the Library creates an
|
||||
executable that is a derivative of the Library (because it contains portions
|
||||
of the Library), rather than a "work that uses the library". The executable
|
||||
is therefore covered by this License. Section 6 states terms for distribution
|
||||
of such executables.
|
||||
|
||||
When a "work that uses the Library" uses material from a header file that
|
||||
is part of the Library, the object code for the work may be a derivative work
|
||||
of the Library even though the source code is not. Whether this is true is
|
||||
especially significant if the work can be linked without the Library, or if
|
||||
the work is itself a library. The threshold for this to be true is not precisely
|
||||
defined by law.
|
||||
|
||||
If such an object file uses only numerical parameters, data structure layouts
|
||||
and accessors, and small macros and small inline functions (ten lines or less
|
||||
in length), then the use of the object file is unrestricted, regardless of
|
||||
whether it is legally a derivative work. (Executables containing this object
|
||||
code plus portions of the Library will still fall under Section 6.)
|
||||
|
||||
Otherwise, if the work is a derivative of the Library, you may distribute
|
||||
the object code for the work under the terms of Section 6. Any executables
|
||||
containing that work also fall under Section 6, whether or not they are linked
|
||||
directly with the Library itself.
|
||||
|
||||
6. As an exception to the Sections above, you may also compile or link a "work
|
||||
that uses the Library" with the Library to produce a work containing portions
|
||||
of the Library, and distribute that work under terms of your choice, provided
|
||||
that the terms permit modification of the work for the customer's own use
|
||||
and reverse engineering for debugging such modifications.
|
||||
|
||||
You must give prominent notice with each copy of the work that the Library
|
||||
is used in it and that the Library and its use are covered by this License.
|
||||
You must supply a copy of this License. If the work during execution displays
|
||||
copyright notices, you must include the copyright notice for the Library among
|
||||
them, as well as a reference directing the user to the copy of this License.
|
||||
Also, you must do one of these things:
|
||||
|
||||
a) Accompany the work with the complete corresponding machine-readable source
|
||||
code for the Library including whatever changes were used in the work (which
|
||||
must be distributed under Sections 1 and 2 above); and, if the work is an
|
||||
executable linked with the Library, with the complete machine-readable "work
|
||||
that uses the Library", as object code and/or source code, so that the user
|
||||
can modify the Library and then relink to produce a modified executable containing
|
||||
the modified Library. (It is understood that the user who changes the contents
|
||||
of definitions files in the Library will not necessarily be able to recompile
|
||||
the application to use the modified definitions.)
|
||||
|
||||
b) Accompany the work with a written offer, valid for at least three years,
|
||||
to give the same user the materials specified in Subsection 6a, above, for
|
||||
a charge no more than the cost of performing this distribution.
|
||||
|
||||
c) If distribution of the work is made by offering access to copy from a designated
|
||||
place, offer equivalent access to copy the above specified materials from
|
||||
the same place.
|
||||
|
||||
d) Verify that the user has already received a copy of these materials or
|
||||
that you have already sent this user a copy.
|
||||
|
||||
For an executable, the required form of the "work that uses the Library" must
|
||||
include any data and utility programs needed for reproducing the executable
|
||||
from it. However, as a special exception, the source code distributed need
|
||||
not include anything that is normally distributed (in either source or binary
|
||||
form) with the major components (compiler, kernel, and so on) of the operating
|
||||
system on which the executable runs, unless that component itself accompanies
|
||||
the executable.
|
||||
|
||||
It may happen that this requirement contradicts the license restrictions of
|
||||
other proprietary libraries that do not normally accompany the operating system.
|
||||
Such a contradiction means you cannot use both them and the Library together
|
||||
in an executable that you distribute.
|
||||
|
||||
7. You may place library facilities that are a work based on the Library side-by-side
|
||||
in a single library together with other library facilities not covered by
|
||||
this License, and distribute such a combined library, provided that the separate
|
||||
distribution of the work based on the Library and of the other library facilities
|
||||
is otherwise permitted, and provided that you do these two things:
|
||||
|
||||
a) Accompany the combined library with a copy of the same work based on the
|
||||
Library, uncombined with any other library facilities. This must be distributed
|
||||
under the terms of the Sections above.
|
||||
|
||||
b) Give prominent notice with the combined library of the fact that part of
|
||||
it is a work based on the Library, and explaining where to find the accompanying
|
||||
uncombined form of the same work.
|
||||
|
||||
8. You may not copy, modify, sublicense, link with, or distribute the Library
|
||||
except as expressly provided under this License. Any attempt otherwise to
|
||||
copy, modify, sublicense, link with, or distribute the Library is void, and
|
||||
will automatically terminate your rights under this License. However, parties
|
||||
who have received copies, or rights, from you under this License will not
|
||||
have their licenses terminated so long as such parties remain in full compliance.
|
||||
|
||||
9. You are not required to accept this License, since you have not signed
|
||||
it. However, nothing else grants you permission to modify or distribute the
|
||||
Library or its derivative works. These actions are prohibited by law if you
|
||||
do not accept this License. Therefore, by modifying or distributing the Library
|
||||
(or any work based on the Library), you indicate your acceptance of this License
|
||||
to do so, and all its terms and conditions for copying, distributing or modifying
|
||||
the Library or works based on it.
|
||||
|
||||
10. Each time you redistribute the Library (or any work based on the Library),
|
||||
the recipient automatically receives a license from the original licensor
|
||||
to copy, distribute, link with or modify the Library subject to these terms
|
||||
and conditions. You may not impose any further restrictions on the recipients'
|
||||
exercise of the rights granted herein. You are not responsible for enforcing
|
||||
compliance by third parties to this License.
|
||||
|
||||
11. If, as a consequence of a court judgment or allegation of patent infringement
|
||||
or for any other reason (not limited to patent issues), conditions are imposed
|
||||
on you (whether by court order, agreement or otherwise) that contradict the
|
||||
conditions of this License, they do not excuse you from the conditions of
|
||||
this License. If you cannot distribute so as to satisfy simultaneously your
|
||||
obligations under this License and any other pertinent obligations, then as
|
||||
a consequence you may not distribute the Library at all. For example, if a
|
||||
patent license would not permit royalty-free redistribution of the Library
|
||||
by all those who receive copies directly or indirectly through you, then the
|
||||
only way you could satisfy both it and this License would be to refrain entirely
|
||||
from distribution of the Library.
|
||||
|
||||
If any portion of this section is held invalid or unenforceable under any
|
||||
particular circumstance, the balance of the section is intended to apply,
|
||||
and the section as a whole is intended to apply in other circumstances.
|
||||
|
||||
It is not the purpose of this section to induce you to infringe any patents
|
||||
or other property right claims or to contest validity of any such claims;
|
||||
this section has the sole purpose of protecting the integrity of the free
|
||||
software distribution system which is implemented by public license practices.
|
||||
Many people have made generous contributions to the wide range of software
|
||||
distributed through that system in reliance on consistent application of that
|
||||
system; it is up to the author/donor to decide if he or she is willing to
|
||||
distribute software through any other system and a licensee cannot impose
|
||||
that choice.
|
||||
|
||||
This section is intended to make thoroughly clear what is believed to be a
|
||||
consequence of the rest of this License.
|
||||
|
||||
12. If the distribution and/or use of the Library is restricted in certain
|
||||
countries either by patents or by copyrighted interfaces, the original copyright
|
||||
holder who places the Library under this License may add an explicit geographical
|
||||
distribution limitation excluding those countries, so that distribution is
|
||||
permitted only in or among countries not thus excluded. In such case, this
|
||||
License incorporates the limitation as if written in the body of this License.
|
||||
|
||||
13. The Free Software Foundation may publish revised and/or new versions of
|
||||
the Library General Public License from time to time. Such new versions will
|
||||
be similar in spirit to the present version, but may differ in detail to address
|
||||
new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Library specifies
|
||||
a version number of this License which applies to it and "any later version",
|
||||
you have the option of following the terms and conditions either of that version
|
||||
or of any later version published by the Free Software Foundation. If the
|
||||
Library does not specify a license version number, you may choose any version
|
||||
ever published by the Free Software Foundation.
|
||||
|
||||
14. If you wish to incorporate parts of the Library into other free programs
|
||||
whose distribution conditions are incompatible with these, write to the author
|
||||
to ask for permission. For software which is copyrighted by the Free Software
|
||||
Foundation, write to the Free Software Foundation; we sometimes make exceptions
|
||||
for this. Our decision will be guided by the two goals of preserving the free
|
||||
status of all derivatives of our free software and of promoting the sharing
|
||||
and reuse of software generally.
|
||||
|
||||
NO WARRANTY
|
||||
|
||||
15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR
|
||||
THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE
|
||||
STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE LIBRARY
|
||||
"AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
|
||||
BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE
|
||||
OF THE LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
|
||||
THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE
|
||||
THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE
|
||||
OR INABILITY TO USE THE LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA
|
||||
OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES
|
||||
OR A FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH
|
||||
HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Libraries
|
||||
|
||||
If you develop a new library, and you want it to be of the greatest possible
|
||||
use to the public, we recommend making it free software that everyone can
|
||||
redistribute and change. You can do so by permitting redistribution under
|
||||
these terms (or, alternatively, under the terms of the ordinary General Public
|
||||
License).
|
||||
|
||||
To apply these terms, attach the following notices to the library. It is safest
|
||||
to attach them to the start of each source file to most effectively convey
|
||||
the exclusion of warranty; and each file should have at least the "copyright"
|
||||
line and a pointer to where the full notice is found.
|
||||
|
||||
one line to give the library's name and an idea of what it does.
|
||||
|
||||
Copyright (C) year name of author
|
||||
|
||||
This library is free software; you can redistribute it and/or modify it under
|
||||
the terms of the GNU Library General Public License as published by the Free
|
||||
Software Foundation; either version 2 of the License, or (at your option)
|
||||
any later version.
|
||||
|
||||
This library 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 Library General Public License for more
|
||||
details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public License
|
||||
along with this library; if not, write to the Free Software Foundation, Inc.,
|
||||
51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
You should also get your employer (if you work as a programmer) or your school,
|
||||
if any, to sign a "copyright disclaimer" for the library, if necessary. Here
|
||||
is a sample; alter the names:
|
||||
|
||||
Yoyodyne, Inc., hereby disclaims all copyright interest in
|
||||
|
||||
the library `Frob' (a library for tweaking knobs) written
|
||||
|
||||
by James Random Hacker.
|
||||
|
||||
signature of Ty Coon, 1 April 1990
|
||||
|
||||
Ty Coon, President of Vice
|
||||
|
||||
That's all there is to it!
|
||||
@@ -0,0 +1,467 @@
|
||||
GNU LESSER GENERAL PUBLIC LICENSE
|
||||
|
||||
Version 2.1, February 1999
|
||||
|
||||
Copyright (C) 1991, 1999 Free Software Foundation, Inc.
|
||||
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
Everyone is permitted to copy and distribute verbatim copies of this license
|
||||
document, but changing it is not allowed.
|
||||
|
||||
[This is the first released version of the Lesser GPL. It also counts as the
|
||||
successor of the GNU Library Public License, version 2, hence the version
|
||||
number 2.1.]
|
||||
|
||||
Preamble
|
||||
|
||||
The licenses for most software are designed to take away your freedom to share
|
||||
and change it. By contrast, the GNU General Public Licenses are intended to
|
||||
guarantee your freedom to share and change free software--to make sure the
|
||||
software is free for all its users.
|
||||
|
||||
This license, the Lesser General Public License, applies to some specially
|
||||
designated software packages--typically libraries--of the Free Software Foundation
|
||||
and other authors who decide to use it. You can use it too, but we suggest
|
||||
you first think carefully about whether this license or the ordinary General
|
||||
Public License is the better strategy to use in any particular case, based
|
||||
on the explanations below.
|
||||
|
||||
When we speak of free software, we are referring to freedom of use, not price.
|
||||
Our General Public Licenses are designed to make sure that you have the freedom
|
||||
to distribute copies of free software (and charge for this service if you
|
||||
wish); that you receive source code or can get it if you want it; that you
|
||||
can change the software and use pieces of it in new free programs; and that
|
||||
you are informed that you can do these things.
|
||||
|
||||
To protect your rights, we need to make restrictions that forbid distributors
|
||||
to deny you these rights or to ask you to surrender these rights. These restrictions
|
||||
translate to certain responsibilities for you if you distribute copies of
|
||||
the library or if you modify it.
|
||||
|
||||
For example, if you distribute copies of the library, whether gratis or for
|
||||
a fee, you must give the recipients all the rights that we gave you. You must
|
||||
make sure that they, too, receive or can get the source code. If you link
|
||||
other code with the library, you must provide complete object files to the
|
||||
recipients, so that they can relink them with the library after making changes
|
||||
to the library and recompiling it. And you must show them these terms so they
|
||||
know their rights.
|
||||
|
||||
We protect your rights with a two-step method: (1) we copyright the library,
|
||||
and (2) we offer you this license, which gives you legal permission to copy,
|
||||
distribute and/or modify the library.
|
||||
|
||||
To protect each distributor, we want to make it very clear that there is no
|
||||
warranty for the free library. Also, if the library is modified by someone
|
||||
else and passed on, the recipients should know that what they have is not
|
||||
the original version, so that the original author's reputation will not be
|
||||
affected by problems that might be introduced by others.
|
||||
|
||||
Finally, software patents pose a constant threat to the existence of any free
|
||||
program. We wish to make sure that a company cannot effectively restrict the
|
||||
users of a free program by obtaining a restrictive license from a patent holder.
|
||||
Therefore, we insist that any patent license obtained for a version of the
|
||||
library must be consistent with the full freedom of use specified in this
|
||||
license.
|
||||
|
||||
Most GNU software, including some libraries, is covered by the ordinary GNU
|
||||
General Public License. This license, the GNU Lesser General Public License,
|
||||
applies to certain designated libraries, and is quite different from the ordinary
|
||||
General Public License. We use this license for certain libraries in order
|
||||
to permit linking those libraries into non-free programs.
|
||||
|
||||
When a program is linked with a library, whether statically or using a shared
|
||||
library, the combination of the two is legally speaking a combined work, a
|
||||
derivative of the original library. The ordinary General Public License therefore
|
||||
permits such linking only if the entire combination fits its criteria of freedom.
|
||||
The Lesser General Public License permits more lax criteria for linking other
|
||||
code with the library.
|
||||
|
||||
We call this license the "Lesser" General Public License because it does Less
|
||||
to protect the user's freedom than the ordinary General Public License. It
|
||||
also provides other free software developers Less of an advantage over competing
|
||||
non-free programs. These disadvantages are the reason we use the ordinary
|
||||
General Public License for many libraries. However, the Lesser license provides
|
||||
advantages in certain special circumstances.
|
||||
|
||||
For example, on rare occasions, there may be a special need to encourage the
|
||||
widest possible use of a certain library, so that it becomes a de-facto standard.
|
||||
To achieve this, non-free programs must be allowed to use the library. A more
|
||||
frequent case is that a free library does the same job as widely used non-free
|
||||
libraries. In this case, there is little to gain by limiting the free library
|
||||
to free software only, so we use the Lesser General Public License.
|
||||
|
||||
In other cases, permission to use a particular library in non-free programs
|
||||
enables a greater number of people to use a large body of free software. For
|
||||
example, permission to use the GNU C Library in non-free programs enables
|
||||
many more people to use the whole GNU operating system, as well as its variant,
|
||||
the GNU/Linux operating system.
|
||||
|
||||
Although the Lesser General Public License is Less protective of the users'
|
||||
freedom, it does ensure that the user of a program that is linked with the
|
||||
Library has the freedom and the wherewithal to run that program using a modified
|
||||
version of the Library.
|
||||
|
||||
The precise terms and conditions for copying, distribution and modification
|
||||
follow. Pay close attention to the difference between a "work based on the
|
||||
library" and a "work that uses the library". The former contains code derived
|
||||
from the library, whereas the latter must be combined with the library in
|
||||
order to run.
|
||||
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. This License Agreement applies to any software library or other program
|
||||
which contains a notice placed by the copyright holder or other authorized
|
||||
party saying it may be distributed under the terms of this Lesser General
|
||||
Public License (also called "this License"). Each licensee is addressed as
|
||||
"you".
|
||||
|
||||
A "library" means a collection of software functions and/or data prepared
|
||||
so as to be conveniently linked with application programs (which use some
|
||||
of those functions and data) to form executables.
|
||||
|
||||
The "Library", below, refers to any such software library or work which has
|
||||
been distributed under these terms. A "work based on the Library" means either
|
||||
the Library or any derivative work under copyright law: that is to say, a
|
||||
work containing the Library or a portion of it, either verbatim or with modifications
|
||||
and/or translated straightforwardly into another language. (Hereinafter, translation
|
||||
is included without limitation in the term "modification".)
|
||||
|
||||
"Source code" for a work means the preferred form of the work for making modifications
|
||||
to it. For a library, complete source code means all the source code for all
|
||||
modules it contains, plus any associated interface definition files, plus
|
||||
the scripts used to control compilation and installation of the library.
|
||||
|
||||
Activities other than copying, distribution and modification are not covered
|
||||
by this License; they are outside its scope. The act of running a program
|
||||
using the Library is not restricted, and output from such a program is covered
|
||||
only if its contents constitute a work based on the Library (independent of
|
||||
the use of the Library in a tool for writing it). Whether that is true depends
|
||||
on what the Library does and what the program that uses the Library does.
|
||||
|
||||
1. You may copy and distribute verbatim copies of the Library's complete source
|
||||
code as you receive it, in any medium, provided that you conspicuously and
|
||||
appropriately publish on each copy an appropriate copyright notice and disclaimer
|
||||
of warranty; keep intact all the notices that refer to this License and to
|
||||
the absence of any warranty; and distribute a copy of this License along with
|
||||
the Library.
|
||||
|
||||
You may charge a fee for the physical act of transferring a copy, and you
|
||||
may at your option offer warranty protection in exchange for a fee.
|
||||
|
||||
2. You may modify your copy or copies of the Library or any portion of it,
|
||||
thus forming a work based on the Library, and copy and distribute such modifications
|
||||
or work under the terms of Section 1 above, provided that you also meet all
|
||||
of these conditions:
|
||||
|
||||
a) The modified work must itself be a software library.
|
||||
|
||||
b) You must cause the files modified to carry prominent notices stating that
|
||||
you changed the files and the date of any change.
|
||||
|
||||
c) You must cause the whole of the work to be licensed at no charge to all
|
||||
third parties under the terms of this License.
|
||||
|
||||
d) If a facility in the modified Library refers to a function or a table of
|
||||
data to be supplied by an application program that uses the facility, other
|
||||
than as an argument passed when the facility is invoked, then you must make
|
||||
a good faith effort to ensure that, in the event an application does not supply
|
||||
such function or table, the facility still operates, and performs whatever
|
||||
part of its purpose remains meaningful.
|
||||
|
||||
(For example, a function in a library to compute square roots has a purpose
|
||||
that is entirely well-defined independent of the application. Therefore, Subsection
|
||||
2d requires that any application-supplied function or table used by this function
|
||||
must be optional: if the application does not supply it, the square root function
|
||||
must still compute square roots.)
|
||||
|
||||
These requirements apply to the modified work as a whole. If identifiable
|
||||
sections of that work are not derived from the Library, and can be reasonably
|
||||
considered independent and separate works in themselves, then this License,
|
||||
and its terms, do not apply to those sections when you distribute them as
|
||||
separate works. But when you distribute the same sections as part of a whole
|
||||
which is a work based on the Library, the distribution of the whole must be
|
||||
on the terms of this License, whose permissions for other licensees extend
|
||||
to the entire whole, and thus to each and every part regardless of who wrote
|
||||
it.
|
||||
|
||||
Thus, it is not the intent of this section to claim rights or contest your
|
||||
rights to work written entirely by you; rather, the intent is to exercise
|
||||
the right to control the distribution of derivative or collective works based
|
||||
on the Library.
|
||||
|
||||
In addition, mere aggregation of another work not based on the Library with
|
||||
the Library (or with a work based on the Library) on a volume of a storage
|
||||
or distribution medium does not bring the other work under the scope of this
|
||||
License.
|
||||
|
||||
3. You may opt to apply the terms of the ordinary GNU General Public License
|
||||
instead of this License to a given copy of the Library. To do this, you must
|
||||
alter all the notices that refer to this License, so that they refer to the
|
||||
ordinary GNU General Public License, version 2, instead of to this License.
|
||||
(If a newer version than version 2 of the ordinary GNU General Public License
|
||||
has appeared, then you can specify that version instead if you wish.) Do not
|
||||
make any other change in these notices.
|
||||
|
||||
Once this change is made in a given copy, it is irreversible for that copy,
|
||||
so the ordinary GNU General Public License applies to all subsequent copies
|
||||
and derivative works made from that copy.
|
||||
|
||||
This option is useful when you wish to copy part of the code of the Library
|
||||
into a program that is not a library.
|
||||
|
||||
4. You may copy and distribute the Library (or a portion or derivative of
|
||||
it, under Section 2) in object code or executable form under the terms of
|
||||
Sections 1 and 2 above provided that you accompany it with the complete corresponding
|
||||
machine-readable source code, which must be distributed under the terms of
|
||||
Sections 1 and 2 above on a medium customarily used for software interchange.
|
||||
|
||||
If distribution of object code is made by offering access to copy from a designated
|
||||
place, then offering equivalent access to copy the source code from the same
|
||||
place satisfies the requirement to distribute the source code, even though
|
||||
third parties are not compelled to copy the source along with the object code.
|
||||
|
||||
5. A program that contains no derivative of any portion of the Library, but
|
||||
is designed to work with the Library by being compiled or linked with it,
|
||||
is called a "work that uses the Library". Such a work, in isolation, is not
|
||||
a derivative work of the Library, and therefore falls outside the scope of
|
||||
this License.
|
||||
|
||||
However, linking a "work that uses the Library" with the Library creates an
|
||||
executable that is a derivative of the Library (because it contains portions
|
||||
of the Library), rather than a "work that uses the library". The executable
|
||||
is therefore covered by this License. Section 6 states terms for distribution
|
||||
of such executables.
|
||||
|
||||
When a "work that uses the Library" uses material from a header file that
|
||||
is part of the Library, the object code for the work may be a derivative work
|
||||
of the Library even though the source code is not. Whether this is true is
|
||||
especially significant if the work can be linked without the Library, or if
|
||||
the work is itself a library. The threshold for this to be true is not precisely
|
||||
defined by law.
|
||||
|
||||
If such an object file uses only numerical parameters, data structure layouts
|
||||
and accessors, and small macros and small inline functions (ten lines or less
|
||||
in length), then the use of the object file is unrestricted, regardless of
|
||||
whether it is legally a derivative work. (Executables containing this object
|
||||
code plus portions of the Library will still fall under Section 6.)
|
||||
|
||||
Otherwise, if the work is a derivative of the Library, you may distribute
|
||||
the object code for the work under the terms of Section 6. Any executables
|
||||
containing that work also fall under Section 6, whether or not they are linked
|
||||
directly with the Library itself.
|
||||
|
||||
6. As an exception to the Sections above, you may also combine or link a "work
|
||||
that uses the Library" with the Library to produce a work containing portions
|
||||
of the Library, and distribute that work under terms of your choice, provided
|
||||
that the terms permit modification of the work for the customer's own use
|
||||
and reverse engineering for debugging such modifications.
|
||||
|
||||
You must give prominent notice with each copy of the work that the Library
|
||||
is used in it and that the Library and its use are covered by this License.
|
||||
You must supply a copy of this License. If the work during execution displays
|
||||
copyright notices, you must include the copyright notice for the Library among
|
||||
them, as well as a reference directing the user to the copy of this License.
|
||||
Also, you must do one of these things:
|
||||
|
||||
a) Accompany the work with the complete corresponding machine-readable source
|
||||
code for the Library including whatever changes were used in the work (which
|
||||
must be distributed under Sections 1 and 2 above); and, if the work is an
|
||||
executable linked with the Library, with the complete machine-readable "work
|
||||
that uses the Library", as object code and/or source code, so that the user
|
||||
can modify the Library and then relink to produce a modified executable containing
|
||||
the modified Library. (It is understood that the user who changes the contents
|
||||
of definitions files in the Library will not necessarily be able to recompile
|
||||
the application to use the modified definitions.)
|
||||
|
||||
b) Use a suitable shared library mechanism for linking with the Library. A
|
||||
suitable mechanism is one that (1) uses at run time a copy of the library
|
||||
already present on the user's computer system, rather than copying library
|
||||
functions into the executable, and (2) will operate properly with a modified
|
||||
version of the library, if the user installs one, as long as the modified
|
||||
version is interface-compatible with the version that the work was made with.
|
||||
|
||||
c) Accompany the work with a written offer, valid for at least three years,
|
||||
to give the same user the materials specified in Subsection 6a, above, for
|
||||
a charge no more than the cost of performing this distribution.
|
||||
|
||||
d) If distribution of the work is made by offering access to copy from a designated
|
||||
place, offer equivalent access to copy the above specified materials from
|
||||
the same place.
|
||||
|
||||
e) Verify that the user has already received a copy of these materials or
|
||||
that you have already sent this user a copy.
|
||||
|
||||
For an executable, the required form of the "work that uses the Library" must
|
||||
include any data and utility programs needed for reproducing the executable
|
||||
from it. However, as a special exception, the materials to be distributed
|
||||
need not include anything that is normally distributed (in either source or
|
||||
binary form) with the major components (compiler, kernel, and so on) of the
|
||||
operating system on which the executable runs, unless that component itself
|
||||
accompanies the executable.
|
||||
|
||||
It may happen that this requirement contradicts the license restrictions of
|
||||
other proprietary libraries that do not normally accompany the operating system.
|
||||
Such a contradiction means you cannot use both them and the Library together
|
||||
in an executable that you distribute.
|
||||
|
||||
7. You may place library facilities that are a work based on the Library side-by-side
|
||||
in a single library together with other library facilities not covered by
|
||||
this License, and distribute such a combined library, provided that the separate
|
||||
distribution of the work based on the Library and of the other library facilities
|
||||
is otherwise permitted, and provided that you do these two things:
|
||||
|
||||
a) Accompany the combined library with a copy of the same work based on the
|
||||
Library, uncombined with any other library facilities. This must be distributed
|
||||
under the terms of the Sections above.
|
||||
|
||||
b) Give prominent notice with the combined library of the fact that part of
|
||||
it is a work based on the Library, and explaining where to find the accompanying
|
||||
uncombined form of the same work.
|
||||
|
||||
8. You may not copy, modify, sublicense, link with, or distribute the Library
|
||||
except as expressly provided under this License. Any attempt otherwise to
|
||||
copy, modify, sublicense, link with, or distribute the Library is void, and
|
||||
will automatically terminate your rights under this License. However, parties
|
||||
who have received copies, or rights, from you under this License will not
|
||||
have their licenses terminated so long as such parties remain in full compliance.
|
||||
|
||||
9. You are not required to accept this License, since you have not signed
|
||||
it. However, nothing else grants you permission to modify or distribute the
|
||||
Library or its derivative works. These actions are prohibited by law if you
|
||||
do not accept this License. Therefore, by modifying or distributing the Library
|
||||
(or any work based on the Library), you indicate your acceptance of this License
|
||||
to do so, and all its terms and conditions for copying, distributing or modifying
|
||||
the Library or works based on it.
|
||||
|
||||
10. Each time you redistribute the Library (or any work based on the Library),
|
||||
the recipient automatically receives a license from the original licensor
|
||||
to copy, distribute, link with or modify the Library subject to these terms
|
||||
and conditions. You may not impose any further restrictions on the recipients'
|
||||
exercise of the rights granted herein. You are not responsible for enforcing
|
||||
compliance by third parties with this License.
|
||||
|
||||
11. If, as a consequence of a court judgment or allegation of patent infringement
|
||||
or for any other reason (not limited to patent issues), conditions are imposed
|
||||
on you (whether by court order, agreement or otherwise) that contradict the
|
||||
conditions of this License, they do not excuse you from the conditions of
|
||||
this License. If you cannot distribute so as to satisfy simultaneously your
|
||||
obligations under this License and any other pertinent obligations, then as
|
||||
a consequence you may not distribute the Library at all. For example, if a
|
||||
patent license would not permit royalty-free redistribution of the Library
|
||||
by all those who receive copies directly or indirectly through you, then the
|
||||
only way you could satisfy both it and this License would be to refrain entirely
|
||||
from distribution of the Library.
|
||||
|
||||
If any portion of this section is held invalid or unenforceable under any
|
||||
particular circumstance, the balance of the section is intended to apply,
|
||||
and the section as a whole is intended to apply in other circumstances.
|
||||
|
||||
It is not the purpose of this section to induce you to infringe any patents
|
||||
or other property right claims or to contest validity of any such claims;
|
||||
this section has the sole purpose of protecting the integrity of the free
|
||||
software distribution system which is implemented by public license practices.
|
||||
Many people have made generous contributions to the wide range of software
|
||||
distributed through that system in reliance on consistent application of that
|
||||
system; it is up to the author/donor to decide if he or she is willing to
|
||||
distribute software through any other system and a licensee cannot impose
|
||||
that choice.
|
||||
|
||||
This section is intended to make thoroughly clear what is believed to be a
|
||||
consequence of the rest of this License.
|
||||
|
||||
12. If the distribution and/or use of the Library is restricted in certain
|
||||
countries either by patents or by copyrighted interfaces, the original copyright
|
||||
holder who places the Library under this License may add an explicit geographical
|
||||
distribution limitation excluding those countries, so that distribution is
|
||||
permitted only in or among countries not thus excluded. In such case, this
|
||||
License incorporates the limitation as if written in the body of this License.
|
||||
|
||||
13. The Free Software Foundation may publish revised and/or new versions of
|
||||
the Lesser General Public License from time to time. Such new versions will
|
||||
be similar in spirit to the present version, but may differ in detail to address
|
||||
new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Library specifies
|
||||
a version number of this License which applies to it and "any later version",
|
||||
you have the option of following the terms and conditions either of that version
|
||||
or of any later version published by the Free Software Foundation. If the
|
||||
Library does not specify a license version number, you may choose any version
|
||||
ever published by the Free Software Foundation.
|
||||
|
||||
14. If you wish to incorporate parts of the Library into other free programs
|
||||
whose distribution conditions are incompatible with these, write to the author
|
||||
to ask for permission. For software which is copyrighted by the Free Software
|
||||
Foundation, write to the Free Software Foundation; we sometimes make exceptions
|
||||
for this. Our decision will be guided by the two goals of preserving the free
|
||||
status of all derivatives of our free software and of promoting the sharing
|
||||
and reuse of software generally.
|
||||
|
||||
NO WARRANTY
|
||||
|
||||
15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR
|
||||
THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE
|
||||
STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE LIBRARY
|
||||
"AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
|
||||
BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE
|
||||
OF THE LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
|
||||
THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE
|
||||
THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE
|
||||
OR INABILITY TO USE THE LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA
|
||||
OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES
|
||||
OR A FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH
|
||||
HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Libraries
|
||||
|
||||
If you develop a new library, and you want it to be of the greatest possible
|
||||
use to the public, we recommend making it free software that everyone can
|
||||
redistribute and change. You can do so by permitting redistribution under
|
||||
these terms (or, alternatively, under the terms of the ordinary General Public
|
||||
License).
|
||||
|
||||
To apply these terms, attach the following notices to the library. It is safest
|
||||
to attach them to the start of each source file to most effectively convey
|
||||
the exclusion of warranty; and each file should have at least the "copyright"
|
||||
line and a pointer to where the full notice is found.
|
||||
|
||||
< one line to give the library's name and an idea of what it does. >
|
||||
|
||||
Copyright (C) < year > < name of author >
|
||||
|
||||
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 2.1 of the License, or (at your option)
|
||||
any later version.
|
||||
|
||||
This library 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 library; if not, write to the Free Software Foundation, Inc., 51
|
||||
Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Also add information
|
||||
on how to contact you by electronic and paper mail.
|
||||
|
||||
You should also get your employer (if you work as a programmer) or your school,
|
||||
if any, to sign a "copyright disclaimer" for the library, if necessary. Here
|
||||
is a sample; alter the names:
|
||||
|
||||
Yoyodyne, Inc., hereby disclaims all copyright interest in
|
||||
|
||||
the library `Frob' (a library for tweaking knobs) written
|
||||
|
||||
by James Random Hacker.
|
||||
|
||||
< signature of Ty Coon > , 1 April 1990
|
||||
|
||||
Ty Coon, President of Vice
|
||||
|
||||
That's all there is to it!
|
||||
@@ -0,0 +1,468 @@
|
||||
GNU LESSER GENERAL PUBLIC LICENSE
|
||||
|
||||
Version 2.1, February 1999
|
||||
|
||||
Copyright (C) 1991, 1999 Free Software Foundation, Inc.
|
||||
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
Everyone is permitted to copy and distribute verbatim copies of this license
|
||||
document, but changing it is not allowed.
|
||||
|
||||
[This is the first released version of the Lesser GPL. It also counts as the
|
||||
successor of the GNU Library Public License, version 2, hence the version
|
||||
number 2.1.]
|
||||
|
||||
Preamble
|
||||
|
||||
The licenses for most software are designed to take away your freedom to share
|
||||
and change it. By contrast, the GNU General Public Licenses are intended to
|
||||
guarantee your freedom to share and change free software--to make sure the
|
||||
software is free for all its users.
|
||||
|
||||
This license, the Lesser General Public License, applies to some specially
|
||||
designated software packages--typically libraries--of the Free Software Foundation
|
||||
and other authors who decide to use it. You can use it too, but we suggest
|
||||
you first think carefully about whether this license or the ordinary General
|
||||
Public License is the better strategy to use in any particular case, based
|
||||
on the explanations below.
|
||||
|
||||
When we speak of free software, we are referring to freedom of use, not price.
|
||||
Our General Public Licenses are designed to make sure that you have the freedom
|
||||
to distribute copies of free software (and charge for this service if you
|
||||
wish); that you receive source code or can get it if you want it; that you
|
||||
can change the software and use pieces of it in new free programs; and that
|
||||
you are informed that you can do these things.
|
||||
|
||||
To protect your rights, we need to make restrictions that forbid distributors
|
||||
to deny you these rights or to ask you to surrender these rights. These restrictions
|
||||
translate to certain responsibilities for you if you distribute copies of
|
||||
the library or if you modify it.
|
||||
|
||||
For example, if you distribute copies of the library, whether gratis or for
|
||||
a fee, you must give the recipients all the rights that we gave you. You must
|
||||
make sure that they, too, receive or can get the source code. If you link
|
||||
other code with the library, you must provide complete object files to the
|
||||
recipients, so that they can relink them with the library after making changes
|
||||
to the library and recompiling it. And you must show them these terms so they
|
||||
know their rights.
|
||||
|
||||
We protect your rights with a two-step method: (1) we copyright the library,
|
||||
and (2) we offer you this license, which gives you legal permission to copy,
|
||||
distribute and/or modify the library.
|
||||
|
||||
To protect each distributor, we want to make it very clear that there is no
|
||||
warranty for the free library. Also, if the library is modified by someone
|
||||
else and passed on, the recipients should know that what they have is not
|
||||
the original version, so that the original author's reputation will not be
|
||||
affected by problems that might be introduced by others.
|
||||
|
||||
Finally, software patents pose a constant threat to the existence of any free
|
||||
program. We wish to make sure that a company cannot effectively restrict the
|
||||
users of a free program by obtaining a restrictive license from a patent holder.
|
||||
Therefore, we insist that any patent license obtained for a version of the
|
||||
library must be consistent with the full freedom of use specified in this
|
||||
license.
|
||||
|
||||
Most GNU software, including some libraries, is covered by the ordinary GNU
|
||||
General Public License. This license, the GNU Lesser General Public License,
|
||||
applies to certain designated libraries, and is quite different from the ordinary
|
||||
General Public License. We use this license for certain libraries in order
|
||||
to permit linking those libraries into non-free programs.
|
||||
|
||||
When a program is linked with a library, whether statically or using a shared
|
||||
library, the combination of the two is legally speaking a combined work, a
|
||||
derivative of the original library. The ordinary General Public License therefore
|
||||
permits such linking only if the entire combination fits its criteria of freedom.
|
||||
The Lesser General Public License permits more lax criteria for linking other
|
||||
code with the library.
|
||||
|
||||
We call this license the "Lesser" General Public License because it does Less
|
||||
to protect the user's freedom than the ordinary General Public License. It
|
||||
also provides other free software developers Less of an advantage over competing
|
||||
non-free programs. These disadvantages are the reason we use the ordinary
|
||||
General Public License for many libraries. However, the Lesser license provides
|
||||
advantages in certain special circumstances.
|
||||
|
||||
For example, on rare occasions, there may be a special need to encourage the
|
||||
widest possible use of a certain library, so that it becomes a de-facto standard.
|
||||
To achieve this, non-free programs must be allowed to use the library. A more
|
||||
frequent case is that a free library does the same job as widely used non-free
|
||||
libraries. In this case, there is little to gain by limiting the free library
|
||||
to free software only, so we use the Lesser General Public License.
|
||||
|
||||
In other cases, permission to use a particular library in non-free programs
|
||||
enables a greater number of people to use a large body of free software. For
|
||||
example, permission to use the GNU C Library in non-free programs enables
|
||||
many more people to use the whole GNU operating system, as well as its variant,
|
||||
the GNU/Linux operating system.
|
||||
|
||||
Although the Lesser General Public License is Less protective of the users'
|
||||
freedom, it does ensure that the user of a program that is linked with the
|
||||
Library has the freedom and the wherewithal to run that program using a modified
|
||||
version of the Library.
|
||||
|
||||
The precise terms and conditions for copying, distribution and modification
|
||||
follow. Pay close attention to the difference between a "work based on the
|
||||
library" and a "work that uses the library". The former contains code derived
|
||||
from the library, whereas the latter must be combined with the library in
|
||||
order to run.
|
||||
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. This License Agreement applies to any software library or other program
|
||||
which contains a notice placed by the copyright holder or other authorized
|
||||
party saying it may be distributed under the terms of this Lesser General
|
||||
Public License (also called "this License"). Each licensee is addressed as
|
||||
"you".
|
||||
|
||||
A "library" means a collection of software functions and/or data prepared
|
||||
so as to be conveniently linked with application programs (which use some
|
||||
of those functions and data) to form executables.
|
||||
|
||||
The "Library", below, refers to any such software library or work which has
|
||||
been distributed under these terms. A "work based on the Library" means either
|
||||
the Library or any derivative work under copyright law: that is to say, a
|
||||
work containing the Library or a portion of it, either verbatim or with modifications
|
||||
and/or translated straightforwardly into another language. (Hereinafter, translation
|
||||
is included without limitation in the term "modification".)
|
||||
|
||||
"Source code" for a work means the preferred form of the work for making modifications
|
||||
to it. For a library, complete source code means all the source code for all
|
||||
modules it contains, plus any associated interface definition files, plus
|
||||
the scripts used to control compilation and installation of the library.
|
||||
|
||||
Activities other than copying, distribution and modification are not covered
|
||||
by this License; they are outside its scope. The act of running a program
|
||||
using the Library is not restricted, and output from such a program is covered
|
||||
only if its contents constitute a work based on the Library (independent of
|
||||
the use of the Library in a tool for writing it). Whether that is true depends
|
||||
on what the Library does and what the program that uses the Library does.
|
||||
|
||||
1. You may copy and distribute verbatim copies of the Library's complete source
|
||||
code as you receive it, in any medium, provided that you conspicuously and
|
||||
appropriately publish on each copy an appropriate copyright notice and disclaimer
|
||||
of warranty; keep intact all the notices that refer to this License and to
|
||||
the absence of any warranty; and distribute a copy of this License along with
|
||||
the Library.
|
||||
|
||||
You may charge a fee for the physical act of transferring a copy, and you
|
||||
may at your option offer warranty protection in exchange for a fee.
|
||||
|
||||
2. You may modify your copy or copies of the Library or any portion of it,
|
||||
thus forming a work based on the Library, and copy and distribute such modifications
|
||||
or work under the terms of Section 1 above, provided that you also meet all
|
||||
of these conditions:
|
||||
|
||||
a) The modified work must itself be a software library.
|
||||
|
||||
b) You must cause the files modified to carry prominent notices stating that
|
||||
you changed the files and the date of any change.
|
||||
|
||||
c) You must cause the whole of the work to be licensed at no charge to all
|
||||
third parties under the terms of this License.
|
||||
|
||||
d) If a facility in the modified Library refers to a function or a table of
|
||||
data to be supplied by an application program that uses the facility, other
|
||||
than as an argument passed when the facility is invoked, then you must make
|
||||
a good faith effort to ensure that, in the event an application does not supply
|
||||
such function or table, the facility still operates, and performs whatever
|
||||
part of its purpose remains meaningful.
|
||||
|
||||
(For example, a function in a library to compute square roots has a purpose
|
||||
that is entirely well-defined independent of the application. Therefore, Subsection
|
||||
2d requires that any application-supplied function or table used by this function
|
||||
must be optional: if the application does not supply it, the square root function
|
||||
must still compute square roots.)
|
||||
|
||||
These requirements apply to the modified work as a whole. If identifiable
|
||||
sections of that work are not derived from the Library, and can be reasonably
|
||||
considered independent and separate works in themselves, then this License,
|
||||
and its terms, do not apply to those sections when you distribute them as
|
||||
separate works. But when you distribute the same sections as part of a whole
|
||||
which is a work based on the Library, the distribution of the whole must be
|
||||
on the terms of this License, whose permissions for other licensees extend
|
||||
to the entire whole, and thus to each and every part regardless of who wrote
|
||||
it.
|
||||
|
||||
Thus, it is not the intent of this section to claim rights or contest your
|
||||
rights to work written entirely by you; rather, the intent is to exercise
|
||||
the right to control the distribution of derivative or collective works based
|
||||
on the Library.
|
||||
|
||||
In addition, mere aggregation of another work not based on the Library with
|
||||
the Library (or with a work based on the Library) on a volume of a storage
|
||||
or distribution medium does not bring the other work under the scope of this
|
||||
License.
|
||||
|
||||
3. You may opt to apply the terms of the ordinary GNU General Public License
|
||||
instead of this License to a given copy of the Library. To do this, you must
|
||||
alter all the notices that refer to this License, so that they refer to the
|
||||
ordinary GNU General Public License, version 2, instead of to this License.
|
||||
(If a newer version than version 2 of the ordinary GNU General Public License
|
||||
has appeared, then you can specify that version instead if you wish.) Do not
|
||||
make any other change in these notices.
|
||||
|
||||
Once this change is made in a given copy, it is irreversible for that copy,
|
||||
so the ordinary GNU General Public License applies to all subsequent copies
|
||||
and derivative works made from that copy.
|
||||
|
||||
This option is useful when you wish to copy part of the code of the Library
|
||||
into a program that is not a library.
|
||||
|
||||
4. You may copy and distribute the Library (or a portion or derivative of
|
||||
it, under Section 2) in object code or executable form under the terms of
|
||||
Sections 1 and 2 above provided that you accompany it with the complete corresponding
|
||||
machine-readable source code, which must be distributed under the terms of
|
||||
Sections 1 and 2 above on a medium customarily used for software interchange.
|
||||
|
||||
If distribution of object code is made by offering access to copy from a designated
|
||||
place, then offering equivalent access to copy the source code from the same
|
||||
place satisfies the requirement to distribute the source code, even though
|
||||
third parties are not compelled to copy the source along with the object code.
|
||||
|
||||
5. A program that contains no derivative of any portion of the Library, but
|
||||
is designed to work with the Library by being compiled or linked with it,
|
||||
is called a "work that uses the Library". Such a work, in isolation, is not
|
||||
a derivative work of the Library, and therefore falls outside the scope of
|
||||
this License.
|
||||
|
||||
However, linking a "work that uses the Library" with the Library creates an
|
||||
executable that is a derivative of the Library (because it contains portions
|
||||
of the Library), rather than a "work that uses the library". The executable
|
||||
is therefore covered by this License. Section 6 states terms for distribution
|
||||
of such executables.
|
||||
|
||||
When a "work that uses the Library" uses material from a header file that
|
||||
is part of the Library, the object code for the work may be a derivative work
|
||||
of the Library even though the source code is not. Whether this is true is
|
||||
especially significant if the work can be linked without the Library, or if
|
||||
the work is itself a library. The threshold for this to be true is not precisely
|
||||
defined by law.
|
||||
|
||||
If such an object file uses only numerical parameters, data structure layouts
|
||||
and accessors, and small macros and small inline functions (ten lines or less
|
||||
in length), then the use of the object file is unrestricted, regardless of
|
||||
whether it is legally a derivative work. (Executables containing this object
|
||||
code plus portions of the Library will still fall under Section 6.)
|
||||
|
||||
Otherwise, if the work is a derivative of the Library, you may distribute
|
||||
the object code for the work under the terms of Section 6. Any executables
|
||||
containing that work also fall under Section 6, whether or not they are linked
|
||||
directly with the Library itself.
|
||||
|
||||
6. As an exception to the Sections above, you may also combine or link a "work
|
||||
that uses the Library" with the Library to produce a work containing portions
|
||||
of the Library, and distribute that work under terms of your choice, provided
|
||||
that the terms permit modification of the work for the customer's own use
|
||||
and reverse engineering for debugging such modifications.
|
||||
|
||||
You must give prominent notice with each copy of the work that the Library
|
||||
is used in it and that the Library and its use are covered by this License.
|
||||
You must supply a copy of this License. If the work during execution displays
|
||||
copyright notices, you must include the copyright notice for the Library among
|
||||
them, as well as a reference directing the user to the copy of this License.
|
||||
Also, you must do one of these things:
|
||||
|
||||
a) Accompany the work with the complete corresponding machine-readable source
|
||||
code for the Library including whatever changes were used in the work (which
|
||||
must be distributed under Sections 1 and 2 above); and, if the work is an
|
||||
executable linked with the Library, with the complete machine-readable "work
|
||||
that uses the Library", as object code and/or source code, so that the user
|
||||
can modify the Library and then relink to produce a modified executable containing
|
||||
the modified Library. (It is understood that the user who changes the contents
|
||||
of definitions files in the Library will not necessarily be able to recompile
|
||||
the application to use the modified definitions.)
|
||||
|
||||
b) Use a suitable shared library mechanism for linking with the Library. A
|
||||
suitable mechanism is one that (1) uses at run time a copy of the library
|
||||
already present on the user's computer system, rather than copying library
|
||||
functions into the executable, and (2) will operate properly with a modified
|
||||
version of the library, if the user installs one, as long as the modified
|
||||
version is interface-compatible with the version that the work was made with.
|
||||
|
||||
c) Accompany the work with a written offer, valid for at least three years,
|
||||
to give the same user the materials specified in Subsection 6a, above, for
|
||||
a charge no more than the cost of performing this distribution.
|
||||
|
||||
d) If distribution of the work is made by offering access to copy from a designated
|
||||
place, offer equivalent access to copy the above specified materials from
|
||||
the same place.
|
||||
|
||||
e) Verify that the user has already received a copy of these materials or
|
||||
that you have already sent this user a copy.
|
||||
|
||||
For an executable, the required form of the "work that uses the Library" must
|
||||
include any data and utility programs needed for reproducing the executable
|
||||
from it. However, as a special exception, the materials to be distributed
|
||||
need not include anything that is normally distributed (in either source or
|
||||
binary form) with the major components (compiler, kernel, and so on) of the
|
||||
operating system on which the executable runs, unless that component itself
|
||||
accompanies the executable.
|
||||
|
||||
It may happen that this requirement contradicts the license restrictions of
|
||||
other proprietary libraries that do not normally accompany the operating system.
|
||||
Such a contradiction means you cannot use both them and the Library together
|
||||
in an executable that you distribute.
|
||||
|
||||
7. You may place library facilities that are a work based on the Library side-by-side
|
||||
in a single library together with other library facilities not covered by
|
||||
this License, and distribute such a combined library, provided that the separate
|
||||
distribution of the work based on the Library and of the other library facilities
|
||||
is otherwise permitted, and provided that you do these two things:
|
||||
|
||||
a) Accompany the combined library with a copy of the same work based on the
|
||||
Library, uncombined with any other library facilities. This must be distributed
|
||||
under the terms of the Sections above.
|
||||
|
||||
b) Give prominent notice with the combined library of the fact that part of
|
||||
it is a work based on the Library, and explaining where to find the accompanying
|
||||
uncombined form of the same work.
|
||||
|
||||
8. You may not copy, modify, sublicense, link with, or distribute the Library
|
||||
except as expressly provided under this License. Any attempt otherwise to
|
||||
copy, modify, sublicense, link with, or distribute the Library is void, and
|
||||
will automatically terminate your rights under this License. However, parties
|
||||
who have received copies, or rights, from you under this License will not
|
||||
have their licenses terminated so long as such parties remain in full compliance.
|
||||
|
||||
9. You are not required to accept this License, since you have not signed
|
||||
it. However, nothing else grants you permission to modify or distribute the
|
||||
Library or its derivative works. These actions are prohibited by law if you
|
||||
do not accept this License. Therefore, by modifying or distributing the Library
|
||||
(or any work based on the Library), you indicate your acceptance of this License
|
||||
to do so, and all its terms and conditions for copying, distributing or modifying
|
||||
the Library or works based on it.
|
||||
|
||||
10. Each time you redistribute the Library (or any work based on the Library),
|
||||
the recipient automatically receives a license from the original licensor
|
||||
to copy, distribute, link with or modify the Library subject to these terms
|
||||
and conditions. You may not impose any further restrictions on the recipients'
|
||||
exercise of the rights granted herein. You are not responsible for enforcing
|
||||
compliance by third parties with this License.
|
||||
|
||||
11. If, as a consequence of a court judgment or allegation of patent infringement
|
||||
or for any other reason (not limited to patent issues), conditions are imposed
|
||||
on you (whether by court order, agreement or otherwise) that contradict the
|
||||
conditions of this License, they do not excuse you from the conditions of
|
||||
this License. If you cannot distribute so as to satisfy simultaneously your
|
||||
obligations under this License and any other pertinent obligations, then as
|
||||
a consequence you may not distribute the Library at all. For example, if a
|
||||
patent license would not permit royalty-free redistribution of the Library
|
||||
by all those who receive copies directly or indirectly through you, then the
|
||||
only way you could satisfy both it and this License would be to refrain entirely
|
||||
from distribution of the Library.
|
||||
|
||||
If any portion of this section is held invalid or unenforceable under any
|
||||
particular circumstance, the balance of the section is intended to apply,
|
||||
and the section as a whole is intended to apply in other circumstances.
|
||||
|
||||
It is not the purpose of this section to induce you to infringe any patents
|
||||
or other property right claims or to contest validity of any such claims;
|
||||
this section has the sole purpose of protecting the integrity of the free
|
||||
software distribution system which is implemented by public license practices.
|
||||
Many people have made generous contributions to the wide range of software
|
||||
distributed through that system in reliance on consistent application of that
|
||||
system; it is up to the author/donor to decide if he or she is willing to
|
||||
distribute software through any other system and a licensee cannot impose
|
||||
that choice.
|
||||
|
||||
This section is intended to make thoroughly clear what is believed to be a
|
||||
consequence of the rest of this License.
|
||||
|
||||
12. If the distribution and/or use of the Library is restricted in certain
|
||||
countries either by patents or by copyrighted interfaces, the original copyright
|
||||
holder who places the Library under this License may add an explicit geographical
|
||||
distribution limitation excluding those countries, so that distribution is
|
||||
permitted only in or among countries not thus excluded. In such case, this
|
||||
License incorporates the limitation as if written in the body of this License.
|
||||
|
||||
13. The Free Software Foundation may publish revised and/or new versions of
|
||||
the Lesser General Public License from time to time. Such new versions will
|
||||
be similar in spirit to the present version, but may differ in detail to address
|
||||
new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Library specifies
|
||||
a version number of this License which applies to it and "any later version",
|
||||
you have the option of following the terms and conditions either of that version
|
||||
or of any later version published by the Free Software Foundation. If the
|
||||
Library does not specify a license version number, you may choose any version
|
||||
ever published by the Free Software Foundation.
|
||||
|
||||
14. If you wish to incorporate parts of the Library into other free programs
|
||||
whose distribution conditions are incompatible with these, write to the author
|
||||
to ask for permission. For software which is copyrighted by the Free Software
|
||||
Foundation, write to the Free Software Foundation; we sometimes make exceptions
|
||||
for this. Our decision will be guided by the two goals of preserving the free
|
||||
status of all derivatives of our free software and of promoting the sharing
|
||||
and reuse of software generally.
|
||||
|
||||
NO WARRANTY
|
||||
|
||||
15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR
|
||||
THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE
|
||||
STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE LIBRARY
|
||||
"AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
|
||||
BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE
|
||||
OF THE LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
|
||||
THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE
|
||||
THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE
|
||||
OR INABILITY TO USE THE LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA
|
||||
OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES
|
||||
OR A FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH
|
||||
HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Libraries
|
||||
|
||||
If you develop a new library, and you want it to be of the greatest possible
|
||||
use to the public, we recommend making it free software that everyone can
|
||||
redistribute and change. You can do so by permitting redistribution under
|
||||
these terms (or, alternatively, under the terms of the ordinary General Public
|
||||
License).
|
||||
|
||||
To apply these terms, attach the following notices to the library. It is safest
|
||||
to attach them to the start of each source file to most effectively convey
|
||||
the exclusion of warranty; and each file should have at least the "copyright"
|
||||
line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the library's name and an idea of what it does.>
|
||||
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
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 2.1 of the License, or (at your option)
|
||||
any later version.
|
||||
|
||||
This library 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 library; if not, write to the Free Software Foundation, Inc., 51
|
||||
Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
You should also get your employer (if you work as a programmer) or your school,
|
||||
if any, to sign a "copyright disclaimer" for the library, if necessary. Here
|
||||
is a sample; alter the names:
|
||||
|
||||
Yoyodyne, Inc., hereby disclaims all copyright interest in
|
||||
|
||||
the library `Frob' (a library for tweaking knobs) written
|
||||
|
||||
by James Random Hacker.
|
||||
|
||||
< signature of Ty Coon > , 1 April 1990
|
||||
|
||||
Ty Coon, President of Vice
|
||||
|
||||
That's all there is to it!
|
||||
@@ -0,0 +1,163 @@
|
||||
GNU LESSER GENERAL PUBLIC LICENSE
|
||||
|
||||
Version 3, 29 June 2007
|
||||
|
||||
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
||||
|
||||
Everyone is permitted to copy and distribute verbatim copies of this license
|
||||
document, but changing it is not allowed.
|
||||
|
||||
This version of the GNU Lesser General Public License incorporates the terms
|
||||
and conditions of version 3 of the GNU General Public License, supplemented
|
||||
by the additional permissions listed below.
|
||||
|
||||
0. Additional Definitions.
|
||||
|
||||
|
||||
|
||||
As used herein, "this License" refers to version 3 of the GNU Lesser General
|
||||
Public License, and the "GNU GPL" refers to version 3 of the GNU General Public
|
||||
License.
|
||||
|
||||
|
||||
|
||||
"The Library" refers to a covered work governed by this License, other than
|
||||
an Application or a Combined Work as defined below.
|
||||
|
||||
|
||||
|
||||
An "Application" is any work that makes use of an interface provided by the
|
||||
Library, but which is not otherwise based on the Library. Defining a subclass
|
||||
of a class defined by the Library is deemed a mode of using an interface provided
|
||||
by the Library.
|
||||
|
||||
|
||||
|
||||
A "Combined Work" is a work produced by combining or linking an Application
|
||||
with the Library. The particular version of the Library with which the Combined
|
||||
Work was made is also called the "Linked Version".
|
||||
|
||||
|
||||
|
||||
The "Minimal Corresponding Source" for a Combined Work means the Corresponding
|
||||
Source for the Combined Work, excluding any source code for portions of the
|
||||
Combined Work that, considered in isolation, are based on the Application,
|
||||
and not on the Linked Version.
|
||||
|
||||
|
||||
|
||||
The "Corresponding Application Code" for a Combined Work means the object
|
||||
code and/or source code for the Application, including any data and utility
|
||||
programs needed for reproducing the Combined Work from the Application, but
|
||||
excluding the System Libraries of the Combined Work.
|
||||
|
||||
1. Exception to Section 3 of the GNU GPL.
|
||||
|
||||
You may convey a covered work under sections 3 and 4 of this License without
|
||||
being bound by section 3 of the GNU GPL.
|
||||
|
||||
2. Conveying Modified Versions.
|
||||
|
||||
If you modify a copy of the Library, and, in your modifications, a facility
|
||||
refers to a function or data to be supplied by an Application that uses the
|
||||
facility (other than as an argument passed when the facility is invoked),
|
||||
then you may convey a copy of the modified version:
|
||||
|
||||
a) under this License, provided that you make a good faith effort to ensure
|
||||
that, in the event an Application does not supply the function or data, the
|
||||
facility still operates, and performs whatever part of its purpose remains
|
||||
meaningful, or
|
||||
|
||||
b) under the GNU GPL, with none of the additional permissions of this License
|
||||
applicable to that copy.
|
||||
|
||||
3. Object Code Incorporating Material from Library Header Files.
|
||||
|
||||
The object code form of an Application may incorporate material from a header
|
||||
file that is part of the Library. You may convey such object code under terms
|
||||
of your choice, provided that, if the incorporated material is not limited
|
||||
to numerical parameters, data structure layouts and accessors, or small macros,
|
||||
inline functions and templates (ten or fewer lines in length), you do both
|
||||
of the following:
|
||||
|
||||
a) Give prominent notice with each copy of the object code that the Library
|
||||
is used in it and that the Library and its use are covered by this License.
|
||||
|
||||
b) Accompany the object code with a copy of the GNU GPL and this license document.
|
||||
|
||||
4. Combined Works.
|
||||
|
||||
You may convey a Combined Work under terms of your choice that, taken together,
|
||||
effectively do not restrict modification of the portions of the Library contained
|
||||
in the Combined Work and reverse engineering for debugging such modifications,
|
||||
if you also do each of the following:
|
||||
|
||||
a) Give prominent notice with each copy of the Combined Work that the Library
|
||||
is used in it and that the Library and its use are covered by this License.
|
||||
|
||||
b) Accompany the Combined Work with a copy of the GNU GPL and this license
|
||||
document.
|
||||
|
||||
c) For a Combined Work that displays copyright notices during execution, include
|
||||
the copyright notice for the Library among these notices, as well as a reference
|
||||
directing the user to the copies of the GNU GPL and this license document.
|
||||
|
||||
d) Do one of the following:
|
||||
|
||||
0) Convey the Minimal Corresponding Source under the terms of this License,
|
||||
and the Corresponding Application Code in a form suitable for, and under terms
|
||||
that permit, the user to recombine or relink the Application with a modified
|
||||
version of the Linked Version to produce a modified Combined Work, in the
|
||||
manner specified by section 6 of the GNU GPL for conveying Corresponding Source.
|
||||
|
||||
1) Use a suitable shared library mechanism for linking with the Library. A
|
||||
suitable mechanism is one that (a) uses at run time a copy of the Library
|
||||
already present on the user's computer system, and (b) will operate properly
|
||||
with a modified version of the Library that is interface-compatible with the
|
||||
Linked Version.
|
||||
|
||||
e) Provide Installation Information, but only if you would otherwise be required
|
||||
to provide such information under section 6 of the GNU GPL, and only to the
|
||||
extent that such information is necessary to install and execute a modified
|
||||
version of the Combined Work produced by recombining or relinking the Application
|
||||
with a modified version of the Linked Version. (If you use option 4d0, the
|
||||
Installation Information must accompany the Minimal Corresponding Source and
|
||||
Corresponding Application Code. If you use option 4d1, you must provide the
|
||||
Installation Information in the manner specified by section 6 of the GNU GPL
|
||||
for conveying Corresponding Source.)
|
||||
|
||||
5. Combined Libraries.
|
||||
|
||||
You may place library facilities that are a work based on the Library side
|
||||
by side in a single library together with other library facilities that are
|
||||
not Applications and are not covered by this License, and convey such a combined
|
||||
library under terms of your choice, if you do both of the following:
|
||||
|
||||
a) Accompany the combined library with a copy of the same work based on the
|
||||
Library, uncombined with any other library facilities, conveyed under the
|
||||
terms of this License.
|
||||
|
||||
b) Give prominent notice with the combined library that part of it is a work
|
||||
based on the Library, and explaining where to find the accompanying uncombined
|
||||
form of the same work.
|
||||
|
||||
6. Revised Versions of the GNU Lesser General Public License.
|
||||
|
||||
The Free Software Foundation may publish revised and/or new versions of the
|
||||
GNU Lesser General Public License from time to time. Such new versions will
|
||||
be similar in spirit to the present version, but may differ in detail to address
|
||||
new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Library as you
|
||||
received it specifies that a certain numbered version of the GNU Lesser General
|
||||
Public License "or any later version" applies to it, you have the option of
|
||||
following the terms and conditions either of that published version or of
|
||||
any later version published by the Free Software Foundation. If the Library
|
||||
as you received it does not specify a version number of the GNU Lesser General
|
||||
Public License, you may choose any version of the GNU Lesser General Public
|
||||
License ever published by the Free Software Foundation.
|
||||
|
||||
If the Library as you received it specifies that a proxy can decide whether
|
||||
future versions of the GNU Lesser General Public License shall apply, that
|
||||
proxy's public statement of acceptance of any version is permanent authorization
|
||||
for you to choose that version for the Library.
|
||||
@@ -0,0 +1,12 @@
|
||||
This library 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) at any later version that is
|
||||
accepted by the membership of KDE e.V. (or its successor
|
||||
approved by the membership of KDE e.V.), which shall act as a
|
||||
proxy as defined in Section 14 of version 3 of the license.
|
||||
|
||||
This program 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.
|
||||
@@ -0,0 +1,12 @@
|
||||
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
|
||||
that is accepted by the membership of KDE e.V. (or its successor
|
||||
approved by the membership of KDE e.V.), which shall act as a
|
||||
proxy as defined in Section 6 of version 3 of the license.
|
||||
|
||||
This program 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.
|
||||
@@ -0,0 +1,255 @@
|
||||
# KNewStuff
|
||||
|
||||
Framework for downloading and sharing additional application data
|
||||
|
||||
## Introduction
|
||||
|
||||
The KNewStuff library implements collaborative data sharing for
|
||||
applications. It uses libattica to support the Open Collaboration Services
|
||||
specification.
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
There are three parts to KNewStuff:
|
||||
|
||||
* *KNewStuffCore* - The core functionality, which takes care of the actual work
|
||||
(downloading data and interacting with the remote services). Importantly, this
|
||||
library has no dependencies past Tier 1, and so while the entire framework is
|
||||
to be considered Tier 3, the KNewStuffCore library can be considered Tier 2
|
||||
for integration purposes.
|
||||
* *KNewStuff* - A Qt Widget based UI library, designed for ease of implementation of
|
||||
various UI patterns found through KDE applications (such as the Get New Stuff buttons,
|
||||
as well as generic download and upload dialogues)
|
||||
* *KNewStuffQuick* - A set of Qt Quick based components designed to provide similar
|
||||
pattern support as KNewStuff, except for Qt Quick based applications, and specifically
|
||||
in Kirigami based applications.
|
||||
|
||||
If you are using CMake, you need to find the modules, which can be done by doing one of
|
||||
the following in your CMakeLists.txt:
|
||||
|
||||
Either use the more modern (and compact) component based method (only actually add the
|
||||
component you need, since both NewStuff and NewStuffQuick depend on NewStuffCore):
|
||||
|
||||
find_package(KF6 COMPONENTS NewStuffCore NewStuff NewStuffQuick)
|
||||
|
||||
Or use the old-fashioned syntax
|
||||
|
||||
find_package(KF6NewStuffCore CONFIG) # for the KNewStuffCore library only
|
||||
find_package(KF6NewStuff CONFIG) # for the KNewStuff UI library, will pull in KNewStuffCore for you
|
||||
find_package(KF6NewStuffQuick CONFIG) # for the KNewStuffQuick UI library, will pull in KNewStuffCore for you
|
||||
|
||||
Also remember to link to the library you are using (either KF6::NewStuff or
|
||||
KF6::NewStuffCore), and for the Qt Quick NewStuffQuick module, add the following
|
||||
to the QML files where you wish to use the components:
|
||||
|
||||
import org.kde.newstuff 1.0
|
||||
|
||||
Finally, because KNewStuffQuick is not a link time requirement, it would be good form
|
||||
to mark it as a runtime requirement (and describing why you need them), which is done
|
||||
by adding the following in your CMakeLists.txt sometime after the find statement:
|
||||
|
||||
set_package_properties(KF6NewStuffQuick PROPERTIES
|
||||
DESCRIPTION "Qt Quick components used for interacting with remote data services"
|
||||
URL "https://api.kde.org/frameworks/knewstuff/html/index.html"
|
||||
PURPOSE "Required to Get Hot New Stuff for my application"
|
||||
TYPE RUNTIME)
|
||||
|
||||
When installing your knsrc configuration file, you should install it into the location
|
||||
where KNewStuffCore expects it to be found. Do this by using the CMake variable
|
||||
`KDE_INSTALL_KNSRCDIR` as provided by the KNewStuffCore module, since 5.57.0.
|
||||
To support older versions you can use the CMake variable `KDE_INSTALL_CONFDIR` from
|
||||
[Extra-CMake-Modules' KDEInstallDirs](https://api.kde.org/ecm/kde-module/KDEInstallDirs.html).
|
||||
You can also handle this yourself, which means you will need to feed `Engine::init()`
|
||||
the full path to the knsrc file.
|
||||
|
||||
## Which module should you use?
|
||||
|
||||
When building applications designed to fit in with other classic, widget based
|
||||
applications, the application authors should use KNS3::DownloadDialog for
|
||||
downloading application content. For uploading KNS3::UploadDialog is used.
|
||||
|
||||
When building Qt Quick (and in particular Kirigami) based applications, you can
|
||||
use the NewStuffList item from the org.kde.newstuff import to achieve a similar
|
||||
functionality to KNS3::DownloadDialog. You can also use the ItemsModel directly,
|
||||
if this is not featureful enough. Uploading is currently not exposed in KNewStuffQuick.
|
||||
|
||||
If neither of these options are powerful enough for your needs, you can access
|
||||
the functionality directly through the classes in the KNSCore namespace.
|
||||
|
||||
If you are looking for some tutorials, Techbase has a couple of those here:
|
||||
[Get Hot New Stuff tutorials](https://techbase.kde.org/Development/Tutorials#Get_Hot_New_Stuff).
|
||||
|
||||
## Configuration Files
|
||||
|
||||
The Engine (and consequently all the various abstracted options like Page and Dialog) is configured by a KNewStuff
|
||||
Resource and Configuration, or .knsrc file for short, containing the details of how the engine should be set up.
|
||||
|
||||
Your application should install a file into the systemwide configuration location defined by the KNSCore CMake module,
|
||||
which provides the variable `KDE_INSTALL_KNSRCDIR`, which will put the file into something equivalent to
|
||||
`/usr/share/knsrcfiles/appname.knsrc` (that is, the systemwide data directory, the subdirectory knsrcfiles, and then
|
||||
appname, which can technically be anything but which should commonly be your application's binary name for consistency
|
||||
purposes).
|
||||
|
||||
As an example, the file might look like this for wallpapers found on the KDE Store:
|
||||
|
||||
[KNewStuff3]
|
||||
Name=Wallpapers
|
||||
ProvidersUrl=https://autoconfig.kde.org/ocs/providers.xml
|
||||
Categories=KDE Wallpaper 1920x1200,KDE Wallpaper 1600x1200
|
||||
XdgTargetDir=wallpapers
|
||||
Uncompress=archive
|
||||
ContentWarning=Static
|
||||
|
||||
### Name
|
||||
|
||||
This sets a human-readable name that KNewStuff can use to tell the user what type of content this knsrc file
|
||||
provides access to. It will usually be considerably different in nature to the appname of the file itself.
|
||||
For example, the book store in [Peruse](https://peruse.kde.org) (an electronic reading app by KDE) has the knsrc
|
||||
filename `peruse.knsrc` for ease of packaging and distribution, whereas this entry in that file is `Name=Books`.
|
||||
|
||||
If there is no name set for the file, the UI might end up looking slightly weird (as this results in exposing
|
||||
the knsrc filename to the end user, which likely will not be what you are intending).
|
||||
|
||||
### ProvidersUrl
|
||||
|
||||
To use a local providers file instead of a remote one, you can set `UseLocalProvidersFile=true` instead of
|
||||
ProvidersUrl. An example of where this would be useful is if you wish to use an
|
||||
[OPDS feed](https://wiki.mobileread.com/wiki/OPDS). These are likely to not have a providers file, and if you
|
||||
lack a server on which to host one of your own, being able to simply put it beside the knsrc file becomes useful.
|
||||
This will make the engine attempt to load a file located next to your knsrc file, with the same name as that
|
||||
file, with .providers appended. For example, if your configuration file is called `appname.knsrc`, then your
|
||||
providers file should be named `appname.providers`.
|
||||
|
||||
### Categories
|
||||
|
||||
The comma-separated list in the entry Categories defines which subsections of the service should be used to fetch content,
|
||||
and is further shown in a dropdown list on NewStuff.Page and in KNS3::Dialog. They exist in a three-layer format, where the
|
||||
usual human-readable ID in the knsrc file corresponds to a UID in the service, which has a number of pieces of metadata
|
||||
(such as translated human-readable titles). See also KNSCore::Engine::categoriesMetadata().
|
||||
|
||||
To see which categories are available on a particular Attica provider, you can fetch the list by performing a GET call to the
|
||||
content/categories object (by, for example, opening it in a browser). For example, for an OCS service with the server address
|
||||
ocs.server.org, you would fetch `https://ocs.server.org/v1/content/categories`, which will give you an XML file, with
|
||||
all categories available on that service, and their metadata.
|
||||
|
||||
### XdgTargetDir
|
||||
|
||||
This defines the location where the downloaded items will be put. This is the name of a directory in your $XDG_DATA_HOME
|
||||
directory, such as `~/.local/share/wallpapers`, which is what you would get by setting `XdgTargetDir=wallpapers` as in the
|
||||
example above.
|
||||
|
||||
This is what `QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) + QLatin1Char('/') + name` will return.
|
||||
|
||||
The two following options are deprecated and should not be used in new code (and are only listed here to allow you
|
||||
to understand older knsrc files should you come across them):
|
||||
|
||||
* `StandardResource`: Not available in KF6, use XdgTargetDir instead.
|
||||
* `TargetDir`: Since KF6, this is equivalent to XdgTargetDir.
|
||||
|
||||
#### InstallPath
|
||||
|
||||
Alternatively to using an XDG data directory, you can bypass this and just have a named location in the user's home directory.
|
||||
To do this, set `InstallPath` instead of `XdgTargetDir`. For example, setting `InstallPath=Applications` will put downloaded
|
||||
items into `~/Applications`.
|
||||
|
||||
### Uncompress
|
||||
|
||||
Uncompress can be one of: `always`, `never`, `archive`, `surdir`, or `kpackage`:
|
||||
|
||||
* `always`: Assume all downloaded files are archives that need to be extracted
|
||||
* `never`: Never try to extract the file
|
||||
* `archive`: If the file is an archive, uncompress it, otherwise just pass it on
|
||||
* `subdir`: Logic as archive, but decompress into a subdirectory named after the payload filename
|
||||
* `kpackage`: Require that the downloaded file is a kpackage, and use the KPackage framework for handling installation and removal (since 5.70).
|
||||
See also the note on [KPackage Support below](#kpackage-support) below.
|
||||
|
||||
### ContentWarning
|
||||
|
||||
Depending on store categories, downloaded content might be of more intrinsically innocuous nature such as Images or simple text files—or potentially more security-sensitive, for instance containing executable JavaScript code.
|
||||
For this reason, the `ContentWarning` key can be set to one of two values appropriate for the content type:
|
||||
* `Static`: for static contents such as images (this is the default value).
|
||||
* `Executable`: for content that can include executable scripts such as JavaScript or QML, or textual metadata like .desktop files that can specify executables which will then be run by the application.
|
||||
|
||||
### Entry and Download Item Tag Filter
|
||||
|
||||
Use the `TagFilter` and `DownloadTagFilter` options to set filters based on the abstract tags which can be present
|
||||
on both entries and the download items they contain. To see the full documentation on this, read further in
|
||||
KNSCore::Engine::setTagFilter(const QStringList &filter), but the following is an example of its use in a knsrc file:
|
||||
|
||||
TagFilter=ghns_excluded!=1,data##mimetype==application/cbr+zip,data##mimetype==application/cbr+rar
|
||||
|
||||
This will honor the ghns_exclusion tag (the default value if you do not set one, and generally you should include
|
||||
this entry). It then further filters out anything that does not include a comic book archive in either ZIP or RAR
|
||||
format in one or more of the download items. Notice in particular that there are two `data##mimetype` entries. Use this
|
||||
for when a tag may have multiple values.
|
||||
|
||||
### Automatic Dead Entry Removal
|
||||
|
||||
If you set `RemoveDeadEntries=true`, entries whose installed files have all been deleted without going through
|
||||
KNewStuff will be removed from the cache. The removal will happen only after all listed files have been removed, which
|
||||
means that if, for example, an entry was installed from archive, which was decompressed to yield multiple installed files,
|
||||
if even one of those files remains, the entry will remain marked as installed.
|
||||
|
||||
**Note** In KDE Frameworks 6, this option will default to `true`, and you should consider switching it on at this point,
|
||||
and rework your code to support this functionality, or explicitly set it to `false` now, if you need this to retain its
|
||||
current functionality.
|
||||
|
||||
### Adoption Command
|
||||
|
||||
Set the `AdoptionCommand` option to add a supplementary action to the places where entries are displayed which allows the
|
||||
user to "adopt" the entry (that is, use it in some way, which will depend on the specific type of entry). In NewStuff.Page,
|
||||
the delegates all get a new button shown on them, and on detail pages, a new action will be shown in either the toolbar
|
||||
on desktops, or in the context drawer on mobile.
|
||||
|
||||
#### Use Label
|
||||
|
||||
Usually, once installed, an item will have some canonical way of being used (for example, using a wallpaper will set it
|
||||
as the wallpaper on the primary desktop, using a color scheme will switch the environment to that scheme), but in some
|
||||
cases the word "Use" usually used as the label for the action which activates the Adoption Command does not quite fit.
|
||||
To change this label, you can add an entry like the following to your knsrc file: `UseLabel=Read`, which in this case
|
||||
will show the word "Read" for that action instead of "Use".
|
||||
|
||||
### Upload Assistance
|
||||
|
||||
While KNewStuff does not currently handle content uploading, the UI will attempt to guide users in how to upload new entries
|
||||
on whatever provider their content is currently coming from. If you as an application developer want to explicitly not
|
||||
suggest that users should do this, add an `UploadEnabled=false` entry to your configuration file.
|
||||
|
||||
Not adding this entry to your configuration will cause KNewStuff to add an entry to NewStuff.Page's contextual actions
|
||||
with the label "Upload...", which pushes a NewStuff.UploadPage to the stack. At this current time, this page simply
|
||||
gives instructions on how uploading can be done (with specific attention paid to identifying the KDE Store and giving
|
||||
more specific instructions for that).
|
||||
|
||||
### Installation Control
|
||||
|
||||
The `InstallationCommand` and `UninstallCommand` entries can be used to handle items once they have been put into their
|
||||
installation location. For example, you might need to register an item with some service, and unregister it before removing
|
||||
it, and using these two entries will allow that to happen.
|
||||
|
||||
You can also handle the output from the installation process, by returning a non-zero value on exiting, and writing
|
||||
to standard output. If the return value is non-zero, KNewStuff will report this to the user through various ways,
|
||||
primarily through the error displayer in NewStuff.Page (and associated components), and the KNS3::DownloadDialog.
|
||||
|
||||
An example of this is how Plymouth graphical boot themes are handled, by running the `kplymouththemeinstaller` tool with the
|
||||
appropriate flags set. You can see the file here: [https://invent.kde.org/plasma/plymouth-kcm/-/blob/master/src/plymouth.knsrc]
|
||||
|
||||
### <a id="kpackage-support" />KPackage Support
|
||||
|
||||
To make use of the KPackage option described above, in addition to the Uncompress setting above, you should also specify
|
||||
the type of archive expected by KPackage. While it is possible to deduce this from the package metadata in many situations,
|
||||
it is not a requirement of the format that this information exists, and we need to have a fallback in the case it is not
|
||||
available there. As such, you will want to add a `KPackageType` entry to your knsrc file. The following example shows how this
|
||||
is done for Plasma themes:
|
||||
|
||||
[KNewStuff3]
|
||||
Categories=Plasma Theme
|
||||
StandardResource=tmp
|
||||
TagFilter=ghns_excluded!=1,plasma##version==5
|
||||
DownloadTagFilter=plasma##version==5
|
||||
Uncompress=kpackage
|
||||
KPackageStructure=Plasma/Theme
|
||||
|
||||
Using KPackage support will automatically enable the removal of dead entries option. You can override this if you
|
||||
want to, by explicitly adding `RemoveDeadEntries=false` to your knsrc file, though this would likely result in your
|
||||
knewstuff cache to end up out of sync at some point.
|
||||
@@ -0,0 +1,16 @@
|
||||
# SPDX-FileCopyrightText: none
|
||||
# SPDX-License-Identifier: CC0-1.0
|
||||
|
||||
TODO for KNewStuff3
|
||||
|
||||
- Stop loading of image previews that are not visible / only load visible previews (and maybe a couple that will come up next)
|
||||
- Indicator when fetching the next page of items (when scrolling down)
|
||||
- Scrolling with mousewheel jumps over multiple items
|
||||
- Details dialog: buttons don't get updated
|
||||
- support gui switching scope (user to system, and back)
|
||||
- support multiple provider urls with ui to add/remove/edit
|
||||
|
||||
- make an app that shows all the available knsrc files, and launches download/upload dialog on selected one
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
# SPDX-FileCopyrightText: KDE Contributors
|
||||
# SPDX-License-Identifier: BSD-2-Clause
|
||||
|
||||
include(ECMMarkAsTest)
|
||||
include(ECMMarkNonGuiExecutable)
|
||||
include(ECMAddTests)
|
||||
|
||||
find_package(Qt6Test ${REQUIRED_QT_VERSION} NO_MODULE REQUIRED)
|
||||
set_package_properties(Qt6Test PROPERTIES
|
||||
TYPE REQUIRED
|
||||
PURPOSE "Required for unit tests")
|
||||
|
||||
include_directories( ${CMAKE_CURRENT_BINARY_DIR}/../src ../src )
|
||||
|
||||
add_library(knewstuff_test_static STATIC ${CMAKE_BINARY_DIR}/src/core/knewstuffcore_debug.cpp)
|
||||
target_link_libraries(knewstuff_test_static PUBLIC Qt6::Xml Qt6::Test Qt6::Gui KF6::I18n KF6::NewStuffCore KF6::ConfigCore KF6::Archive KF6::Package knscore_jobs_static)
|
||||
macro(knewstuff_unit_tests)
|
||||
foreach(_testmain ${ARGN})
|
||||
get_filename_component(_testname ${_testmain} NAME_WE)
|
||||
ecm_add_test(${_testmain}
|
||||
TEST_NAME ${_testname}
|
||||
NAME_PREFIX "knewstuff-")
|
||||
target_compile_definitions(${_testname} PUBLIC -DDATA_DIR="${CMAKE_CURRENT_BINARY_DIR}/data/")
|
||||
target_link_libraries(${_testname} knewstuff_test_static)
|
||||
endforeach()
|
||||
endmacro()
|
||||
|
||||
knewstuff_unit_tests(
|
||||
knewstuffentrytest.cpp
|
||||
)
|
||||
|
||||
add_subdirectory(core)
|
||||
@@ -0,0 +1,26 @@
|
||||
# SPDX-FileCopyrightText: Alexander Lohnau <alexander.lohnau@gmx.de>
|
||||
# SPDX-License-Identifier: BSD-2-Clause
|
||||
|
||||
remove_definitions(-DQT_NO_CAST_FROM_ASCII)
|
||||
|
||||
if (WIN32)
|
||||
set(DATA_DIR "/${CMAKE_CURRENT_BINARY_DIR}/data/")
|
||||
else()
|
||||
set(DATA_DIR "${CMAKE_CURRENT_BINARY_DIR}/data/")
|
||||
endif()
|
||||
configure_file(data/entry.xml.in data/entry.xml)
|
||||
configure_file(data/provider.xml.in data/provider.xml)
|
||||
configure_file(data/enginetest.knsrc.in data/enginetest.knsrc)
|
||||
configure_file(data/installationtest.knsrc.in data/installationtest.knsrc)
|
||||
|
||||
knewstuff_unit_tests(
|
||||
knewstuffauthortest.cpp
|
||||
knewstuffenginetest.cpp
|
||||
installationtest.cpp
|
||||
)
|
||||
|
||||
if(LINUX) # fails on freebsd for unknown reasons
|
||||
knewstuff_unit_tests(atticaprovidertest.cpp)
|
||||
endif()
|
||||
|
||||
target_link_libraries(knewstuffenginetest knewstuff_qml_STATIC)
|
||||
@@ -0,0 +1,49 @@
|
||||
// SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
|
||||
// SPDX-FileCopyrightText: 2024 Harald Sitter <sitter@kde.org>
|
||||
|
||||
#include <QSignalSpy>
|
||||
#include <QTest>
|
||||
#include <QtGlobal>
|
||||
|
||||
#include "../src/attica/atticaprovider_p.h"
|
||||
|
||||
using namespace KNSCore;
|
||||
using namespace std::chrono_literals;
|
||||
|
||||
class AtticaProviderTest : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
std::unique_ptr<AtticaProvider> m_provider;
|
||||
|
||||
private Q_SLOTS:
|
||||
void initTestCase()
|
||||
{
|
||||
}
|
||||
void testReentrancy()
|
||||
{
|
||||
constexpr auto networkTimeout = 30s; // when this test does network IO it may be slow, in particular on the CI
|
||||
Attica::ProviderManager manager;
|
||||
{
|
||||
QSignalSpy spy(&manager, &Attica::ProviderManager::defaultProvidersLoaded);
|
||||
manager.loadDefaultProviders();
|
||||
QVERIFY(spy.wait(networkTimeout));
|
||||
QVERIFY(spy.size() > 0);
|
||||
}
|
||||
AtticaProvider provider(manager.providers().at(0), QStringList{}, QString{});
|
||||
|
||||
QSignalSpy spy(&provider, &AtticaProvider::loadingDone);
|
||||
|
||||
provider.loadEntries(SearchRequest(SortMode::Downloads, Filter::None, "kora"));
|
||||
provider.loadEntries(SearchRequest(SortMode::Downloads, Filter::None, "kde"));
|
||||
|
||||
QVERIFY(spy.wait(networkTimeout));
|
||||
if (spy.size() != 2) {
|
||||
spy.wait(networkTimeout);
|
||||
}
|
||||
QCOMPARE(spy.size(), 2);
|
||||
}
|
||||
};
|
||||
|
||||
QTEST_MAIN(AtticaProviderTest)
|
||||
|
||||
#include "atticaprovidertest.moc"
|
||||
@@ -0,0 +1,9 @@
|
||||
[KNewStuff3]
|
||||
Name=InstallCommands
|
||||
ProvidersUrl=file://@DATA_DIR@provider.xml
|
||||
Categories=KDE Wallpaper 1920x1200,KDE Wallpaper 1600x1200
|
||||
UploadCategories=KDE Wallpaper 800x600
|
||||
TargetDir=icons
|
||||
UseLabel=UseLabelTest
|
||||
ContentWarning=Executables
|
||||
AdoptionCommand=/bin/true
|
||||
@@ -0,0 +1,55 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ocs>
|
||||
<stuff category="app/media">
|
||||
<name lang="en">Entry 1 (ghns excluded)</name>
|
||||
<author email="some_guy@some.mail.server" im="some_guy@jabber.server">Anonymous Guy</author>
|
||||
<licence licenceurl="http://server/">GPL</licence>
|
||||
<version>1.0</version>
|
||||
<releasedate>2005-06-17</releasedate>
|
||||
<summary lang="en">This is what it is all about.</summary>
|
||||
<preview lang="en">http://some.http.server/preview.png</preview>
|
||||
<payload lang="en">http://some.http.server/coolstuff.tar.gz</payload>
|
||||
<rating>10</rating>
|
||||
<downloads>0</downloads>
|
||||
<tags>ghns_excluded=1</tags>
|
||||
</stuff>
|
||||
<stuff category="app/media">
|
||||
<name lang="en">Entry 2 (ghns included)</name>
|
||||
<author email="some_guy@some.mail.server" im="some_guy@jabber.server">Anonymous Guy</author>
|
||||
<licence licenceurl="http://server/">GPL</licence>
|
||||
<version>2.1git2</version>
|
||||
<releasedate>2018-06-05</releasedate>
|
||||
<summary lang="en">A short description in English (not ghns excluded).</summary>
|
||||
<preview lang="en">http://some.http.server/preview.png</preview>
|
||||
<payload lang="en">http://some.http.server/coolstuff.tar.gz</payload>
|
||||
<rating>10</rating>
|
||||
<downloads>0</downloads>
|
||||
<tags></tags>
|
||||
</stuff>
|
||||
<stuff category="app/media">
|
||||
<name lang="en">Entry 3 (ghns excluded)</name>
|
||||
<author email="some_guy@some.mail.server" im="some_guy@jabber.server">Anonymous Guy</author>
|
||||
<licence licenceurl="http://server/">GPL</licence>
|
||||
<version>1.0</version>
|
||||
<releasedate>2005-06-17</releasedate>
|
||||
<summary lang="en">This is what it is all about.</summary>
|
||||
<preview lang="en">http://some.http.server/preview.png</preview>
|
||||
<payload lang="en">http://some.http.server/coolstuff.tar.gz</payload>
|
||||
<rating>10</rating>
|
||||
<downloads>0</downloads>
|
||||
<tags>ghns_excluded=1</tags>
|
||||
</stuff>
|
||||
<stuff category="app/media">
|
||||
<name lang="en">Entry 4 (ghns included)</name>
|
||||
<author email="some_guy@some.mail.server" im="some_guy@jabber.server">Anonymous Guy</author>
|
||||
<licence licenceurl="http://server/">GPL</licence>
|
||||
<version>2.1git2</version>
|
||||
<releasedate>2018-06-05</releasedate>
|
||||
<summary lang="en">A short description in English (not ghns excluded).</summary>
|
||||
<preview lang="en">http://some.http.server/preview.png</preview>
|
||||
<payload lang="en">http://some.http.server/coolstuff.tar.gz</payload>
|
||||
<rating>10</rating>
|
||||
<downloads>0</downloads>
|
||||
<tags></tags>
|
||||
</stuff>
|
||||
</ocs>
|
||||
@@ -0,0 +1,11 @@
|
||||
[KNewStuff]
|
||||
Name=InstallCommands
|
||||
ProvidersUrl=file://@DATA_DIR@provider.xml
|
||||
Categories=KDE Wallpaper 1920x1200,KDE Wallpaper 1600x1200
|
||||
UploadCategories=KDE Wallpaper 800x600
|
||||
TargetDir=demo
|
||||
UseLabel=UseLabelTest
|
||||
AdoptionCommand=/bin/true
|
||||
Uncompress=subdir-archive
|
||||
InstallationCommand=touch installed.txt
|
||||
UninstallCommand=touch uninstalled.txt
|
||||
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<knewstuffproviders>
|
||||
<provider downloadurl="file://@DATA_DIR@entry.xml"
|
||||
downloadurl-latest="file://@DATA_DIR@entry.xml"
|
||||
downloadurl-score="file://@DATA_DIR@entry.xml"
|
||||
downloadurl-downloads="file://@DATA_DIR@entry.xml"
|
||||
uploadurl="ftp://somewhere.ftp.server"
|
||||
webservice="http://some.http.server/service.wsdl"
|
||||
icon="someapp"
|
||||
webaccess="http://some.webfrontend.server/">
|
||||
<title lang="en">Some cool stuff</title>
|
||||
</provider>
|
||||
</knewstuffproviders>
|
||||
@@ -0,0 +1 @@
|
||||
Hi, i'm a test file used as a payload, for example in the installationtest test - hope you're enjoying your testing experience today! :)
|
||||
@@ -0,0 +1,197 @@
|
||||
/*
|
||||
This file is part of KNewStuff3
|
||||
SPDX-FileCopyrightText: 2021 Alexander Lohnau <alexander.lohnau@gmx.de>
|
||||
|
||||
SPDX-License-Identifier: LGPL-2.1-or-later
|
||||
*/
|
||||
|
||||
#include <KSharedConfig>
|
||||
#include <QDir>
|
||||
#include <QRegularExpression>
|
||||
#include <QSignalSpy>
|
||||
#include <QTest>
|
||||
#include <QtGlobal>
|
||||
|
||||
#include "entry.h"
|
||||
#include "installation_p.h"
|
||||
#include "itemsmodel.h"
|
||||
#include "question.h"
|
||||
#include "questionmanager.h"
|
||||
|
||||
using namespace KNSCore;
|
||||
|
||||
class InstallationTest : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
Installation *installation = nullptr;
|
||||
const QString dataDir = QStringLiteral(DATA_DIR);
|
||||
|
||||
private Q_SLOTS:
|
||||
void initTestCase();
|
||||
void cleanupTestCase();
|
||||
void testConfigFileReading();
|
||||
void testInstallCommand();
|
||||
void testInstallCommandArchive();
|
||||
void testInstallCommandTopLevelFilesInArchive();
|
||||
void testUninstallCommand();
|
||||
void testUninstallCommandDirectory();
|
||||
void testCopyError();
|
||||
};
|
||||
|
||||
void InstallationTest::initTestCase()
|
||||
{
|
||||
// Just in case a previous test crashed
|
||||
cleanupTestCase();
|
||||
qRegisterMetaType<Entry>();
|
||||
QStandardPaths::setTestModeEnabled(true);
|
||||
installation = new Installation(this);
|
||||
KConfigGroup grp = KSharedConfig::openConfig(dataDir + QLatin1String("installationtest.knsrc"))->group(QStringLiteral("KNewStuff"));
|
||||
QString err;
|
||||
QVERIFY(installation->readConfig(grp, err));
|
||||
connect(KNSCore::QuestionManager::instance(), &KNSCore::QuestionManager::askQuestion, this, [](KNSCore::Question *q) {
|
||||
q->setResponse(KNSCore::Question::YesResponse);
|
||||
});
|
||||
}
|
||||
|
||||
void InstallationTest::cleanupTestCase()
|
||||
{
|
||||
QFile::remove(QStringLiteral("installed.txt"));
|
||||
QFile::remove(QStringLiteral("uninstalled.txt"));
|
||||
const QString dataPath = QStandardPaths::locate(QStandardPaths::GenericDataLocation, QStringLiteral("demo/"), QStandardPaths::LocateDirectory);
|
||||
if (!dataPath.isEmpty()) {
|
||||
QDir(dataPath).removeRecursively();
|
||||
}
|
||||
}
|
||||
|
||||
void InstallationTest::testConfigFileReading()
|
||||
{
|
||||
QCOMPARE(installation->uncompressionSetting(), Installation::UncompressIntoSubdirIfArchive);
|
||||
const QString actualPath = installation->targetInstallationPath();
|
||||
const QString expectedPath = QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) + QLatin1String("/demo/");
|
||||
QCOMPARE(actualPath, expectedPath);
|
||||
}
|
||||
|
||||
void InstallationTest::testInstallCommand()
|
||||
{
|
||||
Entry entry;
|
||||
entry.setUniqueId(QStringLiteral("0"));
|
||||
entry.setName(QStringLiteral("testInstallCommand"));
|
||||
entry.setPayload(QUrl::fromLocalFile(QFINDTESTDATA("data/testfile.txt")).toString());
|
||||
QSignalSpy spy(installation, &Installation::signalEntryChanged);
|
||||
installation->install(entry);
|
||||
QVERIFY(spy.wait());
|
||||
QCOMPARE(entry.status(), KNSCore::Entry::Installed);
|
||||
QVERIFY(QFileInfo::exists(QStringLiteral("installed.txt")));
|
||||
}
|
||||
|
||||
void InstallationTest::testUninstallCommand()
|
||||
{
|
||||
Entry entry;
|
||||
entry.setUniqueId(QStringLiteral("0"));
|
||||
QFile file(QStringLiteral("testFile.txt"));
|
||||
file.open(QIODevice::WriteOnly);
|
||||
file.close();
|
||||
entry.setStatus(KNSCore::Entry::Installed);
|
||||
entry.setInstalledFiles(QStringList(file.fileName()));
|
||||
QVERIFY(QFileInfo(file).exists());
|
||||
QVERIFY(!QFileInfo::exists(QStringLiteral("uninstalled.txt")));
|
||||
|
||||
installation->uninstall(entry);
|
||||
QSignalSpy spy(installation, &Installation::signalEntryChanged);
|
||||
QVERIFY(spy.wait());
|
||||
QCOMPARE(entry.status(), KNSCore::Entry::Deleted);
|
||||
QVERIFY(!QFileInfo(file).exists());
|
||||
QVERIFY(QFileInfo::exists(QStringLiteral("uninstalled.txt")));
|
||||
}
|
||||
|
||||
void InstallationTest::testUninstallCommandDirectory()
|
||||
{
|
||||
static const QLatin1String testDir{"testDirectory"};
|
||||
|
||||
// This will be left over from the previous test, so clean it up first
|
||||
QFile::remove(QStringLiteral("uninstalled.txt"));
|
||||
|
||||
Entry entry;
|
||||
entry.setUniqueId(QStringLiteral("0"));
|
||||
QDir().mkdir(testDir);
|
||||
entry.setStatus(KNSCore::Entry::Installed);
|
||||
entry.setInstalledFiles(QStringList(testDir));
|
||||
QVERIFY(QFileInfo::exists(testDir));
|
||||
QVERIFY(!QFileInfo::exists(QStringLiteral("uninstalled.txt")));
|
||||
|
||||
installation->uninstall(entry);
|
||||
QSignalSpy spy(installation, &Installation::signalEntryChanged);
|
||||
QVERIFY(spy.wait());
|
||||
QCOMPARE(entry.status(), KNSCore::Entry::Deleted);
|
||||
QVERIFY(!QFileInfo::exists(testDir));
|
||||
QVERIFY(QFileInfo::exists(QStringLiteral("uninstalled.txt")));
|
||||
}
|
||||
|
||||
void InstallationTest::testInstallCommandArchive()
|
||||
{
|
||||
Entry entry;
|
||||
entry.setUniqueId(QStringLiteral("0"));
|
||||
entry.setStatus(KNSCore::Entry::Downloadable);
|
||||
entry.setPayload(QUrl::fromLocalFile(QFINDTESTDATA("data/archive_dir.tar.gz")).toString());
|
||||
|
||||
installation->install(entry);
|
||||
QSignalSpy spy(installation, &Installation::signalEntryChanged);
|
||||
QVERIFY(spy.wait());
|
||||
|
||||
QCOMPARE(entry.installedFiles().count(), 1);
|
||||
const QString file = entry.installedFiles().constFirst();
|
||||
const QFileInfo fileInfo(QStandardPaths::locate(QStandardPaths::GenericDataLocation, QStringLiteral("demo/data"), QStandardPaths::LocateDirectory));
|
||||
QCOMPARE(file, fileInfo.absoluteFilePath() + QLatin1String("/*"));
|
||||
QVERIFY(fileInfo.exists());
|
||||
QVERIFY(fileInfo.isDir());
|
||||
|
||||
// Check if the files that are in the archive exist
|
||||
const QStringList files = QDir(fileInfo.absoluteFilePath()).entryList(QDir::Filter::Files | QDir::Filter::NoDotAndDotDot);
|
||||
QCOMPARE(files, QStringList({QStringLiteral("test1.txt"), QStringLiteral("test2.txt")}));
|
||||
}
|
||||
|
||||
void InstallationTest::testInstallCommandTopLevelFilesInArchive()
|
||||
{
|
||||
Entry entry;
|
||||
entry.setUniqueId(QStringLiteral("0"));
|
||||
entry.setStatus(KNSCore::Entry::Downloadable);
|
||||
entry.setPayload(QUrl::fromLocalFile(QFINDTESTDATA("data/archive_toplevel_files.tar.gz")).toString());
|
||||
|
||||
installation->install(entry);
|
||||
QSignalSpy spy(installation, &Installation::signalEntryChanged);
|
||||
QVERIFY(spy.wait());
|
||||
|
||||
QCOMPARE(entry.installedFiles().count(), 1);
|
||||
const QString file = entry.installedFiles().constFirst();
|
||||
QVERIFY(file.endsWith(QLatin1String("/*")));
|
||||
|
||||
// The file is given a random name, so we can't easily check that
|
||||
const QFileInfo fileOnDisk(file.left(file.size() - 2));
|
||||
QVERIFY(fileOnDisk.exists());
|
||||
QVERIFY(fileOnDisk.isDir());
|
||||
// The by checking the parent dir we can check if it is properly in a subdir uncompressed
|
||||
QCOMPARE(fileOnDisk.absoluteDir().path(),
|
||||
QStandardPaths::locate(QStandardPaths::GenericDataLocation, QStringLiteral("demo"), QStandardPaths::LocateDirectory));
|
||||
// Check if the files that are in the archive exist
|
||||
const QStringList files = QDir(fileOnDisk.absoluteFilePath()).entryList(QDir::Filter::Files | QDir::Filter::NoDotAndDotDot);
|
||||
QCOMPARE(files, QStringList({QStringLiteral("test1.txt"), QStringLiteral("test2.txt")}));
|
||||
}
|
||||
|
||||
void InstallationTest::testCopyError()
|
||||
{
|
||||
Entry entry;
|
||||
entry.setUniqueId(QStringLiteral("0"));
|
||||
entry.setPayload(QUrl::fromLocalFile(QStringLiteral("data/does_not_exist.txt")).toString());
|
||||
QSignalSpy spy(installation, &Installation::signalEntryChanged);
|
||||
QSignalSpy errorSpy(installation, &Installation::signalInstallationFailed);
|
||||
QTest::ignoreMessage(QtWarningMsg, QRegularExpression(QStringLiteral("Download of .* failed, error: Could not open data/does_not_exist.txt for reading")));
|
||||
installation->install(entry);
|
||||
QVERIFY(errorSpy.wait());
|
||||
QCOMPARE(spy.count(), 0);
|
||||
QCOMPARE(int(entry.status()), int(KNSCore::Entry::Invalid));
|
||||
}
|
||||
|
||||
QTEST_MAIN(InstallationTest)
|
||||
|
||||
#include "installationtest.moc"
|
||||
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
This file is part of KNewStuff2.
|
||||
SPDX-FileCopyrightText: 2008 Jeremy Whiting <jpwhiting@kde.org>
|
||||
|
||||
SPDX-License-Identifier: LGPL-2.1-or-later
|
||||
*/
|
||||
|
||||
// unit test for author
|
||||
|
||||
#include <QString>
|
||||
#include <QTest>
|
||||
|
||||
#include "core/author.h"
|
||||
|
||||
const QString name = QStringLiteral("Name");
|
||||
const QString email = QStringLiteral("Email@nowhere.com");
|
||||
const QString jabber = QStringLiteral("something@kdetalk.net");
|
||||
const QString homepage = QStringLiteral("http://www.myhomepage.com");
|
||||
|
||||
class testAuthor : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
private Q_SLOTS:
|
||||
void testProperties();
|
||||
void testCopy();
|
||||
void testAssignment();
|
||||
};
|
||||
|
||||
void testAuthor::testProperties()
|
||||
{
|
||||
KNSCore::Author author;
|
||||
author.setName(name);
|
||||
author.setEmail(email);
|
||||
author.setJabber(jabber);
|
||||
author.setHomepage(homepage);
|
||||
QCOMPARE(author.name(), name);
|
||||
QCOMPARE(author.email(), email);
|
||||
QCOMPARE(author.jabber(), jabber);
|
||||
QCOMPARE(author.homepage(), homepage);
|
||||
}
|
||||
|
||||
void testAuthor::testCopy()
|
||||
{
|
||||
KNSCore::Author author;
|
||||
author.setName(name);
|
||||
author.setEmail(email);
|
||||
author.setJabber(jabber);
|
||||
author.setHomepage(homepage);
|
||||
KNSCore::Author author2(author);
|
||||
QCOMPARE(author.name(), author2.name());
|
||||
QCOMPARE(author.email(), author2.email());
|
||||
QCOMPARE(author.jabber(), author2.jabber());
|
||||
QCOMPARE(author.homepage(), author2.homepage());
|
||||
}
|
||||
|
||||
void testAuthor::testAssignment()
|
||||
{
|
||||
KNSCore::Author author;
|
||||
KNSCore::Author author2;
|
||||
author.setName(name);
|
||||
author.setEmail(email);
|
||||
author.setJabber(jabber);
|
||||
author.setHomepage(homepage);
|
||||
author2 = author;
|
||||
QCOMPARE(author.name(), author2.name());
|
||||
QCOMPARE(author.email(), author2.email());
|
||||
QCOMPARE(author.jabber(), author2.jabber());
|
||||
QCOMPARE(author.homepage(), author2.homepage());
|
||||
}
|
||||
|
||||
QTEST_GUILESS_MAIN(testAuthor)
|
||||
#include "knewstuffauthortest.moc"
|
||||
@@ -0,0 +1,129 @@
|
||||
/*
|
||||
This file is part of KNewStuff2.
|
||||
SPDX-FileCopyrightText: 2008 Jeremy Whiting <jpwhiting@kde.org>
|
||||
|
||||
SPDX-License-Identifier: LGPL-2.1-or-later
|
||||
*/
|
||||
|
||||
#include <QSignalSpy>
|
||||
#include <QStandardPaths>
|
||||
#include <QTest>
|
||||
#include <QtGlobal>
|
||||
|
||||
#include "enginebase.h"
|
||||
#include "entry.h"
|
||||
#include "provider.h"
|
||||
#include "qtquick/quickengine.h"
|
||||
#include "question.h"
|
||||
#include "questionmanager.h"
|
||||
|
||||
using namespace KNSCore;
|
||||
|
||||
class EngineTest : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
Engine *engine = nullptr;
|
||||
const QString dataDir = QStringLiteral(DATA_DIR);
|
||||
|
||||
private Q_SLOTS:
|
||||
void initTestCase();
|
||||
void cleanupTestCase();
|
||||
void testPropertiesReading();
|
||||
void testProviderFileLoading();
|
||||
void testInstallCommand();
|
||||
void testUninstallCommand();
|
||||
};
|
||||
|
||||
void EngineTest::initTestCase()
|
||||
{
|
||||
QStandardPaths::setTestModeEnabled(true);
|
||||
engine = new Engine(this);
|
||||
engine->setConfigFile(dataDir + QLatin1String("enginetest.knsrc"));
|
||||
QVERIFY(engine->isValid());
|
||||
QCOMPARE(engine->busyState(), Engine::BusyOperation::Initializing);
|
||||
QSignalSpy providersLoaded(engine, &Engine::signalProvidersLoaded);
|
||||
QVERIFY(providersLoaded.wait());
|
||||
QCOMPARE(engine->busyState(), Engine::BusyState());
|
||||
|
||||
connect(KNSCore::QuestionManager::instance(), &KNSCore::QuestionManager::askQuestion, this, [](KNSCore::Question *q) {
|
||||
q->setResponse(KNSCore::Question::YesResponse);
|
||||
});
|
||||
}
|
||||
|
||||
void EngineTest::cleanupTestCase()
|
||||
{
|
||||
const QString dataPath = QStandardPaths::locate(QStandardPaths::GenericDataLocation, QStringLiteral("icons/"), QStandardPaths::LocateDirectory);
|
||||
if (!dataPath.isEmpty()) {
|
||||
QDir(dataPath).removeRecursively();
|
||||
}
|
||||
}
|
||||
|
||||
void EngineTest::testPropertiesReading()
|
||||
{
|
||||
QCOMPARE(engine->name(), QStringLiteral("InstallCommands"));
|
||||
QCOMPARE(static_cast<EngineBase *>(engine)->categories(),
|
||||
QStringList({QStringLiteral("KDE Wallpaper 1920x1200"), QStringLiteral("KDE Wallpaper 1600x1200")}));
|
||||
QCOMPARE(engine->useLabel(), QStringLiteral("UseLabelTest"));
|
||||
QVERIFY(engine->hasAdoptionCommand());
|
||||
QCOMPARE(engine->contentWarningType(), EngineBase::ContentWarningType::Executables);
|
||||
}
|
||||
|
||||
void EngineTest::testProviderFileLoading()
|
||||
{
|
||||
const QString providerId = QUrl::fromLocalFile(dataDir + QLatin1String("entry.xml")).toString();
|
||||
QSharedPointer<Provider> provider = engine->provider(providerId);
|
||||
QVERIFY(provider);
|
||||
QCOMPARE(engine->defaultProvider(), provider);
|
||||
QVERIFY(engine->isValid());
|
||||
|
||||
engine->setSearchTerm(QStringLiteral("Entry 4"));
|
||||
QSignalSpy spy(engine, &Engine::signalEntriesLoaded);
|
||||
QVERIFY(spy.wait());
|
||||
const QVariantList entries = spy.last().constFirst().toList(); // From last signal emission
|
||||
QCOMPARE(entries.size(), 1);
|
||||
QCOMPARE(entries.first().value<KNSCore::Entry>().name(), QStringLiteral("Entry 4 (ghns included)"));
|
||||
}
|
||||
|
||||
void EngineTest::testInstallCommand()
|
||||
{
|
||||
const QString providerId = QUrl::fromLocalFile(dataDir + QLatin1String("entry.xml")).toString();
|
||||
Entry entry;
|
||||
entry.setProviderId(providerId);
|
||||
entry.setUniqueId(QStringLiteral("0"));
|
||||
entry.setName(QStringLiteral("testInstallCommand"));
|
||||
entry.setPayload(QUrl::fromLocalFile(QFINDTESTDATA("data/testfile.txt")).toString());
|
||||
|
||||
QSignalSpy spy(engine, &Engine::signalEntryEvent);
|
||||
engine->installLatest(entry);
|
||||
QVERIFY(spy.wait());
|
||||
QCOMPARE(spy.count(), 1);
|
||||
QCOMPARE(entry.status(), KNSCore::Entry::Installing);
|
||||
QVERIFY(spy.wait());
|
||||
QCOMPARE(spy.count(), 2);
|
||||
QCOMPARE(entry.status(), KNSCore::Entry::Installed);
|
||||
}
|
||||
|
||||
void EngineTest::testUninstallCommand()
|
||||
{
|
||||
Entry entry;
|
||||
entry.setUniqueId(QStringLiteral("0"));
|
||||
QFile file(QStringLiteral("testFile.txt"));
|
||||
file.open(QIODevice::WriteOnly);
|
||||
file.close();
|
||||
entry.setStatus(KNSCore::Entry::Installed);
|
||||
entry.setInstalledFiles(QStringList(file.fileName()));
|
||||
QVERIFY(QFileInfo(file).exists());
|
||||
|
||||
QSignalSpy spy(engine, &Engine::signalEntryEvent);
|
||||
engine->uninstall(entry);
|
||||
QVERIFY(spy.wait());
|
||||
// There are 3 signals: apparently one changes the status to Installing (transaction.cpp:375)
|
||||
// And two to "Deleted" (first installation.cpp:584 then transaction.cpp:383)
|
||||
QCOMPARE(spy.count(), 3);
|
||||
QCOMPARE(entry.status(), KNSCore::Entry::Deleted);
|
||||
}
|
||||
|
||||
QTEST_MAIN(EngineTest)
|
||||
|
||||
#include "knewstuffenginetest.moc"
|
||||
@@ -0,0 +1,134 @@
|
||||
/*
|
||||
This file is part of KNewStuff2.
|
||||
SPDX-FileCopyrightText: 2008 Jeremy Whiting <jpwhiting@kde.org>
|
||||
|
||||
SPDX-License-Identifier: LGPL-2.1-or-later
|
||||
*/
|
||||
|
||||
// unit test for entry
|
||||
|
||||
#include <QDomDocument>
|
||||
#include <QString>
|
||||
#include <QTest>
|
||||
#include <QXmlStreamReader>
|
||||
|
||||
#include "entry.h"
|
||||
|
||||
#include <knewstuffcore_debug.h>
|
||||
|
||||
const char *entryXML =
|
||||
"<stuff category=\"Category\"> "
|
||||
"<name>Name</name>"
|
||||
"<providerid>https://api.opendesktop.org/v1/</providerid>"
|
||||
"<author homepage=\"http://testhomepage\">testauthor</author>"
|
||||
"<homepage>https://testhomepage</homepage>"
|
||||
"<licence>3</licence>" // krazy:exclude=spelling
|
||||
"<version>4.0</version>"
|
||||
"<rating>82</rating>"
|
||||
"<downloads>128891</downloads>"
|
||||
"<installedfile>/some/test/path.jpg</installedfile>"
|
||||
"<id>12345</id>"
|
||||
"<releasedate>2008-08-12<!--randomcomment--></releasedate>"
|
||||
"<summary>new version 3.0</summary>"
|
||||
"<!--randomcomment-->"
|
||||
"<changelog>Updated</changelog>"
|
||||
"<preview>https://testpreview</preview>"
|
||||
"<previewBig>https://testpreview</previewBig>"
|
||||
"<payload>http://testpayload</payload>"
|
||||
"<status>"
|
||||
"<!--randomcomment-->"
|
||||
"installed"
|
||||
"<!--randomcomment-->"
|
||||
"</status>"
|
||||
"<tags>ghns_excluded=1</tags>"
|
||||
"</stuff>";
|
||||
|
||||
const QString name = QStringLiteral("Name");
|
||||
const QString category = QStringLiteral("Category");
|
||||
const QString summary = QStringLiteral("new version 3.0");
|
||||
const QString version = QStringLiteral("4.0");
|
||||
const QString license = QStringLiteral("3");
|
||||
|
||||
class testEntry : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
private:
|
||||
KNSCore::Entry createEntryOld();
|
||||
KNSCore::Entry createEntry();
|
||||
private Q_SLOTS:
|
||||
void testProperties();
|
||||
void testCopy();
|
||||
void testAssignment();
|
||||
void testDomImplementation();
|
||||
};
|
||||
|
||||
KNSCore::Entry testEntry::createEntryOld()
|
||||
{
|
||||
QDomDocument document;
|
||||
document.setContent(QString::fromLatin1(entryXML));
|
||||
QDomElement node = document.documentElement();
|
||||
KNSCore::Entry entry;
|
||||
bool xmlResult = entry.setEntryXML(node);
|
||||
qCDebug(KNEWSTUFFCORE) << "Created entry from XML " << xmlResult;
|
||||
return entry;
|
||||
}
|
||||
|
||||
KNSCore::Entry testEntry::createEntry()
|
||||
{
|
||||
QXmlStreamReader reader;
|
||||
reader.addData(entryXML);
|
||||
KNSCore::Entry entry;
|
||||
bool xmlResult = reader.readNextStartElement() && entry.setEntryXML(reader);
|
||||
qCDebug(KNEWSTUFFCORE) << "Created entry from XML " << xmlResult;
|
||||
return entry;
|
||||
}
|
||||
|
||||
void testEntry::testProperties()
|
||||
{
|
||||
KNSCore::Entry entry = createEntry();
|
||||
|
||||
QCOMPARE(entry.name(), name);
|
||||
QCOMPARE(entry.category(), category);
|
||||
QCOMPARE(entry.license(), license);
|
||||
QCOMPARE(entry.summary(), summary);
|
||||
QCOMPARE(entry.version(), version);
|
||||
}
|
||||
|
||||
void testEntry::testCopy()
|
||||
{
|
||||
KNSCore::Entry entry = createEntry();
|
||||
KNSCore::Entry entry2(entry);
|
||||
|
||||
QCOMPARE(entry.name(), entry2.name());
|
||||
QCOMPARE(entry.category(), entry2.category());
|
||||
QCOMPARE(entry.license(), entry2.license());
|
||||
QCOMPARE(entry.summary(), entry2.summary());
|
||||
QCOMPARE(entry.version(), entry2.version());
|
||||
}
|
||||
|
||||
void testEntry::testAssignment()
|
||||
{
|
||||
KNSCore::Entry entry = createEntry();
|
||||
KNSCore::Entry entry2 = entry;
|
||||
|
||||
QCOMPARE(entry.name(), entry2.name());
|
||||
QCOMPARE(entry.category(), entry2.category());
|
||||
QCOMPARE(entry.license(), entry2.license());
|
||||
QCOMPARE(entry.summary(), entry2.summary());
|
||||
QCOMPARE(entry.version(), entry2.version());
|
||||
}
|
||||
|
||||
void testEntry::testDomImplementation()
|
||||
{
|
||||
KNSCore::Entry entry = createEntry();
|
||||
KNSCore::Entry entry2 = createEntryOld();
|
||||
|
||||
QCOMPARE(entry.name(), entry2.name());
|
||||
QCOMPARE(entry.category(), entry2.category());
|
||||
QCOMPARE(entry.license(), entry2.license());
|
||||
QCOMPARE(entry.summary(), entry2.summary());
|
||||
QCOMPARE(entry.version(), entry2.version());
|
||||
}
|
||||
|
||||
QTEST_GUILESS_MAIN(testEntry)
|
||||
#include "knewstuffentrytest.moc"
|
||||
@@ -0,0 +1,21 @@
|
||||
Utility classes, useful also outside of KNewStuff2:
|
||||
KTranslatable
|
||||
Security
|
||||
|
||||
Container classes:
|
||||
Author
|
||||
Entry
|
||||
Provider
|
||||
Category
|
||||
Feed
|
||||
Installation
|
||||
|
||||
Parser/dumper classes:
|
||||
EntryHandler
|
||||
ProviderHandler
|
||||
|
||||
Engine classes (asynchronous, therefore qobjects):
|
||||
EntryLoader
|
||||
ProviderLoader
|
||||
CoreEngine
|
||||
|
||||
@@ -0,0 +1,146 @@
|
||||
KNewStuff2 Engine Design
|
||||
========================
|
||||
|
||||
The KNewStuff2 engine is one of the central pieces of activity of the
|
||||
KNewStuff2 library. First and foremost, it handles the synchronization of
|
||||
data on the internet with data on the local hard disk. The local data
|
||||
might come from previous downloads, but also from (initial) installation.
|
||||
|
||||
On startup, after being initialized to use a certain configuration,
|
||||
the engine loads up potentially dozens of files. This will require some
|
||||
activity on the harddisk, but will speed up network operations by quite
|
||||
a bit afterwards.
|
||||
|
||||
There are three groups of files being loaded: the cache for providers,
|
||||
the cache for entries, and the registry of entries.
|
||||
The first two ones may contain all data about providers and entries
|
||||
ever downloaded by KNewStuff2. The cache doesn't have to survive
|
||||
machine reboots, but should generally live very long. A strategy for
|
||||
file replacements and invalidation will have to be found.
|
||||
The third group contains all the entries which are currently installed.
|
||||
This group starts out empty, or with some initial system-wide installed
|
||||
files. For every download, the corresponding cache file (which exists) is
|
||||
copied to the registry dir, afterwards the cached file isn't strictly
|
||||
needed anymore. Such files might also be removed again, in case the referenced
|
||||
data is deinstalled.
|
||||
|
||||
Entity | Loading | Root tag
|
||||
---------------+-------------------------+---------
|
||||
| |
|
||||
provider cache | file(s) | <ghnsproviders>
|
||||
| |
|
||||
entry cache | directory(ies)->file(s) | <ghnscache>
|
||||
| |
|
||||
entry registry | directory->file(s) | <ghnsinstall>
|
||||
|
||||
Directly after a download, the downloaded files are scanned for their
|
||||
objects (providers or entries), which are added to the in-memory cache.
|
||||
By doing so, they might replace older cached entries. For all those older
|
||||
entries which are already installed, their status is marked as updateable.
|
||||
|
||||
On shutdown of the engine, e.g. when deleting the object, the whole
|
||||
cache in memory is freed, but the cache files remain of course.
|
||||
|
||||
KNewStuff2 Workflow
|
||||
===================
|
||||
|
||||
There are two main workflows with KNewStuff: Uploads and downloads. Together
|
||||
and repeated over time, these workflows form the data sharing cycle.
|
||||
In addition, when DXS is used, some direct interaction with the service is
|
||||
possible, which adds a few workflows. Those will be explained after upload
|
||||
and download.
|
||||
|
||||
Uploads
|
||||
-------
|
||||
The engine fetches information about the providers which accept uploads for
|
||||
a certain mime type or data type. Basically, the list of providers is taken
|
||||
minus those who do not support uploads, because not all of them do.
|
||||
A provider selection dialog lets the user select one of the remaining
|
||||
providers. In case no upload is possible at all, a webpage with uploading
|
||||
capabilities or at least information about contact by e-mail may be offered
|
||||
by at least one provider. This so-called 'noupload' fallback page will be
|
||||
displayed in a browser to the user.
|
||||
|
||||
If upload is available, the upload dialog pops up. In it, metadata about the
|
||||
upload can be edited. Some of it (especially preview images) might be preset
|
||||
already by the application.
|
||||
Upload then happens through the engine again. The upload might require
|
||||
authentication, which is handled transparently.
|
||||
|
||||
When server-side versioning is activated, then no version number needs to be
|
||||
given by the user for updates to existing entries.
|
||||
|
||||
Downloads
|
||||
---------
|
||||
Similar to uploads, all providers suitable for the application's data types
|
||||
are loaded. However, they appear in parallel, whereas only one provider is
|
||||
selected for uploads. Each provider might offer different data types, some
|
||||
matching those needed by the application, some rather not. The provider's
|
||||
download URL is used to download meta information about all entries, and those
|
||||
whose data type is not of interest are filtered out.
|
||||
The provider can offer "tagged" download URLs, the so-called feeds, for
|
||||
the latest entries, the highest rated ones, or certain other criteria. When
|
||||
this is the case, the generic download URL is not used, and instead the
|
||||
feeds are offered to the user as alternative selections, e.g. by being
|
||||
displayed as tabs on a dialog.
|
||||
|
||||
Entries provide meta information which can be viewed, and which might include
|
||||
a preview image. They also reference the data itself, which is called payload.
|
||||
Installing the payload means downloading the data, and running it through
|
||||
a series of checks and installation steps. The data integrity is checked for
|
||||
using hash sums and digital signatures, if available. The installation routine
|
||||
moves the data file to its correct location, probably involving decompression,
|
||||
unpacking and the emission of signals.
|
||||
|
||||
For each downloaded and installed entry, the meta information is kept in an
|
||||
entry registry. In general, all entries and providers are cached.
|
||||
Deinstallation works the other way around: The meta information is read,
|
||||
the data deleted and the meta file also deleted afterwards.
|
||||
|
||||
Direct interaction
|
||||
------------------
|
||||
As opposed to upload and download, all other workflows are only possible when
|
||||
the provider supports DXS. Such interaction includes:
|
||||
* Translation. An entry is referenced and a translation for it is submitted
|
||||
to the server. Translations might end up in an admin queue or be applied
|
||||
directly, depending on the site configuration.
|
||||
* Request for removal. Entries which are deemed unnecessary or offending
|
||||
are scheduled for removal into an admin queue.
|
||||
* Comments. Comments can be added (again ending up in a queue or applied
|
||||
directly), but they can also be requested for viewing.
|
||||
* Several others. See short descriptions in the feature guide.
|
||||
|
||||
Library structure
|
||||
=================
|
||||
|
||||
Proposed structure:
|
||||
knewstuff/knewstuff2/core - conventional ghns + coreengine
|
||||
knewstuff/knewstuff2/dxs - dxs + dxsengine
|
||||
knewstuff/knewstuff2/ui - dialogs
|
||||
knewstuff/knewstuff2 - workflow wrapper (engine)
|
||||
knewstuff/tests - test applications
|
||||
knewstuff/data - icons and other data
|
||||
knewstuff/doc - documentation
|
||||
|
||||
Under review:
|
||||
plasmagik/ - packaging handler
|
||||
|
||||
|
||||
knsrc file format:
|
||||
[KNewStuff2]
|
||||
Name=
|
||||
ProvidersUrl=
|
||||
TargetDir/InstallPath/etc=
|
||||
Uncompress=always/never/archive/subdir
|
||||
CachePolicy=never/resident/only/replaceable
|
||||
Categories=foo,bar
|
||||
|
||||
[foo]
|
||||
TargetDir/InstallPath/etc=
|
||||
Uncompress=...
|
||||
CachePolicy=
|
||||
|
||||
[bar]
|
||||
# empty, then use defaults
|
||||
|
||||
|
||||
@@ -0,0 +1,63 @@
|
||||
How do providers, categories, feeds and entries correlate?
|
||||
And authors on top of that?
|
||||
|
||||
Authors are simple: each entry is linked to one author, even if the
|
||||
author is the same the objects differ. We can change this in the future,
|
||||
right now there is no need to do that.
|
||||
The other objects are a bit more difficult.
|
||||
|
||||
DXS: provider -> category -> feed/list -> entries
|
||||
GHNS: provider -> feed [with categories] -> entries
|
||||
|
||||
Example
|
||||
-------
|
||||
|
||||
The maintainer of an application offers extensions in the categories
|
||||
"image" and "script". Since the application has a lot of users, both
|
||||
kde-coolextensions.org and kde-betterextensions.org offer such extensions.
|
||||
The provider.xml file would thus contain the two <provider>s. When fetching
|
||||
the feed files for most popular/most downloaded/most recent, those files
|
||||
need to contain entries of *all* categories! A workaround is to add virtual
|
||||
providers for each category (there won't be much difference in the UI), but
|
||||
ideally with frameworks such as Hotstuff the right number of items will be
|
||||
inserted into the feed.
|
||||
With DXS, the problem doesn't exist since DXS fetches all categories first
|
||||
and then the feeds for each category. DXS also allows to retrieve all entries
|
||||
of a certain category, so it is much more flexible in general.
|
||||
|
||||
GHNS setup:
|
||||
-----------
|
||||
provider kde-coolextensions.org
|
||||
feed most-recent
|
||||
entry a [category image]
|
||||
entry b [category script]
|
||||
...
|
||||
feed most-downloaded
|
||||
...
|
||||
provider kde-betterextensions.org
|
||||
...
|
||||
|
||||
Alternative GHNS setup:
|
||||
-----------------------
|
||||
provider kde-coolextensions.org/image
|
||||
feed most-recent
|
||||
entry a [image]
|
||||
entry c [image]
|
||||
..
|
||||
..
|
||||
provider kde-coolextensions.org/script
|
||||
...
|
||||
|
||||
DXS setup:
|
||||
----------
|
||||
provider kde-coolextensions.org
|
||||
category image
|
||||
feed most-recent
|
||||
entry a [image]
|
||||
entry c [image]
|
||||
...
|
||||
...
|
||||
...
|
||||
provider kde-betterextensions.org
|
||||
...
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
# SPDX-FileCopyrightText: none
|
||||
# SPDX-License-Identifier: CC0-1.0
|
||||
|
||||
### KApiDox Project-specific Overrides File
|
||||
|
||||
# define so that deprecated API is not skipped
|
||||
PREDEFINED += \
|
||||
"KNEWSTUFFCORE_ENABLE_DEPRECATED_SINCE(x, y)=1" \
|
||||
"KNEWSTUFFCORE_BUILD_DEPRECATED_SINCE(x, y)=1" \
|
||||
"KNEWSTUFFCORE_DEPRECATED_VERSION(x, y, t)=" \
|
||||
"KNEWSTUFFWIDGETS_ENABLE_DEPRECATED_SINCE(x, y)=1" \
|
||||
"KNEWSTUFFWIDGETS_BUILD_DEPRECATED_SINCE(x, y)=1" \
|
||||
"KNEWSTUFFWIDGETS_DEPRECATED_VERSION(x, y, t)=" \
|
||||
"KNEWSTUFF_ENABLE_DEPRECATED_SINCE(x, y)=1" \
|
||||
"KNEWSTUFF_BUILD_DEPRECATED_SINCE(x, y)=1" \
|
||||
"KNEWSTUFF_DEPRECATED_VERSION(x, y, t)=" \
|
||||
"KNEWSTUFF_DEPRECATED_VERSION_BELATED(x, y, xt, yt, t)="
|
||||
@@ -0,0 +1,48 @@
|
||||
This is how the KNS::Engine works....
|
||||
it is a higher-level view which does not talk about KNS::DxsEngine
|
||||
or KNS::CoreEngine yet, those will be documented later.
|
||||
|
||||
General
|
||||
-------
|
||||
|
||||
The KNS::Engine class is the only class that applications need to care
|
||||
about (beside the information from *.knsrc files of course).
|
||||
As such, this class should be as comfortable as possible.
|
||||
|
||||
There are two principal operations supported by it, upload and download.
|
||||
Other operations, especially direct interaction through DXS, is also
|
||||
handled by it since it inherits from DxsEngine.
|
||||
|
||||
Both principal operations have a modal and a non-modal way of being called.
|
||||
The modal way is the easiest one and translates the old
|
||||
KNS::DownloadDialog::open()
|
||||
call from KNewStuff1 to the new
|
||||
KNS::Engine::downloadDialogModal()
|
||||
call in KNewStuff2. Similarly, calling ::uploadDialogModal() handles all
|
||||
upload in a modal way, without the need for signals and slots.
|
||||
|
||||
The modal calls return the list of affected entries directly. These entries
|
||||
should be queried about their status for installed, removed and updated
|
||||
entries in the download dialog, and a single entry returned for the upload
|
||||
dialog.
|
||||
The non-modal calls will send signals for each affected entry.
|
||||
|
||||
Upload
|
||||
------
|
||||
|
||||
The state machine for modal upload is as follows:
|
||||
|
||||
* provider loading
|
||||
* failure(*) -> stop
|
||||
* finish(*) -> next/provider selection
|
||||
* provider(1) -> discard
|
||||
* provider selection
|
||||
* reject -> stop
|
||||
* accept -> next/meta data selection
|
||||
* meta data selection
|
||||
* reject -> stop
|
||||
* accept -> next/upload
|
||||
* upload
|
||||
* failure -> stop
|
||||
* success -> stop + result
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
How to identify entries
|
||||
-----------------------
|
||||
|
||||
The KNS2::CoreEngine uses id() for entries and pid() for providers to find out
|
||||
a unique identifier which can be used to compare one of them to another one of
|
||||
the same kind.
|
||||
|
||||
In KNS1, the name and the payload URL were used to compare the entries, as
|
||||
they're guaranteed to exist. In KNS2, the internationalised nature of those
|
||||
tags is honoured.
|
||||
The proposed comparison algorithm is hence called "internationalised
|
||||
identification" (i18n-id) and is already implemented by Hotstuff.
|
||||
It will also be implemented by KNewStuff2.
|
||||
|
||||
How does i18n-id work?
|
||||
Out of all the tags of an entry, one is taken randomly. Its content together
|
||||
with its language form the identity tuple. When an entry is to be compared,
|
||||
the tag with the same language as used in the id is used for comparison.
|
||||
Note that i18n-id works even in the absence of a language attribute. However,
|
||||
in GHNS, a language attribute will almost always be present. It'd be naive to
|
||||
throw information away when it is present already.
|
||||
|
||||
What i18n-id assumes is that translations never vanish, once added. It would
|
||||
of course be trivial to extend the algorithm to check through all of the
|
||||
languages once present, hence it would work as long as at least one
|
||||
translation is kept.
|
||||
|
||||
What i18n-id achieves is that one doesn't have to rely on "unique ids"
|
||||
maintained by the server, which would definitely change if repositories are
|
||||
merged.
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
KHotNewStuff2 Application use-cases:
|
||||
|
||||
Wallpaper
|
||||
|
||||
Wallpapers are installed to a shared location (share/wallpapers) and many
|
||||
interfaces might want to invoke KNS Download Dialog to get them (desktop containment config
|
||||
window, maybe kdm, other containment config windows, maybe the frame widget config dialog.
|
||||
|
||||
|
||||
Vocabulary
|
||||
|
||||
Vocabulary files can be shared by a few applications, those that want to share install
|
||||
their files to share/apps/kvtml/ optionally in a locale sub-folder. Each app currently
|
||||
has it's own provider and it's own data files, but they can all use each others files.
|
||||
|
||||
|
||||
Color Schemes
|
||||
|
||||
ColorSchemes are installed to a common place, and are only invoked from the colors kcm module.
|
||||
|
||||
|
||||
Game apps
|
||||
|
||||
Game apps probably will want to have different categories in it's knsrc file so it can use one
|
||||
knsrc file (and one download dialog) to download themes and levels (maybe?).
|
||||
|
||||
|
||||
|
||||
KHotNewStuff2 End-user use-cases:
|
||||
|
||||
Extendability:
|
||||
|
||||
Fred, Sysadmin for school X is asked by language teachers to set up a KNS provider for them to
|
||||
upload vocabulary files to on their website, and have it be accessible by registered students from
|
||||
home.
|
||||
|
||||
|
||||
|
||||
System installs:
|
||||
|
||||
Fred is then asked to install all the teacher's uploaded vocab files onto each machine at the lab
|
||||
at school for students to have them accessible, each student has their own home folder, but Fred
|
||||
doesn't want to install to each person's folder, so uses the "Install to share" option, and they
|
||||
are installed to system folder, since his user has rights to write there.
|
||||
@@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
for i in *.dia; do echo $i; dia --export=$i.png --filter=png --nosplash $i; done
|
||||
|
||||
#for i in *.dia; do echo $i; dia --export=$i.png --export-to-format=png --nosplash $i; done
|
||||
|
||||
|
After Width: | Height: | Size: 30 KiB |
|
After Width: | Height: | Size: 49 KiB |
@@ -0,0 +1,16 @@
|
||||
This file lists known packaging formats/drafts so we know if
|
||||
we need to do anything about it (e.g. provide convenience APIs
|
||||
for some packages).
|
||||
|
||||
Plasma: https://techbase.kde.org/Projects/Plasma/Package
|
||||
|
||||
GGZ level packs: /playground/gamedata/README.gamedata in GGZ SVN
|
||||
|
||||
... (TODO: find out structure of KNewStuff1 packages)
|
||||
|
||||
I considered also:
|
||||
* Artworks
|
||||
* Kross
|
||||
* QtScript
|
||||
* Custom (standard KGHNS2 package, supported additions app-specific)
|
||||
|
||||
|
After Width: | Height: | Size: 63 KiB |
|
After Width: | Height: | Size: 51 KiB |
|
After Width: | Height: | Size: 71 KiB |
|
After Width: | Height: | Size: 25 KiB |
|
After Width: | Height: | Size: 80 KiB |
|
After Width: | Height: | Size: 67 KiB |
@@ -0,0 +1,50 @@
|
||||
KNewStuff2 Porting Information
|
||||
==============================
|
||||
|
||||
«Where did all the classes go?»
|
||||
|
||||
data/
|
||||
(GHNS format schemas and example data)
|
||||
-> see http://ghns.freedesktop.org/spec/ now
|
||||
|
||||
downloaddialog.*
|
||||
uploaddialog.*
|
||||
providerdialog.*
|
||||
(graphical dialogs)
|
||||
-> upload/providerdialog still used, in knewstuff2/ui/
|
||||
-> the download dialog is the one from okular
|
||||
-> the old knewstuff1 download dialog is gone
|
||||
|
||||
ghns.*
|
||||
testnewstuff.*
|
||||
(test applications)
|
||||
-> see tests/ for some new tests (has its own README.tests)
|
||||
|
||||
entry.*
|
||||
provider.*
|
||||
(entities/data handling classes)
|
||||
-> see knewstuff2/core/
|
||||
-> author, feed and category are now additional entities
|
||||
|
||||
security.*
|
||||
-> see knewstuff2/core/
|
||||
|
||||
knewstuffbutton.*
|
||||
-> TODO
|
||||
-> will go to knewstuff2/ui/ (there's already kdxsbutton)
|
||||
|
||||
engine.*
|
||||
(non-graphical upload/download functionality)
|
||||
-> there are 3 engine classes now
|
||||
-> the one in knewstuff2/core/coreengine.* is similar
|
||||
-> but it also handles installation and caching
|
||||
-> the one in knewstuff2/dxs/dxsengine.* implements DXS
|
||||
-> the one in knewstuff2/engine.* is for applications (use only this one!)
|
||||
|
||||
knewstuff.*
|
||||
knewstuffgeneric.*
|
||||
knewstuffsecure.*
|
||||
-> doesn't exist anymore
|
||||
-> inherited from it? bad luck, was discouraged by tutorial
|
||||
-> all custom installation etc. is now handled by *.knsrc files
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
# SPDX-FileCopyrightText: none
|
||||
# SPDX-License-Identifier: CC0-1.0
|
||||
|
||||
description: Support for downloading application assets from the network
|
||||
tier: 3
|
||||
type: solution
|
||||
platforms:
|
||||
- name: Linux
|
||||
- name: FreeBSD
|
||||
- name: Windows
|
||||
- name: macOS
|
||||
portingAid: false
|
||||
deprecated: false
|
||||
release: true
|
||||
libraries:
|
||||
- cmake: "KF6::NewStuff"
|
||||
cmakename: KF6NewStuff
|
||||
|
||||
public_lib: true
|
||||
group: Frameworks
|
||||
subgroup: Tier 3
|
||||
@@ -0,0 +1,910 @@
|
||||
# Copyright (C) 2023 This file is copyright:
|
||||
# This file is distributed under the same license as the knewstuff package.
|
||||
#
|
||||
# SPDX-FileCopyrightText: 2023 Enol P. <enolp@softastur.org>
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: knewstuff\n"
|
||||
"Report-Msgid-Bugs-To: https://bugs.kde.org\n"
|
||||
"POT-Creation-Date: 2024-11-28 00:37+0000\n"
|
||||
"PO-Revision-Date: 2023-11-07 21:27+0100\n"
|
||||
"Last-Translator: Enol P. <enolp@softastur.org>\n"
|
||||
"Language-Team: \n"
|
||||
"Language: ast\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
||||
"X-Generator: Lokalize 23.08.2\n"
|
||||
|
||||
#: attica/atticaprovider.cpp:167
|
||||
#, kde-format
|
||||
msgid "All categories are missing"
|
||||
msgstr ""
|
||||
|
||||
#: attica/atticaprovider.cpp:352
|
||||
#, kde-format
|
||||
msgctxt ""
|
||||
"the price of a download item, parameter 1 is the currency, 2 is the price"
|
||||
msgid ""
|
||||
"This item costs %1 %2.\n"
|
||||
"Do you want to buy it?"
|
||||
msgstr ""
|
||||
|
||||
#: attica/atticaprovider.cpp:366
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"Your account balance is too low:\n"
|
||||
"Your balance: %1\n"
|
||||
"Price: %2"
|
||||
msgstr ""
|
||||
|
||||
#: attica/atticaprovider.cpp:398
|
||||
#, kde-format
|
||||
msgctxt "voting for an item (good/bad)"
|
||||
msgid "Your vote was recorded."
|
||||
msgstr ""
|
||||
|
||||
#: attica/atticaprovider.cpp:413
|
||||
#, kde-format
|
||||
msgid "You are now a fan."
|
||||
msgstr ""
|
||||
|
||||
#: attica/atticaprovider.cpp:441 core/enginebase.cpp:266
|
||||
#: opds/opdsprovider.cpp:291
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"The service is currently undergoing maintenance and is expected to be back "
|
||||
"in %1."
|
||||
msgstr ""
|
||||
|
||||
#: attica/atticaprovider.cpp:446
|
||||
#, kde-format
|
||||
msgid "Network error %1: %2"
|
||||
msgstr ""
|
||||
|
||||
#: attica/atticaprovider.cpp:453
|
||||
#, kde-format
|
||||
msgid "Too many requests to server. Please try again in a few minutes."
|
||||
msgstr ""
|
||||
|
||||
#: attica/atticaprovider.cpp:457
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"The Open Collaboration Services instance %1 does not support the attempted "
|
||||
"function."
|
||||
msgstr ""
|
||||
|
||||
#: attica/atticaprovider.cpp:461
|
||||
#, kde-format
|
||||
msgid "Unknown Open Collaboration Service API error. (%1)"
|
||||
msgstr ""
|
||||
|
||||
#: core/commentsmodel.cpp:154
|
||||
#, kde-format
|
||||
msgctxt ""
|
||||
"The value returned for an unknown role when requesting data from the model."
|
||||
msgid "Unknown CommentsModel role"
|
||||
msgstr ""
|
||||
|
||||
#: core/enginebase.cpp:98
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"An error occurred during the installation process:\n"
|
||||
"%1"
|
||||
msgstr ""
|
||||
|
||||
#: core/enginebase.cpp:134
|
||||
#, kde-format
|
||||
msgid "Configuration file does not exist: \"%1\""
|
||||
msgstr ""
|
||||
|
||||
#: core/enginebase.cpp:142
|
||||
#, kde-format
|
||||
msgid "Configuration file exists, but cannot be opened: \"%1\""
|
||||
msgstr ""
|
||||
|
||||
#: core/enginebase.cpp:149
|
||||
#, kde-format
|
||||
msgid "Configuration file is invalid: \"%1\""
|
||||
msgstr ""
|
||||
|
||||
#: core/enginebase.cpp:158
|
||||
#, kde-format
|
||||
msgid "Use"
|
||||
msgstr ""
|
||||
|
||||
#: core/enginebase.cpp:187
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"Could not initialise the installation handler for %1:\n"
|
||||
"%2\n"
|
||||
"This is a critical error and should be reported to the application author"
|
||||
msgstr ""
|
||||
|
||||
#: core/enginebase.cpp:351
|
||||
#, kde-format
|
||||
msgid "Loading of providers from file: %1 failed"
|
||||
msgstr ""
|
||||
|
||||
#: core/enginebase.cpp:369
|
||||
#, kde-format
|
||||
msgid "Could not load get hot new stuff providers from file: %1"
|
||||
msgstr ""
|
||||
|
||||
#: core/enginebase.cpp:400
|
||||
#, kde-format
|
||||
msgid "Error initializing provider."
|
||||
msgstr ""
|
||||
|
||||
#: core/installation.cpp:101
|
||||
#, kde-format
|
||||
msgid "Invalid item."
|
||||
msgstr ""
|
||||
|
||||
#: core/installation.cpp:108
|
||||
#, kde-format
|
||||
msgid "Download of item failed: no download URL for \"%1\"."
|
||||
msgstr ""
|
||||
|
||||
#: core/installation.cpp:139
|
||||
#, kde-format
|
||||
msgid "Download of \"%1\" failed, error: %2"
|
||||
msgstr ""
|
||||
|
||||
#: core/installation.cpp:148
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"Cannot install '%1' because it points to a web page. Click <a "
|
||||
"href='%2'>here</a> to finish the installation."
|
||||
msgstr ""
|
||||
|
||||
#: core/installation.cpp:186
|
||||
#, kde-format
|
||||
msgid "Could not install \"%1\": file not found."
|
||||
msgstr ""
|
||||
|
||||
#: core/installation.cpp:352 core/installation.cpp:599
|
||||
#, kde-format
|
||||
msgid "Installation of %1 failed: %2"
|
||||
msgstr ""
|
||||
|
||||
#: core/installation.cpp:386
|
||||
#, kde-format
|
||||
msgid "Could not determine the type of archive of the downloaded file %1"
|
||||
msgstr ""
|
||||
|
||||
#: core/installation.cpp:398
|
||||
#, kde-format
|
||||
msgid "Failed to open the archive file %1. The reported error was: %2"
|
||||
msgstr ""
|
||||
|
||||
#: core/installation.cpp:465
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"This file already exists on disk (possibly due to an earlier failed download "
|
||||
"attempt). Continuing means overwriting it. Do you wish to overwrite the "
|
||||
"existing file?"
|
||||
msgstr ""
|
||||
|
||||
#: core/installation.cpp:468
|
||||
#, kde-format
|
||||
msgid "Overwrite File"
|
||||
msgstr ""
|
||||
|
||||
#: core/installation.cpp:487
|
||||
#, kde-format
|
||||
msgid "Unable to move the file %1 to the intended destination %2"
|
||||
msgstr ""
|
||||
|
||||
#: core/installation.cpp:510
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"The installation failed while attempting to run the command:\n"
|
||||
"%1\n"
|
||||
"\n"
|
||||
"The returned output was:\n"
|
||||
"%2"
|
||||
msgstr ""
|
||||
|
||||
#: core/installation.cpp:521
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"The installation failed with code %1 while attempting to run the command:\n"
|
||||
"%2\n"
|
||||
"\n"
|
||||
"The returned output was:\n"
|
||||
"%3"
|
||||
msgstr ""
|
||||
|
||||
#: core/installation.cpp:563
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"The removal of %1 failed, as the installed file %2 could not be "
|
||||
"automatically removed. You can attempt to manually delete this file, if you "
|
||||
"believe this is an error."
|
||||
msgstr ""
|
||||
|
||||
#: core/installation.cpp:632
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"The uninstallation process failed to successfully run the command %1\n"
|
||||
"The output of was: \n"
|
||||
"%2\n"
|
||||
"If you think this is incorrect, you can continue or cancel the "
|
||||
"uninstallation process"
|
||||
msgstr ""
|
||||
|
||||
#: core/jobs/filecopyworker.cpp:60
|
||||
#, kde-format
|
||||
msgid "Could not open %1 for writing"
|
||||
msgstr ""
|
||||
|
||||
#: core/jobs/filecopyworker.cpp:63
|
||||
#, kde-format
|
||||
msgid "Could not open %1 for reading"
|
||||
msgstr ""
|
||||
|
||||
#: core/transaction.cpp:126
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"Could not perform an installation of the entry %1 as it does not have any "
|
||||
"downloadable items defined. Please contact the author so they can fix this."
|
||||
msgstr ""
|
||||
|
||||
#: core/transaction.cpp:341
|
||||
#, kde-format
|
||||
msgid "Pick Update Item"
|
||||
msgstr ""
|
||||
|
||||
#: core/transaction.cpp:343
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"Please pick the item from the list below which should be used to apply this "
|
||||
"update. We were unable to identify which item to select, based on the "
|
||||
"original item, which was named %1"
|
||||
msgstr ""
|
||||
|
||||
#: core/transaction.cpp:367
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"We failed to identify a good link for updating %1, and are unable to perform "
|
||||
"the update"
|
||||
msgstr ""
|
||||
|
||||
#: core/transaction.cpp:460
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"Failed to adopt '%1'\n"
|
||||
"%2"
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/categoriesmodel.cpp:52
|
||||
#, kde-format
|
||||
msgctxt ""
|
||||
"The first entry in the category selection list (also the default value)"
|
||||
msgid "All Categories"
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/categoriesmodel.cpp:74
|
||||
#, kde-format
|
||||
msgctxt ""
|
||||
"The string passed back in the case the requested category is not known"
|
||||
msgid "Unknown Category"
|
||||
msgstr ""
|
||||
|
||||
#. i18nd("knewstuff6", "Download New %1…").
|
||||
#. *
|
||||
#. @note For the sake of consistency, you should NOT override the text property, just set this one
|
||||
#.
|
||||
#: qtquick/qml/Button.qml:43
|
||||
#, kde-format
|
||||
msgctxt ""
|
||||
"Used to construct the button's label (which will become Download New 'this "
|
||||
"value'…)"
|
||||
msgid "Stuff"
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/qml/Button.qml:44
|
||||
#, kde-format
|
||||
msgid "Download New %1…"
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/qml/Dialog.qml:44
|
||||
#, kde-format
|
||||
msgctxt "The dialog title when we know which type of stuff is being requested"
|
||||
msgid "Download New %1"
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/qml/Dialog.qml:45
|
||||
#, kde-format
|
||||
msgctxt ""
|
||||
"A placeholder title used in the dialog when there is no better title "
|
||||
"available"
|
||||
msgid "Download New Stuff"
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/qml/DownloadItemsSheet.qml:35
|
||||
#, kde-format
|
||||
msgid "Pick Your Installation Option"
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/qml/DownloadItemsSheet.qml:47
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"Please select the option you wish to install from the list of downloadable "
|
||||
"items below. If it is unclear which you should chose out of the available "
|
||||
"options, please contact the author of this item and ask that they clarify "
|
||||
"this through the naming of the items."
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/qml/DownloadItemsSheet.qml:88
|
||||
#, kde-format
|
||||
msgid "Install"
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/qml/EntryDetails.qml:89
|
||||
#, kde-format
|
||||
msgctxt ""
|
||||
"A passive notification shown when installation of an item is initiated"
|
||||
msgid "Installing %1 from %2"
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/qml/EntryDetails.qml:106
|
||||
#, kde-format
|
||||
msgctxt ""
|
||||
"Combined title for the entry details page made of the name of the entry, and "
|
||||
"the author's name"
|
||||
msgid "%1 by %2"
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/qml/EntryDetails.qml:111
|
||||
#: qtquick/qml/private/entrygriddelegates/BigPreviewDelegate.qml:43
|
||||
#: qtquick/qml/private/entrygriddelegates/TileDelegate.qml:48
|
||||
#, kde-format
|
||||
msgctxt ""
|
||||
"Request installation of this item, available when there is exactly one "
|
||||
"downloadable item"
|
||||
msgid "Install"
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/qml/EntryDetails.qml:112
|
||||
#: qtquick/qml/private/entrygriddelegates/BigPreviewDelegate.qml:44
|
||||
#: qtquick/qml/private/entrygriddelegates/TileDelegate.qml:49
|
||||
#, kde-format
|
||||
msgctxt ""
|
||||
"Show installation options, where there is more than one downloadable item"
|
||||
msgid "Install…"
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/qml/EntryDetails.qml:128
|
||||
#: qtquick/qml/private/entrygriddelegates/BigPreviewDelegate.qml:59
|
||||
#: qtquick/qml/private/entrygriddelegates/TileDelegate.qml:64
|
||||
#, kde-format
|
||||
msgctxt "Request updating of this item"
|
||||
msgid "Update"
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/qml/EntryDetails.qml:135 qtquick/qml/Page.qml:114
|
||||
#, kde-format
|
||||
msgctxt "Request uninstallation of this item"
|
||||
msgid "Uninstall"
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/qml/EntryDetails.qml:157
|
||||
#, kde-format
|
||||
msgctxt ""
|
||||
"Status message to be shown when the entry is in the process of being "
|
||||
"installed OR uninstalled"
|
||||
msgid "Currently working on the item %1 by %2. Please wait…"
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/qml/EntryDetails.qml:159
|
||||
#, kde-format
|
||||
msgctxt ""
|
||||
"Status message to be shown when the entry is in the process of being updated"
|
||||
msgid "Currently updating the item %1 by %2. Please wait…"
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/qml/EntryDetails.qml:161
|
||||
#, kde-format
|
||||
msgctxt ""
|
||||
"Status message which should only be shown when the entry has been given some "
|
||||
"unknown or invalid status."
|
||||
msgid ""
|
||||
"This item is currently in an invalid or unknown state. <a href=\"https://"
|
||||
"bugs.kde.org/enter_bug.cgi?product=frameworks-knewstuff\">Please report this "
|
||||
"to the KDE Community in a bug report</a>."
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/qml/EntryDetails.qml:214
|
||||
#, kde-format
|
||||
msgid "Comments and Reviews:"
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/qml/EntryDetails.qml:216
|
||||
#, kde-format
|
||||
msgctxt ""
|
||||
"A link which, when clicked, opens a new sub page with comments (comments "
|
||||
"with or without ratings) for this entry"
|
||||
msgid "%1 Reviews and Comments"
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/qml/EntryDetails.qml:222
|
||||
#, kde-format
|
||||
msgid "Rating:"
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/qml/EntryDetails.qml:227
|
||||
#, kde-format
|
||||
msgid "Homepage:"
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/qml/EntryDetails.qml:228
|
||||
#, kde-format
|
||||
msgctxt ""
|
||||
"A link which, when clicked, opens the website associated with the entry "
|
||||
"(this could be either one specific to the project, the author's homepage, or "
|
||||
"any other website they have chosen for the purpose)"
|
||||
msgid "Open the homepage for %1"
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/qml/EntryDetails.qml:234
|
||||
#, kde-format
|
||||
msgid "How To Donate:"
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/qml/EntryDetails.qml:235
|
||||
#, kde-format
|
||||
msgctxt ""
|
||||
"A link which, when clicked, opens a website with information on donation in "
|
||||
"support of the entry"
|
||||
msgid "Find out how to donate to this project"
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/qml/Page.qml:140
|
||||
#, kde-kuit-format
|
||||
msgctxt "@info displayed as InlineMessage"
|
||||
msgid ""
|
||||
"Use caution when accessing user-created content shown here, as it may "
|
||||
"contain executable code that hasn't been tested by KDE or your distributor "
|
||||
"for safety, stability, or quality."
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/qml/Page.qml:141
|
||||
#, kde-format
|
||||
msgctxt "@info displayed as InlineMessage"
|
||||
msgid ""
|
||||
"User-created content shown here hasn't been tested by KDE or your "
|
||||
"distributor for functionality or quality."
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/qml/Page.qml:172
|
||||
#, kde-format
|
||||
msgctxt "@action:button opening menu similar to combobox, filter list"
|
||||
msgid "All"
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/qml/Page.qml:174
|
||||
#, kde-format
|
||||
msgctxt "@action:button opening menu similar to combobox, filter list"
|
||||
msgid "Installed"
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/qml/Page.qml:176
|
||||
#, kde-format
|
||||
msgctxt "@action:button opening menu similar to combobox, filter list"
|
||||
msgid "Updateable"
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/qml/Page.qml:186
|
||||
#, kde-format
|
||||
msgctxt ""
|
||||
"@option:radio similar to combobox item, List option which will set the "
|
||||
"filter to show everything"
|
||||
msgid "All"
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/qml/Page.qml:197
|
||||
#, kde-format
|
||||
msgctxt ""
|
||||
"@option:radio similar to combobox item, List option which will set the "
|
||||
"filter so only installed items are shown"
|
||||
msgid "Installed"
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/qml/Page.qml:208
|
||||
#, kde-format
|
||||
msgctxt ""
|
||||
"@option:radio similar to combobox item, List option which will set the "
|
||||
"filter so only installed items with updates available are shown"
|
||||
msgid "Updateable"
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/qml/Page.qml:221
|
||||
#, kde-format
|
||||
msgctxt "@action:button opening menu similar to combobox, filter list"
|
||||
msgid "Sort: Release date"
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/qml/Page.qml:223
|
||||
#, kde-format
|
||||
msgctxt "@action:button opening menu similar to combobox, filter list"
|
||||
msgid "Sort: Name"
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/qml/Page.qml:225
|
||||
#, kde-format
|
||||
msgctxt "@action:button opening menu similar to combobox, filter list"
|
||||
msgid "Sort: Rating"
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/qml/Page.qml:227
|
||||
#, kde-format
|
||||
msgctxt "@action:button opening menu similar to combobox, filter list"
|
||||
msgid "Sort: Downloads"
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/qml/Page.qml:236
|
||||
#, kde-format
|
||||
msgctxt ""
|
||||
"@option:radio in menu, List option which will set the sort order to be "
|
||||
"alphabetical based on the name"
|
||||
msgid "Name"
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/qml/Page.qml:247
|
||||
#, kde-format
|
||||
msgctxt ""
|
||||
"@option:radio in menu, List option which will set the sort order to based on "
|
||||
"user ratings"
|
||||
msgid "Rating"
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/qml/Page.qml:258
|
||||
#, kde-format
|
||||
msgctxt ""
|
||||
"@option:radio similar to combobox item, List option which will set the sort "
|
||||
"order to based on number of downloads"
|
||||
msgid "Downloads"
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/qml/Page.qml:269
|
||||
#, kde-format
|
||||
msgctxt ""
|
||||
"@option:radio similar to combobox item, List option which will set the sort "
|
||||
"order to based on when items were most recently updated"
|
||||
msgid "Release date"
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/qml/Page.qml:282
|
||||
#, kde-format
|
||||
msgid "Upload…"
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/qml/Page.qml:283
|
||||
#, kde-format
|
||||
msgid "Learn how to add your own hot new stuff to this list"
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/qml/Page.qml:293
|
||||
#, kde-format
|
||||
msgid "Go to…"
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/qml/Page.qml:300 qtquick/qml/Page.qml:309
|
||||
#, kde-format
|
||||
msgid "Search…"
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/qml/Page.qml:363
|
||||
#, kde-format
|
||||
msgid "Category:"
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/qml/Page.qml:383
|
||||
#, kde-format
|
||||
msgid "Contribute Your Own…"
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/qml/private/EntryCommentDelegate.qml:103
|
||||
#, kde-format
|
||||
msgctxt ""
|
||||
"Placeholder title for when a comment has no subject, but does have a rating"
|
||||
msgid "<i>(no title)</i>"
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/qml/private/EntryCommentDelegate.qml:136
|
||||
#, kde-format
|
||||
msgctxt ""
|
||||
"The author label in case the comment was written by the author of the "
|
||||
"content entry the comment is attached to"
|
||||
msgid "%1 <i>(author)</i>"
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/qml/private/EntryCommentsPage.qml:27
|
||||
#, kde-format
|
||||
msgctxt "Title for the page containing a view of the comments for the entry"
|
||||
msgid "Comments and Reviews for %1"
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/qml/private/EntryCommentsPage.qml:30
|
||||
#, kde-format
|
||||
msgctxt "Title for the item which is checked when all comments should be shown"
|
||||
msgid "Show All Comments"
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/qml/private/EntryCommentsPage.qml:38
|
||||
#, kde-format
|
||||
msgctxt ""
|
||||
"Title for the item which is checked when only comments which are reviews "
|
||||
"should be shown"
|
||||
msgid "Show Reviews Only"
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/qml/private/EntryCommentsPage.qml:46
|
||||
#, kde-format
|
||||
msgctxt ""
|
||||
"Title for the item which is checked when comments which are reviews, and "
|
||||
"their children should be shown"
|
||||
msgid "Show Reviews and Replies"
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/qml/private/entrygriddelegates/BigPreviewDelegate.qml:140
|
||||
#: qtquick/qml/private/entrygriddelegates/TileDelegate.qml:185
|
||||
#, kde-format
|
||||
msgctxt "The number of times the item has been downloaded"
|
||||
msgid "%1 downloads"
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/qml/private/entrygriddelegates/BigPreviewDelegate.qml:153
|
||||
#: qtquick/qml/private/entrygriddelegates/TileDelegate.qml:164
|
||||
#, kde-format
|
||||
msgctxt ""
|
||||
"Subheading for the tile view, located immediately underneath the name of the "
|
||||
"item"
|
||||
msgid "By <i>%1</i>"
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/qml/private/entrygriddelegates/FeedbackOverlay.qml:46
|
||||
#, kde-format
|
||||
msgctxt ""
|
||||
"Label for the busy indicator showing an item is being installed OR "
|
||||
"uninstalled"
|
||||
msgid "Working…"
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/qml/private/entrygriddelegates/FeedbackOverlay.qml:48
|
||||
#, kde-format
|
||||
msgctxt ""
|
||||
"Label for the busy indicator showing an item is in the process of being "
|
||||
"updated"
|
||||
msgid "Updating…"
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/qml/private/entrygriddelegates/FeedbackOverlay.qml:50
|
||||
#, kde-format
|
||||
msgctxt ""
|
||||
"Label for the busy indicator which should only be shown when the entry has "
|
||||
"been given some unknown or invalid status."
|
||||
msgid ""
|
||||
"Invalid or unknown state. <a href=\"https://bugs.kde.org/enter_bug.cgi?"
|
||||
"product=frameworks-knewstuff\">Please report this to the KDE Community in a "
|
||||
"bug report</a>."
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/qml/private/entrygriddelegates/FeedbackOverlay.qml:63
|
||||
#, kde-format
|
||||
msgctxt "Label for the busy indicator showing an item is installing"
|
||||
msgid "Installing…"
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/qml/private/ErrorDisplayer.qml:15
|
||||
#, kde-format
|
||||
msgctxt "Title for a dialog box which shows error messages"
|
||||
msgid "An Error Occurred"
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/qml/private/ErrorDisplayer.qml:82
|
||||
#, kde-format
|
||||
msgid "Please try again later."
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/qml/private/GridTileDelegate.qml:120
|
||||
#, kde-format
|
||||
msgid "None"
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/qml/private/Rating.qml:81
|
||||
#, kde-format
|
||||
msgctxt ""
|
||||
"A text representation of the rating, shown as a fraction of the max value"
|
||||
msgid "(%1/%2)"
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/qml/UploadPage.qml:50
|
||||
#, kde-format
|
||||
msgctxt "@knewstuff6"
|
||||
msgid "Upload New Stuff: %1"
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/qml/UploadPage.qml:111
|
||||
#, kde-format
|
||||
msgctxt ""
|
||||
"A text shown beside a busy indicator suggesting that data is being fetched"
|
||||
msgid "Updating information…"
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/qml/UploadPage.qml:126
|
||||
#, kde-format
|
||||
msgctxt "The name of the KDE Store"
|
||||
msgid "KDE Store"
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/qml/UploadPage.qml:132
|
||||
#, kde-format
|
||||
msgctxt "An unnamed provider"
|
||||
msgid "Your Provider"
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/qml/UploadPage.qml:141
|
||||
#, kde-format
|
||||
msgctxt ""
|
||||
"Text for an action which causes the specified website to be opened using the "
|
||||
"user's system default browser"
|
||||
msgid "Open Website: %1"
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/qml/UploadPage.qml:149
|
||||
#, kde-format
|
||||
msgctxt ""
|
||||
"Text for an action which will attempt to send an email using the user's "
|
||||
"system default email client"
|
||||
msgid "Send Email To: %1"
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/qml/UploadPage.qml:159
|
||||
#, kde-format
|
||||
msgctxt "A description of how to upload content to a generic provider"
|
||||
msgid ""
|
||||
"To upload new entries, or to add content to an existing entry on the KDE "
|
||||
"Store, please open the website and log in. Once you have done this, you will "
|
||||
"be able to find the My Products entry in the menu which pops up when you "
|
||||
"click your user icon. Click on this entry to go to the product management "
|
||||
"system, where you can work on your products."
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/qml/UploadPage.qml:160
|
||||
#, kde-format
|
||||
msgctxt "A description of how to upload content to the KDE Store specifically"
|
||||
msgid ""
|
||||
"To upload new entries, or to add content to an existing entry, please open "
|
||||
"the provider's website and follow the instructions there. You will likely "
|
||||
"need to create a user and log in to a product management system, where you "
|
||||
"will need to follow the instructions for how to add. Alternatively, you "
|
||||
"might be required to contact the managers of the site directly to get new "
|
||||
"content added."
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/quickengine.cpp:82 qtquick/quickengine.cpp:168
|
||||
#: qtquick/quickengine.cpp:176
|
||||
#, kde-format
|
||||
msgid "Loading data"
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/quickengine.cpp:172
|
||||
#, kde-format
|
||||
msgid "Installing"
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/quickengine.cpp:227
|
||||
#, kde-format
|
||||
msgctxt ""
|
||||
"An informational message which is shown to inform the user they are not "
|
||||
"authorized to use GetHotNewStuff functionality"
|
||||
msgid ""
|
||||
"You are not authorized to Get Hot New Stuff. If you think this is in error, "
|
||||
"please contact the person in charge of your permissions."
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/searchpresetmodel.cpp:46
|
||||
#, kde-format
|
||||
msgctxt "Knewstuff5"
|
||||
msgid "Back"
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/searchpresetmodel.cpp:48
|
||||
#, kde-format
|
||||
msgctxt "Knewstuff5"
|
||||
msgid "Popular"
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/searchpresetmodel.cpp:50
|
||||
#, kde-format
|
||||
msgctxt "Knewstuff5"
|
||||
msgid "Featured"
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/searchpresetmodel.cpp:52
|
||||
#, kde-format
|
||||
msgctxt "Knewstuff5"
|
||||
msgid "Restart"
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/searchpresetmodel.cpp:54
|
||||
#, kde-format
|
||||
msgctxt "Knewstuff5"
|
||||
msgid "New"
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/searchpresetmodel.cpp:56
|
||||
#, kde-format
|
||||
msgctxt "Knewstuff5"
|
||||
msgid "Home"
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/searchpresetmodel.cpp:58
|
||||
#, kde-format
|
||||
msgctxt "Knewstuff5"
|
||||
msgid "Shelf"
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/searchpresetmodel.cpp:60
|
||||
#, kde-format
|
||||
msgctxt "Knewstuff5"
|
||||
msgid "Up"
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/searchpresetmodel.cpp:62
|
||||
#, kde-format
|
||||
msgctxt "Knewstuff5"
|
||||
msgid "Recommended"
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/searchpresetmodel.cpp:64
|
||||
#, kde-format
|
||||
msgctxt "Knewstuff5"
|
||||
msgid "Subscriptions"
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/searchpresetmodel.cpp:66
|
||||
#, kde-format
|
||||
msgctxt "Knewstuff5"
|
||||
msgid "All Entries"
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/searchpresetmodel.cpp:70
|
||||
#, kde-format
|
||||
msgctxt "Knewstuff5"
|
||||
msgid "Search Preset: %1"
|
||||
msgstr ""
|
||||
|
||||
#: tools/knewstuff-dialog/main.cpp:30
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"The KNSRC file you want to show. If none is passed, you will be presented "
|
||||
"with a dialog which lets you switch between all the config files installed "
|
||||
"into the systemwide knsrc file location"
|
||||
msgstr ""
|
||||
|
||||
#: tools/knewstuff-dialog/main.cpp:34
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"A kns url to show information from. The format for a kns url is kns://"
|
||||
"knsrcfile/providerid/entryid\n"
|
||||
"'knsrcfile'\n"
|
||||
"is the name of a knsrc file as might be passed directly through this tool's "
|
||||
"knsrcfile argument\n"
|
||||
"'providerid'\n"
|
||||
"is the hostname of the provider the entry should exist on\n"
|
||||
"'entryid'\n"
|
||||
"is the unique ID of an entry found in the provider specified by the knsrc "
|
||||
"file.\n"
|
||||
" An example of such a url is kns://sddmtheme.knsrc/api.kde-look.org/2059021"
|
||||
msgstr ""
|
||||
|
||||
#: widgets/action.cpp:28 widgets/button.cpp:70
|
||||
#, kde-format
|
||||
msgctxt "@action"
|
||||
msgid "Download New Stuff…"
|
||||
msgstr ""
|
||||
@@ -0,0 +1,927 @@
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
# Lukáš Tinkl <lukas@kde.org>, 2010, 2011, 2012.
|
||||
# SPDX-FileCopyrightText: 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2024 Vít Pelčák <vit@pelcak.org>
|
||||
# Tomáš Chvátal <tomas.chvatal@gmail.com>, 2012, 2013.
|
||||
# SPDX-FileCopyrightText: 2021, 2022, 2023, 2024 Vit Pelcak <vit@pelcak.org>
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: kdelibs4\n"
|
||||
"Report-Msgid-Bugs-To: https://bugs.kde.org\n"
|
||||
"POT-Creation-Date: 2024-11-28 00:37+0000\n"
|
||||
"PO-Revision-Date: 2024-09-18 09:43+0200\n"
|
||||
"Last-Translator: Vit Pelcak <vit@pelcak.org>\n"
|
||||
"Language-Team: Czech <kde-i18n-doc@kde.org>\n"
|
||||
"Language: cs\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"
|
||||
"X-Generator: Lokalize 24.08.1\n"
|
||||
"X-Language: cs_CZ\n"
|
||||
"X-Source-Language: en_US\n"
|
||||
|
||||
#: attica/atticaprovider.cpp:167
|
||||
#, kde-format
|
||||
msgid "All categories are missing"
|
||||
msgstr "Chybí všechny kategorie"
|
||||
|
||||
#: attica/atticaprovider.cpp:352
|
||||
#, kde-format
|
||||
msgctxt ""
|
||||
"the price of a download item, parameter 1 is the currency, 2 is the price"
|
||||
msgid ""
|
||||
"This item costs %1 %2.\n"
|
||||
"Do you want to buy it?"
|
||||
msgstr ""
|
||||
"Tato položka stojí %1 %2.\n"
|
||||
"Přejete si ji zakoupit?"
|
||||
|
||||
#: attica/atticaprovider.cpp:366
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"Your account balance is too low:\n"
|
||||
"Your balance: %1\n"
|
||||
"Price: %2"
|
||||
msgstr ""
|
||||
"Stav vašeho konta je příliš nízký:\n"
|
||||
"Stav: %1\n"
|
||||
"Cena: %2"
|
||||
|
||||
#: attica/atticaprovider.cpp:398
|
||||
#, kde-format
|
||||
msgctxt "voting for an item (good/bad)"
|
||||
msgid "Your vote was recorded."
|
||||
msgstr "Váš hlas byl zaznamenán."
|
||||
|
||||
#: attica/atticaprovider.cpp:413
|
||||
#, kde-format
|
||||
msgid "You are now a fan."
|
||||
msgstr "Nyní jste fanoušek."
|
||||
|
||||
#: attica/atticaprovider.cpp:441 core/enginebase.cpp:266
|
||||
#: opds/opdsprovider.cpp:291
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"The service is currently undergoing maintenance and is expected to be back "
|
||||
"in %1."
|
||||
msgstr ""
|
||||
|
||||
#: attica/atticaprovider.cpp:446
|
||||
#, kde-format
|
||||
msgid "Network error %1: %2"
|
||||
msgstr "Chyba sítě %1: %2"
|
||||
|
||||
#: attica/atticaprovider.cpp:453
|
||||
#, kde-format
|
||||
msgid "Too many requests to server. Please try again in a few minutes."
|
||||
msgstr ""
|
||||
"Příliš mnoho požadavků na server. Prosím zkuste znovu za několik minut."
|
||||
|
||||
#: attica/atticaprovider.cpp:457
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"The Open Collaboration Services instance %1 does not support the attempted "
|
||||
"function."
|
||||
msgstr ""
|
||||
|
||||
#: attica/atticaprovider.cpp:461
|
||||
#, kde-format
|
||||
msgid "Unknown Open Collaboration Service API error. (%1)"
|
||||
msgstr "Neznámá chyba OCS API. (%1)"
|
||||
|
||||
#: core/commentsmodel.cpp:154
|
||||
#, kde-format
|
||||
msgctxt ""
|
||||
"The value returned for an unknown role when requesting data from the model."
|
||||
msgid "Unknown CommentsModel role"
|
||||
msgstr ""
|
||||
|
||||
#: core/enginebase.cpp:98
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"An error occurred during the installation process:\n"
|
||||
"%1"
|
||||
msgstr ""
|
||||
|
||||
#: core/enginebase.cpp:134
|
||||
#, kde-format
|
||||
msgid "Configuration file does not exist: \"%1\""
|
||||
msgstr "Konfigurační soubor neexistuje: \"%1\""
|
||||
|
||||
#: core/enginebase.cpp:142
|
||||
#, kde-format
|
||||
msgid "Configuration file exists, but cannot be opened: \"%1\""
|
||||
msgstr "Konfigurační soubor nalezen, ale nelze otevřít: \"%1\""
|
||||
|
||||
#: core/enginebase.cpp:149
|
||||
#, kde-format
|
||||
msgid "Configuration file is invalid: \"%1\""
|
||||
msgstr "Konfigurační soubor je neplatný: \"%1\""
|
||||
|
||||
#: core/enginebase.cpp:158
|
||||
#, kde-format
|
||||
msgid "Use"
|
||||
msgstr "Použít"
|
||||
|
||||
#: core/enginebase.cpp:187
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"Could not initialise the installation handler for %1:\n"
|
||||
"%2\n"
|
||||
"This is a critical error and should be reported to the application author"
|
||||
msgstr ""
|
||||
|
||||
#: core/enginebase.cpp:351
|
||||
#, kde-format
|
||||
msgid "Loading of providers from file: %1 failed"
|
||||
msgstr "Načítání poskytovatelů ze souboru %1 selhalo"
|
||||
|
||||
#: core/enginebase.cpp:369
|
||||
#, kde-format
|
||||
msgid "Could not load get hot new stuff providers from file: %1"
|
||||
msgstr "Nelze získat poskytovatele obsahu ze souboru: %1"
|
||||
|
||||
#: core/enginebase.cpp:400
|
||||
#, kde-format
|
||||
msgid "Error initializing provider."
|
||||
msgstr "Chyba během inicializace poskytovatele."
|
||||
|
||||
#: core/installation.cpp:101
|
||||
#, kde-format
|
||||
msgid "Invalid item."
|
||||
msgstr "Neplatná položka."
|
||||
|
||||
#: core/installation.cpp:108
|
||||
#, kde-format
|
||||
msgid "Download of item failed: no download URL for \"%1\"."
|
||||
msgstr "Stažení položky selhalo: neexistuje URL pro stažení \"%1\"."
|
||||
|
||||
#: core/installation.cpp:139
|
||||
#, kde-format
|
||||
msgid "Download of \"%1\" failed, error: %2"
|
||||
msgstr "Stažení \"%1\" selhalo, chyba: %2"
|
||||
|
||||
#: core/installation.cpp:148
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"Cannot install '%1' because it points to a web page. Click <a "
|
||||
"href='%2'>here</a> to finish the installation."
|
||||
msgstr ""
|
||||
|
||||
#: core/installation.cpp:186
|
||||
#, kde-format
|
||||
msgid "Could not install \"%1\": file not found."
|
||||
msgstr "Nelze nainstalovat \"%1\": soubor nenalezen."
|
||||
|
||||
#: core/installation.cpp:352 core/installation.cpp:599
|
||||
#, kde-format
|
||||
msgid "Installation of %1 failed: %2"
|
||||
msgstr "Instalace %1 selhala: %2"
|
||||
|
||||
#: core/installation.cpp:386
|
||||
#, kde-format
|
||||
msgid "Could not determine the type of archive of the downloaded file %1"
|
||||
msgstr ""
|
||||
|
||||
#: core/installation.cpp:398
|
||||
#, kde-format
|
||||
msgid "Failed to open the archive file %1. The reported error was: %2"
|
||||
msgstr ""
|
||||
|
||||
#: core/installation.cpp:465
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"This file already exists on disk (possibly due to an earlier failed download "
|
||||
"attempt). Continuing means overwriting it. Do you wish to overwrite the "
|
||||
"existing file?"
|
||||
msgstr ""
|
||||
|
||||
#: core/installation.cpp:468
|
||||
#, kde-format
|
||||
msgid "Overwrite File"
|
||||
msgstr "Přepsat soubor"
|
||||
|
||||
#: core/installation.cpp:487
|
||||
#, kde-format
|
||||
msgid "Unable to move the file %1 to the intended destination %2"
|
||||
msgstr ""
|
||||
|
||||
#: core/installation.cpp:510
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"The installation failed while attempting to run the command:\n"
|
||||
"%1\n"
|
||||
"\n"
|
||||
"The returned output was:\n"
|
||||
"%2"
|
||||
msgstr ""
|
||||
|
||||
#: core/installation.cpp:521
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"The installation failed with code %1 while attempting to run the command:\n"
|
||||
"%2\n"
|
||||
"\n"
|
||||
"The returned output was:\n"
|
||||
"%3"
|
||||
msgstr ""
|
||||
|
||||
#: core/installation.cpp:563
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"The removal of %1 failed, as the installed file %2 could not be "
|
||||
"automatically removed. You can attempt to manually delete this file, if you "
|
||||
"believe this is an error."
|
||||
msgstr ""
|
||||
|
||||
#: core/installation.cpp:632
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"The uninstallation process failed to successfully run the command %1\n"
|
||||
"The output of was: \n"
|
||||
"%2\n"
|
||||
"If you think this is incorrect, you can continue or cancel the "
|
||||
"uninstallation process"
|
||||
msgstr ""
|
||||
|
||||
#: core/jobs/filecopyworker.cpp:60
|
||||
#, kde-format
|
||||
msgid "Could not open %1 for writing"
|
||||
msgstr "Nelze otevřít '%1' pro zápis"
|
||||
|
||||
#: core/jobs/filecopyworker.cpp:63
|
||||
#, kde-format
|
||||
msgid "Could not open %1 for reading"
|
||||
msgstr "Nelze pro čtení otevřít %1"
|
||||
|
||||
#: core/transaction.cpp:126
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"Could not perform an installation of the entry %1 as it does not have any "
|
||||
"downloadable items defined. Please contact the author so they can fix this."
|
||||
msgstr ""
|
||||
|
||||
#: core/transaction.cpp:341
|
||||
#, kde-format
|
||||
msgid "Pick Update Item"
|
||||
msgstr ""
|
||||
|
||||
#: core/transaction.cpp:343
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"Please pick the item from the list below which should be used to apply this "
|
||||
"update. We were unable to identify which item to select, based on the "
|
||||
"original item, which was named %1"
|
||||
msgstr ""
|
||||
|
||||
#: core/transaction.cpp:367
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"We failed to identify a good link for updating %1, and are unable to perform "
|
||||
"the update"
|
||||
msgstr ""
|
||||
|
||||
#: core/transaction.cpp:460
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"Failed to adopt '%1'\n"
|
||||
"%2"
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/categoriesmodel.cpp:52
|
||||
#, kde-format
|
||||
msgctxt ""
|
||||
"The first entry in the category selection list (also the default value)"
|
||||
msgid "All Categories"
|
||||
msgstr "Všechny kategorie"
|
||||
|
||||
#: qtquick/categoriesmodel.cpp:74
|
||||
#, kde-format
|
||||
msgctxt ""
|
||||
"The string passed back in the case the requested category is not known"
|
||||
msgid "Unknown Category"
|
||||
msgstr "Neznámá kategorie"
|
||||
|
||||
#. i18nd("knewstuff6", "Download New %1…").
|
||||
#. *
|
||||
#. @note For the sake of consistency, you should NOT override the text property, just set this one
|
||||
#.
|
||||
#: qtquick/qml/Button.qml:43
|
||||
#, kde-format
|
||||
msgctxt ""
|
||||
"Used to construct the button's label (which will become Download New 'this "
|
||||
"value'…)"
|
||||
msgid "Stuff"
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/qml/Button.qml:44
|
||||
#, kde-format
|
||||
msgid "Download New %1…"
|
||||
msgstr "Stáhnout nové %1…"
|
||||
|
||||
#: qtquick/qml/Dialog.qml:44
|
||||
#, kde-format
|
||||
msgctxt "The dialog title when we know which type of stuff is being requested"
|
||||
msgid "Download New %1"
|
||||
msgstr "Stáhnout nový %1"
|
||||
|
||||
#: qtquick/qml/Dialog.qml:45
|
||||
#, kde-format
|
||||
msgctxt ""
|
||||
"A placeholder title used in the dialog when there is no better title "
|
||||
"available"
|
||||
msgid "Download New Stuff"
|
||||
msgstr "Stáhnout nový obsah"
|
||||
|
||||
#: qtquick/qml/DownloadItemsSheet.qml:35
|
||||
#, kde-format
|
||||
msgid "Pick Your Installation Option"
|
||||
msgstr "Zvolte si možnost instalace"
|
||||
|
||||
#: qtquick/qml/DownloadItemsSheet.qml:47
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"Please select the option you wish to install from the list of downloadable "
|
||||
"items below. If it is unclear which you should chose out of the available "
|
||||
"options, please contact the author of this item and ask that they clarify "
|
||||
"this through the naming of the items."
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/qml/DownloadItemsSheet.qml:88
|
||||
#, kde-format
|
||||
msgid "Install"
|
||||
msgstr "Instalovat"
|
||||
|
||||
#: qtquick/qml/EntryDetails.qml:89
|
||||
#, kde-format
|
||||
msgctxt ""
|
||||
"A passive notification shown when installation of an item is initiated"
|
||||
msgid "Installing %1 from %2"
|
||||
msgstr "Instaluje se %1 z %2"
|
||||
|
||||
#: qtquick/qml/EntryDetails.qml:106
|
||||
#, kde-format
|
||||
msgctxt ""
|
||||
"Combined title for the entry details page made of the name of the entry, and "
|
||||
"the author's name"
|
||||
msgid "%1 by %2"
|
||||
msgstr "%1 od %2"
|
||||
|
||||
#: qtquick/qml/EntryDetails.qml:111
|
||||
#: qtquick/qml/private/entrygriddelegates/BigPreviewDelegate.qml:43
|
||||
#: qtquick/qml/private/entrygriddelegates/TileDelegate.qml:48
|
||||
#, kde-format
|
||||
msgctxt ""
|
||||
"Request installation of this item, available when there is exactly one "
|
||||
"downloadable item"
|
||||
msgid "Install"
|
||||
msgstr "Instalovat"
|
||||
|
||||
#: qtquick/qml/EntryDetails.qml:112
|
||||
#: qtquick/qml/private/entrygriddelegates/BigPreviewDelegate.qml:44
|
||||
#: qtquick/qml/private/entrygriddelegates/TileDelegate.qml:49
|
||||
#, kde-format
|
||||
msgctxt ""
|
||||
"Show installation options, where there is more than one downloadable item"
|
||||
msgid "Install…"
|
||||
msgstr "Instalovat…"
|
||||
|
||||
#: qtquick/qml/EntryDetails.qml:128
|
||||
#: qtquick/qml/private/entrygriddelegates/BigPreviewDelegate.qml:59
|
||||
#: qtquick/qml/private/entrygriddelegates/TileDelegate.qml:64
|
||||
#, kde-format
|
||||
msgctxt "Request updating of this item"
|
||||
msgid "Update"
|
||||
msgstr "Aktualizovat"
|
||||
|
||||
#: qtquick/qml/EntryDetails.qml:135 qtquick/qml/Page.qml:114
|
||||
#, kde-format
|
||||
msgctxt "Request uninstallation of this item"
|
||||
msgid "Uninstall"
|
||||
msgstr "Odinstalovat"
|
||||
|
||||
#: qtquick/qml/EntryDetails.qml:157
|
||||
#, kde-format
|
||||
msgctxt ""
|
||||
"Status message to be shown when the entry is in the process of being "
|
||||
"installed OR uninstalled"
|
||||
msgid "Currently working on the item %1 by %2. Please wait…"
|
||||
msgstr "Aktuálně pracuji na položce %1 z %2. Prosím, počkejte…"
|
||||
|
||||
#: qtquick/qml/EntryDetails.qml:159
|
||||
#, kde-format
|
||||
msgctxt ""
|
||||
"Status message to be shown when the entry is in the process of being updated"
|
||||
msgid "Currently updating the item %1 by %2. Please wait…"
|
||||
msgstr "Aktuálně aktualizuji %1 z %2. Prosím, počkejte…"
|
||||
|
||||
#: qtquick/qml/EntryDetails.qml:161
|
||||
#, kde-format
|
||||
msgctxt ""
|
||||
"Status message which should only be shown when the entry has been given some "
|
||||
"unknown or invalid status."
|
||||
msgid ""
|
||||
"This item is currently in an invalid or unknown state. <a href=\"https://"
|
||||
"bugs.kde.org/enter_bug.cgi?product=frameworks-knewstuff\">Please report this "
|
||||
"to the KDE Community in a bug report</a>."
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/qml/EntryDetails.qml:214
|
||||
#, kde-format
|
||||
msgid "Comments and Reviews:"
|
||||
msgstr "Komentáře a kontrola:"
|
||||
|
||||
#: qtquick/qml/EntryDetails.qml:216
|
||||
#, kde-format
|
||||
msgctxt ""
|
||||
"A link which, when clicked, opens a new sub page with comments (comments "
|
||||
"with or without ratings) for this entry"
|
||||
msgid "%1 Reviews and Comments"
|
||||
msgstr "%1 Hodnocení a komentáře"
|
||||
|
||||
#: qtquick/qml/EntryDetails.qml:222
|
||||
#, kde-format
|
||||
msgid "Rating:"
|
||||
msgstr "Hodnocení:"
|
||||
|
||||
#: qtquick/qml/EntryDetails.qml:227
|
||||
#, kde-format
|
||||
msgid "Homepage:"
|
||||
msgstr "Domácí stránka:"
|
||||
|
||||
#: qtquick/qml/EntryDetails.qml:228
|
||||
#, kde-format
|
||||
msgctxt ""
|
||||
"A link which, when clicked, opens the website associated with the entry "
|
||||
"(this could be either one specific to the project, the author's homepage, or "
|
||||
"any other website they have chosen for the purpose)"
|
||||
msgid "Open the homepage for %1"
|
||||
msgstr "Otevřít domovskou stránku pro %1"
|
||||
|
||||
#: qtquick/qml/EntryDetails.qml:234
|
||||
#, kde-format
|
||||
msgid "How To Donate:"
|
||||
msgstr "Jak přispět:"
|
||||
|
||||
#: qtquick/qml/EntryDetails.qml:235
|
||||
#, kde-format
|
||||
msgctxt ""
|
||||
"A link which, when clicked, opens a website with information on donation in "
|
||||
"support of the entry"
|
||||
msgid "Find out how to donate to this project"
|
||||
msgstr "Jak přispět na tento projekt"
|
||||
|
||||
#: qtquick/qml/Page.qml:140
|
||||
#, kde-kuit-format
|
||||
msgctxt "@info displayed as InlineMessage"
|
||||
msgid ""
|
||||
"Use caution when accessing user-created content shown here, as it may "
|
||||
"contain executable code that hasn't been tested by KDE or your distributor "
|
||||
"for safety, stability, or quality."
|
||||
msgstr ""
|
||||
"Při použití obsahu vytvořeného uživateli zachovávejte opatrnost protože "
|
||||
"nebyl testován KDE ani tvůrcem vaší distribuce zda je bezpečný, správně "
|
||||
"funkční a stabilní."
|
||||
|
||||
#: qtquick/qml/Page.qml:141
|
||||
#, kde-format
|
||||
msgctxt "@info displayed as InlineMessage"
|
||||
msgid ""
|
||||
"User-created content shown here hasn't been tested by KDE or your "
|
||||
"distributor for functionality or quality."
|
||||
msgstr ""
|
||||
"Obsah vytvořený uživateli nebyl testován KDE ani tvůrcem vaší distribuce zda "
|
||||
"je správně funkční a stabilní."
|
||||
|
||||
#: qtquick/qml/Page.qml:172
|
||||
#, kde-format
|
||||
msgctxt "@action:button opening menu similar to combobox, filter list"
|
||||
msgid "All"
|
||||
msgstr "Vše"
|
||||
|
||||
#: qtquick/qml/Page.qml:174
|
||||
#, kde-format
|
||||
msgctxt "@action:button opening menu similar to combobox, filter list"
|
||||
msgid "Installed"
|
||||
msgstr "Nainstalováno"
|
||||
|
||||
#: qtquick/qml/Page.qml:176
|
||||
#, kde-format
|
||||
msgctxt "@action:button opening menu similar to combobox, filter list"
|
||||
msgid "Updateable"
|
||||
msgstr "Aktualizovatelné"
|
||||
|
||||
#: qtquick/qml/Page.qml:186
|
||||
#, kde-format
|
||||
msgctxt ""
|
||||
"@option:radio similar to combobox item, List option which will set the "
|
||||
"filter to show everything"
|
||||
msgid "All"
|
||||
msgstr "Vše"
|
||||
|
||||
#: qtquick/qml/Page.qml:197
|
||||
#, kde-format
|
||||
msgctxt ""
|
||||
"@option:radio similar to combobox item, List option which will set the "
|
||||
"filter so only installed items are shown"
|
||||
msgid "Installed"
|
||||
msgstr "Nainstalováno"
|
||||
|
||||
#: qtquick/qml/Page.qml:208
|
||||
#, kde-format
|
||||
msgctxt ""
|
||||
"@option:radio similar to combobox item, List option which will set the "
|
||||
"filter so only installed items with updates available are shown"
|
||||
msgid "Updateable"
|
||||
msgstr "Aktualizovatelné"
|
||||
|
||||
#: qtquick/qml/Page.qml:221
|
||||
#, kde-format
|
||||
msgctxt "@action:button opening menu similar to combobox, filter list"
|
||||
msgid "Sort: Release date"
|
||||
msgstr "Seřadit: Datum vydání"
|
||||
|
||||
#: qtquick/qml/Page.qml:223
|
||||
#, kde-format
|
||||
msgctxt "@action:button opening menu similar to combobox, filter list"
|
||||
msgid "Sort: Name"
|
||||
msgstr "Seřadit: Název"
|
||||
|
||||
#: qtquick/qml/Page.qml:225
|
||||
#, kde-format
|
||||
msgctxt "@action:button opening menu similar to combobox, filter list"
|
||||
msgid "Sort: Rating"
|
||||
msgstr "Seřadit: Hodnocení"
|
||||
|
||||
#: qtquick/qml/Page.qml:227
|
||||
#, kde-format
|
||||
msgctxt "@action:button opening menu similar to combobox, filter list"
|
||||
msgid "Sort: Downloads"
|
||||
msgstr "Seřadit: Stahování"
|
||||
|
||||
#: qtquick/qml/Page.qml:236
|
||||
#, kde-format
|
||||
msgctxt ""
|
||||
"@option:radio in menu, List option which will set the sort order to be "
|
||||
"alphabetical based on the name"
|
||||
msgid "Name"
|
||||
msgstr "Název"
|
||||
|
||||
#: qtquick/qml/Page.qml:247
|
||||
#, kde-format
|
||||
msgctxt ""
|
||||
"@option:radio in menu, List option which will set the sort order to based on "
|
||||
"user ratings"
|
||||
msgid "Rating"
|
||||
msgstr "Hodnocení"
|
||||
|
||||
#: qtquick/qml/Page.qml:258
|
||||
#, kde-format
|
||||
msgctxt ""
|
||||
"@option:radio similar to combobox item, List option which will set the sort "
|
||||
"order to based on number of downloads"
|
||||
msgid "Downloads"
|
||||
msgstr "Stahování"
|
||||
|
||||
#: qtquick/qml/Page.qml:269
|
||||
#, kde-format
|
||||
msgctxt ""
|
||||
"@option:radio similar to combobox item, List option which will set the sort "
|
||||
"order to based on when items were most recently updated"
|
||||
msgid "Release date"
|
||||
msgstr "Datum vydání"
|
||||
|
||||
#: qtquick/qml/Page.qml:282
|
||||
#, kde-format
|
||||
msgid "Upload…"
|
||||
msgstr "Odeslat…"
|
||||
|
||||
#: qtquick/qml/Page.qml:283
|
||||
#, kde-format
|
||||
msgid "Learn how to add your own hot new stuff to this list"
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/qml/Page.qml:293
|
||||
#, kde-format
|
||||
msgid "Go to…"
|
||||
msgstr "Přejít na…"
|
||||
|
||||
#: qtquick/qml/Page.qml:300 qtquick/qml/Page.qml:309
|
||||
#, kde-format
|
||||
msgid "Search…"
|
||||
msgstr "Hledat…"
|
||||
|
||||
#: qtquick/qml/Page.qml:363
|
||||
#, kde-format
|
||||
msgid "Category:"
|
||||
msgstr "Kategorie:"
|
||||
|
||||
#: qtquick/qml/Page.qml:383
|
||||
#, kde-format
|
||||
msgid "Contribute Your Own…"
|
||||
msgstr "Přispět vlastní…"
|
||||
|
||||
#: qtquick/qml/private/EntryCommentDelegate.qml:103
|
||||
#, kde-format
|
||||
msgctxt ""
|
||||
"Placeholder title for when a comment has no subject, but does have a rating"
|
||||
msgid "<i>(no title)</i>"
|
||||
msgstr "<li>(bez názvu)</li>"
|
||||
|
||||
#: qtquick/qml/private/EntryCommentDelegate.qml:136
|
||||
#, kde-format
|
||||
msgctxt ""
|
||||
"The author label in case the comment was written by the author of the "
|
||||
"content entry the comment is attached to"
|
||||
msgid "%1 <i>(author)</i>"
|
||||
msgstr "%1 <i>(autor)</i>"
|
||||
|
||||
#: qtquick/qml/private/EntryCommentsPage.qml:27
|
||||
#, kde-format
|
||||
msgctxt "Title for the page containing a view of the comments for the entry"
|
||||
msgid "Comments and Reviews for %1"
|
||||
msgstr "Komentáře a kontrola pro %1"
|
||||
|
||||
#: qtquick/qml/private/EntryCommentsPage.qml:30
|
||||
#, kde-format
|
||||
msgctxt "Title for the item which is checked when all comments should be shown"
|
||||
msgid "Show All Comments"
|
||||
msgstr "Zobrazit všechny komentáře"
|
||||
|
||||
#: qtquick/qml/private/EntryCommentsPage.qml:38
|
||||
#, kde-format
|
||||
msgctxt ""
|
||||
"Title for the item which is checked when only comments which are reviews "
|
||||
"should be shown"
|
||||
msgid "Show Reviews Only"
|
||||
msgstr "Zobrazit pouze náhledy"
|
||||
|
||||
#: qtquick/qml/private/EntryCommentsPage.qml:46
|
||||
#, kde-format
|
||||
msgctxt ""
|
||||
"Title for the item which is checked when comments which are reviews, and "
|
||||
"their children should be shown"
|
||||
msgid "Show Reviews and Replies"
|
||||
msgstr "Zobrazit náhledy a odpovědi"
|
||||
|
||||
#: qtquick/qml/private/entrygriddelegates/BigPreviewDelegate.qml:140
|
||||
#: qtquick/qml/private/entrygriddelegates/TileDelegate.qml:185
|
||||
#, kde-format
|
||||
msgctxt "The number of times the item has been downloaded"
|
||||
msgid "%1 downloads"
|
||||
msgstr "%1 stažení"
|
||||
|
||||
#: qtquick/qml/private/entrygriddelegates/BigPreviewDelegate.qml:153
|
||||
#: qtquick/qml/private/entrygriddelegates/TileDelegate.qml:164
|
||||
#, kde-format
|
||||
msgctxt ""
|
||||
"Subheading for the tile view, located immediately underneath the name of the "
|
||||
"item"
|
||||
msgid "By <i>%1</i>"
|
||||
msgstr "Od <i>%1</i>"
|
||||
|
||||
#: qtquick/qml/private/entrygriddelegates/FeedbackOverlay.qml:46
|
||||
#, kde-format
|
||||
msgctxt ""
|
||||
"Label for the busy indicator showing an item is being installed OR "
|
||||
"uninstalled"
|
||||
msgid "Working…"
|
||||
msgstr "Pracuje…"
|
||||
|
||||
#: qtquick/qml/private/entrygriddelegates/FeedbackOverlay.qml:48
|
||||
#, kde-format
|
||||
msgctxt ""
|
||||
"Label for the busy indicator showing an item is in the process of being "
|
||||
"updated"
|
||||
msgid "Updating…"
|
||||
msgstr "Aktualizuji…"
|
||||
|
||||
#: qtquick/qml/private/entrygriddelegates/FeedbackOverlay.qml:50
|
||||
#, kde-format
|
||||
msgctxt ""
|
||||
"Label for the busy indicator which should only be shown when the entry has "
|
||||
"been given some unknown or invalid status."
|
||||
msgid ""
|
||||
"Invalid or unknown state. <a href=\"https://bugs.kde.org/enter_bug.cgi?"
|
||||
"product=frameworks-knewstuff\">Please report this to the KDE Community in a "
|
||||
"bug report</a>."
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/qml/private/entrygriddelegates/FeedbackOverlay.qml:63
|
||||
#, kde-format
|
||||
msgctxt "Label for the busy indicator showing an item is installing"
|
||||
msgid "Installing…"
|
||||
msgstr "Instaluje se…"
|
||||
|
||||
#: qtquick/qml/private/ErrorDisplayer.qml:15
|
||||
#, kde-format
|
||||
msgctxt "Title for a dialog box which shows error messages"
|
||||
msgid "An Error Occurred"
|
||||
msgstr "Nastala chyba"
|
||||
|
||||
#: qtquick/qml/private/ErrorDisplayer.qml:82
|
||||
#, kde-format
|
||||
msgid "Please try again later."
|
||||
msgstr "Prosím, zkuste znovu později."
|
||||
|
||||
# žádné parametry funkce v inspektoru funkcí
|
||||
#: qtquick/qml/private/GridTileDelegate.qml:120
|
||||
#, kde-format
|
||||
msgid "None"
|
||||
msgstr "Nic"
|
||||
|
||||
#: qtquick/qml/private/Rating.qml:81
|
||||
#, kde-format
|
||||
msgctxt ""
|
||||
"A text representation of the rating, shown as a fraction of the max value"
|
||||
msgid "(%1/%2)"
|
||||
msgstr "(%1/%2)"
|
||||
|
||||
#: qtquick/qml/UploadPage.qml:50
|
||||
#, kde-format
|
||||
msgctxt "@knewstuff6"
|
||||
msgid "Upload New Stuff: %1"
|
||||
msgstr "Odeslat nový obsah: %1"
|
||||
|
||||
#: qtquick/qml/UploadPage.qml:111
|
||||
#, kde-format
|
||||
msgctxt ""
|
||||
"A text shown beside a busy indicator suggesting that data is being fetched"
|
||||
msgid "Updating information…"
|
||||
msgstr "Aktualizuji informace…"
|
||||
|
||||
#: qtquick/qml/UploadPage.qml:126
|
||||
#, kde-format
|
||||
msgctxt "The name of the KDE Store"
|
||||
msgid "KDE Store"
|
||||
msgstr "Obchod KDE"
|
||||
|
||||
#: qtquick/qml/UploadPage.qml:132
|
||||
#, kde-format
|
||||
msgctxt "An unnamed provider"
|
||||
msgid "Your Provider"
|
||||
msgstr "Váš poskytovatel"
|
||||
|
||||
#: qtquick/qml/UploadPage.qml:141
|
||||
#, kde-format
|
||||
msgctxt ""
|
||||
"Text for an action which causes the specified website to be opened using the "
|
||||
"user's system default browser"
|
||||
msgid "Open Website: %1"
|
||||
msgstr "Otevřít webovou stránku: %1"
|
||||
|
||||
#: qtquick/qml/UploadPage.qml:149
|
||||
#, kde-format
|
||||
msgctxt ""
|
||||
"Text for an action which will attempt to send an email using the user's "
|
||||
"system default email client"
|
||||
msgid "Send Email To: %1"
|
||||
msgstr "Odeslat e-mail na: %1"
|
||||
|
||||
#: qtquick/qml/UploadPage.qml:159
|
||||
#, kde-format
|
||||
msgctxt "A description of how to upload content to a generic provider"
|
||||
msgid ""
|
||||
"To upload new entries, or to add content to an existing entry on the KDE "
|
||||
"Store, please open the website and log in. Once you have done this, you will "
|
||||
"be able to find the My Products entry in the menu which pops up when you "
|
||||
"click your user icon. Click on this entry to go to the product management "
|
||||
"system, where you can work on your products."
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/qml/UploadPage.qml:160
|
||||
#, kde-format
|
||||
msgctxt "A description of how to upload content to the KDE Store specifically"
|
||||
msgid ""
|
||||
"To upload new entries, or to add content to an existing entry, please open "
|
||||
"the provider's website and follow the instructions there. You will likely "
|
||||
"need to create a user and log in to a product management system, where you "
|
||||
"will need to follow the instructions for how to add. Alternatively, you "
|
||||
"might be required to contact the managers of the site directly to get new "
|
||||
"content added."
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/quickengine.cpp:82 qtquick/quickengine.cpp:168
|
||||
#: qtquick/quickengine.cpp:176
|
||||
#, kde-format
|
||||
msgid "Loading data"
|
||||
msgstr "Načítají se data"
|
||||
|
||||
#: qtquick/quickengine.cpp:172
|
||||
#, kde-format
|
||||
msgid "Installing"
|
||||
msgstr "Instaluje se"
|
||||
|
||||
#: qtquick/quickengine.cpp:227
|
||||
#, kde-format
|
||||
msgctxt ""
|
||||
"An informational message which is shown to inform the user they are not "
|
||||
"authorized to use GetHotNewStuff functionality"
|
||||
msgid ""
|
||||
"You are not authorized to Get Hot New Stuff. If you think this is in error, "
|
||||
"please contact the person in charge of your permissions."
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/searchpresetmodel.cpp:46
|
||||
#, kde-format
|
||||
msgctxt "Knewstuff5"
|
||||
msgid "Back"
|
||||
msgstr "Zpět"
|
||||
|
||||
#: qtquick/searchpresetmodel.cpp:48
|
||||
#, kde-format
|
||||
msgctxt "Knewstuff5"
|
||||
msgid "Popular"
|
||||
msgstr "Populární"
|
||||
|
||||
#: qtquick/searchpresetmodel.cpp:50
|
||||
#, kde-format
|
||||
msgctxt "Knewstuff5"
|
||||
msgid "Featured"
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/searchpresetmodel.cpp:52
|
||||
#, kde-format
|
||||
msgctxt "Knewstuff5"
|
||||
msgid "Restart"
|
||||
msgstr "Restartovat"
|
||||
|
||||
#: qtquick/searchpresetmodel.cpp:54
|
||||
#, kde-format
|
||||
msgctxt "Knewstuff5"
|
||||
msgid "New"
|
||||
msgstr "Nový"
|
||||
|
||||
#: qtquick/searchpresetmodel.cpp:56
|
||||
#, kde-format
|
||||
msgctxt "Knewstuff5"
|
||||
msgid "Home"
|
||||
msgstr "Domů"
|
||||
|
||||
#: qtquick/searchpresetmodel.cpp:58
|
||||
#, kde-format
|
||||
msgctxt "Knewstuff5"
|
||||
msgid "Shelf"
|
||||
msgstr ""
|
||||
|
||||
#: qtquick/searchpresetmodel.cpp:60
|
||||
#, kde-format
|
||||
msgctxt "Knewstuff5"
|
||||
msgid "Up"
|
||||
msgstr "Nahoru"
|
||||
|
||||
#: qtquick/searchpresetmodel.cpp:62
|
||||
#, kde-format
|
||||
msgctxt "Knewstuff5"
|
||||
msgid "Recommended"
|
||||
msgstr "Doporučeno"
|
||||
|
||||
#: qtquick/searchpresetmodel.cpp:64
|
||||
#, kde-format
|
||||
msgctxt "Knewstuff5"
|
||||
msgid "Subscriptions"
|
||||
msgstr "Přihlášení"
|
||||
|
||||
#: qtquick/searchpresetmodel.cpp:66
|
||||
#, kde-format
|
||||
msgctxt "Knewstuff5"
|
||||
msgid "All Entries"
|
||||
msgstr "Všechny položky"
|
||||
|
||||
#: qtquick/searchpresetmodel.cpp:70
|
||||
#, kde-format
|
||||
msgctxt "Knewstuff5"
|
||||
msgid "Search Preset: %1"
|
||||
msgstr "Hledat přednastavení: %1"
|
||||
|
||||
#: tools/knewstuff-dialog/main.cpp:30
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"The KNSRC file you want to show. If none is passed, you will be presented "
|
||||
"with a dialog which lets you switch between all the config files installed "
|
||||
"into the systemwide knsrc file location"
|
||||
msgstr ""
|
||||
|
||||
#: tools/knewstuff-dialog/main.cpp:34
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"A kns url to show information from. The format for a kns url is kns://"
|
||||
"knsrcfile/providerid/entryid\n"
|
||||
"'knsrcfile'\n"
|
||||
"is the name of a knsrc file as might be passed directly through this tool's "
|
||||
"knsrcfile argument\n"
|
||||
"'providerid'\n"
|
||||
"is the hostname of the provider the entry should exist on\n"
|
||||
"'entryid'\n"
|
||||
"is the unique ID of an entry found in the provider specified by the knsrc "
|
||||
"file.\n"
|
||||
" An example of such a url is kns://sddmtheme.knsrc/api.kde-look.org/2059021"
|
||||
msgstr ""
|
||||
|
||||
#: widgets/action.cpp:28 widgets/button.cpp:70
|
||||
#, kde-format
|
||||
msgctxt "@action"
|
||||
msgid "Download New Stuff…"
|
||||
msgstr "Stáhnout nový obsah…"
|
||||