mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 14:08:03 -06:00
Compare commits
108 Commits
master
...
release-4.
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
abb854a1e6 | ||
|
|
4ee17a73d0 | ||
|
|
faf6e82274 | ||
|
|
c08ec1ac5e | ||
|
|
cd0b6d9a43 | ||
|
|
b8f1142abe | ||
|
|
78859415d6 | ||
|
|
ef92c17192 | ||
|
|
22f3abc4b5 | ||
|
|
a56e6294c1 | ||
|
|
77909e0093 | ||
|
|
2c2bb14b2a | ||
|
|
73c8b77464 | ||
|
|
042238db87 | ||
|
|
6e267f8e81 | ||
|
|
fdc64d9b38 | ||
|
|
0b42425db5 | ||
|
|
e5d7738127 | ||
|
|
422489e2a1 | ||
|
|
7de983b4e5 | ||
|
|
e4e55d2a80 | ||
|
|
926012ce71 | ||
|
|
487eb554c9 | ||
|
|
5a96e1fc7a | ||
|
|
2fe698ee60 | ||
|
|
177ac32a5e | ||
|
|
5f34d1555b | ||
|
|
7cfe68f46c | ||
|
|
f94f4d2391 | ||
|
|
73b18d7ef3 | ||
|
|
817e9c4747 | ||
|
|
28844eff44 | ||
|
|
389664213b | ||
|
|
953b6fd6f8 | ||
|
|
9b4f3fcbf8 | ||
|
|
80743180be | ||
|
|
b2847b2381 | ||
|
|
eb657ec032 | ||
|
|
fc2be601df | ||
|
|
5786c7ff11 | ||
|
|
4a183dd968 | ||
|
|
7c10dba10c | ||
|
|
894446d308 | ||
|
|
47e9c5ac08 | ||
|
|
7f47ac11f1 | ||
|
|
67b17891fa | ||
|
|
dd5b7ba05b | ||
|
|
61aa4d9f1c | ||
|
|
6e924b668e | ||
|
|
618ce33fa0 | ||
|
|
ac413c76b9 | ||
|
|
f266184514 | ||
|
|
8c48bf4a70 | ||
|
|
8bee69c9fc | ||
|
|
5876886345 | ||
|
|
0392bfce3c | ||
|
|
c66cf43d6a | ||
|
|
7515afc058 | ||
|
|
5fcfcc901e | ||
|
|
1728c16580 | ||
|
|
d3f46452a9 | ||
|
|
7092a98c93 | ||
|
|
8e19f66b4f | ||
|
|
b6ab2abf3f | ||
|
|
3edaaa30c9 | ||
|
|
38efff461e | ||
|
|
2179148b8d | ||
|
|
f92c4c0a40 | ||
|
|
1e7f792dbb | ||
|
|
1d4af505c2 | ||
|
|
baa609b713 | ||
|
|
bc20cf9ad7 | ||
|
|
7d3ecfa9a6 | ||
|
|
88a90ed7d4 | ||
|
|
3e540b3f51 | ||
|
|
87e1661bd5 | ||
|
|
f82a4051af | ||
|
|
5730e917a1 | ||
|
|
5e7d7c2ef0 | ||
|
|
2b6e1953d7 | ||
|
|
6fc50f4169 | ||
|
|
40d7a53695 | ||
|
|
7e89893454 | ||
|
|
d83f09e731 | ||
|
|
36575b225d | ||
|
|
fe0ea843e0 | ||
|
|
a8911f8136 | ||
|
|
c5ef1a0207 | ||
|
|
102d628c0a | ||
|
|
6ea3acdaea | ||
|
|
621578353d | ||
|
|
ca776c3036 | ||
|
|
9d27eb3b57 | ||
|
|
9171dffe97 | ||
|
|
f919d4f5bf | ||
|
|
59afc7c520 | ||
|
|
f02b65b866 | ||
|
|
891c471160 | ||
|
|
f49f5ba9a1 | ||
|
|
539b3b7c3e | ||
|
|
83ce285138 | ||
|
|
260e48b705 | ||
|
|
f09ee1b398 | ||
|
|
e3c2266611 | ||
|
|
53fb6220c5 | ||
|
|
34e6b73374 | ||
|
|
b925cffddb | ||
|
|
3595626eff |
1
.github/ISSUE_TEMPLATE.md
vendored
1
.github/ISSUE_TEMPLATE.md
vendored
@@ -17,4 +17,3 @@
|
|||||||
|
|
||||||
### Extra info(if any)
|
### Extra info(if any)
|
||||||
(type here)
|
(type here)
|
||||||
|
|
||||||
|
|||||||
34
.github/workflows/ci.yaml
vendored
34
.github/workflows/ci.yaml
vendored
@@ -12,12 +12,12 @@ on:
|
|||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
|
|
||||||
env:
|
env:
|
||||||
# Qt: 5.15.0
|
# Qt: 5.15.1
|
||||||
# libtorrent: RC_1_2 HEAD, 1.2.10
|
# libtorrent: RC_1_2 HEAD, 1.2.11
|
||||||
VCPKG_COMMIT: 32eccc18191fbb57b159784a1724d2d00613ae82
|
VCPKG_COMMIT: 133051b793486ef14e67e9d1f48c9cfe64dc127e
|
||||||
VCPKG_DEST_MACOS: /Users/runner/qbt_tools/vcpkg
|
VCPKG_DEST_MACOS: /Users/runner/qbt_tools/vcpkg
|
||||||
VCPKG_DEST_WIN: C:\qbt_tools\vcpkg
|
VCPKG_DEST_WIN: C:\qbt_tools\vcpkg
|
||||||
UBUNTU_LIBTORRENT_VERSION: libtorrent-1.2.10
|
LIBTORRENT_VERSION_TAG: v1.2.11
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
@@ -38,7 +38,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: checkout repository
|
- name: checkout repository
|
||||||
uses: actions/checkout@v2.3.2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: install all build dependencies except libtorrent from Ubuntu repos
|
- name: install all build dependencies except libtorrent from Ubuntu repos
|
||||||
run: |
|
run: |
|
||||||
@@ -52,7 +52,7 @@ jobs:
|
|||||||
- name: install libtorrent from source
|
- name: install libtorrent from source
|
||||||
run: |
|
run: |
|
||||||
git clone https://github.com/arvidn/libtorrent && cd libtorrent
|
git clone https://github.com/arvidn/libtorrent && cd libtorrent
|
||||||
git checkout ${{ env.UBUNTU_LIBTORRENT_VERSION }}
|
git checkout ${{ env.LIBTORRENT_VERSION_TAG }}
|
||||||
cmake -B cmake-build-dir -G "Ninja" \
|
cmake -B cmake-build-dir -G "Ninja" \
|
||||||
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||||
-Ddeprecated-functions=OFF \
|
-Ddeprecated-functions=OFF \
|
||||||
@@ -70,7 +70,7 @@ jobs:
|
|||||||
cmake --build build
|
cmake --build build
|
||||||
|
|
||||||
- name: upload artifact as zip
|
- name: upload artifact as zip
|
||||||
uses: actions/upload-artifact@v2.1.3
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: qBittorrent-CI-Ubuntu_${{ matrix.os }}-${{ matrix.qbt_gui }}
|
name: qBittorrent-CI-Ubuntu_${{ matrix.os }}-${{ matrix.qbt_gui }}
|
||||||
path: |
|
path: |
|
||||||
@@ -92,7 +92,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: checkout repository
|
- name: checkout repository
|
||||||
uses: actions/checkout@v2.3.2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
# - ninja is needed for building qBittorrent (because it's preferrable, not a hard requirement)
|
# - ninja is needed for building qBittorrent (because it's preferrable, not a hard requirement)
|
||||||
- name: install additional required packages with chocolatey
|
- name: install additional required packages with chocolatey
|
||||||
@@ -100,7 +100,7 @@ jobs:
|
|||||||
choco install ninja
|
choco install ninja
|
||||||
|
|
||||||
- name: setup vcpkg (cached, if possible)
|
- name: setup vcpkg (cached, if possible)
|
||||||
uses: lukka/run-vcpkg@v3.3
|
uses: lukka/run-vcpkg@v4
|
||||||
with:
|
with:
|
||||||
vcpkgDirectory: ${{ env.VCPKG_DEST_WIN }}
|
vcpkgDirectory: ${{ env.VCPKG_DEST_WIN }}
|
||||||
vcpkgGitCommitId: ${{ env.VCPKG_COMMIT }}
|
vcpkgGitCommitId: ${{ env.VCPKG_COMMIT }}
|
||||||
@@ -134,7 +134,7 @@ jobs:
|
|||||||
|
|
||||||
# NOTE: this is necessary to correctly find and use cl.exe with the Ninja generator for now
|
# NOTE: this is necessary to correctly find and use cl.exe with the Ninja generator for now
|
||||||
- name: setup devcmd
|
- name: setup devcmd
|
||||||
uses: ilammy/msvc-dev-cmd@v1.3.0
|
uses: ilammy/msvc-dev-cmd@v1
|
||||||
|
|
||||||
- name: build qBittorrent
|
- name: build qBittorrent
|
||||||
shell: cmd
|
shell: cmd
|
||||||
@@ -149,7 +149,7 @@ jobs:
|
|||||||
cmake --build build
|
cmake --build build
|
||||||
|
|
||||||
- name: upload artifact as zip
|
- name: upload artifact as zip
|
||||||
uses: actions/upload-artifact@v2.1.3
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: qBittorrent-CI-Windows_x64-static-release
|
name: qBittorrent-CI-Windows_x64-static-release
|
||||||
path: |
|
path: |
|
||||||
@@ -175,17 +175,17 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: checkout repository
|
- name: checkout repository
|
||||||
uses: actions/checkout@v2.3.2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
# - ninja is needed for building qBittorrent (because it's preferrable, not a hard requirement)
|
# - ninja is needed for building qBittorrent (because it's preferrable, not a hard requirement)
|
||||||
# - pkg-config is needed for some vcpkg installations
|
# - automake is needed for the installation the vcpkg installation of fontconfig, a dependency of qt5-base
|
||||||
- name: install additional required packages with homebrew
|
- name: install additional required packages with homebrew
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
brew install ninja pkg-config
|
brew install automake ninja
|
||||||
|
|
||||||
- name: setup vcpkg (cached, if possible)
|
- name: setup vcpkg (cached, if possible)
|
||||||
uses: lukka/run-vcpkg@v3.3
|
uses: lukka/run-vcpkg@v4
|
||||||
with:
|
with:
|
||||||
vcpkgDirectory: ${{ env.VCPKG_DEST_MACOS }}
|
vcpkgDirectory: ${{ env.VCPKG_DEST_MACOS }}
|
||||||
vcpkgGitCommitId: ${{ env.VCPKG_COMMIT }}
|
vcpkgGitCommitId: ${{ env.VCPKG_COMMIT }}
|
||||||
@@ -197,7 +197,7 @@ jobs:
|
|||||||
Copy-Item ${{ env.RUNVCPKG_VCPKG_ROOT }}/triplets/x64-osx.cmake `
|
Copy-Item ${{ env.RUNVCPKG_VCPKG_ROOT }}/triplets/x64-osx.cmake `
|
||||||
${{ github.workspace }}/triplets_overlay/x64-osx-release.cmake
|
${{ github.workspace }}/triplets_overlay/x64-osx-release.cmake
|
||||||
Add-Content ${{ github.workspace }}/triplets_overlay/x64-osx-release.cmake `
|
Add-Content ${{ github.workspace }}/triplets_overlay/x64-osx-release.cmake `
|
||||||
-Value "set(VCPKG_BUILD_TYPE release)"
|
-Value "set(VCPKG_BUILD_TYPE release)","set(VCPKG_OSX_DEPLOYMENT_TARGET 10.15)"
|
||||||
|
|
||||||
# NOTE: Avoids a libtorrent ABI issue. See https://github.com/arvidn/libtorrent/issues/4965
|
# NOTE: Avoids a libtorrent ABI issue. See https://github.com/arvidn/libtorrent/issues/4965
|
||||||
- name: force AppleClang to compile libtorrent with C++14
|
- name: force AppleClang to compile libtorrent with C++14
|
||||||
@@ -234,7 +234,7 @@ jobs:
|
|||||||
cmake --build build
|
cmake --build build
|
||||||
|
|
||||||
- name: upload artifact as zip
|
- name: upload artifact as zip
|
||||||
uses: actions/upload-artifact@v2.1.3
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: qBittorrent-CI-macOS_x64-static-release_${{ matrix.qbt_gui }}
|
name: qBittorrent-CI-macOS_x64-static-release_${{ matrix.qbt_gui }}
|
||||||
path: |
|
path: |
|
||||||
|
|||||||
83
.github/workflows/file_health.sh
vendored
Executable file
83
.github/workflows/file_health.sh
vendored
Executable file
@@ -0,0 +1,83 @@
|
|||||||
|
#!/usr/bin/env zsh
|
||||||
|
|
||||||
|
set -o nounset
|
||||||
|
|
||||||
|
# Assumption: file names don't contain `:` (for the `cut` invocation).
|
||||||
|
# Safe to assume, as such a character in a filename would cause trouble on Windows, a platform we support
|
||||||
|
|
||||||
|
# any regression turn this non-zero
|
||||||
|
regressions=0
|
||||||
|
|
||||||
|
# exclusions (these are just grep extended regular expressions to match against paths relative to the root of the repository)
|
||||||
|
exclusions_nonutf8='(.*(7z|gif|ic(ns|o)|png|qm|zip))'
|
||||||
|
exclusions_bom='src/base/unicodestrings.h'
|
||||||
|
exclusions_tw='(*.ts)|src/webui/www/private/scripts/lib/mootools-1.2-more.js'
|
||||||
|
exclusions_no_lf='(*.ts)|(.*svg)|compile_commands.json|src/webui/www/private/scripts/lib/mootools-1.2-(core-yc.js|more.js)'
|
||||||
|
|
||||||
|
echo -e "\n*** Detect files not encoded in UTF-8 ***\n"
|
||||||
|
|
||||||
|
find . -path ./build -prune -false -o -path ./.git -prune -false -o -type f -exec file --mime {} \; | sort \
|
||||||
|
| grep -v -e "charset=us-ascii" -e "charset=utf-8" | cut -d ":" -f 1 \
|
||||||
|
| grep -E -v -e "${exclusions_nonutf8}" \
|
||||||
|
| tee >(echo -e "--> Files not encoded in UTF-8: found" "$(wc -l < /dev/stdin)" "regression(s)\n") \
|
||||||
|
| xargs -I my_input -0 bash -c 'echo "my_input"; test "$(echo -n "my_input" | wc -l)" -eq 0'
|
||||||
|
regressions=$((regressions+$?))
|
||||||
|
|
||||||
|
echo -e "\n*** Detect files encoded in UTF-8 with BOM ***\n"
|
||||||
|
|
||||||
|
grep --exclude-dir={.git,build} -rIl $'\xEF\xBB\xBF' | sort \
|
||||||
|
| grep -E -v -e "${exclusions_bom}" \
|
||||||
|
| tee >(echo -e "--> Files encoded in UTF-8 with BOM: found" "$(wc -l < /dev/stdin)" "regression(s)\n") \
|
||||||
|
| xargs -I my_input -0 bash -c 'echo "my_input"; test "$(echo -n "my_input" | wc -l)" -eq 0'
|
||||||
|
regressions=$((regressions+$?))
|
||||||
|
|
||||||
|
echo -e "\n*** Detect usage of CR byte ***\n"
|
||||||
|
|
||||||
|
grep --exclude-dir={.git,build} -rIlU $'\x0D' | sort \
|
||||||
|
| tee >(echo -e "--> Usage of CR byte: found" "$(wc -l < /dev/stdin)" "regression(s)\n") \
|
||||||
|
| xargs -I my_input -0 bash -c 'echo "my_input"; test "$(echo -n "my_input" | wc -l)" -eq 0'
|
||||||
|
regressions=$((regressions+$?))
|
||||||
|
|
||||||
|
echo -e "\n*** Detect trailing whitespace in lines ***\n"
|
||||||
|
|
||||||
|
grep --exclude-dir={.git,build} -rIl "[[:blank:]]$" | sort \
|
||||||
|
| grep -E -v -e "${exclusions_tw}" \
|
||||||
|
| tee >(echo -e "--> Trailing whitespace in lines: found" "$(wc -l < /dev/stdin)" "regression(s)\n") \
|
||||||
|
| xargs -I my_input -0 bash -c 'echo "my_input"; test "$(echo -n "my_input" | wc -l)" -eq 0';
|
||||||
|
regressions=$((regressions+$?))
|
||||||
|
|
||||||
|
echo -e "\n*** Detect too many trailing newlines ***\n"
|
||||||
|
|
||||||
|
find . -path ./build -prune -false -o -path ./.git -prune -false -o -type f -exec file --mime {} \; | sort \
|
||||||
|
| grep -e "charset=us-ascii" -e "charset=utf-8" | cut -d ":" -f 1 \
|
||||||
|
| xargs -L1 -I my_input bash -c 'test "$(tail -q -c2 "my_input" | hexdump -C | grep "0a 0a")" && echo "my_input"' \
|
||||||
|
| tee >(echo -e "--> Too many trailing newlines: found" "$(wc -l < /dev/stdin)" "regression(s)\n") \
|
||||||
|
| xargs -I my_input -0 bash -c 'echo "my_input"; test "$(echo -n "my_input" | wc -l)" -eq 0'
|
||||||
|
regressions=$((regressions+$?))
|
||||||
|
|
||||||
|
echo -e "\n*** Detect no trailing newline ***\n"
|
||||||
|
|
||||||
|
find . -path ./build -prune -false -o -path ./.git -prune -false -o -type f -exec file --mime {} \; | sort \
|
||||||
|
| grep -e "charset=us-ascii" -e "charset=utf-8" | cut -d ":" -f 1 \
|
||||||
|
| grep -E -v -e "${exclusions_no_lf}" \
|
||||||
|
| xargs -L1 -I my_input bash -c 'test "$(tail -q -c1 "my_input" | hexdump -C | grep "0a")" || echo "my_input"' \
|
||||||
|
| tee >(echo -e "--> No trailing newline: found" "$(wc -l < /dev/stdin)" "regression(s)\n") \
|
||||||
|
| xargs -I my_input -0 bash -c 'echo "my_input"; test "$(echo -n "my_input" | wc -l)" -eq 0'
|
||||||
|
regressions=$((regressions+$?))
|
||||||
|
|
||||||
|
echo -e "\n*** Detect translation closing tag in new line ***\n"
|
||||||
|
|
||||||
|
grep --exclude-dir={.git,build} -nri "^</translation>" | sort \
|
||||||
|
| cut -d ":" -f 1,2 \
|
||||||
|
| tee >(echo -e "--> Translation closing tag in new line: found" "$(wc -l < /dev/stdin)" "regression(s)\n") \
|
||||||
|
| xargs -I my_input -0 bash -c 'echo "my_input"; test "$(echo -n "my_input" | wc -l)" -eq 0'
|
||||||
|
regressions=$((regressions+$?))
|
||||||
|
|
||||||
|
if [ "$regressions" -ne 0 ]; then
|
||||||
|
regressions=1
|
||||||
|
echo "\nFile health regressions found. Please fix them (or add them as exclusions)."
|
||||||
|
else
|
||||||
|
echo "All OK, no file health regressions found."
|
||||||
|
fi
|
||||||
|
|
||||||
|
exit $regressions;
|
||||||
27
.github/workflows/file_health.yaml
vendored
Normal file
27
.github/workflows/file_health.yaml
vendored
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
name: GitHub Actions file health check
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ '**' ]
|
||||||
|
pull_request:
|
||||||
|
types: [edited, opened, reopened, synchronize]
|
||||||
|
branches: [ '**' ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
check_file_health:
|
||||||
|
name: Check file health
|
||||||
|
|
||||||
|
runs-on: ubuntu-20.04
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: checkout repository
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: install zsh
|
||||||
|
run: |
|
||||||
|
sudo apt update
|
||||||
|
sudo apt install zsh
|
||||||
|
|
||||||
|
- name: run check file health script
|
||||||
|
run: |
|
||||||
|
./.github/workflows/file_health.sh
|
||||||
55
.travis.yml
55
.travis.yml
@@ -4,7 +4,8 @@ os:
|
|||||||
- linux
|
- linux
|
||||||
- osx
|
- osx
|
||||||
|
|
||||||
dist: bionic
|
dist: focal
|
||||||
|
osx_image: xcode12.2
|
||||||
|
|
||||||
env:
|
env:
|
||||||
matrix:
|
matrix:
|
||||||
@@ -16,15 +17,10 @@ env:
|
|||||||
- secure: "OI9CUjj4lTb0HwwIZU5PbECU3hLlAL6KC8KsbwohG8/O3j5fLcnmDsK4Ad9us5cC39sS11Jcd1kDP2qRcCuST/glVNhLkcjKkiQerOfd5nQ/qL4JYfz/1mfP5mdpz9jHKzpLUIG+TXkbSTjP6VVmsb5KPT+3pKEdRFZB+Pu9+J8="
|
- secure: "OI9CUjj4lTb0HwwIZU5PbECU3hLlAL6KC8KsbwohG8/O3j5fLcnmDsK4Ad9us5cC39sS11Jcd1kDP2qRcCuST/glVNhLkcjKkiQerOfd5nQ/qL4JYfz/1mfP5mdpz9jHKzpLUIG+TXkbSTjP6VVmsb5KPT+3pKEdRFZB+Pu9+J8="
|
||||||
- coverity_branch: coverity_scan
|
- coverity_branch: coverity_scan
|
||||||
|
|
||||||
matrix:
|
jobs:
|
||||||
allow_failures:
|
include:
|
||||||
- env: libt_branch=RC_1_2 gui=true build_system=cmake
|
- env: libt_branch=RC_2_0 gui=true build_system=qmake
|
||||||
- env: libt_branch=RC_1_2 gui=false build_system=cmake
|
os: linux
|
||||||
|
|
||||||
branches:
|
|
||||||
except:
|
|
||||||
- search_encoding_windows
|
|
||||||
- v2_9_x
|
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
email:
|
email:
|
||||||
@@ -49,8 +45,7 @@ addons:
|
|||||||
apt:
|
apt:
|
||||||
sources:
|
sources:
|
||||||
# sources list: https://github.com/travis-ci/apt-source-safelist/blob/master/ubuntu.json
|
# sources list: https://github.com/travis-ci/apt-source-safelist/blob/master/ubuntu.json
|
||||||
- sourceline: 'ppa:qbittorrent-team/qbt-libtorrent-travisci'
|
- sourceline: 'deb https://apt.kitware.com/ubuntu/ focal main'
|
||||||
- sourceline: 'deb https://apt.kitware.com/ubuntu/ bionic main'
|
|
||||||
key_url: 'https://apt.kitware.com/keys/kitware-archive-latest.asc'
|
key_url: 'https://apt.kitware.com/keys/kitware-archive-latest.asc'
|
||||||
packages:
|
packages:
|
||||||
# packages list: https://github.com/travis-ci/apt-package-safelist/blob/master/ubuntu-trusty
|
# packages list: https://github.com/travis-ci/apt-package-safelist/blob/master/ubuntu-trusty
|
||||||
@@ -79,6 +74,8 @@ before_install:
|
|||||||
# TravisCI installs its own cmake to another location which ovverides other installations
|
# TravisCI installs its own cmake to another location which ovverides other installations
|
||||||
# if they don't call the new binary directly
|
# if they don't call the new binary directly
|
||||||
alias cmake="/usr/bin/cmake"
|
alias cmake="/usr/bin/cmake"
|
||||||
|
|
||||||
|
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/lib"
|
||||||
fi
|
fi
|
||||||
- |
|
- |
|
||||||
if [ "$TRAVIS_OS_NAME" = "osx" ]; then
|
if [ "$TRAVIS_OS_NAME" = "osx" ]; then
|
||||||
@@ -124,20 +121,34 @@ install:
|
|||||||
ccache -V && ccache --show-stats && ccache --zero-stats
|
ccache -V && ccache --show-stats && ccache --zero-stats
|
||||||
fi
|
fi
|
||||||
- |
|
- |
|
||||||
if [ "$libt_branch" = "RC_1_2" ] && [ "$TRAVIS_OS_NAME" = "linux" ]; then
|
if [ "$libt_branch" = "RC_1_2" ]; then
|
||||||
# Will install latest 1.2.x daily build from the PPA
|
|
||||||
sudo apt-get -y install libtorrent-rasterbar-dev
|
|
||||||
fi
|
|
||||||
- |
|
|
||||||
if [ "$libt_branch" = "RC_1_2" ] && [ "$TRAVIS_OS_NAME" = "osx" ]; then
|
|
||||||
# building libtorrent manually should be faster than using the official bottle
|
|
||||||
# because the bottle will also pull in a lot of updated dependencies and prolong the overall time
|
|
||||||
pushd "$HOME"
|
pushd "$HOME"
|
||||||
git clone --single-branch --branch RC_1_2 https://github.com/arvidn/libtorrent.git
|
git clone --single-branch --branch RC_1_2 https://github.com/arvidn/libtorrent.git
|
||||||
cd libtorrent
|
cd libtorrent
|
||||||
git checkout tags/v1.2.10
|
git checkout tags/v1.2.11
|
||||||
|
|
||||||
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_STANDARD=14 -Ddeprecated-functions=OFF -DOPENSSL_ROOT_DIR="$openssl_root_path" ./
|
cmake \
|
||||||
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
|
-DCMAKE_CXX_STANDARD=14 \
|
||||||
|
-Ddeprecated-functions=OFF \
|
||||||
|
-DOPENSSL_ROOT_DIR="$openssl_root_path" \
|
||||||
|
./
|
||||||
|
make
|
||||||
|
sudo make install
|
||||||
|
popd
|
||||||
|
elif [ "$libt_branch" = "RC_2_0" ]; then
|
||||||
|
pushd "$HOME"
|
||||||
|
git clone --single-branch --branch RC_2_0 https://github.com/arvidn/libtorrent.git
|
||||||
|
cd libtorrent
|
||||||
|
git checkout tags/v2.0.1
|
||||||
|
git submodule update --init --recursive
|
||||||
|
|
||||||
|
cmake \
|
||||||
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
|
-DCMAKE_CXX_STANDARD=14 \
|
||||||
|
-Ddeprecated-functions=ON \
|
||||||
|
-DOPENSSL_ROOT_DIR="$openssl_root_path" \
|
||||||
|
./
|
||||||
make
|
make
|
||||||
sudo make install
|
sudo make install
|
||||||
popd
|
popd
|
||||||
|
|||||||
2
AUTHORS
2
AUTHORS
@@ -87,7 +87,7 @@ Images Authors:
|
|||||||
|
|
||||||
* file: src/icons/oxygen/checked.png
|
* file: src/icons/oxygen/checked.png
|
||||||
copyright: Victor Buinsky <allok.victor@gmail.com>
|
copyright: Victor Buinsky <allok.victor@gmail.com>
|
||||||
|
|
||||||
* file: src/icons/skin/ratio.png
|
* file: src/icons/skin/ratio.png
|
||||||
copyright: Fatcow Web Hosting
|
copyright: Fatcow Web Hosting
|
||||||
license: Creative Commons Attribution 3.0 License
|
license: Creative Commons Attribution 3.0 License
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 3.16 FATAL_ERROR) # Policies <= CMP0097 default t
|
|||||||
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/Modules)
|
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/Modules)
|
||||||
|
|
||||||
project(qBittorrent
|
project(qBittorrent
|
||||||
VERSION 4.3.0.0
|
VERSION 4.3.2.0
|
||||||
DESCRIPTION "The qBittorrent BitTorrent client"
|
DESCRIPTION "The qBittorrent BitTorrent client"
|
||||||
HOMEPAGE_URL "https://www.qbittorrent.org/"
|
HOMEPAGE_URL "https://www.qbittorrent.org/"
|
||||||
LANGUAGES CXX
|
LANGUAGES CXX
|
||||||
@@ -11,14 +11,15 @@ project(qBittorrent
|
|||||||
|
|
||||||
# use CONFIG mode first in find_package
|
# use CONFIG mode first in find_package
|
||||||
set(CMAKE_FIND_PACKAGE_PREFER_CONFIG ON)
|
set(CMAKE_FIND_PACKAGE_PREFER_CONFIG ON)
|
||||||
# version requirements
|
# version requirements - older vesions may work, but you are on your own
|
||||||
set(requiredBoostVersion 1.40)
|
set(minBoostVersion 1.65)
|
||||||
set(requiredQtVersion 5.9.0)
|
set(minQtVersion 5.9.5)
|
||||||
set(requiredOpenSSLVersion 1.0)
|
set(minOpenSSLVersion 1.1.1)
|
||||||
set(requiredLibtorrentVersion 1.2.0)
|
set(minLibtorrentVersion 1.2.11)
|
||||||
set(requiredZlibVersion 1.2.5.2)
|
set(minZlibVersion 1.2.11)
|
||||||
|
|
||||||
# features (some are platform-specific)
|
# features (some are platform-specific)
|
||||||
|
include(CheckCXXSourceCompiles) # TODO: migrate to CheckSourceCompiles in CMake >= 3.19
|
||||||
include(FeatureSummary)
|
include(FeatureSummary)
|
||||||
include(FeatureOptionsSetup)
|
include(FeatureOptionsSetup)
|
||||||
feature_option(STACKTRACE "Enable stacktraces" ON)
|
feature_option(STACKTRACE "Enable stacktraces" ON)
|
||||||
@@ -34,6 +35,18 @@ if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
|||||||
"Install systemd service file to a directory manually overridable with Systemd_SERVICES_INSTALL_DIR"
|
"Install systemd service file to a directory manually overridable with Systemd_SERVICES_INSTALL_DIR"
|
||||||
OFF "NOT GUI" OFF
|
OFF "NOT GUI" OFF
|
||||||
)
|
)
|
||||||
|
if (STACKTRACE)
|
||||||
|
check_cxx_source_compiles(
|
||||||
|
"#include <execinfo.h>
|
||||||
|
int main(){return 0;}"
|
||||||
|
QBITTORRENT_HAS_EXECINFO_H
|
||||||
|
)
|
||||||
|
if (NOT QBITTORRENT_HAS_EXECINFO_H)
|
||||||
|
message(FATAL_ERROR "execinfo.h header file not found.\n"
|
||||||
|
"Please either disable the STACKTRACE feature or use a libc that has this header file, such as glibc (GNU libc)."
|
||||||
|
)
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
elseif (MSVC)
|
elseif (MSVC)
|
||||||
feature_option(MSVC_RUNTIME_DYNAMIC "Use MSVC dynamic runtime library (-MD) instead of static (-MT)" ON)
|
feature_option(MSVC_RUNTIME_DYNAMIC "Use MSVC dynamic runtime library (-MD) instead of static (-MT)" ON)
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
@@ -1,12 +1,14 @@
|
|||||||
All new code **must** follow the following coding guidelines.
|
# Coding Guidelines
|
||||||
If you make changes in a file that still uses another coding style, make sure that you follow these guidelines for your changes.
|
|
||||||
|
All new code **must** follow the following coding guidelines. \
|
||||||
|
If you make changes in a file that still uses another coding style, make sure that you follow these guidelines for your changes. \
|
||||||
For programming languages other than C++ (e.g. JavaScript) used in this repository and submodules, unless otherwise specified, coding guidelines listed here applies as much as possible.
|
For programming languages other than C++ (e.g. JavaScript) used in this repository and submodules, unless otherwise specified, coding guidelines listed here applies as much as possible.
|
||||||
|
|
||||||
**Note 1:** I will not take your head if you forget and use another style. However, most probably the request will be delayed until you fix your coding style.
|
**Note 1:** I will not take your head if you forget and use another style. However, most probably the request will be delayed until you fix your coding style. \
|
||||||
**Note 2:** You can use the `uncrustify` program/tool to clean up any source file. Use it with the `uncrustify.cfg` configuration file found in the root folder.
|
**Note 2:** You can use the `uncrustify` program/tool to clean up any source file. Use it with the `uncrustify.cfg` configuration file found in the root folder. \
|
||||||
**Note 3:** There is also a style for QtCreator but it doesn't cover all cases. In QtCreator `Tools->Options...->C++->Code Style->Import...` and choose the `codingStyleQtCreator.xml` file found in the root folder.
|
**Note 3:** There is also a style for QtCreator but it doesn't cover all cases. In QtCreator `Tools->Options...->C++->Code Style->Import...` and choose the `codingStyleQtCreator.xml` file found in the root folder.
|
||||||
|
|
||||||
### Table Of Contents
|
## Table Of Contents
|
||||||
|
|
||||||
* [1. New lines & curly braces](#1-new-lines--curly-braces)
|
* [1. New lines & curly braces](#1-new-lines--curly-braces)
|
||||||
* [a. Function blocks, class/struct definitions, namespaces](#a-function-blocks-classstruct-definitions-namespaces)
|
* [a. Function blocks, class/struct definitions, namespaces](#a-function-blocks-classstruct-definitions-namespaces)
|
||||||
@@ -29,11 +31,13 @@ For programming languages other than C++ (e.g. JavaScript) used in this reposito
|
|||||||
* [9. Misc](#9-misc)
|
* [9. Misc](#9-misc)
|
||||||
* [10. Git commit message](#10-git-commit-message)
|
* [10. Git commit message](#10-git-commit-message)
|
||||||
* [11. Not covered above](#11-not-covered-above)
|
* [11. Not covered above](#11-not-covered-above)
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
### 1. New lines & curly braces ###
|
## 1. New lines & curly braces
|
||||||
|
|
||||||
|
### a. Function blocks, class/struct definitions, namespaces
|
||||||
|
|
||||||
#### a. Function blocks, class/struct definitions, namespaces ####
|
|
||||||
```c++
|
```c++
|
||||||
int myFunction(int a)
|
int myFunction(int a)
|
||||||
{
|
{
|
||||||
@@ -43,7 +47,7 @@ int myFunction(int a)
|
|||||||
void myFunction() {} // empty body
|
void myFunction() {} // empty body
|
||||||
|
|
||||||
MyClass::MyClass(int *parent)
|
MyClass::MyClass(int *parent)
|
||||||
: m_parent(parent)
|
: m_parent {parent}
|
||||||
{
|
{
|
||||||
// initialize
|
// initialize
|
||||||
}
|
}
|
||||||
@@ -79,17 +83,21 @@ namespace Name
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
#### b. Other code blocks ####
|
### b. Other code blocks
|
||||||
|
|
||||||
```c++
|
```c++
|
||||||
if (condition) {
|
if (condition)
|
||||||
|
{
|
||||||
// code
|
// code
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int a = 0; a < b; ++b) {
|
for (int a = 0; a < b; ++b)
|
||||||
|
{
|
||||||
// code
|
// code
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (a) {
|
switch (a)
|
||||||
|
{
|
||||||
case 1:
|
case 1:
|
||||||
// blah
|
// blah
|
||||||
case 2:
|
case 2:
|
||||||
@@ -97,17 +105,25 @@ case 2:
|
|||||||
default:
|
default:
|
||||||
// blah
|
// blah
|
||||||
}
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
// code
|
||||||
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
#### c. Blocks in switch's case labels ####
|
### c. Blocks in switch's case labels
|
||||||
|
|
||||||
```c++
|
```c++
|
||||||
switch (var) {
|
switch (var)
|
||||||
case 1: {
|
{
|
||||||
|
case 1:
|
||||||
|
{
|
||||||
// declare local variables
|
// declare local variables
|
||||||
// code
|
// code
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 2: {
|
case 2:
|
||||||
|
{
|
||||||
// declare local variables
|
// declare local variables
|
||||||
// code
|
// code
|
||||||
}
|
}
|
||||||
@@ -117,22 +133,29 @@ default:
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
#### d. If-else statements ####
|
### d. If-else statements
|
||||||
|
|
||||||
The `else if`/`else` must be on their own lines:
|
The `else if`/`else` must be on their own lines:
|
||||||
|
|
||||||
```c++
|
```c++
|
||||||
if (condition) {
|
if (condition)
|
||||||
|
{
|
||||||
// code
|
// code
|
||||||
}
|
}
|
||||||
else if (condition) {
|
else if (condition)
|
||||||
|
{
|
||||||
// code
|
// code
|
||||||
}
|
}
|
||||||
else {
|
else
|
||||||
|
{
|
||||||
// code
|
// code
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
#### e. Single statement if blocks ####
|
### e. Single statement if blocks
|
||||||
|
|
||||||
Most single statement if blocks should look like this:
|
Most single statement if blocks should look like this:
|
||||||
|
|
||||||
```c++
|
```c++
|
||||||
if (condition)
|
if (condition)
|
||||||
a = a + b;
|
a = a + b;
|
||||||
@@ -141,19 +164,23 @@ if (condition)
|
|||||||
One acceptable exception to this can be `return`, `break` or `continue` statements,
|
One acceptable exception to this can be `return`, `break` or `continue` statements,
|
||||||
provided that the test condition isn't very long and its body statement occupies only one line.
|
provided that the test condition isn't very long and its body statement occupies only one line.
|
||||||
However you can still choose to use the first rule.
|
However you can still choose to use the first rule.
|
||||||
|
|
||||||
```c++
|
```c++
|
||||||
if (a > 0) return;
|
if (a > 0) return;
|
||||||
|
|
||||||
while (p) {
|
while (p)
|
||||||
|
{
|
||||||
// ...
|
// ...
|
||||||
if (!b) continue;
|
if (!b) continue;
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
#### f. Acceptable conditions to omit braces ####
|
### f. Acceptable conditions to omit braces
|
||||||
|
|
||||||
When the conditional statement in `if`/`else` has only one line and its body occupy only one line,
|
When the conditional statement in `if`/`else` has only one line and its body occupy only one line,
|
||||||
this also applies to loops statements.
|
this also applies to loops statements. \
|
||||||
Notice that for a series of `if - else` branches, if one branch needs braces then all branches must add braces.
|
Notice that for a series of `if - else` branches, if one branch needs braces then all branches must add braces.
|
||||||
|
|
||||||
```c++
|
```c++
|
||||||
if (a < b) // conditional statement
|
if (a < b) // conditional statement
|
||||||
do(a); // body
|
do(a); // body
|
||||||
@@ -165,21 +192,27 @@ else if (a > b)
|
|||||||
else
|
else
|
||||||
do(c);
|
do(c);
|
||||||
|
|
||||||
if (a < b) {
|
if (a < b)
|
||||||
|
{
|
||||||
do(a);
|
do(a);
|
||||||
}
|
}
|
||||||
else if (a > b) { // curly braces required here, then all branches should also add them
|
else if (a > b)
|
||||||
|
{
|
||||||
|
// curly braces required here, then all branches should also add them
|
||||||
do(b);
|
do(b);
|
||||||
do(d);
|
do(d);
|
||||||
}
|
}
|
||||||
else {
|
else
|
||||||
|
{
|
||||||
do(c);
|
do(c);
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
#### g. Brace enclosed initializers ####
|
### g. Brace enclosed initializers
|
||||||
Unlike single-line functions, you must not insert spaces between the brackets and concluded expressions.<br/>
|
|
||||||
|
Unlike single-line functions, you must not insert spaces between the brackets and concluded expressions. \
|
||||||
But you must insert a space between the variable name and initializer.
|
But you must insert a space between the variable name and initializer.
|
||||||
|
|
||||||
```c++
|
```c++
|
||||||
Class obj {}; // empty
|
Class obj {}; // empty
|
||||||
Class obj {expr};
|
Class obj {expr};
|
||||||
@@ -187,28 +220,33 @@ Class obj {expr1, /*...,*/ exprN};
|
|||||||
QVariantMap map {{"key1", 5}, {"key2", 10}};
|
QVariantMap map {{"key1", 5}, {"key2", 10}};
|
||||||
```
|
```
|
||||||
|
|
||||||
### 2. Indentation ###
|
## 2. Indentation
|
||||||
|
|
||||||
4 spaces.
|
4 spaces.
|
||||||
|
|
||||||
### 3. File encoding and line endings ###
|
## 3. File encoding and line endings
|
||||||
|
|
||||||
UTF-8 and Unix-like line ending (LF). Unless some platform specific files need other encodings/line endings.
|
UTF-8 and Unix-like line ending (LF). Unless some platform specific files need other encodings/line endings.
|
||||||
|
|
||||||
### 4. Initialization lists ###
|
## 4. Initialization lists
|
||||||
|
|
||||||
Initialization lists should be vertical. This will allow for more easily readable diffs. The initialization colon should be indented and in its own line along with first argument. The rest of the arguments should be indented too and have the comma prepended.
|
Initialization lists should be vertical. This will allow for more easily readable diffs. The initialization colon should be indented and in its own line along with first argument. The rest of the arguments should be indented too and have the comma prepended.
|
||||||
|
|
||||||
```c++
|
```c++
|
||||||
myClass::myClass(int a, int b, int c, int d)
|
myClass::myClass(int a, int b, int c, int d)
|
||||||
: m_a(a)
|
: m_a {a}
|
||||||
, m_b(b)
|
, m_b {b}
|
||||||
, m_c(c)
|
, m_c {c}
|
||||||
, m_d(d)
|
, m_d {d}
|
||||||
{
|
{
|
||||||
// code
|
// code
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
### 5. Enums ###
|
## 5. Enums
|
||||||
|
|
||||||
Enums should be vertical. This will allow for more easily readable diffs. The members should be indented.
|
Enums should be vertical. This will allow for more easily readable diffs. The members should be indented.
|
||||||
|
|
||||||
```c++
|
```c++
|
||||||
enum Days
|
enum Days
|
||||||
{
|
{
|
||||||
@@ -222,11 +260,14 @@ enum Days
|
|||||||
};
|
};
|
||||||
```
|
```
|
||||||
|
|
||||||
### 6. Names ###
|
## 6. Names
|
||||||
|
|
||||||
All names should be camelCased.
|
All names should be camelCased.
|
||||||
|
|
||||||
#### a. Type names and namespaces ####
|
### a. Type names and namespaces
|
||||||
|
|
||||||
Type names and namespaces start with Upper case letter (except POD types).
|
Type names and namespaces start with Upper case letter (except POD types).
|
||||||
|
|
||||||
```c++
|
```c++
|
||||||
class ClassName {};
|
class ClassName {};
|
||||||
|
|
||||||
@@ -241,14 +282,18 @@ namespace NamespaceName
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
#### b. Variable names ####
|
### b. Variable names
|
||||||
|
|
||||||
Variable names start with lower case letter.
|
Variable names start with lower case letter.
|
||||||
|
|
||||||
```c++
|
```c++
|
||||||
int myVar;
|
int myVar;
|
||||||
```
|
```
|
||||||
|
|
||||||
#### c. Private member variable names ####
|
### c. Private member variable names
|
||||||
|
|
||||||
Private member variable names start with lower case letter and should have ```m_``` prefix.
|
Private member variable names start with lower case letter and should have ```m_``` prefix.
|
||||||
|
|
||||||
```c++
|
```c++
|
||||||
class MyClass
|
class MyClass
|
||||||
{
|
{
|
||||||
@@ -256,23 +301,26 @@ class MyClass
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
### 7. Header inclusion order ###
|
## 7. Header inclusion order
|
||||||
The headers should be placed in the following group order:
|
|
||||||
1. Module header (in .cpp)
|
|
||||||
2. C++ Standard Library headers
|
|
||||||
3. System headers
|
|
||||||
4. Boost library headers
|
|
||||||
5. Libtorrent headers
|
|
||||||
6. Qt headers
|
|
||||||
7. qBittorrent's own headers, starting from the *base* headers.
|
|
||||||
|
|
||||||
The headers should be ordered alphabetically within each group.
|
The headers should be placed in the following group order:
|
||||||
If there are conditionals for the same header group, then put them at the bottom of the respective group.
|
|
||||||
|
1. Module header (in .cpp)
|
||||||
|
2. C++ Standard Library headers
|
||||||
|
3. System headers
|
||||||
|
4. Boost library headers
|
||||||
|
5. Libtorrent headers
|
||||||
|
6. Qt headers
|
||||||
|
7. qBittorrent's own headers, starting from the *base* headers.
|
||||||
|
|
||||||
|
The headers should be ordered alphabetically within each group. \
|
||||||
|
If there are conditionals for the same header group, then put them at the bottom of the respective group. \
|
||||||
If there are conditionals that contain headers from several different header groups, then put them above the "qBittorrent's own headers" group.
|
If there are conditionals that contain headers from several different header groups, then put them above the "qBittorrent's own headers" group.
|
||||||
|
|
||||||
One exception is the header containing the library version (for example, QtGlobal), this particular header isn't constrained by the aforementioned order.
|
One exception is the header containing the library version (for example, QtGlobal), this particular header isn't constrained by the aforementioned order.
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
|
|
||||||
```c++
|
```c++
|
||||||
// file: examplewidget.cpp
|
// file: examplewidget.cpp
|
||||||
|
|
||||||
@@ -322,8 +370,10 @@ Example:
|
|||||||
#include "ui_examplewidget.h"
|
#include "ui_examplewidget.h"
|
||||||
```
|
```
|
||||||
|
|
||||||
### 8. Include guard ###
|
## 8. Include guard
|
||||||
`#pragma once` should be used instead of "include guard" in new code:
|
|
||||||
|
`#pragma once` must be used instead of a "classic include guard":
|
||||||
|
|
||||||
```c++
|
```c++
|
||||||
// examplewidget.h
|
// examplewidget.h
|
||||||
|
|
||||||
@@ -338,75 +388,77 @@ class ExampleWidget : public QWidget
|
|||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### 9. Misc ###
|
## 9. Misc
|
||||||
|
|
||||||
* Line breaks for long lines with operation:
|
* Line breaks for long lines with operation:
|
||||||
|
|
||||||
```c++
|
```c++
|
||||||
a += "b"
|
a += "b"
|
||||||
+ "c"
|
+ "c"
|
||||||
+ "d";
|
+ "d";
|
||||||
```
|
```
|
||||||
|
|
||||||
* **auto** keyword
|
* **auto** keyword
|
||||||
|
|
||||||
We allow the use of the **auto** keyword only where it is strictly necessary
|
We allow the use of the **auto** keyword only where it is strictly necessary (for example, to declare a lambda object, etc.), or where it **enhances** the readability of the code. \
|
||||||
(for example, to declare a lambda object, etc.), or where it **enhances** the readability of the code.
|
Declarations for which one can gather enough information about the object interface (type) from its name or the usage pattern (an iterator or a loop variable are good examples of clear patterns) or the right part of the expression nicely fit here.
|
||||||
Declarations for which one can gather enough information about the object interface (type) from its name
|
|
||||||
or the usage pattern (an iterator or a loop variable are good examples of clear patterns)
|
When weighing whether to use an auto-typed variable please think about potential reviewers of your code, who will read it as a plain diff (on github.com, for instance). \
|
||||||
or the right part of the expression nicely fit here.<br/>
|
Please make sure that such reviewers can understand the code completely and without excessive effort.
|
||||||
<br/>
|
|
||||||
When weighing whether to use an auto-typed variable please think about potential reviewers of your code,
|
Some valid use cases:
|
||||||
who will read it as a plain diff (on github.com, for instance). Please make sure that such reviewers can
|
|
||||||
understand the code completely and without excessive effort.<br/>
|
* Container iteration and casts:
|
||||||
<br/>
|
|
||||||
Some valid use cases:
|
```c++
|
||||||
```c++
|
template <typename List>
|
||||||
template <typename List>
|
void doSomethingWithList(const List &list)
|
||||||
void doSomethingWithList(const List &list)
|
{
|
||||||
{
|
foreach (const auto &item, list)
|
||||||
foreach (const auto &item, list) {
|
{
|
||||||
// we don't know item type here so we use 'auto' keyword
|
// we don't know item type here so we use 'auto' keyword
|
||||||
// do something with item
|
// do something with item
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
for (auto it = container.begin(), end = container.end(); it != end; ++it) {
|
for (auto it = container.begin(), end = container.end(); it != end; ++it)
|
||||||
// we don't need to know the exact iterator type,
|
{
|
||||||
// because all iterators have the same interface
|
// we don't need to know the exact iterator type,
|
||||||
}
|
// because all iterators have the same interface
|
||||||
|
}
|
||||||
|
|
||||||
auto spinBox = static_cast<QSpinBox*>(sender());
|
auto spinBox = static_cast<QSpinBox*>(sender());
|
||||||
// we know the variable type based on the right-hand expression
|
// we know the variable type based on the right-hand expression
|
||||||
```
|
```
|
||||||
|
|
||||||
* Notice the spaces in the following specific situations:
|
* Notice the spaces in the following specific situations:
|
||||||
```c++
|
|
||||||
// Before and after the assignment and other binary (and ternary) operators there should be a space
|
|
||||||
// There should not be a space between increment/decrement and its operand
|
|
||||||
a += 20;
|
|
||||||
a = (b <= MAX_B ? b : MAX_B);
|
|
||||||
++a;
|
|
||||||
--b;
|
|
||||||
|
|
||||||
for (int a = 0; a < b; ++b) {
|
```c++
|
||||||
}
|
// Before and after the assignment and other binary (and ternary) operators there should be a space
|
||||||
|
// There should not be a space between increment/decrement and its operand
|
||||||
// Range-based for loop, spaces before and after the colon
|
a += 20;
|
||||||
for (auto i : container) {
|
a = (b <= MAX_B ? b : MAX_B);
|
||||||
}
|
++a;
|
||||||
|
--b;
|
||||||
// Derived class, spaces before and after the colon
|
for (int a = 0; a < b; ++b)
|
||||||
class Derived : public Base
|
{
|
||||||
{
|
}
|
||||||
};
|
// Range-based for loop, spaces before and after the colon
|
||||||
```
|
for (auto i : container)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
// Derived class, spaces before and after the colon
|
||||||
|
class Derived : public Base
|
||||||
|
{
|
||||||
|
};
|
||||||
|
```
|
||||||
|
|
||||||
* Prefer pre-increment, pre-decrement operators
|
* Prefer pre-increment, pre-decrement operators
|
||||||
```c++
|
|
||||||
++i, --j; // Yes
|
```c++
|
||||||
i++, j--; // No
|
++i, --j; // Yes
|
||||||
```
|
i++, j--; // No
|
||||||
|
```
|
||||||
|
|
||||||
* private/public/protected must not be indented
|
* private/public/protected must not be indented
|
||||||
|
|
||||||
@@ -414,7 +466,8 @@ i++, j--; // No
|
|||||||
|
|
||||||
* Method definitions aren't allowed in header files
|
* Method definitions aren't allowed in header files
|
||||||
|
|
||||||
### 10. Git commit message ###
|
## 10. Git commit message
|
||||||
|
|
||||||
1. Limit the subject line to 50 characters. Subject should contain only the very essence of the changes (you should avoid extra details and internals)
|
1. Limit the subject line to 50 characters. Subject should contain only the very essence of the changes (you should avoid extra details and internals)
|
||||||
2. Separate subject from body with a blank line
|
2. Separate subject from body with a blank line
|
||||||
3. Capitalize the subject line
|
3. Capitalize the subject line
|
||||||
@@ -424,6 +477,7 @@ i++, j--; // No
|
|||||||
7. Use the body to explain what and why vs. how
|
7. Use the body to explain what and why vs. how
|
||||||
8. If commit fixes a reported issue, mention it in the message body (e.g. `Closes #4134.`)
|
8. If commit fixes a reported issue, mention it in the message body (e.g. `Closes #4134.`)
|
||||||
|
|
||||||
### 11. Not covered above ###
|
## 11. Not covered above
|
||||||
If something isn't covered above, just follow the same style the file you are editing has.
|
|
||||||
|
If something isn't covered above, just follow the same style the file you are editing has. \
|
||||||
*This guide is not exhaustive and the style for a particular piece of code not specified here will be determined by project members on code review.*
|
*This guide is not exhaustive and the style for a particular piece of code not specified here will be determined by project members on code review.*
|
||||||
|
|||||||
125
Changelog
125
Changelog
@@ -1,4 +1,99 @@
|
|||||||
Unreleased - sledgehammer999 <sledgehammer999@qbittorrent.org> - v4.3.0
|
Sun Dec 27 2020 - sledgehammer999 <sledgehammer999@qbittorrent.org> - v4.3.2
|
||||||
|
- FEATURE: Allow to add root folder to torrent content (glassez)
|
||||||
|
- FEATURE: "HTTPS tracker validation" option is available on all platforms with latest libtorrent (Chocobo1)
|
||||||
|
- FEATURE: Option for supporting internationalized domain names (IDNs) (Chocobo1)
|
||||||
|
- BUGFIX: Fix broken sorting on some columns (Chocobo1)
|
||||||
|
- BUGFIX: Fix availability per file value (Chocobo1)
|
||||||
|
- BUGFIX: Fix status of torrents without metadata (sledgehammer999)
|
||||||
|
- BUGFIX: Don't try to remove folders for a torrent without metadata (sledgehammer999)
|
||||||
|
- BUGFIX: Lift upper limit of "Max concurrent HTTP announces" option (Chocobo1)
|
||||||
|
- BUGFIX: Add links to libtorrent documentation (Chocobo1)
|
||||||
|
- BUGFIX: Move "embedded tracker" options to qbt section (Chocobo1)
|
||||||
|
- BUGFIX: Properly handle "Append extension" option changing (glassez)
|
||||||
|
- BUGFIX: Correctly save paused torrent state (glassez)
|
||||||
|
- BUGFIX: Fix bug of "move storage job" can be performed multiple times (glassez)
|
||||||
|
- WEBUI: Add ability to use 'shift+delete' to delete torrents (Chocobo1)
|
||||||
|
- WEBUI: Allow to attach tags while adding torrents (Jesse Chan)
|
||||||
|
- WEBUI: Bump version to 2.6.2 (Jesse Chan)
|
||||||
|
- WEBUI: Remove unnecessary restriction on input length (Chocobo1)
|
||||||
|
- WINDOWS: NSIS: Update Russian translation (Andrei Stepanov)
|
||||||
|
- WINDOWS: NSIS: Update Italian translation (Alessandro Simonelli)
|
||||||
|
- OTHER: Drop support for building with libtorrent < 1.2.11 (Vladimir Golovnev)
|
||||||
|
|
||||||
|
Wed Nov 25 2020 - sledgehammer999 <sledgehammer999@qbittorrent.org> - v4.3.1
|
||||||
|
- FEATURE: Allow progress bar styling from custom themes (jagannatharjun)
|
||||||
|
- FEATURE: Allow adding torrents using "Paste" key sequence (Chocobo1)
|
||||||
|
- FEATURE: Add Latgalian translation (sledgehammer999)
|
||||||
|
- BUGFIX: Prevent resume data to be saved for removed torrent (glassez)
|
||||||
|
- BUGFIX: Clarify connection protocol choice label (FranciscoPombal)
|
||||||
|
- BUGFIX: Fix crash when clicked outside the table of torrent content view (jagannatharjun)
|
||||||
|
- BUGFIX: Don't resume "paused" torrents when put into "checking" state by libtorrent (glassez)
|
||||||
|
- BUGFIX: Fix torrent state calculation (glassez)
|
||||||
|
- BUGFIX: Align integer data to right in torrent content view (jagannatharjun)
|
||||||
|
- WEBUI: Place WebUI RSS description in sandboxed iframe (Sepro)
|
||||||
|
- WEBUI: Avoid settings being reset via WebAPI (Chocobo1)
|
||||||
|
- WEBUI: Fix toggling advanced option in WebUI (thalieht)
|
||||||
|
- WEBUI: Expose contentPath in WebAPI torrents/info (FranciscoPombal)
|
||||||
|
- WEBUI: Fix the issue that IPv6 address can't be banned (brvphoenix)
|
||||||
|
- RSS: Fix confusion in date format description (Thomas De Rocker)
|
||||||
|
- WINDOWS: Update dutch.nsi (Thomas De Rocker)
|
||||||
|
- LINUX: Update .desktop file translations (sledgehammer999)
|
||||||
|
|
||||||
|
Thu Oct 22 2020 - sledgehammer999 <sledgehammer999@qbittorrent.org> - v4.3.0.1
|
||||||
|
- WINDOWS: NSIS: Update Italian translation (bovirus)
|
||||||
|
|
||||||
|
Sun Oct 18 2020 - sledgehammer999 <sledgehammer999@qbittorrent.org> - v4.3.0
|
||||||
|
- FEATURE: Many UI elements colors are themeable now (jagannatharjun)
|
||||||
|
- FEATURE: Allow changing GUI icons from theme bundles (jagannatharjun)
|
||||||
|
- FEATURE: Notify user when torrent moving finished (glassez)
|
||||||
|
- FEATURE: Shortcut CTRL + I opens Statistics window (LoopsGod)
|
||||||
|
- FEATURE: Add RSS functionality in Web UI (Sepro)
|
||||||
|
- FEATURE: Drop ".unwanted folder" feature (glassez)
|
||||||
|
- FEATURE: Expose libtorrent peer_turnover, max_concurrent_http_announces, no_connect_privileged_ports settings (Sophist, an0n666, NotTsunami)
|
||||||
|
- BUGFIX: Fix typo in Options dialog (Andrei Stepanov)
|
||||||
|
- BUGFIX: Remove "requires restart" from network interface settings (an0n666)
|
||||||
|
- BUGFIX: Rename "Create subfolder" to "Keep top-level folder" (thalieht)
|
||||||
|
- BUGFIX: Show tooltip for some properties in transfer list (Nick Korotysh)
|
||||||
|
- BUGFIX: Fix calculation of torrent current state (glassez)
|
||||||
|
- BUGFIX: Improve detecting completed files when adding, rechecking or moving a torrent (glassez)
|
||||||
|
- BUGFIX: Fixed broken announce logic in embedded tracker causing failures in some cases (FranciscoPombal)
|
||||||
|
- BUGFIX: Disable checkbox if torrent doesn't have root folder (thalieht)
|
||||||
|
- BUGFIX: Update country flag icons with upstream (Chocobo1)
|
||||||
|
- BUGFIX: Private torrent: If tracker entry is edited clear old peer list. Also don't allow user to manually add peers. (an0n666)
|
||||||
|
- BUGFIX: Fix large strings not visible in log widget (jagannatharjun)
|
||||||
|
- BUGFIX: Disable edit action in Peer list widget (Chocobo1)
|
||||||
|
- BUGFIX: Add a scroll area to torrent creator dialog (Ernesto Castellotti)
|
||||||
|
- BUGFIX: Content tab: Open double-clicked folder regardless on which column the click happens (Chocobo1)
|
||||||
|
- BUGFIX: "Open containing folder" on a folder now opens it in its parent folder (Chocobo1)
|
||||||
|
- BUGFIX: Fix GeoDB download in systems with non-C locales (FranciscoPombal)
|
||||||
|
- BUGFIX: Fix peer blocked message (FranciscoPombal)
|
||||||
|
- BUGFIX: Make more robust the banning of selected peers from the list (NotTsunami)
|
||||||
|
- BUGFIX: Use toned green color for downloading pieces in Pieces bar (jagannatharjun)
|
||||||
|
- BUGFIX: Correctly fill whole width of speed graph (jagannatharjun)
|
||||||
|
- BUGFIX: Fix impossible speed in speed graph (jagannatharjun)
|
||||||
|
- WEBUI: Hide additional search filters on small screens (Thomas Piccirello)
|
||||||
|
- WEBUI: Shrink search bar on small screens (Thomas Piccirello)
|
||||||
|
- WEBUI: Fix search categories only working in English (Thomas Piccirello)
|
||||||
|
- WEBUI: Add Trackers section to sidebar (Thomas Piccirello)
|
||||||
|
- WEBUI: Fix Enter button behavior in textarea (Tom Piccirello)
|
||||||
|
- WEBUI: Fix wrong file renaming selection range (MR)
|
||||||
|
- WEBUI: Preselect "Default save path" in watched folders (thalieht)
|
||||||
|
- WEBUI: Fix banning peers (brvphoenix)
|
||||||
|
- WEBUI: Fix seeding time checkbox placement (Chocobo1)
|
||||||
|
- WEBUI: Bump Web API version (Thomas Piccirello)
|
||||||
|
- RSS: Fix renaming RSS autodownload rule (glassez)
|
||||||
|
- RSS: Fix RSS article is not marked as "read" when torrent is downloaded (glassez)
|
||||||
|
- SEARCH: Update minimum Python version to 3.5.0 (ngosang)
|
||||||
|
- SEARCH: Make middle-click close search tabs (Will Da Silva)
|
||||||
|
- WINDOWS: NSIS: Update Dutch translation (Thomas De Rocker)
|
||||||
|
- WINDOWS: NSIS: Change the installers uninstallation question to clear confusion (an0n666)
|
||||||
|
- LINUX: Fix typo in systemd service file (Shane Allgeier)
|
||||||
|
- LINUX: Don't use HTML in tray tooltip (thalieht)
|
||||||
|
- LINUX: Don't create 'data' subdirectory in XDG_DATA_HOME (lbilli)
|
||||||
|
- LINUX/MACOS: Add HTTPS tracker certificate validation option (NotTsunami)
|
||||||
|
- OTHER: Many CMake improvements (FranciscoPombal)
|
||||||
|
- OTHER: Support for libtorrent 1.1.x is dropped (Chocobo1)
|
||||||
|
- OTHER: Many code cleanups and improvements (FranciscoPombal, Chocobo1, glassez)
|
||||||
|
|
||||||
Tue Dec 03 2019 - sledgehammer999 <sledgehammer999@qbittorrent.org> - v4.2.0
|
Tue Dec 03 2019 - sledgehammer999 <sledgehammer999@qbittorrent.org> - v4.2.0
|
||||||
- FEATURE: Libtorrent 1.2.x series are supported now (glassez)
|
- FEATURE: Libtorrent 1.2.x series are supported now (glassez)
|
||||||
@@ -31,7 +126,7 @@ Tue Dec 03 2019 - sledgehammer999 <sledgehammer999@qbittorrent.org> - v4.2.0
|
|||||||
- BUGFIX: Remove the max half-open connections option (thalieht)
|
- BUGFIX: Remove the max half-open connections option (thalieht)
|
||||||
- BUGFIX: Center align the section labels in advanced settings (thalieht)
|
- BUGFIX: Center align the section labels in advanced settings (thalieht)
|
||||||
- BUGFIX: Add documentation links to some advanced settings (thalieht)
|
- BUGFIX: Add documentation links to some advanced settings (thalieht)
|
||||||
- BUGFIX: Impove DownloadManager code (glassez)
|
- BUGFIX: Improve DownloadManager code (glassez)
|
||||||
- BUGFIX: Limit DownloadHandler max redirection to 20 (Chocobo1)
|
- BUGFIX: Limit DownloadHandler max redirection to 20 (Chocobo1)
|
||||||
- BUGFIX: Log DownloadManager SSL errors (Chocobo1)
|
- BUGFIX: Log DownloadManager SSL errors (Chocobo1)
|
||||||
- BUGFIX: Force recheck multiple torrents one by one (glassez)
|
- BUGFIX: Force recheck multiple torrents one by one (glassez)
|
||||||
@@ -262,10 +357,10 @@ Tue Dec 03 2019 - sledgehammer999 <sledgehammer999@qbittorrent.org> - v4.2.0
|
|||||||
- BUGFIX: Restore torrent in two steps (glassez)
|
- BUGFIX: Restore torrent in two steps (glassez)
|
||||||
- BUGFIX: Improve scaling of speed graphs (dzmat)
|
- BUGFIX: Improve scaling of speed graphs (dzmat)
|
||||||
- BUGFIX: Add isNetworkFileSystem() detection on Windows. This allows network mounts to be monitored correctly by polling timer. (Chocobo1)
|
- BUGFIX: Add isNetworkFileSystem() detection on Windows. This allows network mounts to be monitored correctly by polling timer. (Chocobo1)
|
||||||
- BUGFIX: Reduce horizontal graphs resolution. Improves perfomance. (dzmat)
|
- BUGFIX: Reduce horizontal graphs resolution. Improves performance. (dzmat)
|
||||||
- BUGFIX: Don't recheck just checked torrent (mj-p, glassez)
|
- BUGFIX: Don't recheck just checked torrent (mj-p, glassez)
|
||||||
- BUGFIX: Add SMB2 magic number (Chocobo1)
|
- BUGFIX: Add SMB2 magic number (Chocobo1)
|
||||||
- BUGFIX: Restore startup perfomance to v4.1.2 times. Needs at least libtorrent 1.1.10 (sledgehammer999)
|
- BUGFIX: Restore startup performance to v4.1.2 times. Needs at least libtorrent 1.1.10 (sledgehammer999)
|
||||||
- BUGFIX: Make strings actually translatable (sledgehammer999)
|
- BUGFIX: Make strings actually translatable (sledgehammer999)
|
||||||
- WEBUI: Handle downloading .torrent file as success (Tom Piccirello)
|
- WEBUI: Handle downloading .torrent file as success (Tom Piccirello)
|
||||||
- WEBUI: Fix Alternative Web UI to be available (glassez)
|
- WEBUI: Fix Alternative Web UI to be available (glassez)
|
||||||
@@ -336,7 +431,7 @@ Tue Dec 03 2019 - sledgehammer999 <sledgehammer999@qbittorrent.org> - v4.2.0
|
|||||||
- BUGFIX: Improve torrent initialization (glassez)
|
- BUGFIX: Improve torrent initialization (glassez)
|
||||||
- BUGFIX: Save resume data on torrent change events (glassez)
|
- BUGFIX: Save resume data on torrent change events (glassez)
|
||||||
- BUGFIX: Increase default resume data save interval (Chocobo1)
|
- BUGFIX: Increase default resume data save interval (Chocobo1)
|
||||||
- BUGFIX: Work around crash when procesing recursive download. Closes #9086 (Chocobo1)
|
- BUGFIX: Work around crash when processing recursive download. Closes #9086 (Chocobo1)
|
||||||
- BUGFIX: Reduce queries to python version (Chocobo1)
|
- BUGFIX: Reduce queries to python version (Chocobo1)
|
||||||
- BUGFIX: Disable certain mouse wheel events in Options dialog (Chocobo1)
|
- BUGFIX: Disable certain mouse wheel events in Options dialog (Chocobo1)
|
||||||
- WEBUI: Send all rechecks in one request (Thomas Piccirello)
|
- WEBUI: Send all rechecks in one request (Thomas Piccirello)
|
||||||
@@ -823,7 +918,7 @@ Tue Dec 03 2019 - sledgehammer999 <sledgehammer999@qbittorrent.org> - v4.2.0
|
|||||||
- COSMETIC: Change RSS view layout to horizontal. Closes #5920. (Chocobo1)
|
- COSMETIC: Change RSS view layout to horizontal. Closes #5920. (Chocobo1)
|
||||||
- OSX: Fix crash on exit using Qt4. (Yez Ezey)
|
- OSX: Fix crash on exit using Qt4. (Yez Ezey)
|
||||||
- OSX: Change QSettings to IniFormat on macOS. Closes #5770 #5808. (Yez Ezey)
|
- OSX: Change QSettings to IniFormat on macOS. Closes #5770 #5808. (Yez Ezey)
|
||||||
- LINUX: Workaround a Qt5 bug which results in a flood of network interface change singals. (Eugene Shalygin)
|
- LINUX: Workaround a Qt5 bug which results in a flood of network interface change signals. (Eugene Shalygin)
|
||||||
- OTHER: Turkish translation for installer. (Burak Yavuz)
|
- OTHER: Turkish translation for installer. (Burak Yavuz)
|
||||||
- OTHER: Update portugueseBR for installer. (DaRKSoM)
|
- OTHER: Update portugueseBR for installer. (DaRKSoM)
|
||||||
- OTHER: Update portuguese for installer. (EdwardLinux)
|
- OTHER: Update portuguese for installer. (EdwardLinux)
|
||||||
@@ -840,7 +935,7 @@ Tue Dec 03 2019 - sledgehammer999 <sledgehammer999@qbittorrent.org> - v4.2.0
|
|||||||
- SEARCH: Remove KickassTorrents search engine (ngosang)
|
- SEARCH: Remove KickassTorrents search engine (ngosang)
|
||||||
- SEARCH: Remove BTDigg search engine (ngosang)
|
- SEARCH: Remove BTDigg search engine (ngosang)
|
||||||
- SEARCH: Update Torrentz search engine (ngosang)
|
- SEARCH: Update Torrentz search engine (ngosang)
|
||||||
|
|
||||||
* Wed Jul 20 2016 - sledgehammer999 <sledgehammer999@qbittorrent.org> - v3.3.6
|
* Wed Jul 20 2016 - sledgehammer999 <sledgehammer999@qbittorrent.org> - v3.3.6
|
||||||
- BUGFIX: Do not create save folder in advance (glassez)
|
- BUGFIX: Do not create save folder in advance (glassez)
|
||||||
- BUGFIX: Fix upper-bound limit of command line for "Run External Program" in Windows. Closes #5399. (Chocobo1)
|
- BUGFIX: Fix upper-bound limit of command line for "Run External Program" in Windows. Closes #5399. (Chocobo1)
|
||||||
@@ -1153,7 +1248,7 @@ Tue Dec 03 2019 - sledgehammer999 <sledgehammer999@qbittorrent.org> - v4.2.0
|
|||||||
* Sun Aug 02 2015 - sledgehammer999 <sledgehammer999@qbittorrent.org> - v3.2.3
|
* Sun Aug 02 2015 - sledgehammer999 <sledgehammer999@qbittorrent.org> - v3.2.3
|
||||||
- BUGFIX: Fix crash when closing a search tab while search is running (pmzqla)
|
- BUGFIX: Fix crash when closing a search tab while search is running (pmzqla)
|
||||||
- SEARCH: Other minor search fixes and improvements (pmzqla)
|
- SEARCH: Other minor search fixes and improvements (pmzqla)
|
||||||
|
|
||||||
* Sat Aug 01 2015 - sledgehammer999 <sledgehammer999@qbittorrent.org> - v3.2.2
|
* Sat Aug 01 2015 - sledgehammer999 <sledgehammer999@qbittorrent.org> - v3.2.2
|
||||||
- FEATURE: Allow to force reannounce DHT too (Chocobo1)
|
- FEATURE: Allow to force reannounce DHT too (Chocobo1)
|
||||||
- FEATURE: Implement an option to disable confirmation of torrent recheck (blaxspirit)
|
- FEATURE: Implement an option to disable confirmation of torrent recheck (blaxspirit)
|
||||||
@@ -1530,7 +1625,7 @@ Tue Dec 03 2019 - sledgehammer999 <sledgehammer999@qbittorrent.org> - v4.2.0
|
|||||||
- BUGFIX: Correctly update tracker tier number in the trackers tab. Closes #1075. (sledgehammer999)
|
- BUGFIX: Correctly update tracker tier number in the trackers tab. Closes #1075. (sledgehammer999)
|
||||||
- BUGFIX: Speed improvements.(sledgehammer999)
|
- BUGFIX: Speed improvements.(sledgehammer999)
|
||||||
- OTHER: Updated translations.
|
- OTHER: Updated translations.
|
||||||
|
|
||||||
* Tue Nov 05 2013 - sledgehammer999 <sledgehammer999@qbittorrent.org> - v3.1.2
|
* Tue Nov 05 2013 - sledgehammer999 <sledgehammer999@qbittorrent.org> - v3.1.2
|
||||||
- BUGFIX: Fix WebUI gzip compression. Closes #1037. (sledgehammer999)
|
- BUGFIX: Fix WebUI gzip compression. Closes #1037. (sledgehammer999)
|
||||||
- BUGFIX: Fix compilation with qt < 4.8.0. Closes #1043. (sledgehammer999)
|
- BUGFIX: Fix compilation with qt < 4.8.0. Closes #1043. (sledgehammer999)
|
||||||
@@ -1582,7 +1677,7 @@ Tue Dec 03 2019 - sledgehammer999 <sledgehammer999@qbittorrent.org> - v4.2.0
|
|||||||
- BUGFIX: Enable edit/rename via F2 or double click in various places(Gelmir)
|
- BUGFIX: Enable edit/rename via F2 or double click in various places(Gelmir)
|
||||||
- BUGFIX: Allow to edit trackers and copy their urls(Gelmir and Driim)
|
- BUGFIX: Allow to edit trackers and copy their urls(Gelmir and Driim)
|
||||||
- BUGFIX: Add Uploaded column to main view(Gelmir)
|
- BUGFIX: Add Uploaded column to main view(Gelmir)
|
||||||
- BUGFIX: Calculate ETA for seeding torrents(Gelmir)
|
- BUGFIX: Calculate ETA for seeding torrents(Gelmir)
|
||||||
- BUGFIX: Add option to ignore global share ratio limits for created torrents(Gelmir)
|
- BUGFIX: Add option to ignore global share ratio limits for created torrents(Gelmir)
|
||||||
- OTHER: Many RSS bugfixes and improvements all over the place(Gelmir)
|
- OTHER: Many RSS bugfixes and improvements all over the place(Gelmir)
|
||||||
- OTHER: Generate translations at configure time to reduce tarball size
|
- OTHER: Generate translations at configure time to reduce tarball size
|
||||||
@@ -1604,7 +1699,7 @@ Tue Dec 03 2019 - sledgehammer999 <sledgehammer999@qbittorrent.org> - v4.2.0
|
|||||||
- BUGFIX: Use system language as default language. Closes #780 (sledgehammer999)
|
- BUGFIX: Use system language as default language. Closes #780 (sledgehammer999)
|
||||||
- BUGFIX: Move completed files to .unwanted folder when they are unselected by the user (constantined)
|
- BUGFIX: Move completed files to .unwanted folder when they are unselected by the user (constantined)
|
||||||
- BUGFIX: Show delete action when multiple feeds are selected (Gelmir)
|
- BUGFIX: Show delete action when multiple feeds are selected (Gelmir)
|
||||||
- BUGFIX: Use Unicode for libtorrent alert messages (Gelmir)
|
- BUGFIX: Use Unicode for libtorrent alert messages (Gelmir)
|
||||||
- OTHER: Update translations
|
- OTHER: Update translations
|
||||||
- WINDOWS: Shave off ~4MB from the binary size (sledgehammer999)
|
- WINDOWS: Shave off ~4MB from the binary size (sledgehammer999)
|
||||||
- WINDOWS: Remove wrong dependency on msvc2008 runtime (sledgehammer999)
|
- WINDOWS: Remove wrong dependency on msvc2008 runtime (sledgehammer999)
|
||||||
@@ -1632,7 +1727,7 @@ Tue Dec 03 2019 - sledgehammer999 <sledgehammer999@qbittorrent.org> - v4.2.0
|
|||||||
- LIBTORRENT: Cache can now be returned to the OS (0.16.10)
|
- LIBTORRENT: Cache can now be returned to the OS (0.16.10)
|
||||||
- PERFORMANCE: Improve drawing speed of tranferlist when there are many torrents(>100) (sledgehammer999)
|
- PERFORMANCE: Improve drawing speed of tranferlist when there are many torrents(>100) (sledgehammer999)
|
||||||
- PERFORMANCE: Improve drawing speed of peers list when there are many peers (sledgehammer999)
|
- PERFORMANCE: Improve drawing speed of peers list when there are many peers (sledgehammer999)
|
||||||
|
|
||||||
* Sat Mar 16 2013 - Christophe Dumez <chris@qbittorrent.org> - v3.0.9
|
* Sat Mar 16 2013 - Christophe Dumez <chris@qbittorrent.org> - v3.0.9
|
||||||
- BUGFIX: Raise qBittorrent windows when another instance is launched
|
- BUGFIX: Raise qBittorrent windows when another instance is launched
|
||||||
- BUGFIX: Show human readable names for network interfaces in preferences (Windows)
|
- BUGFIX: Show human readable names for network interfaces in preferences (Windows)
|
||||||
@@ -1839,7 +1934,7 @@ Tue Dec 03 2019 - sledgehammer999 <sledgehammer999@qbittorrent.org> - v4.2.0
|
|||||||
- BUGFIX: Cleaner program exit on system log out
|
- BUGFIX: Cleaner program exit on system log out
|
||||||
- BUGFIX: Fix possible magnet link parsing problems
|
- BUGFIX: Fix possible magnet link parsing problems
|
||||||
- BUGFIX: Fix possible RSS URL parsing problems
|
- BUGFIX: Fix possible RSS URL parsing problems
|
||||||
- COSMETIC: Added monochrome icon for light themes
|
- COSMETIC: Added monochrome icon for light themes
|
||||||
|
|
||||||
* Sun Mar 20 2011 - Christophe Dumez <chris@qbittorrent.org> - v2.7.0
|
* Sun Mar 20 2011 - Christophe Dumez <chris@qbittorrent.org> - v2.7.0
|
||||||
- FEATURE: Added search field for torrent content
|
- FEATURE: Added search field for torrent content
|
||||||
@@ -2170,7 +2265,7 @@ Tue Dec 03 2019 - sledgehammer999 <sledgehammer999@qbittorrent.org> - v4.2.0
|
|||||||
- FEATURE: Added "Unread" item to RSS feed list to display all unread news
|
- FEATURE: Added "Unread" item to RSS feed list to display all unread news
|
||||||
- FEATURE: If a torrent contains a torrent file, process downloaded torrent file too
|
- FEATURE: If a torrent contains a torrent file, process downloaded torrent file too
|
||||||
- FEATURE: A random listening port can be chosen automatically
|
- FEATURE: A random listening port can be chosen automatically
|
||||||
- BUGFIX: torrent resume code rewrited
|
- BUGFIX: torrent resume code rewritten
|
||||||
- BUGFIX: Fixed uTorrent spoofing code
|
- BUGFIX: Fixed uTorrent spoofing code
|
||||||
- BUGFIX: Greatly improved column sorting code
|
- BUGFIX: Greatly improved column sorting code
|
||||||
- BUGFIX: Possibility to create trackerless torrents
|
- BUGFIX: Possibility to create trackerless torrents
|
||||||
@@ -2292,7 +2387,7 @@ Tue Dec 03 2019 - sledgehammer999 <sledgehammer999@qbittorrent.org> - v4.2.0
|
|||||||
- BUGFIX: Removed "disconnected" connection state, detection was far from perfect
|
- BUGFIX: Removed "disconnected" connection state, detection was far from perfect
|
||||||
- BUGFIX: Torrents are no longer starting from scratch when changing default save path (when torrent addition dialog is disabled)
|
- BUGFIX: Torrents are no longer starting from scratch when changing default save path (when torrent addition dialog is disabled)
|
||||||
- BUGFIX: Single instance code is now more reliable on Qt >= 4.4
|
- BUGFIX: Single instance code is now more reliable on Qt >= 4.4
|
||||||
- COSMETIC: Transfer speed, ratio, connection status and DHT nodes are displayed in status bar
|
- COSMETIC: Transfer speed, ratio, connection status and DHT nodes are displayed in status bar
|
||||||
- COSMETIC: RSS Tab is now hidden as a default
|
- COSMETIC: RSS Tab is now hidden as a default
|
||||||
- COSMETIC: Allow to hide or display top toolbar
|
- COSMETIC: Allow to hide or display top toolbar
|
||||||
- COSMETIC: Log is now in a separate dialog
|
- COSMETIC: Log is now in a separate dialog
|
||||||
|
|||||||
16
INSTALL
16
INSTALL
@@ -3,23 +3,27 @@ qBittorrent - A BitTorrent client in C++ / Qt
|
|||||||
|
|
||||||
1) Install these dependencies:
|
1) Install these dependencies:
|
||||||
|
|
||||||
- Boost >= 1.40
|
- Boost >= 1.65
|
||||||
|
|
||||||
- libtorrent-rasterbar >= 1.2 (by Arvid Norberg)
|
- libtorrent-rasterbar >= 1.2.11 (by Arvid Norberg)
|
||||||
* https://www.libtorrent.org/
|
* https://www.libtorrent.org/
|
||||||
* Be careful: another library (the one used by rTorrent) uses a similar name
|
* Be careful: another library (the one used by rTorrent) uses a similar name
|
||||||
|
|
||||||
- OpenSSL >= 1.0
|
- OpenSSL >= 1.1.1
|
||||||
|
|
||||||
- Qt >= 5.9.0
|
- Qt >= 5.9.5
|
||||||
|
|
||||||
- zlib >= 1.2.5.2
|
- zlib >= 1.2.11
|
||||||
|
|
||||||
- pkg-config (compile-time only)
|
- pkg-config (compile-time only on *nix systems)
|
||||||
|
|
||||||
- Python >= 3.5.0 (optional, runtime only)
|
- Python >= 3.5.0 (optional, runtime only)
|
||||||
* Required by the internal search engine
|
* Required by the internal search engine
|
||||||
|
|
||||||
|
Dependency version numbers are bumped every once in a while to keep the range of properly tested configurations manageable, even if not strictly required to build.
|
||||||
|
You may be able to build with older versions of (some of) the dependencies other than the minimum versions specified in the build scripts, but support for such builds is not provided - you are on your own.
|
||||||
|
Please ensure you are building with an officially supported configuration when reporting bugs.
|
||||||
|
|
||||||
2a) Compile and install qBittorrent with Qt graphical interface
|
2a) Compile and install qBittorrent with Qt graphical interface
|
||||||
|
|
||||||
$ ./configure
|
$ ./configure
|
||||||
|
|||||||
1
TODO
1
TODO
@@ -1,2 +1 @@
|
|||||||
See https://blueprints.launchpad.net/qbittorrent/
|
See https://blueprints.launchpad.net/qbittorrent/
|
||||||
|
|
||||||
|
|||||||
124
configure
vendored
124
configure
vendored
@@ -1,6 +1,6 @@
|
|||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# Guess values for system-dependent variables and create Makefiles.
|
# Guess values for system-dependent variables and create Makefiles.
|
||||||
# Generated by GNU Autoconf 2.69 for qbittorrent v4.3.0alpha.
|
# Generated by GNU Autoconf 2.69 for qbittorrent v4.3.2.
|
||||||
#
|
#
|
||||||
# Report bugs to <bugs.qbittorrent.org>.
|
# Report bugs to <bugs.qbittorrent.org>.
|
||||||
#
|
#
|
||||||
@@ -580,8 +580,8 @@ MAKEFLAGS=
|
|||||||
# Identity of this package.
|
# Identity of this package.
|
||||||
PACKAGE_NAME='qbittorrent'
|
PACKAGE_NAME='qbittorrent'
|
||||||
PACKAGE_TARNAME='qbittorrent'
|
PACKAGE_TARNAME='qbittorrent'
|
||||||
PACKAGE_VERSION='v4.3.0alpha'
|
PACKAGE_VERSION='v4.3.2'
|
||||||
PACKAGE_STRING='qbittorrent v4.3.0alpha'
|
PACKAGE_STRING='qbittorrent v4.3.2'
|
||||||
PACKAGE_BUGREPORT='bugs.qbittorrent.org'
|
PACKAGE_BUGREPORT='bugs.qbittorrent.org'
|
||||||
PACKAGE_URL='https://www.qbittorrent.org/'
|
PACKAGE_URL='https://www.qbittorrent.org/'
|
||||||
|
|
||||||
@@ -1302,7 +1302,7 @@ if test "$ac_init_help" = "long"; then
|
|||||||
# Omit some internal or obsolete options to make the list less imposing.
|
# Omit some internal or obsolete options to make the list less imposing.
|
||||||
# This message is too long to be a string in the A/UX 3.1 sh.
|
# This message is too long to be a string in the A/UX 3.1 sh.
|
||||||
cat <<_ACEOF
|
cat <<_ACEOF
|
||||||
\`configure' configures qbittorrent v4.3.0alpha to adapt to many kinds of systems.
|
\`configure' configures qbittorrent v4.3.2 to adapt to many kinds of systems.
|
||||||
|
|
||||||
Usage: $0 [OPTION]... [VAR=VALUE]...
|
Usage: $0 [OPTION]... [VAR=VALUE]...
|
||||||
|
|
||||||
@@ -1373,7 +1373,7 @@ fi
|
|||||||
|
|
||||||
if test -n "$ac_init_help"; then
|
if test -n "$ac_init_help"; then
|
||||||
case $ac_init_help in
|
case $ac_init_help in
|
||||||
short | recursive ) echo "Configuration of qbittorrent v4.3.0alpha:";;
|
short | recursive ) echo "Configuration of qbittorrent v4.3.2:";;
|
||||||
esac
|
esac
|
||||||
cat <<\_ACEOF
|
cat <<\_ACEOF
|
||||||
|
|
||||||
@@ -1427,7 +1427,7 @@ Some influential environment variables:
|
|||||||
directories to add to pkg-config's search path
|
directories to add to pkg-config's search path
|
||||||
PKG_CONFIG_LIBDIR
|
PKG_CONFIG_LIBDIR
|
||||||
path overriding pkg-config's built-in search path
|
path overriding pkg-config's built-in search path
|
||||||
QT_QMAKE value of host_bins for Qt5Core >= 5.9.0, overriding pkg-config
|
QT_QMAKE value of host_bins for Qt5Core >= 5.9.5, overriding pkg-config
|
||||||
Qt5Svg_CFLAGS
|
Qt5Svg_CFLAGS
|
||||||
C compiler flags for Qt5Svg, overriding pkg-config
|
C compiler flags for Qt5Svg, overriding pkg-config
|
||||||
Qt5Svg_LIBS linker flags for Qt5Svg, overriding pkg-config
|
Qt5Svg_LIBS linker flags for Qt5Svg, overriding pkg-config
|
||||||
@@ -1509,7 +1509,7 @@ fi
|
|||||||
test -n "$ac_init_help" && exit $ac_status
|
test -n "$ac_init_help" && exit $ac_status
|
||||||
if $ac_init_version; then
|
if $ac_init_version; then
|
||||||
cat <<\_ACEOF
|
cat <<\_ACEOF
|
||||||
qbittorrent configure v4.3.0alpha
|
qbittorrent configure v4.3.2
|
||||||
generated by GNU Autoconf 2.69
|
generated by GNU Autoconf 2.69
|
||||||
|
|
||||||
Copyright (C) 2012 Free Software Foundation, Inc.
|
Copyright (C) 2012 Free Software Foundation, Inc.
|
||||||
@@ -1648,7 +1648,7 @@ cat >config.log <<_ACEOF
|
|||||||
This file contains any messages produced by compilers while
|
This file contains any messages produced by compilers while
|
||||||
running configure, to aid debugging if configure makes a mistake.
|
running configure, to aid debugging if configure makes a mistake.
|
||||||
|
|
||||||
It was created by qbittorrent $as_me v4.3.0alpha, which was
|
It was created by qbittorrent $as_me v4.3.2, which was
|
||||||
generated by GNU Autoconf 2.69. Invocation command line was
|
generated by GNU Autoconf 2.69. Invocation command line was
|
||||||
|
|
||||||
$ $0 $@
|
$ $0 $@
|
||||||
@@ -2026,6 +2026,8 @@ ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
: ${CFLAGS=""}
|
||||||
|
: ${CXXFLAGS=""}
|
||||||
ac_ext=c
|
ac_ext=c
|
||||||
ac_cpp='$CPP $CPPFLAGS'
|
ac_cpp='$CPP $CPPFLAGS'
|
||||||
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
||||||
@@ -3826,7 +3828,7 @@ fi
|
|||||||
|
|
||||||
# Define the identity of the package.
|
# Define the identity of the package.
|
||||||
PACKAGE='qbittorrent'
|
PACKAGE='qbittorrent'
|
||||||
VERSION='v4.3.0alpha'
|
VERSION='v4.3.2'
|
||||||
|
|
||||||
|
|
||||||
cat >>confdefs.h <<_ACEOF
|
cat >>confdefs.h <<_ACEOF
|
||||||
@@ -4485,8 +4487,8 @@ $as_echo "$enable_webui" >&6; }
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
if test -n "$PKG_CONFIG" && \
|
if test -n "$PKG_CONFIG" && \
|
||||||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Core >= 5.9.0\""; } >&5
|
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Core >= 5.9.5\""; } >&5
|
||||||
($PKG_CONFIG --exists --print-errors "Qt5Core >= 5.9.0") 2>&5
|
($PKG_CONFIG --exists --print-errors "Qt5Core >= 5.9.5") 2>&5
|
||||||
ac_status=$?
|
ac_status=$?
|
||||||
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
||||||
test $ac_status = 0; }; then
|
test $ac_status = 0; }; then
|
||||||
@@ -4495,12 +4497,12 @@ if test -n "$QT_QMAKE"; then
|
|||||||
pkg_cv_QT_QMAKE="$QT_QMAKE"
|
pkg_cv_QT_QMAKE="$QT_QMAKE"
|
||||||
elif test -n "$PKG_CONFIG"; then
|
elif test -n "$PKG_CONFIG"; then
|
||||||
if test -n "$PKG_CONFIG" && \
|
if test -n "$PKG_CONFIG" && \
|
||||||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Core >= 5.9.0\""; } >&5
|
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Core >= 5.9.5\""; } >&5
|
||||||
($PKG_CONFIG --exists --print-errors "Qt5Core >= 5.9.0") 2>&5
|
($PKG_CONFIG --exists --print-errors "Qt5Core >= 5.9.5") 2>&5
|
||||||
ac_status=$?
|
ac_status=$?
|
||||||
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
||||||
test $ac_status = 0; }; then
|
test $ac_status = 0; }; then
|
||||||
pkg_cv_QT_QMAKE=`$PKG_CONFIG --variable="host_bins" "Qt5Core >= 5.9.0" 2>/dev/null`
|
pkg_cv_QT_QMAKE=`$PKG_CONFIG --variable="host_bins" "Qt5Core >= 5.9.5" 2>/dev/null`
|
||||||
test "x$?" != "x0" && pkg_failed=yes
|
test "x$?" != "x0" && pkg_failed=yes
|
||||||
else
|
else
|
||||||
pkg_failed=yes
|
pkg_failed=yes
|
||||||
@@ -4527,8 +4529,8 @@ fi
|
|||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Qt5 qmake >= 5.9.0" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Qt5 qmake >= 5.9.5" >&5
|
||||||
$as_echo_n "checking for Qt5 qmake >= 5.9.0... " >&6; }
|
$as_echo_n "checking for Qt5 qmake >= 5.9.5... " >&6; }
|
||||||
if test "x$QT_QMAKE" != "x"; then :
|
if test "x$QT_QMAKE" != "x"; then :
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_QMAKE" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_QMAKE" >&5
|
||||||
$as_echo "$QT_QMAKE" >&6; }
|
$as_echo "$QT_QMAKE" >&6; }
|
||||||
@@ -4642,11 +4644,11 @@ case "x$enable_qt_dbus" in #(
|
|||||||
"xyes") :
|
"xyes") :
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
||||||
$as_echo "yes" >&6; }
|
$as_echo "yes" >&6; }
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Qt5DBus >= 5.9.0" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Qt5DBus >= 5.9.5" >&5
|
||||||
$as_echo_n "checking for Qt5DBus >= 5.9.0... " >&6; }
|
$as_echo_n "checking for Qt5DBus >= 5.9.5... " >&6; }
|
||||||
if test -n "$PKG_CONFIG" && \
|
if test -n "$PKG_CONFIG" && \
|
||||||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5DBus >= 5.9.0\""; } >&5
|
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5DBus >= 5.9.5\""; } >&5
|
||||||
($PKG_CONFIG --exists --print-errors "Qt5DBus >= 5.9.0") 2>&5
|
($PKG_CONFIG --exists --print-errors "Qt5DBus >= 5.9.5") 2>&5
|
||||||
ac_status=$?
|
ac_status=$?
|
||||||
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
||||||
test $ac_status = 0; }; then
|
test $ac_status = 0; }; then
|
||||||
@@ -4716,10 +4718,10 @@ BOOST_CPPFLAGS=""
|
|||||||
if test "x$want_boost" = "xyes"; then :
|
if test "x$want_boost" = "xyes"; then :
|
||||||
|
|
||||||
|
|
||||||
if test "x1.40" = "x"; then :
|
if test "x1.65" = "x"; then :
|
||||||
_AX_BOOST_BASE_TONUMERICVERSION_req="1.20.0"
|
_AX_BOOST_BASE_TONUMERICVERSION_req="1.20.0"
|
||||||
else
|
else
|
||||||
_AX_BOOST_BASE_TONUMERICVERSION_req="1.40"
|
_AX_BOOST_BASE_TONUMERICVERSION_req="1.65"
|
||||||
fi
|
fi
|
||||||
_AX_BOOST_BASE_TONUMERICVERSION_req_shorten=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req : '\([0-9]*\.[0-9]*\)'`
|
_AX_BOOST_BASE_TONUMERICVERSION_req_shorten=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req : '\([0-9]*\.[0-9]*\)'`
|
||||||
_AX_BOOST_BASE_TONUMERICVERSION_req_major=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req : '\([0-9]*\)'`
|
_AX_BOOST_BASE_TONUMERICVERSION_req_major=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req : '\([0-9]*\)'`
|
||||||
@@ -4763,16 +4765,16 @@ esac
|
|||||||
|
|
||||||
if test "x$_AX_BOOST_BASE_boost_path" != "x"; then :
|
if test "x$_AX_BOOST_BASE_boost_path" != "x"; then :
|
||||||
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for boostlib >= 1.40 ($WANT_BOOST_VERSION) includes in \"$_AX_BOOST_BASE_boost_path/include\"" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for boostlib >= 1.65 ($WANT_BOOST_VERSION) includes in \"$_AX_BOOST_BASE_boost_path/include\"" >&5
|
||||||
$as_echo_n "checking for boostlib >= 1.40 ($WANT_BOOST_VERSION) includes in \"$_AX_BOOST_BASE_boost_path/include\"... " >&6; }
|
$as_echo_n "checking for boostlib >= 1.65 ($WANT_BOOST_VERSION) includes in \"$_AX_BOOST_BASE_boost_path/include\"... " >&6; }
|
||||||
if test -d "$_AX_BOOST_BASE_boost_path/include" && test -r "$_AX_BOOST_BASE_boost_path/include"; then :
|
if test -d "$_AX_BOOST_BASE_boost_path/include" && test -r "$_AX_BOOST_BASE_boost_path/include"; then :
|
||||||
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
||||||
$as_echo "yes" >&6; }
|
$as_echo "yes" >&6; }
|
||||||
BOOST_CPPFLAGS="-I$_AX_BOOST_BASE_boost_path/include"
|
BOOST_CPPFLAGS="-I$_AX_BOOST_BASE_boost_path/include"
|
||||||
for _AX_BOOST_BASE_boost_path_tmp in $multiarch_libsubdir $libsubdirs; do
|
for _AX_BOOST_BASE_boost_path_tmp in $multiarch_libsubdir $libsubdirs; do
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for boostlib >= 1.40 ($WANT_BOOST_VERSION) lib path in \"$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp\"" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for boostlib >= 1.65 ($WANT_BOOST_VERSION) lib path in \"$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp\"" >&5
|
||||||
$as_echo_n "checking for boostlib >= 1.40 ($WANT_BOOST_VERSION) lib path in \"$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp\"... " >&6; }
|
$as_echo_n "checking for boostlib >= 1.65 ($WANT_BOOST_VERSION) lib path in \"$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp\"... " >&6; }
|
||||||
if test -d "$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp" && test -r "$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp" ; then :
|
if test -d "$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp" && test -r "$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp" ; then :
|
||||||
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
||||||
@@ -4815,8 +4817,8 @@ fi
|
|||||||
BOOST_LDFLAGS="-L$_AX_BOOST_BASE_boost_lib_path"
|
BOOST_LDFLAGS="-L$_AX_BOOST_BASE_boost_lib_path"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for boostlib >= 1.40 ($WANT_BOOST_VERSION)" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for boostlib >= 1.65 ($WANT_BOOST_VERSION)" >&5
|
||||||
$as_echo_n "checking for boostlib >= 1.40 ($WANT_BOOST_VERSION)... " >&6; }
|
$as_echo_n "checking for boostlib >= 1.65 ($WANT_BOOST_VERSION)... " >&6; }
|
||||||
CPPFLAGS_SAVED="$CPPFLAGS"
|
CPPFLAGS_SAVED="$CPPFLAGS"
|
||||||
CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
|
CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
|
||||||
export CPPFLAGS
|
export CPPFLAGS
|
||||||
@@ -4985,8 +4987,8 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
|||||||
|
|
||||||
if test "x$succeeded" != "xyes" ; then
|
if test "x$succeeded" != "xyes" ; then
|
||||||
if test "x$_version" = "x0" ; then
|
if test "x$_version" = "x0" ; then
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: We could not detect the boost libraries (version 1.40 or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option. If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation." >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: We could not detect the boost libraries (version 1.65 or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option. If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation." >&5
|
||||||
$as_echo "$as_me: We could not detect the boost libraries (version 1.40 or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option. If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation." >&6;}
|
$as_echo "$as_me: We could not detect the boost libraries (version 1.65 or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option. If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation." >&6;}
|
||||||
else
|
else
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: Your boost libraries seems to old (version $_version)." >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: Your boost libraries seems to old (version $_version)." >&5
|
||||||
$as_echo "$as_me: Your boost libraries seems to old (version $_version)." >&6;}
|
$as_echo "$as_me: Your boost libraries seems to old (version $_version)." >&6;}
|
||||||
@@ -5292,12 +5294,12 @@ if test -n "$libtorrent_CFLAGS"; then
|
|||||||
pkg_cv_libtorrent_CFLAGS="$libtorrent_CFLAGS"
|
pkg_cv_libtorrent_CFLAGS="$libtorrent_CFLAGS"
|
||||||
elif test -n "$PKG_CONFIG"; then
|
elif test -n "$PKG_CONFIG"; then
|
||||||
if test -n "$PKG_CONFIG" && \
|
if test -n "$PKG_CONFIG" && \
|
||||||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtorrent-rasterbar >= 1.2\""; } >&5
|
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtorrent-rasterbar >= 1.2.11\""; } >&5
|
||||||
($PKG_CONFIG --exists --print-errors "libtorrent-rasterbar >= 1.2") 2>&5
|
($PKG_CONFIG --exists --print-errors "libtorrent-rasterbar >= 1.2.11") 2>&5
|
||||||
ac_status=$?
|
ac_status=$?
|
||||||
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
||||||
test $ac_status = 0; }; then
|
test $ac_status = 0; }; then
|
||||||
pkg_cv_libtorrent_CFLAGS=`$PKG_CONFIG --cflags "libtorrent-rasterbar >= 1.2" 2>/dev/null`
|
pkg_cv_libtorrent_CFLAGS=`$PKG_CONFIG --cflags "libtorrent-rasterbar >= 1.2.11" 2>/dev/null`
|
||||||
test "x$?" != "x0" && pkg_failed=yes
|
test "x$?" != "x0" && pkg_failed=yes
|
||||||
else
|
else
|
||||||
pkg_failed=yes
|
pkg_failed=yes
|
||||||
@@ -5309,12 +5311,12 @@ if test -n "$libtorrent_LIBS"; then
|
|||||||
pkg_cv_libtorrent_LIBS="$libtorrent_LIBS"
|
pkg_cv_libtorrent_LIBS="$libtorrent_LIBS"
|
||||||
elif test -n "$PKG_CONFIG"; then
|
elif test -n "$PKG_CONFIG"; then
|
||||||
if test -n "$PKG_CONFIG" && \
|
if test -n "$PKG_CONFIG" && \
|
||||||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtorrent-rasterbar >= 1.2\""; } >&5
|
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtorrent-rasterbar >= 1.2.11\""; } >&5
|
||||||
($PKG_CONFIG --exists --print-errors "libtorrent-rasterbar >= 1.2") 2>&5
|
($PKG_CONFIG --exists --print-errors "libtorrent-rasterbar >= 1.2.11") 2>&5
|
||||||
ac_status=$?
|
ac_status=$?
|
||||||
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
||||||
test $ac_status = 0; }; then
|
test $ac_status = 0; }; then
|
||||||
pkg_cv_libtorrent_LIBS=`$PKG_CONFIG --libs "libtorrent-rasterbar >= 1.2" 2>/dev/null`
|
pkg_cv_libtorrent_LIBS=`$PKG_CONFIG --libs "libtorrent-rasterbar >= 1.2.11" 2>/dev/null`
|
||||||
test "x$?" != "x0" && pkg_failed=yes
|
test "x$?" != "x0" && pkg_failed=yes
|
||||||
else
|
else
|
||||||
pkg_failed=yes
|
pkg_failed=yes
|
||||||
@@ -5335,14 +5337,14 @@ else
|
|||||||
_pkg_short_errors_supported=no
|
_pkg_short_errors_supported=no
|
||||||
fi
|
fi
|
||||||
if test $_pkg_short_errors_supported = yes; then
|
if test $_pkg_short_errors_supported = yes; then
|
||||||
libtorrent_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libtorrent-rasterbar >= 1.2" 2>&1`
|
libtorrent_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libtorrent-rasterbar >= 1.2.11" 2>&1`
|
||||||
else
|
else
|
||||||
libtorrent_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libtorrent-rasterbar >= 1.2" 2>&1`
|
libtorrent_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libtorrent-rasterbar >= 1.2.11" 2>&1`
|
||||||
fi
|
fi
|
||||||
# Put the nasty error message in config.log where it belongs
|
# Put the nasty error message in config.log where it belongs
|
||||||
echo "$libtorrent_PKG_ERRORS" >&5
|
echo "$libtorrent_PKG_ERRORS" >&5
|
||||||
|
|
||||||
as_fn_error $? "Package requirements (libtorrent-rasterbar >= 1.2) were not met:
|
as_fn_error $? "Package requirements (libtorrent-rasterbar >= 1.2.11) were not met:
|
||||||
|
|
||||||
$libtorrent_PKG_ERRORS
|
$libtorrent_PKG_ERRORS
|
||||||
|
|
||||||
@@ -5385,12 +5387,12 @@ if test -n "$openssl_CFLAGS"; then
|
|||||||
pkg_cv_openssl_CFLAGS="$openssl_CFLAGS"
|
pkg_cv_openssl_CFLAGS="$openssl_CFLAGS"
|
||||||
elif test -n "$PKG_CONFIG"; then
|
elif test -n "$PKG_CONFIG"; then
|
||||||
if test -n "$PKG_CONFIG" && \
|
if test -n "$PKG_CONFIG" && \
|
||||||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 1.0\""; } >&5
|
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 1.1.1\""; } >&5
|
||||||
($PKG_CONFIG --exists --print-errors "openssl >= 1.0") 2>&5
|
($PKG_CONFIG --exists --print-errors "openssl >= 1.1.1") 2>&5
|
||||||
ac_status=$?
|
ac_status=$?
|
||||||
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
||||||
test $ac_status = 0; }; then
|
test $ac_status = 0; }; then
|
||||||
pkg_cv_openssl_CFLAGS=`$PKG_CONFIG --cflags "openssl >= 1.0" 2>/dev/null`
|
pkg_cv_openssl_CFLAGS=`$PKG_CONFIG --cflags "openssl >= 1.1.1" 2>/dev/null`
|
||||||
test "x$?" != "x0" && pkg_failed=yes
|
test "x$?" != "x0" && pkg_failed=yes
|
||||||
else
|
else
|
||||||
pkg_failed=yes
|
pkg_failed=yes
|
||||||
@@ -5402,12 +5404,12 @@ if test -n "$openssl_LIBS"; then
|
|||||||
pkg_cv_openssl_LIBS="$openssl_LIBS"
|
pkg_cv_openssl_LIBS="$openssl_LIBS"
|
||||||
elif test -n "$PKG_CONFIG"; then
|
elif test -n "$PKG_CONFIG"; then
|
||||||
if test -n "$PKG_CONFIG" && \
|
if test -n "$PKG_CONFIG" && \
|
||||||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 1.0\""; } >&5
|
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 1.1.1\""; } >&5
|
||||||
($PKG_CONFIG --exists --print-errors "openssl >= 1.0") 2>&5
|
($PKG_CONFIG --exists --print-errors "openssl >= 1.1.1") 2>&5
|
||||||
ac_status=$?
|
ac_status=$?
|
||||||
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
||||||
test $ac_status = 0; }; then
|
test $ac_status = 0; }; then
|
||||||
pkg_cv_openssl_LIBS=`$PKG_CONFIG --libs "openssl >= 1.0" 2>/dev/null`
|
pkg_cv_openssl_LIBS=`$PKG_CONFIG --libs "openssl >= 1.1.1" 2>/dev/null`
|
||||||
test "x$?" != "x0" && pkg_failed=yes
|
test "x$?" != "x0" && pkg_failed=yes
|
||||||
else
|
else
|
||||||
pkg_failed=yes
|
pkg_failed=yes
|
||||||
@@ -5428,14 +5430,14 @@ else
|
|||||||
_pkg_short_errors_supported=no
|
_pkg_short_errors_supported=no
|
||||||
fi
|
fi
|
||||||
if test $_pkg_short_errors_supported = yes; then
|
if test $_pkg_short_errors_supported = yes; then
|
||||||
openssl_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl >= 1.0" 2>&1`
|
openssl_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl >= 1.1.1" 2>&1`
|
||||||
else
|
else
|
||||||
openssl_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl >= 1.0" 2>&1`
|
openssl_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl >= 1.1.1" 2>&1`
|
||||||
fi
|
fi
|
||||||
# Put the nasty error message in config.log where it belongs
|
# Put the nasty error message in config.log where it belongs
|
||||||
echo "$openssl_PKG_ERRORS" >&5
|
echo "$openssl_PKG_ERRORS" >&5
|
||||||
|
|
||||||
as_fn_error $? "Package requirements (openssl >= 1.0) were not met:
|
as_fn_error $? "Package requirements (openssl >= 1.1.1) were not met:
|
||||||
|
|
||||||
$openssl_PKG_ERRORS
|
$openssl_PKG_ERRORS
|
||||||
|
|
||||||
@@ -5478,12 +5480,12 @@ if test -n "$zlib_CFLAGS"; then
|
|||||||
pkg_cv_zlib_CFLAGS="$zlib_CFLAGS"
|
pkg_cv_zlib_CFLAGS="$zlib_CFLAGS"
|
||||||
elif test -n "$PKG_CONFIG"; then
|
elif test -n "$PKG_CONFIG"; then
|
||||||
if test -n "$PKG_CONFIG" && \
|
if test -n "$PKG_CONFIG" && \
|
||||||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.2.5.2\""; } >&5
|
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.2.11\""; } >&5
|
||||||
($PKG_CONFIG --exists --print-errors "zlib >= 1.2.5.2") 2>&5
|
($PKG_CONFIG --exists --print-errors "zlib >= 1.2.11") 2>&5
|
||||||
ac_status=$?
|
ac_status=$?
|
||||||
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
||||||
test $ac_status = 0; }; then
|
test $ac_status = 0; }; then
|
||||||
pkg_cv_zlib_CFLAGS=`$PKG_CONFIG --cflags "zlib >= 1.2.5.2" 2>/dev/null`
|
pkg_cv_zlib_CFLAGS=`$PKG_CONFIG --cflags "zlib >= 1.2.11" 2>/dev/null`
|
||||||
test "x$?" != "x0" && pkg_failed=yes
|
test "x$?" != "x0" && pkg_failed=yes
|
||||||
else
|
else
|
||||||
pkg_failed=yes
|
pkg_failed=yes
|
||||||
@@ -5495,12 +5497,12 @@ if test -n "$zlib_LIBS"; then
|
|||||||
pkg_cv_zlib_LIBS="$zlib_LIBS"
|
pkg_cv_zlib_LIBS="$zlib_LIBS"
|
||||||
elif test -n "$PKG_CONFIG"; then
|
elif test -n "$PKG_CONFIG"; then
|
||||||
if test -n "$PKG_CONFIG" && \
|
if test -n "$PKG_CONFIG" && \
|
||||||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.2.5.2\""; } >&5
|
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.2.11\""; } >&5
|
||||||
($PKG_CONFIG --exists --print-errors "zlib >= 1.2.5.2") 2>&5
|
($PKG_CONFIG --exists --print-errors "zlib >= 1.2.11") 2>&5
|
||||||
ac_status=$?
|
ac_status=$?
|
||||||
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
||||||
test $ac_status = 0; }; then
|
test $ac_status = 0; }; then
|
||||||
pkg_cv_zlib_LIBS=`$PKG_CONFIG --libs "zlib >= 1.2.5.2" 2>/dev/null`
|
pkg_cv_zlib_LIBS=`$PKG_CONFIG --libs "zlib >= 1.2.11" 2>/dev/null`
|
||||||
test "x$?" != "x0" && pkg_failed=yes
|
test "x$?" != "x0" && pkg_failed=yes
|
||||||
else
|
else
|
||||||
pkg_failed=yes
|
pkg_failed=yes
|
||||||
@@ -5521,14 +5523,14 @@ else
|
|||||||
_pkg_short_errors_supported=no
|
_pkg_short_errors_supported=no
|
||||||
fi
|
fi
|
||||||
if test $_pkg_short_errors_supported = yes; then
|
if test $_pkg_short_errors_supported = yes; then
|
||||||
zlib_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib >= 1.2.5.2" 2>&1`
|
zlib_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib >= 1.2.11" 2>&1`
|
||||||
else
|
else
|
||||||
zlib_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib >= 1.2.5.2" 2>&1`
|
zlib_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib >= 1.2.11" 2>&1`
|
||||||
fi
|
fi
|
||||||
# Put the nasty error message in config.log where it belongs
|
# Put the nasty error message in config.log where it belongs
|
||||||
echo "$zlib_PKG_ERRORS" >&5
|
echo "$zlib_PKG_ERRORS" >&5
|
||||||
|
|
||||||
as_fn_error $? "Package requirements (zlib >= 1.2.5.2) were not met:
|
as_fn_error $? "Package requirements (zlib >= 1.2.11) were not met:
|
||||||
|
|
||||||
$zlib_PKG_ERRORS
|
$zlib_PKG_ERRORS
|
||||||
|
|
||||||
@@ -6343,7 +6345,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
|||||||
# report actual input values of CONFIG_FILES etc. instead of their
|
# report actual input values of CONFIG_FILES etc. instead of their
|
||||||
# values after options handling.
|
# values after options handling.
|
||||||
ac_log="
|
ac_log="
|
||||||
This file was extended by qbittorrent $as_me v4.3.0alpha, which was
|
This file was extended by qbittorrent $as_me v4.3.2, which was
|
||||||
generated by GNU Autoconf 2.69. Invocation command line was
|
generated by GNU Autoconf 2.69. Invocation command line was
|
||||||
|
|
||||||
CONFIG_FILES = $CONFIG_FILES
|
CONFIG_FILES = $CONFIG_FILES
|
||||||
@@ -6401,7 +6403,7 @@ _ACEOF
|
|||||||
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
||||||
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
|
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
|
||||||
ac_cs_version="\\
|
ac_cs_version="\\
|
||||||
qbittorrent config.status v4.3.0alpha
|
qbittorrent config.status v4.3.2
|
||||||
configured by $0, generated by GNU Autoconf 2.69,
|
configured by $0, generated by GNU Autoconf 2.69,
|
||||||
with options \\"\$ac_cs_config\\"
|
with options \\"\$ac_cs_config\\"
|
||||||
|
|
||||||
@@ -7659,7 +7661,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
|||||||
# report actual input values of CONFIG_FILES etc. instead of their
|
# report actual input values of CONFIG_FILES etc. instead of their
|
||||||
# values after options handling.
|
# values after options handling.
|
||||||
ac_log="
|
ac_log="
|
||||||
This file was extended by qbittorrent $as_me v4.3.0alpha, which was
|
This file was extended by qbittorrent $as_me v4.3.2, which was
|
||||||
generated by GNU Autoconf 2.69. Invocation command line was
|
generated by GNU Autoconf 2.69. Invocation command line was
|
||||||
|
|
||||||
CONFIG_FILES = $CONFIG_FILES
|
CONFIG_FILES = $CONFIG_FILES
|
||||||
@@ -7717,7 +7719,7 @@ _ACEOF
|
|||||||
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
||||||
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
|
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
|
||||||
ac_cs_version="\\
|
ac_cs_version="\\
|
||||||
qbittorrent config.status v4.3.0alpha
|
qbittorrent config.status v4.3.2
|
||||||
configured by $0, generated by GNU Autoconf 2.69,
|
configured by $0, generated by GNU Autoconf 2.69,
|
||||||
with options \\"\$ac_cs_config\\"
|
with options \\"\$ac_cs_config\\"
|
||||||
|
|
||||||
|
|||||||
12
configure.ac
12
configure.ac
@@ -1,6 +1,8 @@
|
|||||||
AC_INIT([qbittorrent], [v4.3.0alpha], [bugs.qbittorrent.org], [], [https://www.qbittorrent.org/])
|
AC_INIT([qbittorrent], [v4.3.2], [bugs.qbittorrent.org], [], [https://www.qbittorrent.org/])
|
||||||
AC_CONFIG_AUX_DIR([build-aux])
|
AC_CONFIG_AUX_DIR([build-aux])
|
||||||
AC_CONFIG_MACRO_DIR([m4])
|
AC_CONFIG_MACRO_DIR([m4])
|
||||||
|
: ${CFLAGS=""}
|
||||||
|
: ${CXXFLAGS=""}
|
||||||
AC_PROG_CC
|
AC_PROG_CC
|
||||||
AC_PROG_CXX
|
AC_PROG_CXX
|
||||||
AC_PROG_SED
|
AC_PROG_SED
|
||||||
@@ -157,7 +159,7 @@ AS_CASE(["x$enable_qt_dbus"],
|
|||||||
AC_MSG_ERROR([Unknown option "$enable_qt_dbus". Use either "yes" or "no".])])
|
AC_MSG_ERROR([Unknown option "$enable_qt_dbus". Use either "yes" or "no".])])
|
||||||
|
|
||||||
|
|
||||||
AX_BOOST_BASE([1.40],
|
AX_BOOST_BASE([1.65],
|
||||||
[AC_MSG_NOTICE([Boost CXXFLAGS: "$BOOST_CPPFLAGS"])
|
[AC_MSG_NOTICE([Boost CXXFLAGS: "$BOOST_CPPFLAGS"])
|
||||||
AC_MSG_NOTICE([Boost LDFLAGS: "$BOOST_LDFLAGS"])],
|
AC_MSG_NOTICE([Boost LDFLAGS: "$BOOST_LDFLAGS"])],
|
||||||
[AC_MSG_ERROR([Could not find Boost])])
|
[AC_MSG_ERROR([Could not find Boost])])
|
||||||
@@ -178,17 +180,17 @@ AC_MSG_NOTICE([Boost.System LIB: "$BOOST_SYSTEM_LIB"])
|
|||||||
LIBS="$BOOST_SYSTEM_LIB $LIBS"
|
LIBS="$BOOST_SYSTEM_LIB $LIBS"
|
||||||
|
|
||||||
PKG_CHECK_MODULES(libtorrent,
|
PKG_CHECK_MODULES(libtorrent,
|
||||||
[libtorrent-rasterbar >= 1.2],
|
[libtorrent-rasterbar >= 1.2.11],
|
||||||
[CXXFLAGS="$libtorrent_CFLAGS $CXXFLAGS"
|
[CXXFLAGS="$libtorrent_CFLAGS $CXXFLAGS"
|
||||||
LIBS="$libtorrent_LIBS $LIBS"])
|
LIBS="$libtorrent_LIBS $LIBS"])
|
||||||
|
|
||||||
PKG_CHECK_MODULES(openssl,
|
PKG_CHECK_MODULES(openssl,
|
||||||
[openssl >= 1.0],
|
[openssl >= 1.1.1],
|
||||||
[CXXFLAGS="$openssl_CFLAGS $CXXFLAGS"
|
[CXXFLAGS="$openssl_CFLAGS $CXXFLAGS"
|
||||||
LIBS="$openssl_LIBS $LIBS"])
|
LIBS="$openssl_LIBS $LIBS"])
|
||||||
|
|
||||||
PKG_CHECK_MODULES(zlib,
|
PKG_CHECK_MODULES(zlib,
|
||||||
[zlib >= 1.2.5.2],
|
[zlib >= 1.2.11],
|
||||||
[CXXFLAGS="$zlib_CFLAGS $CXXFLAGS"
|
[CXXFLAGS="$zlib_CFLAGS $CXXFLAGS"
|
||||||
LIBS="$zlib_LIBS $LIBS"])
|
LIBS="$zlib_LIBS $LIBS"])
|
||||||
|
|
||||||
|
|||||||
1
dist/mac/CMakeLists.txt
vendored
1
dist/mac/CMakeLists.txt
vendored
@@ -0,0 +1 @@
|
|||||||
|
# empty
|
||||||
|
|||||||
2
dist/mac/Info.plist
vendored
2
dist/mac/Info.plist
vendored
@@ -55,7 +55,7 @@
|
|||||||
<key>CFBundlePackageType</key>
|
<key>CFBundlePackageType</key>
|
||||||
<string>APPL</string>
|
<string>APPL</string>
|
||||||
<key>CFBundleShortVersionString</key>
|
<key>CFBundleShortVersionString</key>
|
||||||
<string>4.3.0</string>
|
<string>4.3.2</string>
|
||||||
<key>CFBundleExecutable</key>
|
<key>CFBundleExecutable</key>
|
||||||
<string>@EXECUTABLE@</string>
|
<string>@EXECUTABLE@</string>
|
||||||
<key>CFBundleIdentifier</key>
|
<key>CFBundleIdentifier</key>
|
||||||
|
|||||||
@@ -74,6 +74,6 @@
|
|||||||
<url type="translate">https://github.com/qbittorrent/qBittorrent/wiki/How-to-translate-qBittorrent</url>
|
<url type="translate">https://github.com/qbittorrent/qBittorrent/wiki/How-to-translate-qBittorrent</url>
|
||||||
<content_rating type="oars-1.1"/>
|
<content_rating type="oars-1.1"/>
|
||||||
<releases>
|
<releases>
|
||||||
<release version="4.1.5" date="2018-12-24"/>
|
<release version="4.3.2" date="2020-12-27"/>
|
||||||
</releases>
|
</releases>
|
||||||
</component>
|
</component>
|
||||||
|
|||||||
57
dist/unix/org.qbittorrent.qBittorrent.desktop
vendored
57
dist/unix/org.qbittorrent.qBittorrent.desktop
vendored
@@ -22,8 +22,8 @@ Name[af]=qBittorrent
|
|||||||
Comment[ar]=نزّل وشارك الملفات عبر كيوبتتورنت
|
Comment[ar]=نزّل وشارك الملفات عبر كيوبتتورنت
|
||||||
GenericName[ar]=عميل بتتورنت
|
GenericName[ar]=عميل بتتورنت
|
||||||
Name[ar]=كيوبتتورنت
|
Name[ar]=كيوبتتورنت
|
||||||
Comment[be]=Сцягванне і раздача файлаў праз пратакол BitTorrent
|
Comment[be]=Спампоўванне і раздача файлаў праз пратакол BitTorrent
|
||||||
GenericName[be]=BitTorrent-кліент
|
GenericName[be]=Кліент BitTorrent
|
||||||
Name[be]=qBittorrent
|
Name[be]=qBittorrent
|
||||||
Comment[bg]=Сваляне и споделяне на файлове чрез BitTorrent
|
Comment[bg]=Сваляне и споделяне на файлове чрез BitTorrent
|
||||||
GenericName[bg]=BitTorrent клиент
|
GenericName[bg]=BitTorrent клиент
|
||||||
@@ -34,19 +34,19 @@ Name[bn]=কিউবি্টটরেন্ট
|
|||||||
Comment[bs]=Preuzmi i dijeli datoteke preko BitTorrent-a
|
Comment[bs]=Preuzmi i dijeli datoteke preko BitTorrent-a
|
||||||
GenericName[bs]=BitTorrent klijent
|
GenericName[bs]=BitTorrent klijent
|
||||||
Name[bs]=qBittorrent
|
Name[bs]=qBittorrent
|
||||||
Comment[ca]=Baixeu i compartiu fitxers mitjançant BitTorrent
|
Comment[ca]=Baixeu i compartiu fitxers amb el BitTorrent
|
||||||
GenericName[ca]=Client de BitTorrent
|
GenericName[ca]=Client de BitTorrent
|
||||||
Name[ca]=qBittorrent
|
Name[ca]=qBittorrent
|
||||||
Comment[cs]=Stahování a sdílení souborů přes síť BitTorrent
|
Comment[cs]=Stahování a sdílení souborů přes síť BitTorrent
|
||||||
GenericName[cs]=BitTorrent klient
|
GenericName[cs]=BitTorrent klient
|
||||||
Name[cs]=qBittorrent
|
Name[cs]=qBittorrent
|
||||||
Comment[da]=Download og del filer over BitTorrent
|
Comment[da]=Download og del filer over BitTorrent
|
||||||
GenericName[da]=BitTorrent klient
|
GenericName[da]=BitTorrent-klient
|
||||||
Name[da]=qBittorrent
|
Name[da]=qBittorrent
|
||||||
Comment[de]=Über BitTorrent Dateien herunterladen und teilen
|
Comment[de]=Über BitTorrent Dateien herunterladen und teilen
|
||||||
GenericName[de]=BitTorrent Client
|
GenericName[de]=BitTorrent Client
|
||||||
Name[de]=qBittorrent
|
Name[de]=qBittorrent
|
||||||
Comment[el]=Κάντε λήψη και ανταλάξτε αρχεία μέσω BitTorrent
|
Comment[el]=Κάντε λήψη και ανταλλάξτε αρχεία μέσω BitTorrent
|
||||||
GenericName[el]=Πελάτης BitTorrent
|
GenericName[el]=Πελάτης BitTorrent
|
||||||
Name[el]=qBittorrent
|
Name[el]=qBittorrent
|
||||||
Comment[en_GB]=Download and share files over BitTorrent
|
Comment[en_GB]=Download and share files over BitTorrent
|
||||||
@@ -55,7 +55,10 @@ Name[en_GB]=qBittorrent
|
|||||||
Comment[es]=Descargue y comparta archivos por BitTorrent
|
Comment[es]=Descargue y comparta archivos por BitTorrent
|
||||||
GenericName[es]=Cliente BitTorrent
|
GenericName[es]=Cliente BitTorrent
|
||||||
Name[es]=qBittorrent
|
Name[es]=qBittorrent
|
||||||
Comment[eu]=Jeitsi eta elkarbanatu agiriak BitTorrent-en
|
Comment[et]=Lae alla ja jaga faile üle BitTorrenti
|
||||||
|
GenericName[et]=BitTorrent klient
|
||||||
|
Name[et]=qBittorrent
|
||||||
|
Comment[eu]=Jeitsi eta elkarbanatu agiriak BitTorrent bidez
|
||||||
GenericName[eu]=BitTorrent bezeroa
|
GenericName[eu]=BitTorrent bezeroa
|
||||||
Name[eu]=qBittorrent
|
Name[eu]=qBittorrent
|
||||||
Comment[fa]=دانلود و به اشتراک گذاری فایل های بوسیله بیت تورنت
|
Comment[fa]=دانلود و به اشتراک گذاری فایل های بوسیله بیت تورنت
|
||||||
@@ -88,7 +91,7 @@ Name[id]=qBittorrent
|
|||||||
Comment[is]=Sækja og deila skrám yfir BitTorrent
|
Comment[is]=Sækja og deila skrám yfir BitTorrent
|
||||||
GenericName[is]=BitTorrent biðlarar
|
GenericName[is]=BitTorrent biðlarar
|
||||||
Name[is]=qBittorrent
|
Name[is]=qBittorrent
|
||||||
Comment[it]=Client BitTorrent per il download di file via internet
|
Comment[it]=Scarica e condividi file tramite BitTorrent
|
||||||
GenericName[it]=Client BitTorrent
|
GenericName[it]=Client BitTorrent
|
||||||
Name[it]=qBittorrent
|
Name[it]=qBittorrent
|
||||||
Comment[ja]=BitTorrent でファイルをダウンロードおよび共有します
|
Comment[ja]=BitTorrent でファイルをダウンロードおよび共有します
|
||||||
@@ -97,15 +100,18 @@ Name[ja]=qBittorrent
|
|||||||
Comment[ka]=ჩამოტვირთე და გააზიარე ფაილები Bittorrent-ის საშუალებით
|
Comment[ka]=ჩამოტვირთე და გააზიარე ფაილები Bittorrent-ის საშუალებით
|
||||||
GenericName[ka]=BitTorrent კლიენტი
|
GenericName[ka]=BitTorrent კლიენტი
|
||||||
Name[ka]=qBittorrent
|
Name[ka]=qBittorrent
|
||||||
Comment[ko]=비트토런트를 통해 파일을 다운로드하고 공유합니다
|
Comment[ko]=비트토런트를 통해 파일을 받고 공유합니다
|
||||||
GenericName[ko]=비트토런트 클라이언트
|
GenericName[ko]=비트토런트 클라이언트
|
||||||
Name[ko]=큐빗토런트
|
Name[ko]=qBittorrent
|
||||||
Comment[zh]=通过 BitTorrent 下载和分享文件
|
Comment[zh]=通过 BitTorrent 下载和分享文件
|
||||||
GenericName[zh]=BitTorrent 客户端
|
GenericName[zh]=BitTorrent 客户端
|
||||||
Name[zh]=qBittorrent
|
Name[zh]=qBittorrent
|
||||||
Comment[lt]=Atsisiųskite bei dalinkitės failais BitTorrent tinkle
|
Comment[lt]=Atsisiųskite bei dalinkitės failais BitTorrent tinkle
|
||||||
GenericName[lt]=BitTorrent klientas
|
GenericName[lt]=BitTorrent klientas
|
||||||
Name[lt]=qBittorrent
|
Name[lt]=qBittorrent
|
||||||
|
Comment[mk]=Превземајте и споделувајте фајлови преку BitTorrent
|
||||||
|
GenericName[mk]=BitTorrent клиент
|
||||||
|
Name[mk]=qBittorrent
|
||||||
Comment[nb]=Last ned og del filer over BitTorrent
|
Comment[nb]=Last ned og del filer over BitTorrent
|
||||||
GenericName[nb]=BitTorrent-klient
|
GenericName[nb]=BitTorrent-klient
|
||||||
Name[nb]=qBittorrent
|
Name[nb]=qBittorrent
|
||||||
@@ -113,7 +119,7 @@ Comment[nqo]=ߞߐߕߐ߯ߘߐ ߟߎ߬ ߟߊߖߌ߰ ߞߊ߬ ߓߊ߲߫ ߞߵߊ߬ߟߎ߬ ߘ
|
|||||||
GenericName[nqo]=ߓߌߙߏߙߍ߲ߕ ߕߣߐ߬ߓߐ߬ߟߊ
|
GenericName[nqo]=ߓߌߙߏߙߍ߲ߕ ߕߣߐ߬ߓߐ߬ߟߊ
|
||||||
Name[nqo]=ߞߎ߳ߓߌߕߏߙߍ߲ߕ
|
Name[nqo]=ߞߎ߳ߓߌߕߏߙߍ߲ߕ
|
||||||
Comment[nl]=Bestanden downloaden en delen via BitTorrent
|
Comment[nl]=Bestanden downloaden en delen via BitTorrent
|
||||||
GenericName[nl]=BitTorrent-cliënt
|
GenericName[nl]=BitTorrent-client
|
||||||
Name[nl]=qBittorrent
|
Name[nl]=qBittorrent
|
||||||
Comment[pl]=Pobieraj i dziel się plikami przez BitTorrent
|
Comment[pl]=Pobieraj i dziel się plikami przez BitTorrent
|
||||||
GenericName[pl]=Klient BitTorrent
|
GenericName[pl]=Klient BitTorrent
|
||||||
@@ -127,8 +133,8 @@ Name[pt_BR]=qBittorrent
|
|||||||
Comment[ro]=Descărcați și partajați fișiere prin BitTorrent
|
Comment[ro]=Descărcați și partajați fișiere prin BitTorrent
|
||||||
GenericName[ro]=Client BitTorrent
|
GenericName[ro]=Client BitTorrent
|
||||||
Name[ro]=qBittorrent
|
Name[ro]=qBittorrent
|
||||||
Comment[ru]=Скачивайте и делитесь файлами с помощью BitTorrent
|
Comment[ru]=Обмен файлами по сети BitTorrent
|
||||||
GenericName[ru]=BitTorrent-клиент
|
GenericName[ru]=Клиент сети BitTorrent
|
||||||
Name[ru]=qBittorrent
|
Name[ru]=qBittorrent
|
||||||
Comment[sk]=Sťahovanie a zdieľanie súborov prostredníctvom siete BitTorrent
|
Comment[sk]=Sťahovanie a zdieľanie súborov prostredníctvom siete BitTorrent
|
||||||
GenericName[sk]=Klient siete BitTorrent
|
GenericName[sk]=Klient siete BitTorrent
|
||||||
@@ -136,6 +142,7 @@ Name[sk]=qBittorrent
|
|||||||
Comment[sl]=Prenesite in delite datoteke preko BitTorrenta
|
Comment[sl]=Prenesite in delite datoteke preko BitTorrenta
|
||||||
GenericName[sl]=BitTorrent odjemalec
|
GenericName[sl]=BitTorrent odjemalec
|
||||||
Name[sl]=qBittorrent
|
Name[sl]=qBittorrent
|
||||||
|
Comment[sr]=Преузимајте и делите фајлове преко BitTorrent протокола
|
||||||
GenericName[sr]=BitTorrent-клијент
|
GenericName[sr]=BitTorrent-клијент
|
||||||
Comment[sr@latin]=Preuzimanje i deljenje fajlova preko BitTorrent-a
|
Comment[sr@latin]=Preuzimanje i deljenje fajlova preko BitTorrent-a
|
||||||
GenericName[sr@latin]=BitTorrent klijent
|
GenericName[sr@latin]=BitTorrent klijent
|
||||||
@@ -146,21 +153,27 @@ Name[sv]=qBittorrent
|
|||||||
Comment[uz@Latn]=BitTorrent orqali fayllarni yuklab olish va baham ko‘rish
|
Comment[uz@Latn]=BitTorrent orqali fayllarni yuklab olish va baham ko‘rish
|
||||||
GenericName[uz@Latn]=BitTorrent mijozi
|
GenericName[uz@Latn]=BitTorrent mijozi
|
||||||
Name[uz@Latn]=qBittorrent
|
Name[uz@Latn]=qBittorrent
|
||||||
Comment[te]=క్యు బిట్ టొరెంట్ తో ఫైల్స్ దిగుమతి చేసుకోండి , పంచుకోండి
|
Comment[ltg]=Atsasyuteit i daleit failus ar BitTorrent
|
||||||
GenericName[te]=క్యు బిట్ టొరెంట్ క్లయింట్
|
GenericName[ltg]=BitTorrent klients
|
||||||
Name[te]=క్యు బిట్ టొరెంట్
|
Name[ltg]=qBittorrent
|
||||||
Comment[hi_IN]= अपनी फाइलें BitTorrent के माध्यम से डाउनलोड आैर साॅझा करें
|
Comment[hi_IN]=BitTorrent द्वारा फाइल डाउनलोड व सहभाजन
|
||||||
GenericName[hi_IN]=BitTorrent उपभोक्ता
|
GenericName[hi_IN]=BitTorrent साधन
|
||||||
Name[hi_IN]=qBittorrent
|
Name[hi_IN]=qBittorrent
|
||||||
Comment[tr]=Dosyaları BitTorrent üzerinden indirin ve paylaşın
|
Comment[tr]=Dosyaları BitTorrent üzerinden indirin ve paylaşın
|
||||||
GenericName[tr]=BitTorrent istemcisi
|
GenericName[tr]=BitTorrent istemcisi
|
||||||
Name[tr]=qBittorrent
|
Name[tr]=qBittorrent
|
||||||
Comment[uk]=Завантажувати і обмінюватися файлами через BitTorrent
|
Comment[ur]=BitTorrent پر فائلوں کو ڈاؤن لوڈ کریں اور اشتراک کریں
|
||||||
|
GenericName[ur]=قیو بٹ ٹورنٹ کلائنٹ
|
||||||
|
Name[ur]=قیو بٹ ٹورنٹ
|
||||||
|
Comment[uk]=Завантажуйте та поширюйте файли через BitTorrent
|
||||||
GenericName[uk]=BitTorrent-клієнт
|
GenericName[uk]=BitTorrent-клієнт
|
||||||
Name[uk]=qBittorrent
|
Name[uk]=qBittorrent
|
||||||
Comment[vi]=Tải về và chia sẻ các tập tin thông qua BitTorrent
|
Comment[vi]=Tải về và chia sẻ các tập tin thông qua BitTorrent
|
||||||
GenericName[vi]=Máy trạm dạng BitTorrent
|
GenericName[vi]=Máy trạm dạng BitTorrent
|
||||||
Name[vi]=qBittorrent
|
Name[vi]=qBittorrent
|
||||||
|
Comment[az@latin]=Faylları BitTorrent vasitəsilə göndərin və paylaşın
|
||||||
|
GenericName[az@latin]=BitTorrent client
|
||||||
|
Name[az@latin]=qBittorrent
|
||||||
Comment[zh_HK]=經由BitTorrent下載並分享檔案
|
Comment[zh_HK]=經由BitTorrent下載並分享檔案
|
||||||
GenericName[zh_HK]=BitTorrent用戶端
|
GenericName[zh_HK]=BitTorrent用戶端
|
||||||
Name[zh_HK]=qBittorrent
|
Name[zh_HK]=qBittorrent
|
||||||
@@ -179,12 +192,18 @@ Name[eo]=qBittorrent
|
|||||||
Comment[mn_MN]=BitTorrent ашиглан файлуудыг татаж түгээх
|
Comment[mn_MN]=BitTorrent ашиглан файлуудыг татаж түгээх
|
||||||
GenericName[mn_MN]=BitTorrent үйлчлүүлэгч
|
GenericName[mn_MN]=BitTorrent үйлчлүүлэгч
|
||||||
Name[mn_MN]=qBittorrent
|
Name[mn_MN]=qBittorrent
|
||||||
|
Comment[ta]=BitTorrent வழியாக கோப்புகளை பதிவிறக்க மற்றும் பகிர
|
||||||
|
GenericName[ta]=BitTorrent வாடிக்கையாளர்
|
||||||
|
Name[ta]=qBittorrent
|
||||||
Comment[ne_NP]=फाइलहरू डाउनलोड गर्नुहोस् र BitTorrent मा साझा गर्नुहोस्
|
Comment[ne_NP]=फाइलहरू डाउनलोड गर्नुहोस् र BitTorrent मा साझा गर्नुहोस्
|
||||||
GenericName[ne_NP]=BitTorrent क्लाइन्ट
|
GenericName[ne_NP]=BitTorrent क्लाइन्ट
|
||||||
Name[ne_NP]=qBittorrent
|
Name[ne_NP]=qBittorrent
|
||||||
|
Comment[te]=క్యు బిట్ టొరెంట్ తో ఫైల్స్ దిగుమతి చేసుకోండి , పంచుకోండి
|
||||||
|
GenericName[te]=క్యు బిట్ టొరెంట్ క్లయింట్
|
||||||
|
Name[te]=క్యు బిట్ టొరెంట్
|
||||||
Comment[en_AU]=Download and share files over BitTorrent
|
Comment[en_AU]=Download and share files over BitTorrent
|
||||||
GenericName[en_AU]=BitTorrent client
|
GenericName[en_AU]=BitTorrent client
|
||||||
Name[en_AU]=qBittorrent
|
Name[en_AU]=qBittorrent
|
||||||
Comment[th]=ดาว์นโหลดและแชร์ไฟล์ด้วยบิททอเร้น
|
Comment[th]=ดาวน์โหลดและแชร์ไฟล์ด้วยบิททอเร้น
|
||||||
GenericName[th]=โปรแกรมบิททอเร้น
|
GenericName[th]=โปรแกรมบิททอเร้น
|
||||||
Name[th]=qBittorrent
|
Name[th]=qBittorrent
|
||||||
|
|||||||
3
dist/windows/README.txt
vendored
3
dist/windows/README.txt
vendored
@@ -8,7 +8,8 @@ TRANSLATORS:
|
|||||||
english message to help you with the translation.
|
english message to help you with the translation.
|
||||||
4. Edit only the part inside the quotation marks(""). Unless you know
|
4. Edit only the part inside the quotation marks(""). Unless you know
|
||||||
what you are doing.
|
what you are doing.
|
||||||
5. Save the files with utf8 encoding and BOM.
|
5. Save the files with UTF-8 encoding, without BOM
|
||||||
|
(this should be the default in any modern text editor).
|
||||||
6. Submit your changes: 1) as a pull request to the official git repo or
|
6. Submit your changes: 1) as a pull request to the official git repo or
|
||||||
2) open an issue to the bugtracker and attach them or 3) via email or
|
2) open an issue to the bugtracker and attach them or 3) via email or
|
||||||
4)the same way you provide the translations for qbt itself
|
4)the same way you provide the translations for qbt itself
|
||||||
|
|||||||
10
dist/windows/UAC.nsh
vendored
10
dist/windows/UAC.nsh
vendored
@@ -22,7 +22,7 @@ Interactive User (MediumIL) Admin user (HighIL)
|
|||||||
!ifndef UAC_HDR__INC
|
!ifndef UAC_HDR__INC
|
||||||
!verbose push
|
!verbose push
|
||||||
!verbose 3
|
!verbose 3
|
||||||
!ifndef UAC_VERBOSE
|
!ifndef UAC_VERBOSE
|
||||||
!define UAC_VERBOSE 3
|
!define UAC_VERBOSE 3
|
||||||
!endif
|
!endif
|
||||||
!verbose ${UAC_VERBOSE}
|
!verbose ${UAC_VERBOSE}
|
||||||
@@ -195,7 +195,7 @@ _UAC_L_E_${__UAC_L}:
|
|||||||
!endif
|
!endif
|
||||||
!insertmacro UAC_AsUser_Call Label _UAC_L_F_${__UAC_L} ${UAC_SYNCREGISTERS}|${UAC_SYNCOUTDIR}|${UAC_SYNCINSTDIR} #|${UAC_CLEARERRFLAG}
|
!insertmacro UAC_AsUser_Call Label _UAC_L_F_${__UAC_L} ${UAC_SYNCREGISTERS}|${UAC_SYNCOUTDIR}|${UAC_SYNCINSTDIR} #|${UAC_CLEARERRFLAG}
|
||||||
!if "${workdir}" != ""
|
!if "${workdir}" != ""
|
||||||
pop $outdir
|
pop $outdir
|
||||||
SetOutPath $outdir
|
SetOutPath $outdir
|
||||||
!endif
|
!endif
|
||||||
!macroend
|
!macroend
|
||||||
@@ -265,7 +265,7 @@ pop $_LOGICLIB_TEMP
|
|||||||
!macroend
|
!macroend
|
||||||
!macro _UAC_AsUser_GenOp outvar op opparam1 opparam2
|
!macro _UAC_AsUser_GenOp outvar op opparam1 opparam2
|
||||||
!define _UAC_AUGOGR_ID _UAC_AUGOGR_OP${outvar}${op}${opparam1}${opparam2}
|
!define _UAC_AUGOGR_ID _UAC_AUGOGR_OP${outvar}${op}${opparam1}${opparam2}
|
||||||
!ifndef ${_UAC_AUGOGR_ID} ;Has this exact action been done before?
|
!ifndef ${_UAC_AUGOGR_ID} ;Has this exact action been done before?
|
||||||
!if ${outvar} == $0
|
!if ${outvar} == $0
|
||||||
!define ${_UAC_AUGOGR_ID} $1
|
!define ${_UAC_AUGOGR_ID} $1
|
||||||
!else
|
!else
|
||||||
@@ -277,7 +277,7 @@ pop $_LOGICLIB_TEMP
|
|||||||
!else
|
!else
|
||||||
!define _UAC_AUGOGR_OPP1 ${opparam1}
|
!define _UAC_AUGOGR_OPP1 ${opparam1}
|
||||||
!define _UAC_AUGOGR_OPP2 ${${_UAC_AUGOGR_ID}}
|
!define _UAC_AUGOGR_OPP2 ${${_UAC_AUGOGR_ID}}
|
||||||
!endif
|
!endif
|
||||||
goto ${_UAC_AUGOGR_ID}_C
|
goto ${_UAC_AUGOGR_ID}_C
|
||||||
${_UAC_AUGOGR_ID}_F:
|
${_UAC_AUGOGR_ID}_F:
|
||||||
${op} ${_UAC_AUGOGR_OPP1} ${_UAC_AUGOGR_OPP2}
|
${op} ${_UAC_AUGOGR_OPP1} ${_UAC_AUGOGR_OPP2}
|
||||||
@@ -296,4 +296,4 @@ pop ${${_UAC_AUGOGR_ID}}
|
|||||||
|
|
||||||
|
|
||||||
!verbose pop
|
!verbose pop
|
||||||
!endif /* UAC_HDR__INC */
|
!endif /* UAC_HDR__INC */
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
;Installer strings
|
;Installer strings
|
||||||
|
|
||||||
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
||||||
LangString inst_qbt_req ${LANG_AFRIKAANS} "qBittorrent (required)"
|
LangString inst_qbt_req ${LANG_AFRIKAANS} "qBittorrent (required)"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
;Installer strings
|
;Installer strings
|
||||||
|
|
||||||
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
||||||
LangString inst_qbt_req ${LANG_ALBANIAN} "qBittorrent (required)"
|
LangString inst_qbt_req ${LANG_ALBANIAN} "qBittorrent (required)"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
;Installer strings
|
;Installer strings
|
||||||
|
|
||||||
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
||||||
LangString inst_qbt_req ${LANG_ARABIC} "qBittorrent (مطلوب)"
|
LangString inst_qbt_req ${LANG_ARABIC} "qBittorrent (مطلوب)"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
;Installer strings
|
;Installer strings
|
||||||
|
|
||||||
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
||||||
LangString inst_qbt_req ${LANG_BASQUE} "qBittorrent (beharrezkoa)"
|
LangString inst_qbt_req ${LANG_BASQUE} "qBittorrent (beharrezkoa)"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
;Installer strings
|
;Installer strings
|
||||||
|
|
||||||
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
||||||
LangString inst_qbt_req ${LANG_BELARUSIAN} "qBittorrent (required)"
|
LangString inst_qbt_req ${LANG_BELARUSIAN} "qBittorrent (required)"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
;Installer strings
|
;Installer strings
|
||||||
|
|
||||||
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
||||||
LangString inst_qbt_req ${LANG_BOSNIAN} "qBittorrent (required)"
|
LangString inst_qbt_req ${LANG_BOSNIAN} "qBittorrent (required)"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
;Installer strings
|
;Installer strings
|
||||||
|
|
||||||
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
||||||
LangString inst_qbt_req ${LANG_BRETON} "qBittorrent (required)"
|
LangString inst_qbt_req ${LANG_BRETON} "qBittorrent (required)"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
;Installer strings
|
;Installer strings
|
||||||
|
|
||||||
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
||||||
LangString inst_qbt_req ${LANG_BULGARIAN} "qBittorrent (required)"
|
LangString inst_qbt_req ${LANG_BULGARIAN} "qBittorrent (required)"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
;Installer strings
|
;Installer strings
|
||||||
|
|
||||||
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
||||||
LangString inst_qbt_req ${LANG_CATALAN} "qBittorrent (required)"
|
LangString inst_qbt_req ${LANG_CATALAN} "qBittorrent (required)"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
;Installer strings
|
;Installer strings
|
||||||
|
|
||||||
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
||||||
LangString inst_qbt_req ${LANG_CROATIAN} "qBittorrent (neophodno)"
|
LangString inst_qbt_req ${LANG_CROATIAN} "qBittorrent (neophodno)"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
;Installer strings
|
;Installer strings
|
||||||
|
|
||||||
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
||||||
LangString inst_qbt_req ${LANG_CZECH} "qBittorrent (vyžadováno)"
|
LangString inst_qbt_req ${LANG_CZECH} "qBittorrent (vyžadováno)"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
;Installer strings
|
;Installer strings
|
||||||
|
|
||||||
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
||||||
LangString inst_qbt_req ${LANG_DANISH} "qBittorrent (påkrævet)"
|
LangString inst_qbt_req ${LANG_DANISH} "qBittorrent (påkrævet)"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
;Installer strings
|
;Installer strings
|
||||||
|
|
||||||
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
||||||
LangString inst_qbt_req ${LANG_DUTCH} "qBittorrent (vereist)"
|
LangString inst_qbt_req ${LANG_DUTCH} "qBittorrent (vereist)"
|
||||||
@@ -19,9 +19,9 @@ LangString inst_pathlimit ${LANG_DUTCH} "De Windows-begrenzing voor padlengte ui
|
|||||||
;LangString inst_firewallinfo ${LANG_ENGLISH} "Adding Windows Firewall rule"
|
;LangString inst_firewallinfo ${LANG_ENGLISH} "Adding Windows Firewall rule"
|
||||||
LangString inst_firewallinfo ${LANG_DUTCH} "Uitzondering aan Windows Firewall toevoegen"
|
LangString inst_firewallinfo ${LANG_DUTCH} "Uitzondering aan Windows Firewall toevoegen"
|
||||||
;LangString inst_warning ${LANG_ENGLISH} "qBittorrent is running. Please close the application before installing."
|
;LangString inst_warning ${LANG_ENGLISH} "qBittorrent is running. Please close the application before installing."
|
||||||
LangString inst_warning ${LANG_DUTCH} "qBittorrent is actief. Sluit de toepassing voordat u deze update installeert."
|
LangString inst_warning ${LANG_DUTCH} "qBittorrent is actief. Sluit het af voordat u deze update installeert."
|
||||||
;LangString inst_uninstall_question ${LANG_ENGLISH} "Current version will be uninstalled. User settings and torrents will remain intact."
|
;LangString inst_uninstall_question ${LANG_ENGLISH} "Current version will be uninstalled. User settings and torrents will remain intact."
|
||||||
LangString inst_uninstall_question ${LANG_DUTCH} "Er werd een eerdere installatie gedetecteerd. Deze wordt verwijderd zonder de gebruikersinstellingen te verwijderen."
|
LangString inst_uninstall_question ${LANG_DUTCH} "De huidige versie zal verwijderd worden. Gebruikersinstellingen en torrents blijven intact."
|
||||||
;LangString inst_unist ${LANG_ENGLISH} "Uninstalling previous version."
|
;LangString inst_unist ${LANG_ENGLISH} "Uninstalling previous version."
|
||||||
LangString inst_unist ${LANG_DUTCH} "Vorige versie verwijderen."
|
LangString inst_unist ${LANG_DUTCH} "Vorige versie verwijderen."
|
||||||
;LangString launch_qbt ${LANG_ENGLISH} "Launch qBittorrent."
|
;LangString launch_qbt ${LANG_ENGLISH} "Launch qBittorrent."
|
||||||
@@ -52,7 +52,7 @@ LangString remove_firewallinfo ${LANG_DUTCH} "Uitzondering uit Windows Firewall
|
|||||||
;LangString remove_cache ${LANG_ENGLISH} "Remove torrents and cached data"
|
;LangString remove_cache ${LANG_ENGLISH} "Remove torrents and cached data"
|
||||||
LangString remove_cache ${LANG_DUTCH} "Torrents en cachegegevens verwijderen"
|
LangString remove_cache ${LANG_DUTCH} "Torrents en cachegegevens verwijderen"
|
||||||
;LangString uninst_warning ${LANG_ENGLISH} "qBittorrent is running. Please close the application before uninstalling."
|
;LangString uninst_warning ${LANG_ENGLISH} "qBittorrent is running. Please close the application before uninstalling."
|
||||||
LangString uninst_warning ${LANG_DUTCH} "qBittorrent is actief. Sluit de toepassing voordat u ze verwijdert."
|
LangString uninst_warning ${LANG_DUTCH} "qBittorrent is actief. Sluit het af voordat u het verwijdert."
|
||||||
;LangString uninst_tor_warn ${LANG_ENGLISH} "Not removing .torrent association. It is associated with:"
|
;LangString uninst_tor_warn ${LANG_ENGLISH} "Not removing .torrent association. It is associated with:"
|
||||||
LangString uninst_tor_warn ${LANG_DUTCH} ".torrent-associatie wordt niet verwijderd. Ze is gekoppeld met:"
|
LangString uninst_tor_warn ${LANG_DUTCH} ".torrent-associatie wordt niet verwijderd. Ze is gekoppeld met:"
|
||||||
;LangString uninst_mag_warn ${LANG_ENGLISH} "Not removing magnet association. It is associated with:"
|
;LangString uninst_mag_warn ${LANG_ENGLISH} "Not removing magnet association. It is associated with:"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
;Installer strings
|
;Installer strings
|
||||||
|
|
||||||
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
||||||
LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
;Installer strings
|
;Installer strings
|
||||||
|
|
||||||
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
||||||
LangString inst_qbt_req ${LANG_ESPERANTO} "qBittorrent (required)"
|
LangString inst_qbt_req ${LANG_ESPERANTO} "qBittorrent (required)"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
;Installer strings
|
;Installer strings
|
||||||
|
|
||||||
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
||||||
LangString inst_qbt_req ${LANG_ESTONIAN} "qBittorrent (required)"
|
LangString inst_qbt_req ${LANG_ESTONIAN} "qBittorrent (required)"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
;Installer strings
|
;Installer strings
|
||||||
|
|
||||||
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
||||||
LangString inst_qbt_req ${LANG_FARSI} "qBittorrent (required)"
|
LangString inst_qbt_req ${LANG_FARSI} "qBittorrent (required)"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
;Installer strings
|
;Installer strings
|
||||||
|
|
||||||
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
||||||
LangString inst_qbt_req ${LANG_FINNISH} "qBittorrent (pakollinen)"
|
LangString inst_qbt_req ${LANG_FINNISH} "qBittorrent (pakollinen)"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
;Installer strings
|
;Installer strings
|
||||||
|
|
||||||
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
||||||
LangString inst_qbt_req ${LANG_FRENCH} "qBittorrent (requis)"
|
LangString inst_qbt_req ${LANG_FRENCH} "qBittorrent (requis)"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
;Installer strings
|
;Installer strings
|
||||||
|
|
||||||
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
||||||
LangString inst_qbt_req ${LANG_GALICIAN} "qBittorrent (necesario)"
|
LangString inst_qbt_req ${LANG_GALICIAN} "qBittorrent (necesario)"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
;Installer strings
|
;Installer strings
|
||||||
|
|
||||||
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
||||||
LangString inst_qbt_req ${LANG_GERMAN} "qBittorrent (erforderlich)"
|
LangString inst_qbt_req ${LANG_GERMAN} "qBittorrent (erforderlich)"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
;Installer strings
|
;Installer strings
|
||||||
|
|
||||||
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
||||||
LangString inst_qbt_req ${LANG_GREEK} "qBittorrent (απαιτείται)"
|
LangString inst_qbt_req ${LANG_GREEK} "qBittorrent (απαιτείται)"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
;Installer strings
|
;Installer strings
|
||||||
|
|
||||||
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
||||||
LangString inst_qbt_req ${LANG_HEBREW} "qBittorrent (required)"
|
LangString inst_qbt_req ${LANG_HEBREW} "qBittorrent (required)"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
;Installer strings
|
;Installer strings
|
||||||
|
|
||||||
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
||||||
LangString inst_qbt_req ${LANG_HUNGARIAN} "qBittorrent (required)"
|
LangString inst_qbt_req ${LANG_HUNGARIAN} "qBittorrent (required)"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
;Installer strings
|
;Installer strings
|
||||||
|
|
||||||
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
||||||
LangString inst_qbt_req ${LANG_ICELANDIC} "qBittorrent (required)"
|
LangString inst_qbt_req ${LANG_ICELANDIC} "qBittorrent (required)"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
;Installer strings
|
;Installer strings
|
||||||
|
|
||||||
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
||||||
LangString inst_qbt_req ${LANG_INDONESIAN} "qBittorrent (required)"
|
LangString inst_qbt_req ${LANG_INDONESIAN} "qBittorrent (required)"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
;Installer strings
|
;Installer strings
|
||||||
|
|
||||||
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
||||||
LangString inst_qbt_req ${LANG_IRISH} "qBittorrent (required)"
|
LangString inst_qbt_req ${LANG_IRISH} "qBittorrent (required)"
|
||||||
|
|||||||
22
dist/windows/installer-translations/italian.nsi
vendored
22
dist/windows/installer-translations/italian.nsi
vendored
@@ -1,13 +1,13 @@
|
|||||||
;Installer strings
|
;Installer strings
|
||||||
|
|
||||||
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
||||||
LangString inst_qbt_req ${LANG_ITALIAN} "qBittorrent (necessario)"
|
LangString inst_qbt_req ${LANG_ITALIAN} "qBittorrent (necessario)"
|
||||||
;LangString inst_dekstop ${LANG_ENGLISH} "Create Desktop Shortcut"
|
;LangString inst_dekstop ${LANG_ENGLISH} "Create Desktop Shortcut"
|
||||||
LangString inst_dekstop ${LANG_ITALIAN} "Crea icone sul desktop"
|
LangString inst_dekstop ${LANG_ITALIAN} "Crea collegamento sul Desktop"
|
||||||
;LangString inst_startmenu ${LANG_ENGLISH} "Create Start Menu Shortcut"
|
;LangString inst_startmenu ${LANG_ENGLISH} "Create Start Menu Shortcut"
|
||||||
LangString inst_startmenu ${LANG_ITALIAN} "Crea gruppo programmi"
|
LangString inst_startmenu ${LANG_ITALIAN} "Aggiungi al menu Start"
|
||||||
;LangString inst_startup ${LANG_ENGLISH} "Start qBittorrent on Windows start up"
|
;LangString inst_startup ${LANG_ENGLISH} "Start qBittorrent on Windows start up"
|
||||||
LangString inst_startup ${LANG_ITALIAN} "Avvia qBittorrent all'avvio di Windows"
|
LangString inst_startup ${LANG_ITALIAN} "Esegui qBittorrent all'avvio di Windows"
|
||||||
;LangString inst_torrent ${LANG_ENGLISH} "Open .torrent files with qBittorrent"
|
;LangString inst_torrent ${LANG_ENGLISH} "Open .torrent files with qBittorrent"
|
||||||
LangString inst_torrent ${LANG_ITALIAN} "Apri file .torrent con qBittorrent"
|
LangString inst_torrent ${LANG_ITALIAN} "Apri file .torrent con qBittorrent"
|
||||||
;LangString inst_magnet ${LANG_ENGLISH} "Open magnet links with qBittorrent"
|
;LangString inst_magnet ${LANG_ENGLISH} "Open magnet links with qBittorrent"
|
||||||
@@ -15,21 +15,21 @@ LangString inst_magnet ${LANG_ITALIAN} "Apri collegamenti magnet con qBittorrent
|
|||||||
;LangString inst_firewall ${LANG_ENGLISH} "Add Windows Firewall rule"
|
;LangString inst_firewall ${LANG_ENGLISH} "Add Windows Firewall rule"
|
||||||
LangString inst_firewall ${LANG_ITALIAN} "Aggiungi regola al firewall di Windows"
|
LangString inst_firewall ${LANG_ITALIAN} "Aggiungi regola al firewall di Windows"
|
||||||
;LangString inst_pathlimit ${LANG_ENGLISH} "Disable Windows path length limit (260 character MAX_PATH limitation, requires Windows 10 1607 or later)"
|
;LangString inst_pathlimit ${LANG_ENGLISH} "Disable Windows path length limit (260 character MAX_PATH limitation, requires Windows 10 1607 or later)"
|
||||||
LangString inst_pathlimit ${LANG_ITALIAN} "Disable Windows path length limit (260 character MAX_PATH limitation, requires Windows 10 1607 or later)"
|
LangString inst_pathlimit ${LANG_ITALIAN} "Disabilita limite lunghezza percorsi Windows (limite MAX_PATH di 260 caratteri, richiede Windows 10 versione 1607 o successive)"
|
||||||
;LangString inst_firewallinfo ${LANG_ENGLISH} "Adding Windows Firewall rule"
|
;LangString inst_firewallinfo ${LANG_ENGLISH} "Adding Windows Firewall rule"
|
||||||
LangString inst_firewallinfo ${LANG_ITALIAN} "Aggiunta regola al firewall di Windows"
|
LangString inst_firewallinfo ${LANG_ITALIAN} "Aggiunta regola al firewall di Windows"
|
||||||
;LangString inst_warning ${LANG_ENGLISH} "qBittorrent is running. Please close the application before installing."
|
;LangString inst_warning ${LANG_ENGLISH} "qBittorrent is running. Please close the application before installing."
|
||||||
LangString inst_warning ${LANG_ITALIAN} "qBittorrent è in esecuzione. Chiudi l'applicazione prima dell'installazione."
|
LangString inst_warning ${LANG_ITALIAN} "qBittorrent è in esecuzione. Chiudilo prima di procedere con l'installazione."
|
||||||
;LangString inst_uninstall_question ${LANG_ENGLISH} "Current version will be uninstalled. User settings and torrents will remain intact."
|
;LangString inst_uninstall_question ${LANG_ENGLISH} "Current version will be uninstalled. User settings and torrents will remain intact."
|
||||||
LangString inst_uninstall_question ${LANG_ITALIAN} "Current version will be uninstalled. User settings and torrents will remain intact."
|
LangString inst_uninstall_question ${LANG_ITALIAN} "La versione attuale verrà disinstallata. Le impostazioni utente e i torrent rimarranno invariati."
|
||||||
;LangString inst_unist ${LANG_ENGLISH} "Uninstalling previous version."
|
;LangString inst_unist ${LANG_ENGLISH} "Uninstalling previous version."
|
||||||
LangString inst_unist ${LANG_ITALIAN} "Disinstallazione versione precedente."
|
LangString inst_unist ${LANG_ITALIAN} "Disinstallazione versione precedente."
|
||||||
;LangString launch_qbt ${LANG_ENGLISH} "Launch qBittorrent."
|
;LangString launch_qbt ${LANG_ENGLISH} "Launch qBittorrent."
|
||||||
LangString launch_qbt ${LANG_ITALIAN} "Esegui qBittorrent."
|
LangString launch_qbt ${LANG_ITALIAN} "Esegui qBittorrent."
|
||||||
;LangString inst_requires_64bit ${LANG_ENGLISH} "This installer works only in 64-bit Windows versions."
|
;LangString inst_requires_64bit ${LANG_ENGLISH} "This installer works only in 64-bit Windows versions."
|
||||||
LangString inst_requires_64bit ${LANG_ITALIAN} "This installer works only in 64-bit Windows versions."
|
LangString inst_requires_64bit ${LANG_ITALIAN} "Questo installer funziona solo con versioni di Windows a 64bit."
|
||||||
;LangString inst_requires_win7 ${LANG_ENGLISH} "This qBittorrent version requires at least Windows 7."
|
;LangString inst_requires_win7 ${LANG_ENGLISH} "This qBittorrent version requires at least Windows 7."
|
||||||
LangString inst_requires_win7 ${LANG_ITALIAN} "This qBittorrent version requires at least Windows 7."
|
LangString inst_requires_win7 ${LANG_ITALIAN} "Questa versione di qBittorrent richiede Windows 7 o versioni successive."
|
||||||
|
|
||||||
|
|
||||||
;------------------------------------
|
;------------------------------------
|
||||||
@@ -42,7 +42,7 @@ LangString remove_shortcuts ${LANG_ITALIAN} "Rimuovi collegamenti"
|
|||||||
;LangString remove_associations ${LANG_ENGLISH} "Remove file associations"
|
;LangString remove_associations ${LANG_ENGLISH} "Remove file associations"
|
||||||
LangString remove_associations ${LANG_ITALIAN} "Rimuovi associazione file"
|
LangString remove_associations ${LANG_ITALIAN} "Rimuovi associazione file"
|
||||||
;LangString remove_registry ${LANG_ENGLISH} "Remove registry keys"
|
;LangString remove_registry ${LANG_ENGLISH} "Remove registry keys"
|
||||||
LangString remove_registry ${LANG_ITALIAN} "Rimuovi chiavi registro"
|
LangString remove_registry ${LANG_ITALIAN} "Rimuovi chiavi di registro"
|
||||||
;LangString remove_conf ${LANG_ENGLISH} "Remove configuration files"
|
;LangString remove_conf ${LANG_ENGLISH} "Remove configuration files"
|
||||||
LangString remove_conf ${LANG_ITALIAN} "Rimuovi file di configurazione"
|
LangString remove_conf ${LANG_ITALIAN} "Rimuovi file di configurazione"
|
||||||
;LangString remove_firewall ${LANG_ENGLISH} "Remove Windows Firewall rule"
|
;LangString remove_firewall ${LANG_ENGLISH} "Remove Windows Firewall rule"
|
||||||
@@ -52,7 +52,7 @@ LangString remove_firewallinfo ${LANG_ITALIAN} "Rimozione regola dal firewall di
|
|||||||
;LangString remove_cache ${LANG_ENGLISH} "Remove torrents and cached data"
|
;LangString remove_cache ${LANG_ENGLISH} "Remove torrents and cached data"
|
||||||
LangString remove_cache ${LANG_ITALIAN} "Rimuovi torrent e dati nella cache"
|
LangString remove_cache ${LANG_ITALIAN} "Rimuovi torrent e dati nella cache"
|
||||||
;LangString uninst_warning ${LANG_ENGLISH} "qBittorrent is running. Please close the application before uninstalling."
|
;LangString uninst_warning ${LANG_ENGLISH} "qBittorrent is running. Please close the application before uninstalling."
|
||||||
LangString uninst_warning ${LANG_ITALIAN} "qBittorrent è in esecuzione. Chiudi l'applicazione prima della disinstallazione."
|
LangString uninst_warning ${LANG_ITALIAN} "qBittorrent è in esecuzione. Chiudilo prima di procedere con la disinstallazione."
|
||||||
;LangString uninst_tor_warn ${LANG_ENGLISH} "Not removing .torrent association. It is associated with:"
|
;LangString uninst_tor_warn ${LANG_ENGLISH} "Not removing .torrent association. It is associated with:"
|
||||||
LangString uninst_tor_warn ${LANG_ITALIAN} "Associazione file .torrent non rimossa. File associati con:"
|
LangString uninst_tor_warn ${LANG_ITALIAN} "Associazione file .torrent non rimossa. File associati con:"
|
||||||
;LangString uninst_mag_warn ${LANG_ENGLISH} "Not removing magnet association. It is associated with:"
|
;LangString uninst_mag_warn ${LANG_ENGLISH} "Not removing magnet association. It is associated with:"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
;Installer strings
|
;Installer strings
|
||||||
|
|
||||||
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
||||||
LangString inst_qbt_req ${LANG_KOREAN} "qBittorrent (required)"
|
LangString inst_qbt_req ${LANG_KOREAN} "qBittorrent (required)"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
;Installer strings
|
;Installer strings
|
||||||
|
|
||||||
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
||||||
LangString inst_qbt_req ${LANG_KURDISH} "qBittorrent (required)"
|
LangString inst_qbt_req ${LANG_KURDISH} "qBittorrent (required)"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
;Installer strings
|
;Installer strings
|
||||||
|
|
||||||
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
||||||
LangString inst_qbt_req ${LANG_LATVIAN} "qBittorrent (required)"
|
LangString inst_qbt_req ${LANG_LATVIAN} "qBittorrent (required)"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
;Installer strings
|
;Installer strings
|
||||||
|
|
||||||
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
||||||
LangString inst_qbt_req ${LANG_LITHUANIAN} "qBittorrent (reikalingas)"
|
LangString inst_qbt_req ${LANG_LITHUANIAN} "qBittorrent (reikalingas)"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
;Installer strings
|
;Installer strings
|
||||||
|
|
||||||
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
||||||
LangString inst_qbt_req ${LANG_LUXEMBOURGISH} "qBittorrent (required)"
|
LangString inst_qbt_req ${LANG_LUXEMBOURGISH} "qBittorrent (required)"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
;Installer strings
|
;Installer strings
|
||||||
|
|
||||||
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
||||||
LangString inst_qbt_req ${LANG_MACEDONIAN} "qBittorrent (required)"
|
LangString inst_qbt_req ${LANG_MACEDONIAN} "qBittorrent (required)"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
;Installer strings
|
;Installer strings
|
||||||
|
|
||||||
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
||||||
LangString inst_qbt_req ${LANG_MALAY} "qBittorrent (required)"
|
LangString inst_qbt_req ${LANG_MALAY} "qBittorrent (required)"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
;Installer strings
|
;Installer strings
|
||||||
|
|
||||||
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
||||||
LangString inst_qbt_req ${LANG_MONGOLIAN} "qBittorrent (required)"
|
LangString inst_qbt_req ${LANG_MONGOLIAN} "qBittorrent (required)"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
;Installer strings
|
;Installer strings
|
||||||
|
|
||||||
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
||||||
LangString inst_qbt_req ${LANG_NORWEGIAN} "qBittorrent (kreves)"
|
LangString inst_qbt_req ${LANG_NORWEGIAN} "qBittorrent (kreves)"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
;Installer strings
|
;Installer strings
|
||||||
|
|
||||||
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
||||||
LangString inst_qbt_req ${LANG_NORWEGIANNYNORSK} "qBittorrent (required)"
|
LangString inst_qbt_req ${LANG_NORWEGIANNYNORSK} "qBittorrent (required)"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
;Installer strings
|
;Installer strings
|
||||||
|
|
||||||
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
||||||
LangString inst_qbt_req ${LANG_POLISH} "qBittorrent (required)"
|
LangString inst_qbt_req ${LANG_POLISH} "qBittorrent (required)"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
;Installer strings
|
;Installer strings
|
||||||
|
|
||||||
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
||||||
LangString inst_qbt_req ${LANG_PORTUGUESE} "qBittorrent (obrigatório)"
|
LangString inst_qbt_req ${LANG_PORTUGUESE} "qBittorrent (obrigatório)"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
;Installer strings
|
;Installer strings
|
||||||
|
|
||||||
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
||||||
LangString inst_qbt_req ${LANG_PORTUGUESEBR} "qBittorrent (requerido)"
|
LangString inst_qbt_req ${LANG_PORTUGUESEBR} "qBittorrent (requerido)"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
;Installer strings
|
;Installer strings
|
||||||
|
|
||||||
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
||||||
LangString inst_qbt_req ${LANG_ROMANIAN} "qBittorrent (required)"
|
LangString inst_qbt_req ${LANG_ROMANIAN} "qBittorrent (required)"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
;Installer strings
|
;Installer strings
|
||||||
|
|
||||||
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
||||||
LangString inst_qbt_req ${LANG_RUSSIAN} "qBittorrent (обязательно)"
|
LangString inst_qbt_req ${LANG_RUSSIAN} "qBittorrent (обязательно)"
|
||||||
@@ -21,7 +21,7 @@ LangString inst_firewallinfo ${LANG_RUSSIAN} "Добавление в списо
|
|||||||
;LangString inst_warning ${LANG_ENGLISH} "qBittorrent is running. Please close the application before installing."
|
;LangString inst_warning ${LANG_ENGLISH} "qBittorrent is running. Please close the application before installing."
|
||||||
LangString inst_warning ${LANG_RUSSIAN} "qBittorrent запущен. Пожалуйста, закройте qBittorrent и перезапустите программу установки."
|
LangString inst_warning ${LANG_RUSSIAN} "qBittorrent запущен. Пожалуйста, закройте qBittorrent и перезапустите программу установки."
|
||||||
;LangString inst_uninstall_question ${LANG_ENGLISH} "Current version will be uninstalled. User settings and torrents will remain intact."
|
;LangString inst_uninstall_question ${LANG_ENGLISH} "Current version will be uninstalled. User settings and torrents will remain intact."
|
||||||
LangString inst_uninstall_question ${LANG_RUSSIAN} "Обнаружена предыдущая установка. Она будет деинсталлирована без удаления пользовательских настроек."
|
LangString inst_uninstall_question ${LANG_RUSSIAN} "Текущая версия будет деинсталлирована. Пользовательские настройки и торренты останутся нетронутыми."
|
||||||
;LangString inst_unist ${LANG_ENGLISH} "Uninstalling previous version."
|
;LangString inst_unist ${LANG_ENGLISH} "Uninstalling previous version."
|
||||||
LangString inst_unist ${LANG_RUSSIAN} "Деинсталлируется старая версия."
|
LangString inst_unist ${LANG_RUSSIAN} "Деинсталлируется старая версия."
|
||||||
;LangString launch_qbt ${LANG_ENGLISH} "Launch qBittorrent."
|
;LangString launch_qbt ${LANG_ENGLISH} "Launch qBittorrent."
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
;Installer strings
|
;Installer strings
|
||||||
|
|
||||||
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
||||||
LangString inst_qbt_req ${LANG_SERBIAN} "qBittorrent (required)"
|
LangString inst_qbt_req ${LANG_SERBIAN} "qBittorrent (required)"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
;Installer strings
|
;Installer strings
|
||||||
|
|
||||||
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
||||||
LangString inst_qbt_req ${LANG_SERBIANLATIN} "qBittorrent (required)"
|
LangString inst_qbt_req ${LANG_SERBIANLATIN} "qBittorrent (required)"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
;Installer strings
|
;Installer strings
|
||||||
|
|
||||||
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
||||||
LangString inst_qbt_req ${LANG_SIMPCHINESE} "qBittorrent (必要)"
|
LangString inst_qbt_req ${LANG_SIMPCHINESE} "qBittorrent (必要)"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
;Installer strings
|
;Installer strings
|
||||||
|
|
||||||
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
||||||
LangString inst_qbt_req ${LANG_SLOVAK} "qBittorrent (required)"
|
LangString inst_qbt_req ${LANG_SLOVAK} "qBittorrent (required)"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
;Installer strings
|
;Installer strings
|
||||||
|
|
||||||
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
||||||
LangString inst_qbt_req ${LANG_SLOVENIAN} "qBittorrent (required)"
|
LangString inst_qbt_req ${LANG_SLOVENIAN} "qBittorrent (required)"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
;Installer strings
|
;Installer strings
|
||||||
|
|
||||||
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
||||||
LangString inst_qbt_req ${LANG_SPANISH} "qBittorrent (necesario)"
|
LangString inst_qbt_req ${LANG_SPANISH} "qBittorrent (necesario)"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
;Installer strings
|
;Installer strings
|
||||||
|
|
||||||
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
||||||
LangString inst_qbt_req ${LANG_SPANISHINTERNATIONAL} "qBittorrent (necesario)"
|
LangString inst_qbt_req ${LANG_SPANISHINTERNATIONAL} "qBittorrent (necesario)"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
;Installer strings
|
;Installer strings
|
||||||
|
|
||||||
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
||||||
LangString inst_qbt_req ${LANG_SWEDISH} "qBittorrent (required)"
|
LangString inst_qbt_req ${LANG_SWEDISH} "qBittorrent (required)"
|
||||||
|
|||||||
2
dist/windows/installer-translations/thai.nsi
vendored
2
dist/windows/installer-translations/thai.nsi
vendored
@@ -1,4 +1,4 @@
|
|||||||
;Installer strings
|
;Installer strings
|
||||||
|
|
||||||
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
||||||
LangString inst_qbt_req ${LANG_THAI} "qBittorrent (required)"
|
LangString inst_qbt_req ${LANG_THAI} "qBittorrent (required)"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
;Installer strings
|
;Installer strings
|
||||||
|
|
||||||
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
||||||
LangString inst_qbt_req ${LANG_TRADCHINESE} "qBittorrent (必要)"
|
LangString inst_qbt_req ${LANG_TRADCHINESE} "qBittorrent (必要)"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
;Installer strings
|
;Installer strings
|
||||||
|
|
||||||
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
||||||
LangString inst_qbt_req ${LANG_TURKISH} "qBittorrent (zorunlu)"
|
LangString inst_qbt_req ${LANG_TURKISH} "qBittorrent (zorunlu)"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
;Installer strings
|
;Installer strings
|
||||||
|
|
||||||
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
||||||
LangString inst_qbt_req ${LANG_UKRAINIAN} "qBittorrent (необхідний)"
|
LangString inst_qbt_req ${LANG_UKRAINIAN} "qBittorrent (необхідний)"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
;Installer strings
|
;Installer strings
|
||||||
|
|
||||||
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
||||||
LangString inst_qbt_req ${LANG_UZBEK} "qBittorrent (required)"
|
LangString inst_qbt_req ${LANG_UZBEK} "qBittorrent (required)"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
;Installer strings
|
;Installer strings
|
||||||
|
|
||||||
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
;LangString inst_qbt_req ${LANG_ENGLISH} "qBittorrent (required)"
|
||||||
LangString inst_qbt_req ${LANG_WELSH} "qBittorrent (required)"
|
LangString inst_qbt_req ${LANG_WELSH} "qBittorrent (required)"
|
||||||
|
|||||||
2
dist/windows/installer.nsi
vendored
2
dist/windows/installer.nsi
vendored
@@ -1,4 +1,4 @@
|
|||||||
Var uninstallerPath
|
Var uninstallerPath
|
||||||
|
|
||||||
Section "-hidden"
|
Section "-hidden"
|
||||||
|
|
||||||
|
|||||||
4
dist/windows/options.nsi
vendored
4
dist/windows/options.nsi
vendored
@@ -1,4 +1,4 @@
|
|||||||
Unicode true
|
Unicode true
|
||||||
ManifestDPIAware true
|
ManifestDPIAware true
|
||||||
;Compress the header too
|
;Compress the header too
|
||||||
!packhdr "$%TEMP%\exehead.tmp" 'upx.exe -9 --best --ultra-brute "$%TEMP%\exehead.tmp"'
|
!packhdr "$%TEMP%\exehead.tmp" 'upx.exe -9 --best --ultra-brute "$%TEMP%\exehead.tmp"'
|
||||||
@@ -28,7 +28,7 @@ XPStyle on
|
|||||||
!define CSIDL_LOCALAPPDATA '0x1C' ;Local Application Data path
|
!define CSIDL_LOCALAPPDATA '0x1C' ;Local Application Data path
|
||||||
|
|
||||||
; Program specific
|
; Program specific
|
||||||
!define PROG_VERSION "4.3.0"
|
!define PROG_VERSION "4.3.2"
|
||||||
|
|
||||||
!define MUI_FINISHPAGE_RUN
|
!define MUI_FINISHPAGE_RUN
|
||||||
!define MUI_FINISHPAGE_RUN_FUNCTION PageFinishRun
|
!define MUI_FINISHPAGE_RUN_FUNCTION PageFinishRun
|
||||||
|
|||||||
2
dist/windows/qbittorrent.nsi
vendored
2
dist/windows/qbittorrent.nsi
vendored
@@ -1,4 +1,4 @@
|
|||||||
!include options.nsi
|
!include options.nsi
|
||||||
!include translations.nsi
|
!include translations.nsi
|
||||||
!include installer.nsi
|
!include installer.nsi
|
||||||
!include uninstaller.nsi
|
!include uninstaller.nsi
|
||||||
|
|||||||
2
dist/windows/translations.nsi
vendored
2
dist/windows/translations.nsi
vendored
@@ -1,4 +1,4 @@
|
|||||||
;Nsis translations
|
;Nsis translations
|
||||||
|
|
||||||
!insertmacro MUI_LANGUAGE "English"
|
!insertmacro MUI_LANGUAGE "English"
|
||||||
!insertmacro MUI_LANGUAGE "Afrikaans"
|
!insertmacro MUI_LANGUAGE "Afrikaans"
|
||||||
|
|||||||
2
dist/windows/uninstaller.nsi
vendored
2
dist/windows/uninstaller.nsi
vendored
@@ -1,4 +1,4 @@
|
|||||||
Section "un.$(remove_files)" ;"un.Remove files"
|
Section "un.$(remove_files)" ;"un.Remove files"
|
||||||
SectionIn RO
|
SectionIn RO
|
||||||
|
|
||||||
; Remove files and uninstaller
|
; Remove files and uninstaller
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
|
# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
|
||||||
# serial 1 (pkg-config-0.24)
|
# serial 1 (pkg-config-0.24)
|
||||||
#
|
#
|
||||||
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
|
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or modify
|
# This program is free software; you can redistribute it and/or modify
|
||||||
@@ -123,7 +123,7 @@ if test $pkg_failed = yes; then
|
|||||||
_PKG_SHORT_ERRORS_SUPPORTED
|
_PKG_SHORT_ERRORS_SUPPORTED
|
||||||
if test $_pkg_short_errors_supported = yes; then
|
if test $_pkg_short_errors_supported = yes; then
|
||||||
$1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
|
$1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
|
||||||
else
|
else
|
||||||
$1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
|
$1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
|
||||||
fi
|
fi
|
||||||
# Put the nasty error message in config.log where it belongs
|
# Put the nasty error message in config.log where it belongs
|
||||||
|
|||||||
@@ -5,9 +5,9 @@
|
|||||||
# Sets the QT_QMAKE variable to the path of Qt5 qmake if found.
|
# Sets the QT_QMAKE variable to the path of Qt5 qmake if found.
|
||||||
# --------------------------------------
|
# --------------------------------------
|
||||||
AC_DEFUN([FIND_QT5],
|
AC_DEFUN([FIND_QT5],
|
||||||
[PKG_CHECK_EXISTS([Qt5Core >= 5.9.0],
|
[PKG_CHECK_EXISTS([Qt5Core >= 5.9.5],
|
||||||
[PKG_CHECK_VAR(QT_QMAKE,
|
[PKG_CHECK_VAR(QT_QMAKE,
|
||||||
[Qt5Core >= 5.9.0],
|
[Qt5Core >= 5.9.5],
|
||||||
[host_bins])
|
[host_bins])
|
||||||
])
|
])
|
||||||
|
|
||||||
@@ -18,7 +18,7 @@ AS_IF([test -f "$QT_QMAKE/qmake"],
|
|||||||
[QT_QMAKE=""])
|
[QT_QMAKE=""])
|
||||||
])
|
])
|
||||||
|
|
||||||
AC_MSG_CHECKING([for Qt5 qmake >= 5.9.0])
|
AC_MSG_CHECKING([for Qt5 qmake >= 5.9.5])
|
||||||
AS_IF([test "x$QT_QMAKE" != "x"],
|
AS_IF([test "x$QT_QMAKE" != "x"],
|
||||||
[AC_MSG_RESULT([$QT_QMAKE])],
|
[AC_MSG_RESULT([$QT_QMAKE])],
|
||||||
[AC_MSG_RESULT([not found])]
|
[AC_MSG_RESULT([not found])]
|
||||||
@@ -29,8 +29,8 @@ AS_IF([test "x$QT_QMAKE" != "x"],
|
|||||||
# Sets the HAVE_QTDBUS variable to true or false.
|
# Sets the HAVE_QTDBUS variable to true or false.
|
||||||
# --------------------------------------
|
# --------------------------------------
|
||||||
AC_DEFUN([FIND_QTDBUS],
|
AC_DEFUN([FIND_QTDBUS],
|
||||||
[AC_MSG_CHECKING([for Qt5DBus >= 5.9.0])
|
[AC_MSG_CHECKING([for Qt5DBus >= 5.9.5])
|
||||||
PKG_CHECK_EXISTS([Qt5DBus >= 5.9.0],
|
PKG_CHECK_EXISTS([Qt5DBus >= 5.9.5],
|
||||||
[AC_MSG_RESULT([found])
|
[AC_MSG_RESULT([found])
|
||||||
HAVE_QTDBUS=[true]],
|
HAVE_QTDBUS=[true]],
|
||||||
[AC_MSG_RESULT([not found])
|
[AC_MSG_RESULT([not found])
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
if (UNIX AND (NOT APPLE) AND (NOT CYGWIN))
|
if (UNIX AND (NOT APPLE) AND (NOT CYGWIN))
|
||||||
find_package(LibtorrentRasterbar QUIET ${requiredLibtorrentVersion} COMPONENTS torrent-rasterbar)
|
find_package(LibtorrentRasterbar QUIET ${minLibtorrentVersion} COMPONENTS torrent-rasterbar)
|
||||||
if (NOT LibtorrentRasterbar_FOUND)
|
if (NOT LibtorrentRasterbar_FOUND)
|
||||||
include(FindPkgConfig)
|
include(FindPkgConfig)
|
||||||
pkg_check_modules(LIBTORRENT_RASTERBAR IMPORTED_TARGET GLOBAL "libtorrent-rasterbar>=${requiredLibtorrentVersion}")
|
pkg_check_modules(LIBTORRENT_RASTERBAR IMPORTED_TARGET GLOBAL "libtorrent-rasterbar>=${minLibtorrentVersion}")
|
||||||
if (NOT LIBTORRENT_RASTERBAR_FOUND)
|
if (NOT LIBTORRENT_RASTERBAR_FOUND)
|
||||||
message(
|
message(
|
||||||
FATAL_ERROR
|
FATAL_ERROR
|
||||||
"Package LibtorrentRasterbar >= ${requiredLibtorrentVersion} not found"
|
"Package LibtorrentRasterbar >= ${minLibtorrentVersion} not found"
|
||||||
" with CMake or pkg-config.\n- Set LibtorrentRasterbar_DIR to a directory containing"
|
" with CMake or pkg-config.\n- Set LibtorrentRasterbar_DIR to a directory containing"
|
||||||
" a LibtorrentRasterbarConfig.cmake file or add the installation prefix of LibtorrentRasterbar"
|
" a LibtorrentRasterbarConfig.cmake file or add the installation prefix of LibtorrentRasterbar"
|
||||||
" to CMAKE_PREFIX_PATH.\n- Alternatively, make sure there is a valid libtorrent-rasterbar.pc"
|
" to CMAKE_PREFIX_PATH.\n- Alternatively, make sure there is a valid libtorrent-rasterbar.pc"
|
||||||
@@ -18,9 +18,9 @@ if (UNIX AND (NOT APPLE) AND (NOT CYGWIN))
|
|||||||
# force a fake package to show up in the feature summary
|
# force a fake package to show up in the feature summary
|
||||||
set_property(GLOBAL APPEND PROPERTY
|
set_property(GLOBAL APPEND PROPERTY
|
||||||
PACKAGES_FOUND
|
PACKAGES_FOUND
|
||||||
"LibtorrentRasterbar via pkg-config (required version >= ${requiredLibtorrentVersion})"
|
"LibtorrentRasterbar via pkg-config (version >= ${minLibtorrentVersion})"
|
||||||
)
|
)
|
||||||
set_package_properties("LibtorrentRasterbar via pkg-config (required version >= ${requiredLibtorrentVersion})"
|
set_package_properties("LibtorrentRasterbar via pkg-config (version >= ${minLibtorrentVersion})"
|
||||||
PROPERTIES
|
PROPERTIES
|
||||||
TYPE REQUIRED
|
TYPE REQUIRED
|
||||||
)
|
)
|
||||||
@@ -28,16 +28,16 @@ if (UNIX AND (NOT APPLE) AND (NOT CYGWIN))
|
|||||||
set_package_properties(LibtorrentRasterbar PROPERTIES TYPE REQUIRED)
|
set_package_properties(LibtorrentRasterbar PROPERTIES TYPE REQUIRED)
|
||||||
endif()
|
endif()
|
||||||
else()
|
else()
|
||||||
find_package(LibtorrentRasterbar ${requiredLibtorrentVersion} REQUIRED COMPONENTS torrent-rasterbar)
|
find_package(LibtorrentRasterbar ${minLibtorrentVersion} REQUIRED COMPONENTS torrent-rasterbar)
|
||||||
endif()
|
endif()
|
||||||
# force variable type so that it always shows up in ccmake/cmake-gui frontends
|
# force variable type so that it always shows up in ccmake/cmake-gui frontends
|
||||||
set_property(CACHE LibtorrentRasterbar_DIR PROPERTY TYPE PATH)
|
set_property(CACHE LibtorrentRasterbar_DIR PROPERTY TYPE PATH)
|
||||||
find_package(Boost ${requiredBoostVersion} REQUIRED)
|
find_package(Boost ${minBoostVersion} REQUIRED)
|
||||||
find_package(OpenSSL ${requiredOpenSSLVersion} REQUIRED)
|
find_package(OpenSSL ${minOpenSSLVersion} REQUIRED)
|
||||||
find_package(ZLIB ${requiredZlibVersion} REQUIRED)
|
find_package(ZLIB ${minZlibVersion} REQUIRED)
|
||||||
find_package(Qt5 ${requiredQtVersion} REQUIRED COMPONENTS Core Network Xml LinguistTools)
|
find_package(Qt5 ${minQtVersion} REQUIRED COMPONENTS Core Network Xml LinguistTools)
|
||||||
if (DBUS)
|
if (DBUS)
|
||||||
find_package(Qt5 ${requiredQtVersion} REQUIRED COMPONENTS DBus)
|
find_package(Qt5 ${minQtVersion} REQUIRED COMPONENTS DBus)
|
||||||
set_package_properties(Qt5DBus PROPERTIES
|
set_package_properties(Qt5DBus PROPERTIES
|
||||||
DESCRIPTION "Qt5 module for inter-process communication over the D-Bus protocol"
|
DESCRIPTION "Qt5 module for inter-process communication over the D-Bus protocol"
|
||||||
PURPOSE "Required by the DBUS feature"
|
PURPOSE "Required by the DBUS feature"
|
||||||
@@ -60,11 +60,11 @@ include_directories(${CMAKE_CURRENT_SOURCE_DIR})
|
|||||||
add_subdirectory(base)
|
add_subdirectory(base)
|
||||||
|
|
||||||
if (GUI)
|
if (GUI)
|
||||||
find_package(Qt5 ${requiredQtVersion} REQUIRED COMPONENTS Widgets Svg)
|
find_package(Qt5 ${minQtVersion} REQUIRED COMPONENTS Widgets Svg)
|
||||||
if (CMAKE_SYSTEM_NAME STREQUAL "Darwin")
|
if (CMAKE_SYSTEM_NAME STREQUAL "Darwin")
|
||||||
find_package(Qt5 ${requiredQtVersion} REQUIRED COMPONENTS MacExtras)
|
find_package(Qt5 ${minQtVersion} REQUIRED COMPONENTS MacExtras)
|
||||||
elseif (CMAKE_SYSTEM_NAME STREQUAL "Windows")
|
elseif (CMAKE_SYSTEM_NAME STREQUAL "Windows")
|
||||||
find_package(Qt5 ${requiredQtVersion} REQUIRED COMPONENTS WinExtras)
|
find_package(Qt5 ${minQtVersion} REQUIRED COMPONENTS WinExtras)
|
||||||
endif()
|
endif()
|
||||||
add_subdirectory(gui)
|
add_subdirectory(gui)
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
@@ -181,12 +181,14 @@ Application::Application(int &argc, char **argv)
|
|||||||
m_fileLogger = new FileLogger(fileLoggerPath(), isFileLoggerBackup(), fileLoggerMaxSize(), isFileLoggerDeleteOld(), fileLoggerAge(), static_cast<FileLogger::FileLogAgeType>(fileLoggerAgeType()));
|
m_fileLogger = new FileLogger(fileLoggerPath(), isFileLoggerBackup(), fileLoggerMaxSize(), isFileLoggerDeleteOld(), fileLoggerAge(), static_cast<FileLogger::FileLogAgeType>(fileLoggerAgeType()));
|
||||||
|
|
||||||
Logger::instance()->addMessage(tr("qBittorrent %1 started", "qBittorrent v3.2.0alpha started").arg(QBT_VERSION));
|
Logger::instance()->addMessage(tr("qBittorrent %1 started", "qBittorrent v3.2.0alpha started").arg(QBT_VERSION));
|
||||||
if (portableModeEnabled) {
|
if (portableModeEnabled)
|
||||||
|
{
|
||||||
Logger::instance()->addMessage(tr("Running in portable mode. Auto detected profile folder at: %1").arg(profileDir));
|
Logger::instance()->addMessage(tr("Running in portable mode. Auto detected profile folder at: %1").arg(profileDir));
|
||||||
if (m_commandLineArgs.relativeFastresumePaths)
|
if (m_commandLineArgs.relativeFastresumePaths)
|
||||||
Logger::instance()->addMessage(tr("Redundant command line flag detected: \"%1\". Portable mode implies relative fastresume.").arg("--relative-fastresume"), Log::WARNING); // to avoid translating the `--relative-fastresume` string
|
Logger::instance()->addMessage(tr("Redundant command line flag detected: \"%1\". Portable mode implies relative fastresume.").arg("--relative-fastresume"), Log::WARNING); // to avoid translating the `--relative-fastresume` string
|
||||||
}
|
}
|
||||||
else {
|
else
|
||||||
|
{
|
||||||
Logger::instance()->addMessage(tr("Using config directory: %1").arg(Profile::instance()->location(SpecialFolder::Config)));
|
Logger::instance()->addMessage(tr("Using config directory: %1").arg(Profile::instance()->location(SpecialFolder::Config)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -361,11 +363,13 @@ void Application::runExternalProgram(const BitTorrent::TorrentHandle *torrent) c
|
|||||||
proc.setArguments(argList);
|
proc.setArguments(argList);
|
||||||
proc.setCreateProcessArgumentsModifier([](QProcess::CreateProcessArguments *args)
|
proc.setCreateProcessArgumentsModifier([](QProcess::CreateProcessArguments *args)
|
||||||
{
|
{
|
||||||
if (Preferences::instance()->isAutoRunConsoleEnabled()) {
|
if (Preferences::instance()->isAutoRunConsoleEnabled())
|
||||||
|
{
|
||||||
args->flags |= CREATE_NEW_CONSOLE;
|
args->flags |= CREATE_NEW_CONSOLE;
|
||||||
args->flags &= ~(CREATE_NO_WINDOW | DETACHED_PROCESS);
|
args->flags &= ~(CREATE_NO_WINDOW | DETACHED_PROCESS);
|
||||||
}
|
}
|
||||||
else {
|
else
|
||||||
|
{
|
||||||
args->flags |= CREATE_NO_WINDOW;
|
args->flags |= CREATE_NO_WINDOW;
|
||||||
args->flags &= ~(CREATE_NEW_CONSOLE | DETACHED_PROCESS);
|
args->flags &= ~(CREATE_NEW_CONSOLE | DETACHED_PROCESS);
|
||||||
}
|
}
|
||||||
@@ -428,7 +432,8 @@ void Application::torrentFinished(BitTorrent::TorrentHandle *const torrent)
|
|||||||
runExternalProgram(torrent);
|
runExternalProgram(torrent);
|
||||||
|
|
||||||
// Mail notification
|
// Mail notification
|
||||||
if (pref->isMailNotificationEnabled()) {
|
if (pref->isMailNotificationEnabled())
|
||||||
|
{
|
||||||
Logger::instance()->addMessage(tr("Torrent: %1, sending mail notification").arg(torrent->name()));
|
Logger::instance()->addMessage(tr("Torrent: %1, sending mail notification").arg(torrent->name()));
|
||||||
sendNotificationEmail(torrent);
|
sendNotificationEmail(torrent);
|
||||||
}
|
}
|
||||||
@@ -455,16 +460,19 @@ void Application::allTorrentsFinished()
|
|||||||
|
|
||||||
#ifndef DISABLE_GUI
|
#ifndef DISABLE_GUI
|
||||||
// ask confirm
|
// ask confirm
|
||||||
if ((action == ShutdownDialogAction::Exit) && (pref->dontConfirmAutoExit())) {
|
if ((action == ShutdownDialogAction::Exit) && (pref->dontConfirmAutoExit()))
|
||||||
|
{
|
||||||
// do nothing & skip confirm
|
// do nothing & skip confirm
|
||||||
}
|
}
|
||||||
else {
|
else
|
||||||
|
{
|
||||||
if (!ShutdownConfirmDialog::askForConfirmation(m_window, action)) return;
|
if (!ShutdownConfirmDialog::askForConfirmation(m_window, action)) return;
|
||||||
}
|
}
|
||||||
#endif // DISABLE_GUI
|
#endif // DISABLE_GUI
|
||||||
|
|
||||||
// Actually shut down
|
// Actually shut down
|
||||||
if (action != ShutdownDialogAction::Exit) {
|
if (action != ShutdownDialogAction::Exit)
|
||||||
|
{
|
||||||
qDebug("Preparing for auto-shutdown because all downloads are complete!");
|
qDebug("Preparing for auto-shutdown because all downloads are complete!");
|
||||||
// Disabling it for next time
|
// Disabling it for next time
|
||||||
pref->setShutdownWhenDownloadsComplete(false);
|
pref->setShutdownWhenDownloadsComplete(false);
|
||||||
@@ -490,7 +498,8 @@ bool Application::sendParams(const QStringList ¶ms)
|
|||||||
void Application::processParams(const QStringList ¶ms)
|
void Application::processParams(const QStringList ¶ms)
|
||||||
{
|
{
|
||||||
#ifndef DISABLE_GUI
|
#ifndef DISABLE_GUI
|
||||||
if (params.isEmpty()) {
|
if (params.isEmpty())
|
||||||
|
{
|
||||||
m_window->activate(); // show UI
|
m_window->activate(); // show UI
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -498,42 +507,50 @@ void Application::processParams(const QStringList ¶ms)
|
|||||||
BitTorrent::AddTorrentParams torrentParams;
|
BitTorrent::AddTorrentParams torrentParams;
|
||||||
TriStateBool skipTorrentDialog;
|
TriStateBool skipTorrentDialog;
|
||||||
|
|
||||||
for (QString param : params) {
|
for (QString param : params)
|
||||||
|
{
|
||||||
param = param.trimmed();
|
param = param.trimmed();
|
||||||
|
|
||||||
// Process strings indicating options specified by the user.
|
// Process strings indicating options specified by the user.
|
||||||
|
|
||||||
if (param.startsWith(QLatin1String("@savePath="))) {
|
if (param.startsWith(QLatin1String("@savePath=")))
|
||||||
|
{
|
||||||
torrentParams.savePath = param.mid(10);
|
torrentParams.savePath = param.mid(10);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (param.startsWith(QLatin1String("@addPaused="))) {
|
if (param.startsWith(QLatin1String("@addPaused=")))
|
||||||
|
{
|
||||||
torrentParams.addPaused = param.midRef(11).toInt() ? TriStateBool::True : TriStateBool::False;
|
torrentParams.addPaused = param.midRef(11).toInt() ? TriStateBool::True : TriStateBool::False;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (param == QLatin1String("@skipChecking")) {
|
if (param == QLatin1String("@skipChecking"))
|
||||||
|
{
|
||||||
torrentParams.skipChecking = true;
|
torrentParams.skipChecking = true;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (param.startsWith(QLatin1String("@category="))) {
|
if (param.startsWith(QLatin1String("@category=")))
|
||||||
|
{
|
||||||
torrentParams.category = param.mid(10);
|
torrentParams.category = param.mid(10);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (param == QLatin1String("@sequential")) {
|
if (param == QLatin1String("@sequential"))
|
||||||
|
{
|
||||||
torrentParams.sequential = true;
|
torrentParams.sequential = true;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (param == QLatin1String("@firstLastPiecePriority")) {
|
if (param == QLatin1String("@firstLastPiecePriority"))
|
||||||
|
{
|
||||||
torrentParams.firstLastPiecePriority = true;
|
torrentParams.firstLastPiecePriority = true;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (param.startsWith(QLatin1String("@skipDialog="))) {
|
if (param.startsWith(QLatin1String("@skipDialog=")))
|
||||||
|
{
|
||||||
skipTorrentDialog = param.midRef(12).toInt() ? TriStateBool::True : TriStateBool::False;
|
skipTorrentDialog = param.midRef(12).toInt() ? TriStateBool::True : TriStateBool::False;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@@ -561,7 +578,8 @@ int Application::exec(const QStringList ¶ms)
|
|||||||
Net::DownloadManager::initInstance();
|
Net::DownloadManager::initInstance();
|
||||||
IconProvider::initInstance();
|
IconProvider::initInstance();
|
||||||
|
|
||||||
try {
|
try
|
||||||
|
{
|
||||||
BitTorrent::Session::initInstance();
|
BitTorrent::Session::initInstance();
|
||||||
connect(BitTorrent::Session::instance(), &BitTorrent::Session::torrentFinished, this, &Application::torrentFinished);
|
connect(BitTorrent::Session::instance(), &BitTorrent::Session::torrentFinished, this, &Application::torrentFinished);
|
||||||
connect(BitTorrent::Session::instance(), &BitTorrent::Session::allTorrentsFinished, this, &Application::allTorrentsFinished, Qt::QueuedConnection);
|
connect(BitTorrent::Session::instance(), &BitTorrent::Session::allTorrentsFinished, this, &Application::allTorrentsFinished, Qt::QueuedConnection);
|
||||||
@@ -581,7 +599,8 @@ int Application::exec(const QStringList ¶ms)
|
|||||||
new RSS::Session; // create RSS::Session singleton
|
new RSS::Session; // create RSS::Session singleton
|
||||||
new RSS::AutoDownloader; // create RSS::AutoDownloader singleton
|
new RSS::AutoDownloader; // create RSS::AutoDownloader singleton
|
||||||
}
|
}
|
||||||
catch (const RuntimeError &err) {
|
catch (const RuntimeError &err)
|
||||||
|
{
|
||||||
#ifdef DISABLE_GUI
|
#ifdef DISABLE_GUI
|
||||||
fprintf(stderr, "%s", err.what());
|
fprintf(stderr, "%s", err.what());
|
||||||
#else
|
#else
|
||||||
@@ -605,7 +624,8 @@ int Application::exec(const QStringList ¶ms)
|
|||||||
.arg(QString("http://localhost:") + QString::number(pref->getWebUiPort())) + '\n';
|
.arg(QString("http://localhost:") + QString::number(pref->getWebUiPort())) + '\n';
|
||||||
printf("%s", qUtf8Printable(mesg));
|
printf("%s", qUtf8Printable(mesg));
|
||||||
|
|
||||||
if (pref->getWebUIPassword() == "ARQ77eY1NUZaQsuDHbIMCA==:0WMRkYTUWVT9wVvdDtHAjU9b3b7uB8NR1Gur2hmQCvCDpm39Q+PsJRJPaCU51dEiz+dTzh8qbPsL8WkFljQYFQ==") {
|
if (pref->getWebUIPassword() == "ARQ77eY1NUZaQsuDHbIMCA==:0WMRkYTUWVT9wVvdDtHAjU9b3b7uB8NR1Gur2hmQCvCDpm39Q+PsJRJPaCU51dEiz+dTzh8qbPsL8WkFljQYFQ==")
|
||||||
|
{
|
||||||
const QString warning = tr("The Web UI administrator username is: %1").arg(pref->getWebUiUsername()) + '\n'
|
const QString warning = tr("The Web UI administrator username is: %1").arg(pref->getWebUiUsername()) + '\n'
|
||||||
+ tr("The Web UI administrator password is still the default one: %1").arg("adminadmin") + '\n'
|
+ tr("The Web UI administrator password is still the default one: %1").arg("adminadmin") + '\n'
|
||||||
+ tr("This is a security risk, please consider changing your password from program preferences.") + '\n';
|
+ tr("This is a security risk, please consider changing your password from program preferences.") + '\n';
|
||||||
@@ -623,7 +643,8 @@ int Application::exec(const QStringList ¶ms)
|
|||||||
BitTorrent::Session::instance()->startUpTorrents();
|
BitTorrent::Session::instance()->startUpTorrents();
|
||||||
|
|
||||||
m_paramsQueue = params + m_paramsQueue;
|
m_paramsQueue = params + m_paramsQueue;
|
||||||
if (!m_paramsQueue.isEmpty()) {
|
if (!m_paramsQueue.isEmpty())
|
||||||
|
{
|
||||||
processParams(m_paramsQueue);
|
processParams(m_paramsQueue);
|
||||||
m_paramsQueue.clear();
|
m_paramsQueue.clear();
|
||||||
}
|
}
|
||||||
@@ -639,7 +660,8 @@ bool Application::isRunning()
|
|||||||
#ifdef Q_OS_MACOS
|
#ifdef Q_OS_MACOS
|
||||||
bool Application::event(QEvent *ev)
|
bool Application::event(QEvent *ev)
|
||||||
{
|
{
|
||||||
if (ev->type() == QEvent::FileOpen) {
|
if (ev->type() == QEvent::FileOpen)
|
||||||
|
{
|
||||||
QString path = static_cast<QFileOpenEvent *>(ev)->file();
|
QString path = static_cast<QFileOpenEvent *>(ev)->file();
|
||||||
if (path.isEmpty())
|
if (path.isEmpty())
|
||||||
// Get the url instead
|
// Get the url instead
|
||||||
@@ -651,7 +673,8 @@ bool Application::event(QEvent *ev)
|
|||||||
m_paramsQueue.append(path);
|
m_paramsQueue.append(path);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else {
|
else
|
||||||
|
{
|
||||||
return BaseApplication::event(ev);
|
return BaseApplication::event(ev);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -679,11 +702,13 @@ void Application::initializeTranslation()
|
|||||||
installTranslator(&m_translator);
|
installTranslator(&m_translator);
|
||||||
|
|
||||||
#ifndef DISABLE_GUI
|
#ifndef DISABLE_GUI
|
||||||
if (localeStr.startsWith("ar") || localeStr.startsWith("he")) {
|
if (localeStr.startsWith("ar") || localeStr.startsWith("he"))
|
||||||
|
{
|
||||||
qDebug("Right to Left mode");
|
qDebug("Right to Left mode");
|
||||||
setLayoutDirection(Qt::RightToLeft);
|
setLayoutDirection(Qt::RightToLeft);
|
||||||
}
|
}
|
||||||
else {
|
else
|
||||||
|
{
|
||||||
setLayoutDirection(Qt::LeftToRight);
|
setLayoutDirection(Qt::LeftToRight);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
@@ -725,7 +750,8 @@ void Application::cleanup()
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
#ifndef DISABLE_GUI
|
#ifndef DISABLE_GUI
|
||||||
if (m_window) {
|
if (m_window)
|
||||||
|
{
|
||||||
// Hide the window and don't leave it on screen as
|
// Hide the window and don't leave it on screen as
|
||||||
// unresponsive. Also for Windows take the WinId
|
// unresponsive. Also for Windows take the WinId
|
||||||
// after it's hidden, because hide() may cause a
|
// after it's hidden, because hide() may cause a
|
||||||
@@ -769,7 +795,8 @@ void Application::cleanup()
|
|||||||
Utils::Fs::removeDirRecursive(Utils::Fs::tempPath());
|
Utils::Fs::removeDirRecursive(Utils::Fs::tempPath());
|
||||||
|
|
||||||
#ifndef DISABLE_GUI
|
#ifndef DISABLE_GUI
|
||||||
if (m_window) {
|
if (m_window)
|
||||||
|
{
|
||||||
#ifdef Q_OS_WIN
|
#ifdef Q_OS_WIN
|
||||||
::ShutdownBlockReasonDestroy(reinterpret_cast<HWND>(m_window->effectiveWinId()));
|
::ShutdownBlockReasonDestroy(reinterpret_cast<HWND>(m_window->effectiveWinId()));
|
||||||
#endif // Q_OS_WIN
|
#endif // Q_OS_WIN
|
||||||
@@ -780,7 +807,8 @@ void Application::cleanup()
|
|||||||
|
|
||||||
Profile::freeInstance();
|
Profile::freeInstance();
|
||||||
|
|
||||||
if (m_shutdownAct != ShutdownDialogAction::Exit) {
|
if (m_shutdownAct != ShutdownDialogAction::Exit)
|
||||||
|
{
|
||||||
qDebug() << "Sending computer shutdown/suspend/hibernate signal...";
|
qDebug() << "Sending computer shutdown/suspend/hibernate signal...";
|
||||||
Utils::Misc::shutdownComputer(m_shutdownAct);
|
Utils::Misc::shutdownComputer(m_shutdownAct);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -46,16 +46,20 @@ ApplicationInstanceManager::ApplicationInstanceManager(const QString &appId, QOb
|
|||||||
|
|
||||||
#ifdef Q_OS_WIN
|
#ifdef Q_OS_WIN
|
||||||
auto sharedMem = new QSharedMemory {appId + QLatin1String {"-shared-memory-key"}, this};
|
auto sharedMem = new QSharedMemory {appId + QLatin1String {"-shared-memory-key"}, this};
|
||||||
if (m_isFirstInstance) {
|
if (m_isFirstInstance)
|
||||||
|
{
|
||||||
// First instance creates shared memory and store PID
|
// First instance creates shared memory and store PID
|
||||||
if (sharedMem->create(sizeof(DWORD)) && sharedMem->lock()) {
|
if (sharedMem->create(sizeof(DWORD)) && sharedMem->lock())
|
||||||
|
{
|
||||||
*(static_cast<DWORD *>(sharedMem->data())) = ::GetCurrentProcessId();
|
*(static_cast<DWORD *>(sharedMem->data())) = ::GetCurrentProcessId();
|
||||||
sharedMem->unlock();
|
sharedMem->unlock();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else
|
||||||
|
{
|
||||||
// Later instances attach to shared memory and retrieve PID
|
// Later instances attach to shared memory and retrieve PID
|
||||||
if (sharedMem->attach() && sharedMem->lock()) {
|
if (sharedMem->attach() && sharedMem->lock())
|
||||||
|
{
|
||||||
::AllowSetForegroundWindow(*(static_cast<DWORD *>(sharedMem->data())));
|
::AllowSetForegroundWindow(*(static_cast<DWORD *>(sharedMem->data())));
|
||||||
sharedMem->unlock();
|
sharedMem->unlock();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -217,7 +217,8 @@ namespace
|
|||||||
|
|
||||||
bool ok;
|
bool ok;
|
||||||
int res = val.toInt(&ok);
|
int res = val.toInt(&ok);
|
||||||
if (!ok) {
|
if (!ok)
|
||||||
|
{
|
||||||
qDebug() << QObject::tr("Expected integer number in environment variable '%1', but got '%2'")
|
qDebug() << QObject::tr("Expected integer number in environment variable '%1', but got '%2'")
|
||||||
.arg(envVarName(), val);
|
.arg(envVarName(), val);
|
||||||
return defaultValue;
|
return defaultValue;
|
||||||
@@ -257,16 +258,20 @@ namespace
|
|||||||
{
|
{
|
||||||
QStringList parts = arg.split(QLatin1Char('='));
|
QStringList parts = arg.split(QLatin1Char('='));
|
||||||
|
|
||||||
if (parts.size() == 1) {
|
if (parts.size() == 1)
|
||||||
|
{
|
||||||
return TriStateBool(m_defaultValue);
|
return TriStateBool(m_defaultValue);
|
||||||
}
|
}
|
||||||
if (parts.size() == 2) {
|
if (parts.size() == 2)
|
||||||
|
{
|
||||||
QString val = parts[1];
|
QString val = parts[1];
|
||||||
|
|
||||||
if ((val.toUpper() == QLatin1String("TRUE")) || (val == QLatin1String("1"))) {
|
if ((val.toUpper() == QLatin1String("TRUE")) || (val == QLatin1String("1")))
|
||||||
|
{
|
||||||
return TriStateBool::True;
|
return TriStateBool::True;
|
||||||
}
|
}
|
||||||
if ((val.toUpper() == QLatin1String("FALSE")) || (val == QLatin1String("0"))) {
|
if ((val.toUpper() == QLatin1String("FALSE")) || (val == QLatin1String("0")))
|
||||||
|
{
|
||||||
return TriStateBool::False;
|
return TriStateBool::False;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -281,16 +286,20 @@ namespace
|
|||||||
{
|
{
|
||||||
const QString val = env.value(envVarName(), "-1");
|
const QString val = env.value(envVarName(), "-1");
|
||||||
|
|
||||||
if (val.isEmpty()) {
|
if (val.isEmpty())
|
||||||
|
{
|
||||||
return TriStateBool(m_defaultValue);
|
return TriStateBool(m_defaultValue);
|
||||||
}
|
}
|
||||||
if (val == QLatin1String("-1")) {
|
if (val == QLatin1String("-1"))
|
||||||
|
{
|
||||||
return TriStateBool::Undefined;
|
return TriStateBool::Undefined;
|
||||||
}
|
}
|
||||||
if ((val.toUpper() == QLatin1String("TRUE")) || (val == QLatin1String("1"))) {
|
if ((val.toUpper() == QLatin1String("TRUE")) || (val == QLatin1String("1")))
|
||||||
|
{
|
||||||
return TriStateBool::True;
|
return TriStateBool::True;
|
||||||
}
|
}
|
||||||
if ((val.toUpper() == QLatin1String("FALSE")) || (val == QLatin1String("0"))) {
|
if ((val.toUpper() == QLatin1String("FALSE")) || (val == QLatin1String("0")))
|
||||||
|
{
|
||||||
return TriStateBool::False;
|
return TriStateBool::False;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -365,10 +374,12 @@ QStringList QBtCommandLineParameters::paramList() const
|
|||||||
if (!savePath.isEmpty())
|
if (!savePath.isEmpty())
|
||||||
result.append(QLatin1String("@savePath=") + savePath);
|
result.append(QLatin1String("@savePath=") + savePath);
|
||||||
|
|
||||||
if (addPaused == TriStateBool::True) {
|
if (addPaused == TriStateBool::True)
|
||||||
|
{
|
||||||
result.append(QLatin1String("@addPaused=1"));
|
result.append(QLatin1String("@addPaused=1"));
|
||||||
}
|
}
|
||||||
else if (addPaused == TriStateBool::False) {
|
else if (addPaused == TriStateBool::False)
|
||||||
|
{
|
||||||
result.append(QLatin1String("@addPaused=0"));
|
result.append(QLatin1String("@addPaused=0"));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -384,10 +395,12 @@ QStringList QBtCommandLineParameters::paramList() const
|
|||||||
if (firstLastPiecePriority)
|
if (firstLastPiecePriority)
|
||||||
result.append(QLatin1String("@firstLastPiecePriority"));
|
result.append(QLatin1String("@firstLastPiecePriority"));
|
||||||
|
|
||||||
if (skipDialog == TriStateBool::True) {
|
if (skipDialog == TriStateBool::True)
|
||||||
|
{
|
||||||
result.append(QLatin1String("@skipDialog=1"));
|
result.append(QLatin1String("@skipDialog=1"));
|
||||||
}
|
}
|
||||||
else if (skipDialog == TriStateBool::False) {
|
else if (skipDialog == TriStateBool::False)
|
||||||
|
{
|
||||||
result.append(QLatin1String("@skipDialog=0"));
|
result.append(QLatin1String("@skipDialog=0"));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -399,72 +412,91 @@ QBtCommandLineParameters parseCommandLine(const QStringList &args)
|
|||||||
{
|
{
|
||||||
QBtCommandLineParameters result {QProcessEnvironment::systemEnvironment()};
|
QBtCommandLineParameters result {QProcessEnvironment::systemEnvironment()};
|
||||||
|
|
||||||
for (int i = 1; i < args.count(); ++i) {
|
for (int i = 1; i < args.count(); ++i)
|
||||||
|
{
|
||||||
const QString &arg = args[i];
|
const QString &arg = args[i];
|
||||||
|
|
||||||
if ((arg.startsWith("--") && !arg.endsWith(".torrent"))
|
if ((arg.startsWith("--") && !arg.endsWith(".torrent"))
|
||||||
|| (arg.startsWith('-') && (arg.size() == 2))) {
|
|| (arg.startsWith('-') && (arg.size() == 2)))
|
||||||
|
{
|
||||||
// Parse known parameters
|
// Parse known parameters
|
||||||
if (arg == SHOW_HELP_OPTION) {
|
if (arg == SHOW_HELP_OPTION)
|
||||||
|
{
|
||||||
result.showHelp = true;
|
result.showHelp = true;
|
||||||
}
|
}
|
||||||
#if !defined(Q_OS_WIN) || defined(DISABLE_GUI)
|
#if !defined(Q_OS_WIN) || defined(DISABLE_GUI)
|
||||||
else if (arg == SHOW_VERSION_OPTION) {
|
else if (arg == SHOW_VERSION_OPTION)
|
||||||
|
{
|
||||||
result.showVersion = true;
|
result.showVersion = true;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
else if (arg == WEBUI_PORT_OPTION) {
|
else if (arg == WEBUI_PORT_OPTION)
|
||||||
|
{
|
||||||
result.webUiPort = WEBUI_PORT_OPTION.value(arg);
|
result.webUiPort = WEBUI_PORT_OPTION.value(arg);
|
||||||
if ((result.webUiPort < 1) || (result.webUiPort > 65535))
|
if ((result.webUiPort < 1) || (result.webUiPort > 65535))
|
||||||
throw CommandLineParameterError(QObject::tr("%1 must specify a valid port (1 to 65535).")
|
throw CommandLineParameterError(QObject::tr("%1 must specify a valid port (1 to 65535).")
|
||||||
.arg(QLatin1String("--webui-port")));
|
.arg(QLatin1String("--webui-port")));
|
||||||
}
|
}
|
||||||
#ifndef DISABLE_GUI
|
#ifndef DISABLE_GUI
|
||||||
else if (arg == NO_SPLASH_OPTION) {
|
else if (arg == NO_SPLASH_OPTION)
|
||||||
|
{
|
||||||
result.noSplash = true;
|
result.noSplash = true;
|
||||||
}
|
}
|
||||||
#elif !defined(Q_OS_WIN)
|
#elif !defined(Q_OS_WIN)
|
||||||
else if (arg == DAEMON_OPTION) {
|
else if (arg == DAEMON_OPTION)
|
||||||
|
{
|
||||||
result.shouldDaemonize = true;
|
result.shouldDaemonize = true;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
else if (arg == PROFILE_OPTION) {
|
else if (arg == PROFILE_OPTION)
|
||||||
|
{
|
||||||
result.profileDir = PROFILE_OPTION.value(arg);
|
result.profileDir = PROFILE_OPTION.value(arg);
|
||||||
}
|
}
|
||||||
else if (arg == RELATIVE_FASTRESUME) {
|
else if (arg == RELATIVE_FASTRESUME)
|
||||||
|
{
|
||||||
result.relativeFastresumePaths = true;
|
result.relativeFastresumePaths = true;
|
||||||
}
|
}
|
||||||
else if (arg == CONFIGURATION_OPTION) {
|
else if (arg == CONFIGURATION_OPTION)
|
||||||
|
{
|
||||||
result.configurationName = CONFIGURATION_OPTION.value(arg);
|
result.configurationName = CONFIGURATION_OPTION.value(arg);
|
||||||
}
|
}
|
||||||
else if (arg == SAVE_PATH_OPTION) {
|
else if (arg == SAVE_PATH_OPTION)
|
||||||
|
{
|
||||||
result.savePath = SAVE_PATH_OPTION.value(arg);
|
result.savePath = SAVE_PATH_OPTION.value(arg);
|
||||||
}
|
}
|
||||||
else if (arg == PAUSED_OPTION) {
|
else if (arg == PAUSED_OPTION)
|
||||||
|
{
|
||||||
result.addPaused = PAUSED_OPTION.value(arg);
|
result.addPaused = PAUSED_OPTION.value(arg);
|
||||||
}
|
}
|
||||||
else if (arg == SKIP_HASH_CHECK_OPTION) {
|
else if (arg == SKIP_HASH_CHECK_OPTION)
|
||||||
|
{
|
||||||
result.skipChecking = true;
|
result.skipChecking = true;
|
||||||
}
|
}
|
||||||
else if (arg == CATEGORY_OPTION) {
|
else if (arg == CATEGORY_OPTION)
|
||||||
|
{
|
||||||
result.category = CATEGORY_OPTION.value(arg);
|
result.category = CATEGORY_OPTION.value(arg);
|
||||||
}
|
}
|
||||||
else if (arg == SEQUENTIAL_OPTION) {
|
else if (arg == SEQUENTIAL_OPTION)
|
||||||
|
{
|
||||||
result.sequential = true;
|
result.sequential = true;
|
||||||
}
|
}
|
||||||
else if (arg == FIRST_AND_LAST_OPTION) {
|
else if (arg == FIRST_AND_LAST_OPTION)
|
||||||
|
{
|
||||||
result.firstLastPiecePriority = true;
|
result.firstLastPiecePriority = true;
|
||||||
}
|
}
|
||||||
else if (arg == SKIP_DIALOG_OPTION) {
|
else if (arg == SKIP_DIALOG_OPTION)
|
||||||
|
{
|
||||||
result.skipDialog = SKIP_DIALOG_OPTION.value(arg);
|
result.skipDialog = SKIP_DIALOG_OPTION.value(arg);
|
||||||
}
|
}
|
||||||
else {
|
else
|
||||||
|
{
|
||||||
// Unknown argument
|
// Unknown argument
|
||||||
result.unknownParameter = arg;
|
result.unknownParameter = arg;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else
|
||||||
|
{
|
||||||
QFileInfo torrentPath;
|
QFileInfo torrentPath;
|
||||||
torrentPath.setFile(arg);
|
torrentPath.setFile(arg);
|
||||||
|
|
||||||
@@ -495,11 +527,14 @@ QString wrapText(const QString &text, int initialIndentation = USAGE_TEXT_COLUMN
|
|||||||
QStringList lines = {words.first()};
|
QStringList lines = {words.first()};
|
||||||
int currentLineMaxLength = wrapAtColumn - initialIndentation;
|
int currentLineMaxLength = wrapAtColumn - initialIndentation;
|
||||||
|
|
||||||
for (const QString &word : asConst(words.mid(1))) {
|
for (const QString &word : asConst(words.mid(1)))
|
||||||
if (lines.last().length() + word.length() + 1 < currentLineMaxLength) {
|
{
|
||||||
|
if (lines.last().length() + word.length() + 1 < currentLineMaxLength)
|
||||||
|
{
|
||||||
lines.last().append(' ' + word);
|
lines.last().append(' ' + word);
|
||||||
}
|
}
|
||||||
else {
|
else
|
||||||
|
{
|
||||||
lines.append(QString(initialIndentation, ' ') + word);
|
lines.append(QString(initialIndentation, ' ') + word);
|
||||||
currentLineMaxLength = wrapAtColumn;
|
currentLineMaxLength = wrapAtColumn;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -28,8 +28,7 @@
|
|||||||
* exception statement from your version.
|
* exception statement from your version.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef APP_OPTIONS_H
|
#pragma once
|
||||||
#define APP_OPTIONS_H
|
|
||||||
|
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
|
|
||||||
@@ -81,5 +80,3 @@ private:
|
|||||||
|
|
||||||
QBtCommandLineParameters parseCommandLine(const QStringList &args);
|
QBtCommandLineParameters parseCommandLine(const QStringList &args);
|
||||||
void displayUsage(const QString &prgName);
|
void displayUsage(const QString &prgName);
|
||||||
|
|
||||||
#endif // APP_OPTIONS_H
|
|
||||||
|
|||||||
@@ -33,6 +33,7 @@
|
|||||||
#include <QDateTime>
|
#include <QDateTime>
|
||||||
#include <QDir>
|
#include <QDir>
|
||||||
#include <QTextStream>
|
#include <QTextStream>
|
||||||
|
#include <QVector>
|
||||||
|
|
||||||
#include "base/global.h"
|
#include "base/global.h"
|
||||||
#include "base/logger.h"
|
#include "base/logger.h"
|
||||||
@@ -73,7 +74,8 @@ void FileLogger::changePath(const QString &newPath)
|
|||||||
dir.mkpath(newPath);
|
dir.mkpath(newPath);
|
||||||
const QString tmpPath = dir.absoluteFilePath("qbittorrent.log");
|
const QString tmpPath = dir.absoluteFilePath("qbittorrent.log");
|
||||||
|
|
||||||
if (tmpPath != m_path) {
|
if (tmpPath != m_path)
|
||||||
|
{
|
||||||
m_path = tmpPath;
|
m_path = tmpPath;
|
||||||
|
|
||||||
closeLogFile();
|
closeLogFile();
|
||||||
@@ -89,9 +91,11 @@ void FileLogger::deleteOld(const int age, const FileLogAgeType ageType)
|
|||||||
const QFileInfoList fileList = dir.entryInfoList(QStringList("qbittorrent.log.bak*")
|
const QFileInfoList fileList = dir.entryInfoList(QStringList("qbittorrent.log.bak*")
|
||||||
, (QDir::Files | QDir::Writable), (QDir::Time | QDir::Reversed));
|
, (QDir::Files | QDir::Writable), (QDir::Time | QDir::Reversed));
|
||||||
|
|
||||||
for (const QFileInfo &file : fileList) {
|
for (const QFileInfo &file : fileList)
|
||||||
|
{
|
||||||
QDateTime modificationDate = file.lastModified();
|
QDateTime modificationDate = file.lastModified();
|
||||||
switch (ageType) {
|
switch (ageType)
|
||||||
|
{
|
||||||
case DAYS:
|
case DAYS:
|
||||||
modificationDate = modificationDate.addDays(age);
|
modificationDate = modificationDate.addDays(age);
|
||||||
break;
|
break;
|
||||||
@@ -124,7 +128,8 @@ void FileLogger::addLogMessage(const Log::Msg &msg)
|
|||||||
QTextStream stream(&m_logFile);
|
QTextStream stream(&m_logFile);
|
||||||
stream.setCodec("UTF-8");
|
stream.setCodec("UTF-8");
|
||||||
|
|
||||||
switch (msg.type) {
|
switch (msg.type)
|
||||||
|
{
|
||||||
case Log::INFO:
|
case Log::INFO:
|
||||||
stream << "(I) ";
|
stream << "(I) ";
|
||||||
break;
|
break;
|
||||||
@@ -140,12 +145,14 @@ void FileLogger::addLogMessage(const Log::Msg &msg)
|
|||||||
|
|
||||||
stream << QDateTime::fromMSecsSinceEpoch(msg.timestamp).toString(Qt::ISODate) << " - " << msg.message << '\n';
|
stream << QDateTime::fromMSecsSinceEpoch(msg.timestamp).toString(Qt::ISODate) << " - " << msg.message << '\n';
|
||||||
|
|
||||||
if (m_backup && (m_logFile.size() >= m_maxSize)) {
|
if (m_backup && (m_logFile.size() >= m_maxSize))
|
||||||
|
{
|
||||||
closeLogFile();
|
closeLogFile();
|
||||||
int counter = 0;
|
int counter = 0;
|
||||||
QString backupLogFilename = m_path + ".bak";
|
QString backupLogFilename = m_path + ".bak";
|
||||||
|
|
||||||
while (QFile::exists(backupLogFilename)) {
|
while (QFile::exists(backupLogFilename))
|
||||||
|
{
|
||||||
++counter;
|
++counter;
|
||||||
backupLogFilename = m_path + ".bak" + QString::number(counter);
|
backupLogFilename = m_path + ".bak" + QString::number(counter);
|
||||||
}
|
}
|
||||||
@@ -153,7 +160,8 @@ void FileLogger::addLogMessage(const Log::Msg &msg)
|
|||||||
QFile::rename(m_path, backupLogFilename);
|
QFile::rename(m_path, backupLogFilename);
|
||||||
openLogFile();
|
openLogFile();
|
||||||
}
|
}
|
||||||
else {
|
else
|
||||||
|
{
|
||||||
if (!m_flusher.isActive())
|
if (!m_flusher.isActive())
|
||||||
m_flusher.start();
|
m_flusher.start();
|
||||||
}
|
}
|
||||||
@@ -168,7 +176,8 @@ void FileLogger::flushLog()
|
|||||||
void FileLogger::openLogFile()
|
void FileLogger::openLogFile()
|
||||||
{
|
{
|
||||||
if (!m_logFile.open(QIODevice::WriteOnly | QIODevice::Append | QIODevice::Text)
|
if (!m_logFile.open(QIODevice::WriteOnly | QIODevice::Append | QIODevice::Text)
|
||||||
|| !m_logFile.setPermissions(QFile::ReadOwner | QFile::WriteOwner)) {
|
|| !m_logFile.setPermissions(QFile::ReadOwner | QFile::WriteOwner))
|
||||||
|
{
|
||||||
m_logFile.close();
|
m_logFile.close();
|
||||||
LogMsg(tr("An error occurred while trying to open the log file. Logging to file is disabled."), Log::CRITICAL);
|
LogMsg(tr("An error occurred while trying to open the log file. Logging to file is disabled."), Log::CRITICAL);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,8 +26,7 @@
|
|||||||
* exception statement from your version.
|
* exception statement from your version.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef FILELOGGER_H
|
#pragma once
|
||||||
#define FILELOGGER_H
|
|
||||||
|
|
||||||
#include <QFile>
|
#include <QFile>
|
||||||
#include <QObject>
|
#include <QObject>
|
||||||
@@ -73,5 +72,3 @@ private:
|
|||||||
QFile m_logFile;
|
QFile m_logFile;
|
||||||
QTimer m_flusher;
|
QTimer m_flusher;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // FILELOGGER_H
|
|
||||||
|
|||||||
@@ -92,7 +92,8 @@ void sigNormalHandler(int signum);
|
|||||||
void sigAbnormalHandler(int signum);
|
void sigAbnormalHandler(int signum);
|
||||||
#endif
|
#endif
|
||||||
// sys_signame[] is only defined in BSD
|
// sys_signame[] is only defined in BSD
|
||||||
const char *const sysSigName[] = {
|
const char *const sysSigName[] =
|
||||||
|
{
|
||||||
#if defined(Q_OS_WIN)
|
#if defined(Q_OS_WIN)
|
||||||
"", "", "SIGINT", "", "SIGILL", "", "SIGABRT_COMPAT", "", "SIGFPE", "",
|
"", "", "SIGINT", "", "SIGILL", "", "SIGABRT_COMPAT", "", "SIGFPE", "",
|
||||||
"", "SIGSEGV", "", "", "", "SIGTERM", "", "", "", "",
|
"", "SIGSEGV", "", "", "", "SIGTERM", "", "", "", "",
|
||||||
@@ -141,19 +142,23 @@ int main(int argc, char *argv[])
|
|||||||
Application::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::PassThrough);
|
Application::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::PassThrough);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
try {
|
try
|
||||||
|
{
|
||||||
// Create Application
|
// Create Application
|
||||||
auto app = std::make_unique<Application>(argc, argv);
|
auto app = std::make_unique<Application>(argc, argv);
|
||||||
|
|
||||||
const QBtCommandLineParameters params = app->commandLineArgs();
|
const QBtCommandLineParameters params = app->commandLineArgs();
|
||||||
if (!params.unknownParameter.isEmpty()) {
|
if (!params.unknownParameter.isEmpty())
|
||||||
|
{
|
||||||
throw CommandLineParameterError(QObject::tr("%1 is an unknown command line parameter.",
|
throw CommandLineParameterError(QObject::tr("%1 is an unknown command line parameter.",
|
||||||
"--random-parameter is an unknown command line parameter.")
|
"--random-parameter is an unknown command line parameter.")
|
||||||
.arg(params.unknownParameter));
|
.arg(params.unknownParameter));
|
||||||
}
|
}
|
||||||
#if !defined(Q_OS_WIN) || defined(DISABLE_GUI)
|
#if !defined(Q_OS_WIN) || defined(DISABLE_GUI)
|
||||||
if (params.showVersion) {
|
if (params.showVersion)
|
||||||
if (isOneArg) {
|
{
|
||||||
|
if (isOneArg)
|
||||||
|
{
|
||||||
displayVersion();
|
displayVersion();
|
||||||
return EXIT_SUCCESS;
|
return EXIT_SUCCESS;
|
||||||
}
|
}
|
||||||
@@ -161,8 +166,10 @@ int main(int argc, char *argv[])
|
|||||||
.arg(QLatin1String("-v (or --version)")));
|
.arg(QLatin1String("-v (or --version)")));
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
if (params.showHelp) {
|
if (params.showHelp)
|
||||||
if (isOneArg) {
|
{
|
||||||
|
if (isOneArg)
|
||||||
|
{
|
||||||
displayUsage(argv[0]);
|
displayUsage(argv[0]);
|
||||||
return EXIT_SUCCESS;
|
return EXIT_SUCCESS;
|
||||||
}
|
}
|
||||||
@@ -175,7 +182,8 @@ int main(int argc, char *argv[])
|
|||||||
fprintf(stderr, "Couldn't set environment variable...\n");
|
fprintf(stderr, "Couldn't set environment variable...\n");
|
||||||
|
|
||||||
const bool firstTimeUser = !Preferences::instance()->getAcceptedLegal();
|
const bool firstTimeUser = !Preferences::instance()->getAcceptedLegal();
|
||||||
if (firstTimeUser) {
|
if (firstTimeUser)
|
||||||
|
{
|
||||||
#ifndef DISABLE_GUI
|
#ifndef DISABLE_GUI
|
||||||
if (!userAgreesWithLegalNotice())
|
if (!userAgreesWithLegalNotice())
|
||||||
return EXIT_SUCCESS;
|
return EXIT_SUCCESS;
|
||||||
@@ -195,9 +203,11 @@ int main(int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Check if qBittorrent is already running for this user
|
// Check if qBittorrent is already running for this user
|
||||||
if (app->isRunning()) {
|
if (app->isRunning())
|
||||||
|
{
|
||||||
#if defined(DISABLE_GUI) && !defined(Q_OS_WIN)
|
#if defined(DISABLE_GUI) && !defined(Q_OS_WIN)
|
||||||
if (params.shouldDaemonize) {
|
if (params.shouldDaemonize)
|
||||||
|
{
|
||||||
throw CommandLineParameterError(QObject::tr("You cannot use %1: qBittorrent is already running for this user.")
|
throw CommandLineParameterError(QObject::tr("You cannot use %1: qBittorrent is already running for this user.")
|
||||||
.arg(QLatin1String("-d (or --daemon)")));
|
.arg(QLatin1String("-d (or --daemon)")));
|
||||||
}
|
}
|
||||||
@@ -242,7 +252,8 @@ int main(int argc, char *argv[])
|
|||||||
app->setAttribute(Qt::AA_DontShowIconsInMenus);
|
app->setAttribute(Qt::AA_DontShowIconsInMenus);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (!firstTimeUser) {
|
if (!firstTimeUser)
|
||||||
|
{
|
||||||
handleChangedDefaults(DefaultPreferencesMode::Legacy);
|
handleChangedDefaults(DefaultPreferencesMode::Legacy);
|
||||||
|
|
||||||
#ifndef DISABLE_GUI
|
#ifndef DISABLE_GUI
|
||||||
@@ -256,21 +267,26 @@ int main(int argc, char *argv[])
|
|||||||
&& isatty(fileno(stdout)))) return EXIT_FAILURE;
|
&& isatty(fileno(stdout)))) return EXIT_FAILURE;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
else {
|
else
|
||||||
|
{
|
||||||
handleChangedDefaults(DefaultPreferencesMode::Current);
|
handleChangedDefaults(DefaultPreferencesMode::Current);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(DISABLE_GUI) && !defined(Q_OS_WIN)
|
#if defined(DISABLE_GUI) && !defined(Q_OS_WIN)
|
||||||
if (params.shouldDaemonize) {
|
if (params.shouldDaemonize)
|
||||||
|
{
|
||||||
app.reset(); // Destroy current application
|
app.reset(); // Destroy current application
|
||||||
if (daemon(1, 0) == 0) {
|
if (daemon(1, 0) == 0)
|
||||||
|
{
|
||||||
app = std::make_unique<Application>(argc, argv);
|
app = std::make_unique<Application>(argc, argv);
|
||||||
if (app->isRunning()) {
|
if (app->isRunning())
|
||||||
|
{
|
||||||
// Another instance had time to start.
|
// Another instance had time to start.
|
||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else
|
||||||
|
{
|
||||||
qCritical("Something went wrong while daemonizing, exiting...");
|
qCritical("Something went wrong while daemonizing, exiting...");
|
||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
}
|
}
|
||||||
@@ -289,7 +305,8 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
return app->exec(params.paramList());
|
return app->exec(params.paramList());
|
||||||
}
|
}
|
||||||
catch (const CommandLineParameterError &er) {
|
catch (const CommandLineParameterError &er)
|
||||||
|
{
|
||||||
displayBadArgMessage(er.messageForUser());
|
displayBadArgMessage(er.messageForUser());
|
||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
}
|
}
|
||||||
@@ -300,10 +317,12 @@ void reportToUser(const char *str)
|
|||||||
{
|
{
|
||||||
const size_t strLen = strlen(str);
|
const size_t strLen = strlen(str);
|
||||||
#ifndef Q_OS_WIN
|
#ifndef Q_OS_WIN
|
||||||
if (write(STDERR_FILENO, str, strLen) < static_cast<ssize_t>(strLen)) {
|
if (write(STDERR_FILENO, str, strLen) < static_cast<ssize_t>(strLen))
|
||||||
|
{
|
||||||
const auto dummy = write(STDOUT_FILENO, str, strLen);
|
const auto dummy = write(STDOUT_FILENO, str, strLen);
|
||||||
#else
|
#else
|
||||||
if (_write(STDERR_FILENO, str, strLen) < static_cast<ssize_t>(strLen)) {
|
if (_write(STDERR_FILENO, str, strLen) < static_cast<ssize_t>(strLen))
|
||||||
|
{
|
||||||
const auto dummy = _write(STDOUT_FILENO, str, strLen);
|
const auto dummy = _write(STDOUT_FILENO, str, strLen);
|
||||||
#endif
|
#endif
|
||||||
Q_UNUSED(dummy);
|
Q_UNUSED(dummy);
|
||||||
@@ -405,7 +424,8 @@ bool userAgreesWithLegalNotice()
|
|||||||
printf("%s", qUtf8Printable(eula));
|
printf("%s", qUtf8Printable(eula));
|
||||||
|
|
||||||
const char ret = getchar(); // Read pressed key
|
const char ret = getchar(); // Read pressed key
|
||||||
if ((ret == 'y') || (ret == 'Y')) {
|
if ((ret == 'y') || (ret == 'Y'))
|
||||||
|
{
|
||||||
// Save the answer
|
// Save the answer
|
||||||
pref->setAcceptedLegal(true);
|
pref->setAcceptedLegal(true);
|
||||||
return true;
|
return true;
|
||||||
@@ -419,7 +439,8 @@ bool userAgreesWithLegalNotice()
|
|||||||
msgBox.show(); // Need to be shown or to moveToCenter does not work
|
msgBox.show(); // Need to be shown or to moveToCenter does not work
|
||||||
msgBox.move(Utils::Gui::screenCenter(&msgBox));
|
msgBox.move(Utils::Gui::screenCenter(&msgBox));
|
||||||
msgBox.exec();
|
msgBox.exec();
|
||||||
if (msgBox.clickedButton() == agreeButton) {
|
if (msgBox.clickedButton() == agreeButton)
|
||||||
|
{
|
||||||
// Save the answer
|
// Save the answer
|
||||||
pref->setAcceptedLegal(true);
|
pref->setAcceptedLegal(true);
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
@@ -100,7 +100,8 @@ QtLocalPeer::QtLocalPeer(QObject* parent, const QString &appId)
|
|||||||
, id(appId)
|
, id(appId)
|
||||||
{
|
{
|
||||||
QString prefix = id;
|
QString prefix = id;
|
||||||
if (id.isEmpty()) {
|
if (id.isEmpty())
|
||||||
|
{
|
||||||
id = QCoreApplication::applicationFilePath();
|
id = QCoreApplication::applicationFilePath();
|
||||||
#if defined(Q_OS_WIN)
|
#if defined(Q_OS_WIN)
|
||||||
id = id.toLower();
|
id = id.toLower();
|
||||||
@@ -143,7 +144,8 @@ bool QtLocalPeer::isClient()
|
|||||||
bool res = server->listen(socketName);
|
bool res = server->listen(socketName);
|
||||||
#if defined(Q_OS_UNIX)
|
#if defined(Q_OS_UNIX)
|
||||||
// ### Workaround
|
// ### Workaround
|
||||||
if (!res && server->serverError() == QAbstractSocket::AddressInUseError) {
|
if (!res && server->serverError() == QAbstractSocket::AddressInUseError)
|
||||||
|
{
|
||||||
QFile::remove(QDir::cleanPath(QDir::tempPath())+QLatin1Char('/')+socketName);
|
QFile::remove(QDir::cleanPath(QDir::tempPath())+QLatin1Char('/')+socketName);
|
||||||
res = server->listen(socketName);
|
res = server->listen(socketName);
|
||||||
}
|
}
|
||||||
@@ -161,7 +163,8 @@ bool QtLocalPeer::sendMessage(const QString &message, const int timeout)
|
|||||||
|
|
||||||
QLocalSocket socket;
|
QLocalSocket socket;
|
||||||
bool connOk = false;
|
bool connOk = false;
|
||||||
for(int i = 0; i < 2; i++) {
|
for(int i = 0; i < 2; i++)
|
||||||
|
{
|
||||||
// Try twice, in case the other instance is just starting up
|
// Try twice, in case the other instance is just starting up
|
||||||
socket.connectToServer(socketName);
|
socket.connectToServer(socketName);
|
||||||
connOk = socket.waitForConnected(timeout/2);
|
connOk = socket.waitForConnected(timeout/2);
|
||||||
@@ -182,7 +185,8 @@ bool QtLocalPeer::sendMessage(const QString &message, const int timeout)
|
|||||||
QDataStream ds(&socket);
|
QDataStream ds(&socket);
|
||||||
ds.writeBytes(uMsg.constData(), uMsg.size());
|
ds.writeBytes(uMsg.constData(), uMsg.size());
|
||||||
bool res = socket.waitForBytesWritten(timeout);
|
bool res = socket.waitForBytesWritten(timeout);
|
||||||
if (res) {
|
if (res)
|
||||||
|
{
|
||||||
res &= socket.waitForReadyRead(timeout); // wait for ack
|
res &= socket.waitForReadyRead(timeout); // wait for ack
|
||||||
if (res)
|
if (res)
|
||||||
res &= (socket.read(qstrlen(ack)) == ack);
|
res &= (socket.read(qstrlen(ack)) == ack);
|
||||||
@@ -201,8 +205,10 @@ void QtLocalPeer::receiveConnection()
|
|||||||
if (!socket)
|
if (!socket)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
while (true) {
|
while (true)
|
||||||
if (socket->state() == QLocalSocket::UnconnectedState) {
|
{
|
||||||
|
if (socket->state() == QLocalSocket::UnconnectedState)
|
||||||
|
{
|
||||||
qWarning("QtLocalPeer: Peer disconnected");
|
qWarning("QtLocalPeer: Peer disconnected");
|
||||||
delete socket;
|
delete socket;
|
||||||
return;
|
return;
|
||||||
@@ -216,7 +222,8 @@ void QtLocalPeer::receiveConnection()
|
|||||||
QByteArray uMsg;
|
QByteArray uMsg;
|
||||||
quint32 remaining;
|
quint32 remaining;
|
||||||
ds >> remaining;
|
ds >> remaining;
|
||||||
if (remaining > 65535) {
|
if (remaining > 65535)
|
||||||
|
{
|
||||||
// drop suspiciously large data
|
// drop suspiciously large data
|
||||||
delete socket;
|
delete socket;
|
||||||
return;
|
return;
|
||||||
@@ -225,12 +232,14 @@ void QtLocalPeer::receiveConnection()
|
|||||||
uMsg.resize(remaining);
|
uMsg.resize(remaining);
|
||||||
int got = 0;
|
int got = 0;
|
||||||
char* uMsgBuf = uMsg.data();
|
char* uMsgBuf = uMsg.data();
|
||||||
do {
|
do
|
||||||
|
{
|
||||||
got = ds.readRawData(uMsgBuf, remaining);
|
got = ds.readRawData(uMsgBuf, remaining);
|
||||||
remaining -= got;
|
remaining -= got;
|
||||||
uMsgBuf += got;
|
uMsgBuf += got;
|
||||||
} while (remaining && got >= 0 && socket->waitForReadyRead(2000));
|
} while (remaining && got >= 0 && socket->waitForReadyRead(2000));
|
||||||
if (got < 0) {
|
if (got < 0)
|
||||||
|
{
|
||||||
qWarning("QtLocalPeer: Message reception failed %s", socket->errorString().toLatin1().constData());
|
qWarning("QtLocalPeer: Message reception failed %s", socket->errorString().toLatin1().constData());
|
||||||
delete socket;
|
delete socket;
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -66,8 +66,7 @@
|
|||||||
****************************************************************************
|
****************************************************************************
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef QTLOCALPEER_H
|
#pragma once
|
||||||
#define QTLOCALPEER_H
|
|
||||||
|
|
||||||
#include "qtlockedfile.h"
|
#include "qtlockedfile.h"
|
||||||
|
|
||||||
@@ -99,5 +98,3 @@ protected:
|
|||||||
private:
|
private:
|
||||||
static const char* ack;
|
static const char* ack;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // QTLOCALPEER_H
|
|
||||||
|
|||||||
@@ -178,8 +178,8 @@ QtLockedFile::LockMode QtLockedFile::lockMode() const
|
|||||||
can be locked.
|
can be locked.
|
||||||
|
|
||||||
If \a block is true, this function will block until the lock is
|
If \a block is true, this function will block until the lock is
|
||||||
aquired. If \a block is false, this function returns \e false
|
acquired. If \a block is false, this function returns \e false
|
||||||
immediately if the lock cannot be aquired.
|
immediately if the lock cannot be acquired.
|
||||||
|
|
||||||
If this object already has a lock of type \a mode, this function
|
If this object already has a lock of type \a mode, this function
|
||||||
returns \e true immediately. If this object has a lock of a
|
returns \e true immediately. If this object has a lock of a
|
||||||
|
|||||||
@@ -66,8 +66,7 @@
|
|||||||
****************************************************************************
|
****************************************************************************
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef QTLOCKEDFILE_H
|
#pragma once
|
||||||
#define QTLOCKEDFILE_H
|
|
||||||
|
|
||||||
#include <QFile>
|
#include <QFile>
|
||||||
|
|
||||||
@@ -112,5 +111,3 @@ namespace QtLP_Private
|
|||||||
LockMode m_lock_mode;
|
LockMode m_lock_mode;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|||||||
@@ -22,7 +22,8 @@ static inline void print_stacktrace(FILE *out = stderr, unsigned int max_frames
|
|||||||
// retrieve current stack addresses
|
// retrieve current stack addresses
|
||||||
int addrlen = backtrace(addrlist.data(), addrlist.size());
|
int addrlen = backtrace(addrlist.data(), addrlist.size());
|
||||||
|
|
||||||
if (addrlen == 0) {
|
if (addrlen == 0)
|
||||||
|
{
|
||||||
fprintf(out, " <empty, possibly corrupt>\n");
|
fprintf(out, " <empty, possibly corrupt>\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -38,27 +39,33 @@ static inline void print_stacktrace(FILE *out = stderr, unsigned int max_frames
|
|||||||
int functionNamesFound = 0;
|
int functionNamesFound = 0;
|
||||||
// iterate over the returned symbol lines. skip the first, it is the
|
// iterate over the returned symbol lines. skip the first, it is the
|
||||||
// address of this function.
|
// address of this function.
|
||||||
for (int i = 2; i < addrlen; i++) {
|
for (int i = 2; i < addrlen; i++)
|
||||||
|
{
|
||||||
char *begin_name = 0, *begin_offset = 0, *end_offset = 0;
|
char *begin_name = 0, *begin_offset = 0, *end_offset = 0;
|
||||||
|
|
||||||
// find parentheses and +address offset surrounding the mangled name:
|
// find parentheses and +address offset surrounding the mangled name:
|
||||||
// ./module(function+0x15c) [0x8048a6d]
|
// ./module(function+0x15c) [0x8048a6d]
|
||||||
// fprintf(out, "%s TT\n", symbollist[i]);
|
// fprintf(out, "%s TT\n", symbollist[i]);
|
||||||
for (char *p = symbollist[i]; *p; ++p) {
|
for (char *p = symbollist[i]; *p; ++p)
|
||||||
if (*p == '(') {
|
{
|
||||||
|
if (*p == '(')
|
||||||
|
{
|
||||||
begin_name = p;
|
begin_name = p;
|
||||||
}
|
}
|
||||||
else if (*p == '+') {
|
else if (*p == '+')
|
||||||
|
{
|
||||||
begin_offset = p;
|
begin_offset = p;
|
||||||
}
|
}
|
||||||
else if ((*p == ')') && begin_offset) {
|
else if ((*p == ')') && begin_offset)
|
||||||
|
{
|
||||||
end_offset = p;
|
end_offset = p;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (begin_name && begin_offset && end_offset
|
if (begin_name && begin_offset && end_offset
|
||||||
&& (begin_name < begin_offset)) {
|
&& (begin_name < begin_offset))
|
||||||
|
{
|
||||||
*begin_name++ = '\0';
|
*begin_name++ = '\0';
|
||||||
*begin_offset++ = '\0';
|
*begin_offset++ = '\0';
|
||||||
*end_offset = '\0';
|
*end_offset = '\0';
|
||||||
@@ -70,12 +77,14 @@ static inline void print_stacktrace(FILE *out = stderr, unsigned int max_frames
|
|||||||
int status;
|
int status;
|
||||||
char *ret = abi::__cxa_demangle(begin_name,
|
char *ret = abi::__cxa_demangle(begin_name,
|
||||||
funcname, &funcnamesize, &status);
|
funcname, &funcnamesize, &status);
|
||||||
if (status == 0) {
|
if (status == 0)
|
||||||
|
{
|
||||||
funcname = ret; // use possibly realloc()-ed string
|
funcname = ret; // use possibly realloc()-ed string
|
||||||
fprintf(out, " %s : %s+%s %s\n",
|
fprintf(out, " %s : %s+%s %s\n",
|
||||||
symbollist[i], funcname, begin_offset, ++end_offset);
|
symbollist[i], funcname, begin_offset, ++end_offset);
|
||||||
}
|
}
|
||||||
else {
|
else
|
||||||
|
{
|
||||||
// demangling failed. Output function name as a C function with
|
// demangling failed. Output function name as a C function with
|
||||||
// no arguments.
|
// no arguments.
|
||||||
fprintf(out, " %s : %s()+%s %s\n",
|
fprintf(out, " %s : %s()+%s %s\n",
|
||||||
@@ -83,17 +92,20 @@ static inline void print_stacktrace(FILE *out = stderr, unsigned int max_frames
|
|||||||
}
|
}
|
||||||
++functionNamesFound;
|
++functionNamesFound;
|
||||||
}
|
}
|
||||||
else {
|
else
|
||||||
|
{
|
||||||
// couldn't parse the line? print the whole line.
|
// couldn't parse the line? print the whole line.
|
||||||
fprintf(out, " %s\n", symbollist[i]);
|
fprintf(out, " %s\n", symbollist[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!functionNamesFound) {
|
if (!functionNamesFound)
|
||||||
|
{
|
||||||
fprintf(out, "There were no function names found in the stack trace\n."
|
fprintf(out, "There were no function names found in the stack trace\n."
|
||||||
"Seems like debug symbols are not installed, and the stack trace is useless.\n");
|
"Seems like debug symbols are not installed, and the stack trace is useless.\n");
|
||||||
}
|
}
|
||||||
if (functionNamesFound < addrlen - 2) {
|
if (functionNamesFound < addrlen - 2)
|
||||||
|
{
|
||||||
fprintf(out, "Consider installing debug symbols for packages containing files with empty"
|
fprintf(out, "Consider installing debug symbols for packages containing files with empty"
|
||||||
" function names (i.e. empty braces \"()\") to make your stack trace more useful\n");
|
" function names (i.e. empty braces \"()\") to make your stack trace more useful\n");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,8 +18,7 @@
|
|||||||
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
|
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
#ifndef STACKTRACE_WIN_H
|
#pragma once
|
||||||
#define STACKTRACE_WIN_H
|
|
||||||
|
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <dbghelp.h>
|
#include <dbghelp.h>
|
||||||
@@ -54,7 +53,8 @@ void straceWin::demangle(QString& str)
|
|||||||
int status = 0;
|
int status = 0;
|
||||||
size_t outSz = 0;
|
size_t outSz = 0;
|
||||||
char* demangled_name = abi::__cxa_demangle(inStr, 0, &outSz, &status);
|
char* demangled_name = abi::__cxa_demangle(inStr, 0, &outSz, &status);
|
||||||
if (status == 0) {
|
if (status == 0)
|
||||||
|
{
|
||||||
str = QString::fromLocal8Bit(demangled_name);
|
str = QString::fromLocal8Bit(demangled_name);
|
||||||
if (outSz > 0)
|
if (outSz > 0)
|
||||||
free(demangled_name);
|
free(demangled_name);
|
||||||
@@ -92,7 +92,8 @@ BOOL CALLBACK straceWin::EnumModulesCB(LPCSTR ModuleName, DWORD64 BaseOfDll, PVO
|
|||||||
IMAGEHLP_MODULE64 mod;
|
IMAGEHLP_MODULE64 mod;
|
||||||
EnumModulesContext* context = (EnumModulesContext*)UserContext;
|
EnumModulesContext* context = (EnumModulesContext*)UserContext;
|
||||||
mod.SizeOfStruct = sizeof(IMAGEHLP_MODULE64);
|
mod.SizeOfStruct = sizeof(IMAGEHLP_MODULE64);
|
||||||
if(SymGetModuleInfo64(context->hProcess, BaseOfDll, &mod)) {
|
if(SymGetModuleInfo64(context->hProcess, BaseOfDll, &mod))
|
||||||
|
{
|
||||||
QString moduleBase = QString::fromLatin1("0x%1").arg(BaseOfDll, 16, 16, QLatin1Char('0'));
|
QString moduleBase = QString::fromLatin1("0x%1").arg(BaseOfDll, 16, 16, QLatin1Char('0'));
|
||||||
QString line = QString::fromLatin1("%1 %2 Image: %3")
|
QString line = QString::fromLatin1("%1 %2 Image: %3")
|
||||||
.arg(mod.ModuleName, -25)
|
.arg(mod.ModuleName, -25)
|
||||||
@@ -101,7 +102,8 @@ BOOL CALLBACK straceWin::EnumModulesCB(LPCSTR ModuleName, DWORD64 BaseOfDll, PVO
|
|||||||
context->stream << line << '\n';
|
context->stream << line << '\n';
|
||||||
|
|
||||||
QString pdbName(mod.LoadedPdbName);
|
QString pdbName(mod.LoadedPdbName);
|
||||||
if(!pdbName.isEmpty()) {
|
if(!pdbName.isEmpty())
|
||||||
|
{
|
||||||
QString line2 = QString::fromLatin1("%1 %2")
|
QString line2 = QString::fromLatin1("%1 %2")
|
||||||
.arg("", 35)
|
.arg("", 35)
|
||||||
.arg(pdbName);
|
.arg(pdbName);
|
||||||
@@ -126,7 +128,8 @@ bool straceWin::makeRelativePath(const QString& dir, QString& file)
|
|||||||
if (!d.isEmpty() && (d[d.length() - 1] != separator))
|
if (!d.isEmpty() && (d[d.length() - 1] != separator))
|
||||||
d += separator;
|
d += separator;
|
||||||
|
|
||||||
if (f.startsWith(d, Qt::CaseInsensitive)) {
|
if (f.startsWith(d, Qt::CaseInsensitive))
|
||||||
|
{
|
||||||
f.remove(0, d.length());
|
f.remove(0, d.length());
|
||||||
file.swap(f);
|
file.swap(f);
|
||||||
|
|
||||||
@@ -142,7 +145,8 @@ QString straceWin::getSourcePathAndLineNumber(HANDLE hProcess, DWORD64 addr)
|
|||||||
line.SizeOfStruct = sizeof(IMAGEHLP_LINE64);
|
line.SizeOfStruct = sizeof(IMAGEHLP_LINE64);
|
||||||
DWORD dwDisplacement = 0;
|
DWORD dwDisplacement = 0;
|
||||||
|
|
||||||
if (SymGetLineFromAddr64(hProcess, addr, &dwDisplacement, &line)) {
|
if (SymGetLineFromAddr64(hProcess, addr, &dwDisplacement, &line))
|
||||||
|
{
|
||||||
QString path(line.FileName);
|
QString path(line.FileName);
|
||||||
|
|
||||||
#if defined STACKTRACE_WIN_PROJECT_PATH || defined STACKTRACE_WIN_MAKEFILE_PATH
|
#if defined STACKTRACE_WIN_PROJECT_PATH || defined STACKTRACE_WIN_MAKEFILE_PATH
|
||||||
@@ -159,7 +163,8 @@ QString straceWin::getSourcePathAndLineNumber(HANDLE hProcess, DWORD64 addr)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef STACKTRACE_WIN_MAKEFILE_PATH
|
#ifdef STACKTRACE_WIN_MAKEFILE_PATH
|
||||||
if (!success) {
|
if (!success)
|
||||||
|
{
|
||||||
QString targetPath(STACKTRACE_WIN_STRING(STACKTRACE_WIN_MAKEFILE_PATH));
|
QString targetPath(STACKTRACE_WIN_STRING(STACKTRACE_WIN_MAKEFILE_PATH));
|
||||||
makeRelativePath(targetPath, path);
|
makeRelativePath(targetPath, path);
|
||||||
}
|
}
|
||||||
@@ -201,7 +206,8 @@ const QString straceWin::getBacktrace()
|
|||||||
: //no input
|
: //no input
|
||||||
: "eax");
|
: "eax");
|
||||||
#else
|
#else
|
||||||
_asm {
|
_asm
|
||||||
|
{
|
||||||
Label:
|
Label:
|
||||||
mov [Context.Ebp], ebp;
|
mov [Context.Ebp], ebp;
|
||||||
mov [Context.Esp], esp;
|
mov [Context.Esp], esp;
|
||||||
@@ -269,15 +275,18 @@ const QString straceWin::getBacktrace()
|
|||||||
|
|
||||||
int i = 0;
|
int i = 0;
|
||||||
|
|
||||||
while(StackWalk64(MachineType, hProcess, hThread, &StackFrame, &Context, NULL, NULL, NULL, NULL)) {
|
while(StackWalk64(MachineType, hProcess, hThread, &StackFrame, &Context, NULL, NULL, NULL, NULL))
|
||||||
|
{
|
||||||
if(i == 128)
|
if(i == 128)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
loadHelpStackFrame(ihsf, StackFrame);
|
loadHelpStackFrame(ihsf, StackFrame);
|
||||||
if(StackFrame.AddrPC.Offset != 0) { // Valid frame.
|
if(StackFrame.AddrPC.Offset != 0)
|
||||||
|
{ // Valid frame.
|
||||||
|
|
||||||
QString fileName("???");
|
QString fileName("???");
|
||||||
if(SymGetModuleInfo64(hProcess, ihsf.InstructionOffset, &mod)) {
|
if(SymGetModuleInfo64(hProcess, ihsf.InstructionOffset, &mod))
|
||||||
|
{
|
||||||
fileName = QString(mod.ImageName);
|
fileName = QString(mod.ImageName);
|
||||||
int slashPos = fileName.lastIndexOf('\\');
|
int slashPos = fileName.lastIndexOf('\\');
|
||||||
if(slashPos != -1)
|
if(slashPos != -1)
|
||||||
@@ -285,7 +294,8 @@ const QString straceWin::getBacktrace()
|
|||||||
}
|
}
|
||||||
QString funcName;
|
QString funcName;
|
||||||
QString sourceFile;
|
QString sourceFile;
|
||||||
if(SymFromAddr(hProcess, ihsf.InstructionOffset, &dwDisplacement, pSymbol)) {
|
if(SymFromAddr(hProcess, ihsf.InstructionOffset, &dwDisplacement, pSymbol))
|
||||||
|
{
|
||||||
funcName = QString(pSymbol->Name);
|
funcName = QString(pSymbol->Name);
|
||||||
#ifdef __MINGW32__
|
#ifdef __MINGW32__
|
||||||
demangle(funcName);
|
demangle(funcName);
|
||||||
@@ -295,7 +305,8 @@ const QString straceWin::getBacktrace()
|
|||||||
// decrease the query address by one byte to point somewhere in the CALL instruction byte sequence
|
// decrease the query address by one byte to point somewhere in the CALL instruction byte sequence
|
||||||
sourceFile = getSourcePathAndLineNumber(hProcess, ihsf.InstructionOffset - 1);
|
sourceFile = getSourcePathAndLineNumber(hProcess, ihsf.InstructionOffset - 1);
|
||||||
}
|
}
|
||||||
else {
|
else
|
||||||
|
{
|
||||||
funcName = QString::fromLatin1("0x%1").arg(ihsf.InstructionOffset, 8, 16, QLatin1Char('0'));
|
funcName = QString::fromLatin1("0x%1").arg(ihsf.InstructionOffset, 8, 16, QLatin1Char('0'));
|
||||||
}
|
}
|
||||||
SymSetContext(hProcess, &ihsf, NULL);
|
SymSetContext(hProcess, &ihsf, NULL);
|
||||||
@@ -325,7 +336,8 @@ const QString straceWin::getBacktrace()
|
|||||||
logStream << debugLine << '\n';
|
logStream << debugLine << '\n';
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
else {
|
else
|
||||||
|
{
|
||||||
break; // we're at the end.
|
break; // we're at the end.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -342,5 +354,3 @@ const QString straceWin::getBacktrace()
|
|||||||
#pragma warning(pop)
|
#pragma warning(pop)
|
||||||
#pragma optimize("g", on)
|
#pragma optimize("g", on)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif // STACKTRACE_WIN_H
|
|
||||||
|
|||||||
@@ -27,8 +27,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef STACKTRACEDIALOG_H
|
#pragma once
|
||||||
#define STACKTRACEDIALOG_H
|
|
||||||
|
|
||||||
#include <QDialog>
|
#include <QDialog>
|
||||||
|
|
||||||
@@ -51,5 +50,3 @@ public:
|
|||||||
private:
|
private:
|
||||||
Ui::StacktraceDialog *m_ui;
|
Ui::StacktraceDialog *m_ui;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // STACKTRACEDIALOG_H
|
|
||||||
|
|||||||
@@ -29,17 +29,22 @@
|
|||||||
#include "upgrade.h"
|
#include "upgrade.h"
|
||||||
|
|
||||||
#include <QFile>
|
#include <QFile>
|
||||||
|
#include <QMetaEnum>
|
||||||
|
#include <QVector>
|
||||||
|
|
||||||
|
#include "base/bittorrent/torrentcontentlayout.h"
|
||||||
#include "base/logger.h"
|
#include "base/logger.h"
|
||||||
#include "base/profile.h"
|
#include "base/profile.h"
|
||||||
#include "base/settingsstorage.h"
|
#include "base/settingsstorage.h"
|
||||||
#include "base/utils/fs.h"
|
#include "base/utils/fs.h"
|
||||||
|
#include "base/utils/string.h"
|
||||||
|
|
||||||
namespace
|
namespace
|
||||||
{
|
{
|
||||||
void exportWebUIHttpsFiles()
|
void exportWebUIHttpsFiles()
|
||||||
{
|
{
|
||||||
const auto migrate = [](const QString &oldKey, const QString &newKey, const QString &savePath) {
|
const auto migrate = [](const QString &oldKey, const QString &newKey, const QString &savePath)
|
||||||
|
{
|
||||||
SettingsStorage *settingsStorage {SettingsStorage::instance()};
|
SettingsStorage *settingsStorage {SettingsStorage::instance()};
|
||||||
const QByteArray oldData {settingsStorage->loadValue(oldKey).toByteArray()};
|
const QByteArray oldData {settingsStorage->loadValue(oldKey).toByteArray()};
|
||||||
const QString newData {settingsStorage->loadValue(newKey).toString()};
|
const QString newData {settingsStorage->loadValue(newKey).toString()};
|
||||||
@@ -49,11 +54,13 @@ namespace
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
QFile file(savePath);
|
QFile file(savePath);
|
||||||
if (!file.open(QIODevice::WriteOnly)) {
|
if (!file.open(QIODevice::WriteOnly))
|
||||||
|
{
|
||||||
LogMsg(errorMsgFormat.arg(savePath, file.errorString()) , Log::WARNING);
|
LogMsg(errorMsgFormat.arg(savePath, file.errorString()) , Log::WARNING);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (file.write(oldData) != oldData.size()) {
|
if (file.write(oldData) != oldData.size())
|
||||||
|
{
|
||||||
file.close();
|
file.close();
|
||||||
Utils::Fs::forceRemove(savePath);
|
Utils::Fs::forceRemove(savePath);
|
||||||
LogMsg(errorMsgFormat.arg(savePath, QLatin1String("Write incomplete.")) , Log::WARNING);
|
LogMsg(errorMsgFormat.arg(savePath, QLatin1String("Write incomplete.")) , Log::WARNING);
|
||||||
@@ -75,11 +82,32 @@ namespace
|
|||||||
, QLatin1String("Preferences/WebUI/HTTPS/KeyPath")
|
, QLatin1String("Preferences/WebUI/HTTPS/KeyPath")
|
||||||
, Utils::Fs::toNativePath(configPath + QLatin1String("WebUIPrivateKey.pem")));
|
, Utils::Fs::toNativePath(configPath + QLatin1String("WebUIPrivateKey.pem")));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void upgradeTorrentContentLayout()
|
||||||
|
{
|
||||||
|
const QString oldKey {QLatin1String {"BitTorrent/Session/CreateTorrentSubfolder"}};
|
||||||
|
const QString newKey {QLatin1String {"BitTorrent/Session/TorrentContentLayout"}};
|
||||||
|
|
||||||
|
SettingsStorage *settingsStorage {SettingsStorage::instance()};
|
||||||
|
const QVariant oldData {settingsStorage->loadValue(oldKey)};
|
||||||
|
const QString newData {settingsStorage->loadValue(newKey).toString()};
|
||||||
|
|
||||||
|
if (!newData.isEmpty() || !oldData.isValid())
|
||||||
|
return;
|
||||||
|
|
||||||
|
const bool createSubfolder = oldData.toBool();
|
||||||
|
const BitTorrent::TorrentContentLayout torrentContentLayout =
|
||||||
|
(createSubfolder ? BitTorrent::TorrentContentLayout::Original : BitTorrent::TorrentContentLayout::NoSubfolder);
|
||||||
|
|
||||||
|
settingsStorage->storeValue(newKey, Utils::String::fromEnum(torrentContentLayout));
|
||||||
|
settingsStorage->removeValue(oldKey);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool upgrade(const bool /*ask*/)
|
bool upgrade(const bool /*ask*/)
|
||||||
{
|
{
|
||||||
exportWebUIHttpsFiles();
|
exportWebUIHttpsFiles();
|
||||||
|
upgradeTorrentContentLayout();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -92,12 +120,14 @@ void handleChangedDefaults(const DefaultPreferencesMode mode)
|
|||||||
QVariant current;
|
QVariant current;
|
||||||
};
|
};
|
||||||
|
|
||||||
const QVector<DefaultValue> changedDefaults {
|
const QVector<DefaultValue> changedDefaults
|
||||||
|
{
|
||||||
{QLatin1String {"BitTorrent/Session/QueueingSystemEnabled"}, true, false}
|
{QLatin1String {"BitTorrent/Session/QueueingSystemEnabled"}, true, false}
|
||||||
};
|
};
|
||||||
|
|
||||||
SettingsStorage *settingsStorage {SettingsStorage::instance()};
|
SettingsStorage *settingsStorage {SettingsStorage::instance()};
|
||||||
for (auto it = changedDefaults.cbegin(); it != changedDefaults.cend(); ++it) {
|
for (auto it = changedDefaults.cbegin(); it != changedDefaults.cend(); ++it)
|
||||||
|
{
|
||||||
if (settingsStorage->loadValue(it->name).isNull())
|
if (settingsStorage->loadValue(it->name).isNull())
|
||||||
settingsStorage->storeValue(it->name, (mode == DefaultPreferencesMode::Legacy ? it->legacy : it->current));
|
settingsStorage->storeValue(it->name, (mode == DefaultPreferencesMode::Legacy ? it->legacy : it->current));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,8 +8,10 @@ add_library(qbt_base STATIC
|
|||||||
bittorrent/common.h
|
bittorrent/common.h
|
||||||
bittorrent/customstorage.h
|
bittorrent/customstorage.h
|
||||||
bittorrent/downloadpriority.h
|
bittorrent/downloadpriority.h
|
||||||
|
bittorrent/filesearcher.h
|
||||||
bittorrent/filterparserthread.h
|
bittorrent/filterparserthread.h
|
||||||
bittorrent/infohash.h
|
bittorrent/infohash.h
|
||||||
|
bittorrent/ltqhash.h
|
||||||
bittorrent/ltunderlyingtype.h
|
bittorrent/ltunderlyingtype.h
|
||||||
bittorrent/magneturi.h
|
bittorrent/magneturi.h
|
||||||
bittorrent/nativesessionextension.h
|
bittorrent/nativesessionextension.h
|
||||||
@@ -22,6 +24,7 @@ add_library(qbt_base STATIC
|
|||||||
bittorrent/sessionstatus.h
|
bittorrent/sessionstatus.h
|
||||||
bittorrent/speedmonitor.h
|
bittorrent/speedmonitor.h
|
||||||
bittorrent/statistics.h
|
bittorrent/statistics.h
|
||||||
|
bittorrent/torrentcontentlayout.h
|
||||||
bittorrent/torrentcreatorthread.h
|
bittorrent/torrentcreatorthread.h
|
||||||
bittorrent/torrenthandle.h
|
bittorrent/torrenthandle.h
|
||||||
bittorrent/torrenthandleimpl.h
|
bittorrent/torrenthandleimpl.h
|
||||||
@@ -89,6 +92,7 @@ add_library(qbt_base STATIC
|
|||||||
bittorrent/bandwidthscheduler.cpp
|
bittorrent/bandwidthscheduler.cpp
|
||||||
bittorrent/customstorage.cpp
|
bittorrent/customstorage.cpp
|
||||||
bittorrent/downloadpriority.cpp
|
bittorrent/downloadpriority.cpp
|
||||||
|
bittorrent/filesearcher.cpp
|
||||||
bittorrent/filterparserthread.cpp
|
bittorrent/filterparserthread.cpp
|
||||||
bittorrent/infohash.cpp
|
bittorrent/infohash.cpp
|
||||||
bittorrent/magneturi.cpp
|
bittorrent/magneturi.cpp
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user