Compare commits
23 Commits
Author | SHA1 | Date | |
---|---|---|---|
64ef7d9c87 | |||
381054b340 | |||
470b88f422 | |||
a235d2f745 | |||
00e428c5b6 | |||
a766bffd85 | |||
200006e50f | |||
029be91dc8 | |||
fe3e68d205 | |||
51021023fc | |||
8ccab25a98 | |||
74e2283aa0 | |||
67fb0a4b7e | |||
317a6b8010 | |||
e278a58aae | |||
afe4c6e9c9 | |||
fb126c8b66 | |||
571da3d8a3 | |||
7d59b24df0 | |||
d07905eff0 | |||
631ab3819e | |||
c805c47bbc | |||
9bf749aefd |
24
README_FR.md
24
README_FR.md
@ -31,20 +31,20 @@ Cliquez sur un fichier pour le supprimer de la file et une fenêtre de confirmat
|
||||
## Barre d'outils
|
||||
|
||||
1er icône: Changer le dossier de destination
|
||||
- Permet de changer le dossier de téléchargement par défaut pour chaque service de chaque serveur.
|
||||
- Permet de changer le dossier de téléchargement par défaut pour chaque service de chaque serveur.
|
||||
2éme icône: Services cachés
|
||||
- Permet de configurer un service caché.
|
||||
Il faut donner le nom du service et le mot de passe si besoin.
|
||||
- Permet de configurer un service caché.
|
||||
Il faut donner le nom du service et le mot de passe si besoin.
|
||||
3ème icône: Paramètres de l'application
|
||||
- Limite de bande passante
|
||||
Permet de limiter le débit de téléchargement en Ko, Mo, Go, To et Po.
|
||||
- Limite de bande passante
|
||||
Permet de limiter le débit de téléchargement en Ko, Mo, Go, To et Po.
|
||||
Si la valeur est 0 alors pas de limite de la vitesse de téléchargement.
|
||||
- Affichage de la barre d'outils
|
||||
Permet de choisir le style d'affichage des icônes de la barre d'outils
|
||||
Permet de choisir le style d'affichage des icônes de la barre d'outils
|
||||
- Enregistrement automatique
|
||||
Enregistre automatiquement la liste des téléchargements en cours.(activé par défaut)
|
||||
3ème icône: À propos
|
||||
- Affiche les propriétés de l'application.
|
||||
4ème icône: À propos de QT
|
||||
5ème icône: Quitter
|
||||
Permet de quitter le programme.
|
||||
Enregistre automatiquement la liste des téléchargements en cours.(activé par défaut)
|
||||
4ème icône: À propos
|
||||
- Affiche les propriétés de l'application.
|
||||
5ème icône: À propos de QT
|
||||
6ème icône: Quitter
|
||||
Permet de quitter le programme.
|
||||
|
21
RsyncUI.pro
21
RsyncUI.pro
@ -2,6 +2,7 @@ QT += core gui
|
||||
QT += KItemViews
|
||||
QT += KCompletion
|
||||
QT += widgets
|
||||
QT += network
|
||||
|
||||
LIBS += -lqt5keychain
|
||||
|
||||
@ -14,29 +15,29 @@ CONFIG += c++17
|
||||
DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
|
||||
|
||||
SOURCES += \
|
||||
downloadfile.cpp \
|
||||
main.cpp \
|
||||
downloadfile.cpp \
|
||||
main.cpp \
|
||||
mainwindow.cpp \
|
||||
password.cpp \
|
||||
tools.cpp
|
||||
|
||||
HEADERS += \
|
||||
version.h\
|
||||
downloadfile.h \
|
||||
version.h\
|
||||
downloadfile.h \
|
||||
mainwindow.h \
|
||||
password.h \
|
||||
tools.h
|
||||
|
||||
FORMS += \
|
||||
about.ui \
|
||||
configuration.ui \
|
||||
about.ui \
|
||||
configuration.ui \
|
||||
mainwindow.ui
|
||||
|
||||
TRANSLATIONS += \
|
||||
RsyncUI_fr_FR.ts
|
||||
RsyncUI_fr_FR.ts
|
||||
|
||||
INCLUDEPATH += \
|
||||
/usr/include/KF5 \
|
||||
/usr/include/KF5 \
|
||||
/usr/include/qt5keychain \
|
||||
|
||||
# Default rules for deployment.
|
||||
@ -52,9 +53,9 @@ INSTALLS += icon
|
||||
#RESOURCES +=
|
||||
|
||||
DISTFILES += \
|
||||
RsyncUI.desktop
|
||||
RsyncUI.desktop
|
||||
|
||||
lang.path = /languages/
|
||||
lang.path = /languages/fr_FR/LC_MESSAGES/
|
||||
lang.path = /usr/share/locale/
|
||||
lang.files = languages/*
|
||||
documentation.path = /usr/share/doc/RsyncUI
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE QtCreatorProject>
|
||||
<!-- Written by QtCreator 9.0.1, 2024-08-29T01:07:20. -->
|
||||
<!-- Written by QtCreator 9.0.1, 2024-09-10T18:35:52. -->
|
||||
<qtcreator>
|
||||
<data>
|
||||
<variable>EnvironmentId</variable>
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
Name: rsyncui
|
||||
Summary: Client for rsync server
|
||||
Version: 2.12.3
|
||||
Version: 2.13.2
|
||||
Release: %mkrel 1
|
||||
License: GPLv3
|
||||
Group: Networking/Remote access
|
||||
|
BIN
RsyncUI_fr_FR.qm
BIN
RsyncUI_fr_FR.qm
Binary file not shown.
157
RsyncUI_fr_FR.ts
157
RsyncUI_fr_FR.ts
@ -242,7 +242,7 @@ a file de téléchargement</translation>
|
||||
<translation>Po</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="63"/>
|
||||
<location filename="mainwindow.cpp" line="71"/>
|
||||
<source>You click on file to enqueue it, and RyncUI Download one file a time</source>
|
||||
<oldsource>Client for rsync server<br><br>You click on file to enqueue it, and RyncUI Download one file a time</oldsource>
|
||||
<translation><h3>Utilisation</h3>
|
||||
@ -259,120 +259,130 @@ Cliquez sur un fichier pour le supprimer de la file et une fenêtre de confirmat
|
||||
|
||||
<h3>Barre d'outils</h3>
|
||||
<b>1er icône: Changer le dossier de destination</b><br>
|
||||
Permet de changer le dossier de téléchargement par défaut pour chaque service de chaque serveur.<br>
|
||||
Permet de changer le dossier de téléchargement par défaut pour chaque service de chaque serveur.<br>
|
||||
<b>2ème icône: Services cachés</b><br>
|
||||
- Permet de configurer un service caché.<br>
|
||||
Il faut donner le nom du service et le mot de passe si besoin.<br>
|
||||
- Permet de configurer un service caché.<br>
|
||||
Il faut donner le nom du service et le mot de passe si besoin.<br>
|
||||
<b>3ème icône: Paramètres de l'application</b><br>
|
||||
Limite de bande passante: permet de limiter le débit de téléchargement en Ko, Mo, Go, To et Po.<br>
|
||||
Limite de bande passante: permet de limiter le débit de téléchargement en Ko, Mo, Go, To et Po.<br>
|
||||
Si la valeur est 0 alors pas de limite de la vitesse de téléchargement.<br>
|
||||
- Affichage de la barre d'outils<br>
|
||||
Permet de choisir le style d'affichage des icônes de la barre d'outils<br>
|
||||
Permet de choisir le style d'affichage des icônes de la barre d'outils<br>
|
||||
- Enregistrement automatique<br>
|
||||
Enregistre automatiquement la liste des téléchargements en cours.(activé par défaut)<br>
|
||||
<b>3ème icône: À propos</b><br>
|
||||
affiche les propriétés de l'application, ainsi que l'aide.<br>
|
||||
<b>4ème icône: À propos de QT</b><br>
|
||||
affiche les propriétés de QT<br>
|
||||
<b>5ème icône: Quitter</b><br>
|
||||
Permet de quitter le programme</translation>
|
||||
Enregistre automatiquement la liste des téléchargements en cours.(activé par défaut)<br>
|
||||
<b>4ème icône: À propos</b><br>
|
||||
affiche les propriétés de l'application, ainsi que l'aide.<br>
|
||||
<b>5ème icône: À propos de QT</b><br>
|
||||
affiche les propriétés de QT<br>
|
||||
<b>6ème icône: Quitter</b><br>
|
||||
Permet de quitter le programme</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="72"/>
|
||||
<location filename="mainwindow.cpp" line="80"/>
|
||||
<source>Path</source>
|
||||
<translation>Chemin</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="72"/>
|
||||
<location filename="mainwindow.cpp" line="80"/>
|
||||
<source>Size</source>
|
||||
<translation>Taille</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="72"/>
|
||||
<location filename="mainwindow.cpp" line="80"/>
|
||||
<source>Type</source>
|
||||
<translation>Type</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="72"/>
|
||||
<location filename="mainwindow.cpp" line="80"/>
|
||||
<source>Date</source>
|
||||
<translation>Date</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="87"/>
|
||||
<location filename="mainwindow.cpp" line="95"/>
|
||||
<source>KB/s</source>
|
||||
<translation>Ko/s</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="87"/>
|
||||
<location filename="mainwindow.cpp" line="95"/>
|
||||
<source>MB/s</source>
|
||||
<translation>Mo/s</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="87"/>
|
||||
<location filename="mainwindow.cpp" line="95"/>
|
||||
<source>GB/s</source>
|
||||
<translation>Go/s</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="87"/>
|
||||
<location filename="mainwindow.cpp" line="95"/>
|
||||
<source>TB/s</source>
|
||||
<translation>To/s</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="87"/>
|
||||
<location filename="mainwindow.cpp" line="95"/>
|
||||
<source>PB/s</source>
|
||||
<translation>Po/s</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="131"/>
|
||||
<location filename="mainwindow.cpp" line="138"/>
|
||||
<source>A list of interrupted downloads exists, do you want to continue downloading ? if not the list will be cleared</source>
|
||||
<translation>Une liste de téléchargement existe, voulez-vous utiliser cette liste ? si non, elle sera effacée</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="133"/>
|
||||
<location filename="mainwindow.cpp" line="140"/>
|
||||
<source>Delete</source>
|
||||
<translation>Effacer</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="165"/>
|
||||
<location filename="mainwindow.cpp" line="172"/>
|
||||
<source>&Quit</source>
|
||||
<translation>&Quitter</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="232"/>
|
||||
<location filename="mainwindow.cpp" line="239"/>
|
||||
<source>Clicking Save button, You can save the list of downloads
|
||||
</source>
|
||||
<translation>Vous pouvez enregistrer la liste des téléchargements en cliquant sur "enregister"
|
||||
</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="238"/>
|
||||
<location filename="mainwindow.cpp" line="245"/>
|
||||
<source>Exiting will stop downloading, and will clear the download queue.
|
||||
Do you want to exit ?</source>
|
||||
<translation>Si vous sortez, les téléchargements seront arrêter.
|
||||
Voulez-vous vraiment sortir ?</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="280"/>
|
||||
<location filename="mainwindow.cpp" line="287"/>
|
||||
<source>The program will keep running in the system tray. To terminate the program, choose <b>Quit</b> in the context menu of the system tray entry.</source>
|
||||
<translation>Le programme continue dans la boîte à miniatures. Pour quitter le programme cliquez sur l'icône <b>Quitter</b> ou dans les menu contextuel.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="657"/>
|
||||
<location filename="mainwindow.cpp" line="670"/>
|
||||
<source>Authentication failed</source>
|
||||
<translation>Mauvais mot de passe ou utilisateur</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="716"/>
|
||||
<location filename="mainwindow.cpp" line="729"/>
|
||||
<source>The processus does'nt respond: </source>
|
||||
<translation>Le processus ne répond pas: </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="834"/>
|
||||
<source>Bad port number, correct it</source>
|
||||
<translation>Numéro de port incorrect, corrigez le.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1386"/>
|
||||
<source>You need to select a service before you can select a folder</source>
|
||||
<translation>Vous devez sélectionner un service pour pouvoir sélectionner un dossier</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>server does not exists</source>
|
||||
<translation type="vanished">Le serveur n'existe pas</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="852"/>
|
||||
<location filename="mainwindow.cpp" line="1006"/>
|
||||
<location filename="mainwindow.cpp" line="872"/>
|
||||
<location filename="mainwindow.cpp" line="1026"/>
|
||||
<source>Dir</source>
|
||||
<translation>dossier</translation>
|
||||
</message>
|
||||
@ -381,51 +391,51 @@ Voulez-vous vraiment sortir ?</translation>
|
||||
<translation type="vanished">Doc</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1035"/>
|
||||
<location filename="mainwindow.cpp" line="1055"/>
|
||||
<source>File is partially downloaded. Do you want to resume download ? if no, the file will be deleted from destination directory</source>
|
||||
<translation>Le document est déjà partiellement téléchargé. Voulez vous continuer le téléchargemnt ? Si non, il sera supprimer du dossier de destination</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1054"/>
|
||||
<location filename="mainwindow.cpp" line="1074"/>
|
||||
<source>File is already downloaded. Do you want to reload it ? The old file will be deleted</source>
|
||||
<translation>Le document est déjà téléchargé. Voulez-vous le télécharger à nouveau ? L'ancien fichier sera effacé</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1089"/>
|
||||
<location filename="mainwindow.cpp" line="1109"/>
|
||||
<source>File is already downloading</source>
|
||||
<translation>Le document est déjà en téléchargement</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1124"/>
|
||||
<location filename="mainwindow.cpp" line="1144"/>
|
||||
<source>Starting downloading
|
||||
</source>
|
||||
<translation>Démarrage du téléchargement
|
||||
</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1141"/>
|
||||
<location filename="mainwindow.cpp" line="1161"/>
|
||||
<source>finished</source>
|
||||
<translation>Terminé</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1151"/>
|
||||
<location filename="mainwindow.cpp" line="1171"/>
|
||||
<source>Rsync process crashed</source>
|
||||
<translation>Le processus rsync à planté</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1162"/>
|
||||
<location filename="mainwindow.cpp" line="1182"/>
|
||||
<source>stopped by user</source>
|
||||
<translation>stoppé par l'utilisateur</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1173"/>
|
||||
<location filename="mainwindow.cpp" line="1193"/>
|
||||
<source>
|
||||
Do you want to retry?</source>
|
||||
<translation>
|
||||
Voulez-vous ré-essayer?</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1182"/>
|
||||
<location filename="mainwindow.cpp" line="1202"/>
|
||||
<source>Download </source>
|
||||
<translation>Téléchargement </translation>
|
||||
</message>
|
||||
@ -434,73 +444,72 @@ Voulez-vous ré-essayer?</translation>
|
||||
<translation type="vanished">Requête RsyncUI</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1545"/>
|
||||
<location filename="mainwindow.cpp" line="1566"/>
|
||||
<source>Hidden service name</source>
|
||||
<translation>Nom du servcice caché</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="58"/>
|
||||
<location filename="mainwindow.cpp" line="66"/>
|
||||
<source>Version</source>
|
||||
<translation>Version</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="57"/>
|
||||
<location filename="mainwindow.cpp" line="65"/>
|
||||
<source><h2>Client for rsync server</h2></source>
|
||||
<translation><h2>Client pour serveur rsync</h2></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="59"/>
|
||||
<location filename="mainwindow.cpp" line="67"/>
|
||||
<source>Licence</source>
|
||||
<translation>License</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="60"/>
|
||||
<location filename="mainwindow.cpp" line="68"/>
|
||||
<source>Author</source>
|
||||
<translation>Auteur</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="61"/>
|
||||
<location filename="mainwindow.cpp" line="69"/>
|
||||
<source>EMail</source>
|
||||
<translation>Courriel</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="62"/>
|
||||
<location filename="mainwindow.cpp" line="70"/>
|
||||
<source>Source code</source>
|
||||
<translation>Code source</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="934"/>
|
||||
<location filename="mainwindow.cpp" line="954"/>
|
||||
<source>Select the user you want to connect with or enter a new one</source>
|
||||
<translation>Choisissez l'utilisateur avec lequel vous voulez vous connecter ou entrez en un nouveau</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="947"/>
|
||||
<location filename="mainwindow.cpp" line="1544"/>
|
||||
<location filename="mainwindow.cpp" line="967"/>
|
||||
<location filename="mainwindow.cpp" line="1565"/>
|
||||
<source> Request</source>
|
||||
<translation> Requête de mot de passe</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="948"/>
|
||||
<location filename="mainwindow.cpp" line="968"/>
|
||||
<source>Enter password</source>
|
||||
<translation>Entrez votre mot de passe</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1365"/>
|
||||
<source>Since the save path is linked to service, you need to select a service before you can select a folder</source>
|
||||
<translation>Vous devez sélectionnez un service pour pouvoir sélectionnez un dossier par défaut</translation>
|
||||
<translation type="vanished">Vous devez sélectionnez un service pour pouvoir sélectionnez un dossier par défaut</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1370"/>
|
||||
<location filename="mainwindow.cpp" line="1394"/>
|
||||
<source>Choose folder where to save file</source>
|
||||
<translation>Choisissez un dossier où enregistrer le document</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1255"/>
|
||||
<location filename="mainwindow.cpp" line="1275"/>
|
||||
<source>Do you want to stop downloading and delete this file from download queue ?</source>
|
||||
<translation>Voulez-vous arrêter le téléchargement et enlever ce fichier de la file de téléchargement ?</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1270"/>
|
||||
<location filename="mainwindow.cpp" line="1290"/>
|
||||
<source>Do you want to delete this file from download queue ?</source>
|
||||
<translation>Voulez-vous enlever ce fichier de la file de téléchargement ?</translation>
|
||||
</message>
|
||||
@ -543,87 +552,87 @@ Voulez-vous ré-essayer?</translation>
|
||||
<context>
|
||||
<name>QTranslator</name>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="17"/>
|
||||
<location filename="mainwindow.cpp" line="25"/>
|
||||
<source>Success. The rsync command completed successfully without any errors.</source>
|
||||
<translation>Succès. La command rsync s'est terminée sans erreurs.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="18"/>
|
||||
<location filename="mainwindow.cpp" line="26"/>
|
||||
<source>Syntax or usage error. There was a problem with the syntax of the rsync command or with the options specified.</source>
|
||||
<translation>Erreur de syntaxe ou d'usage. il y a un problème avec la synaxe de rsync ou avec les paramètres spécifiés.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="19"/>
|
||||
<location filename="mainwindow.cpp" line="27"/>
|
||||
<source>Protocol incompatibility. There was a problem with the protocol version or negotiation between the rsync client and server.</source>
|
||||
<translation>Incompatibilité de protocole. Il y a eu un problème avec la version du protocole ou la négotiation avec le serveur rsync.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="20"/>
|
||||
<location filename="mainwindow.cpp" line="28"/>
|
||||
<source>Errors selecting input/output files, dirs. There was a problem with the source or destination file or directory specified in the rsync command.</source>
|
||||
<translation>Erreurs dans la sélection des fichiers ou dossiers. il y a eu une problème avec le fichier/dossier source ou destination spécifié.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="21"/>
|
||||
<location filename="mainwindow.cpp" line="29"/>
|
||||
<source>Requested action not supported: An attempt was made to use an unsupported action or option.</source>
|
||||
<translation>Action non suportée. Une tentative d'utiliser une action, ou une option, non supportée à été faite.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="22"/>
|
||||
<location filename="mainwindow.cpp" line="30"/>
|
||||
<source>Error starting client-server protocol. There was an error starting the client-server protocol.</source>
|
||||
<translation>Erreur de démarrage du protocole client-seveur. Il ya eu une erreur en démarrant le protocole slient-serveur.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="23"/>
|
||||
<location filename="mainwindow.cpp" line="31"/>
|
||||
<source>Daemon unable to append to log-file. The rsync daemon was unable to write to its log file.</source>
|
||||
<translation>Le démon rsyncd n'arrive pas écrire dans son fichier de log.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="24"/>
|
||||
<location filename="mainwindow.cpp" line="32"/>
|
||||
<source>Error in socket I/O. There was an error with the socket input/output.</source>
|
||||
<translation>Erreur d'entrée/sortie socket. Il y a eu une erreur d'entrée/sortie sur le socket.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="25"/>
|
||||
<location filename="mainwindow.cpp" line="33"/>
|
||||
<source>Error in file I/O. There was an error reading or writing to a file.</source>
|
||||
<translation>Erreur de 'entrée/sortie. Il y a eu une erreur de lecture/écriture sur un fichier.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="26"/>
|
||||
<location filename="mainwindow.cpp" line="34"/>
|
||||
<source>Error in rsync protocol data stream. There was an error in the rsync protocol data stream.</source>
|
||||
<translation>Erreur dans le protocole de flux de données de rsync.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="27"/>
|
||||
<location filename="mainwindow.cpp" line="35"/>
|
||||
<source>Errors with program diagnostics. There was an error generating program diagnostics.</source>
|
||||
<translation>Erreur avec les diagnostiques du programme.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="28"/>
|
||||
<location filename="mainwindow.cpp" line="36"/>
|
||||
<source>Error in IPC code. There was an error in the inter-process communication (IPC) code.</source>
|
||||
<translation>Erreur dans le code IPC. IL y a eu une erreur dans la communication inter-processus.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="29"/>
|
||||
<location filename="mainwindow.cpp" line="37"/>
|
||||
<source>Received SIGUSR1 or SIGINT. The rsync process was interrupted by a signal.</source>
|
||||
<translation>Reçu les signaux SIGUSR1 ou SIGINT. Le processus rsync a été interrompu par un signal.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="30"/>
|
||||
<location filename="mainwindow.cpp" line="38"/>
|
||||
<source>Some error returned by waitpid(). An error occurred while waiting for a child process to complete.</source>
|
||||
<translation>Erreurs retournées par waitpid().Une erreur est survenue pendant l'attente de la complétion du processus fils.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="31"/>
|
||||
<location filename="mainwindow.cpp" line="39"/>
|
||||
<source>Error allocating core memory buffers. There was an error allocating memory buffers.</source>
|
||||
<translation>Erreur d'allocation des buffers mémoire.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="32"/>
|
||||
<location filename="mainwindow.cpp" line="40"/>
|
||||
<source>Partial transfer due to error. The rsync command completed with an error, but some files may have been transferred successfully.</source>
|
||||
<translation>Transfert partiel due à une erreur. La command rsync s'est terminée avec une erreur, mais des fichiers on été transférés avec succès.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="33"/>
|
||||
<location filename="mainwindow.cpp" line="41"/>
|
||||
<source>Partial transfer due to vanished source files. Some source files disappeared before they could be transferred.</source>
|
||||
<translation>Transfert partiel dû à la disparition des fichiers source. Des fichiers source ont disparu avec d'avoir été transférés.</translation>
|
||||
</message>
|
||||
|
@ -52,7 +52,7 @@ void MainWindow::download()
|
||||
{
|
||||
info(DEBUGMACRO, "Adding user to server (user@server");
|
||||
this->downloading.user = this->connexion.user;
|
||||
server = this->connexion.user + "@" + this->downloading.server;
|
||||
server = this->connexion.user + "@" + "[" + this->downloading.server + "]";
|
||||
env.insert("RSYNC_PASSWORD", this->downloading.password); // Add an environment variable
|
||||
this->downloading.process->setProcessEnvironment(env);
|
||||
}
|
||||
@ -64,7 +64,7 @@ void MainWindow::download()
|
||||
param << "--bwlimit=" + QString::number(this->connexion.bandwidthLimit) + bwUnitChar[this->connexion.bandwidthLimitUnit];
|
||||
}
|
||||
|
||||
ipversion = validateServer(server);
|
||||
ipversion = validateServer(&server);
|
||||
|
||||
if (downloading.ipversion == 4 || downloading.ipversion == 6)
|
||||
{
|
||||
@ -74,7 +74,7 @@ void MainWindow::download()
|
||||
|
||||
param << "--port" << QString::number(this->downloading.port).trimmed();
|
||||
param << "-aXP";
|
||||
param << "[" + server + "]::" + this->downloading.service.trimmed() + "/" + this->downloading.path.trimmed() << this->downloading.savePath.trimmed() + "/";
|
||||
param << "[" + server + "]::" + this->downloading.service.trimmed() + "/" + preparePath(this->downloading.path) << preparePath(this->downloading.savePath) + "/";
|
||||
|
||||
info(DEBUGMACRO, cmd + " " + param.join(" "));
|
||||
|
||||
@ -102,6 +102,7 @@ void MainWindow::readRsyncOutput()
|
||||
{
|
||||
list.clear();
|
||||
line = QString::fromUtf8(this->downloading.process->readLine());
|
||||
info(DEBUGMACRO, "downloading progress : " + line);
|
||||
if (line.isEmpty())
|
||||
{
|
||||
break;
|
||||
|
Binary file not shown.
2
main.cpp
2
main.cpp
@ -1,6 +1,7 @@
|
||||
#include "mainwindow.h"
|
||||
#include "tools.h"
|
||||
#include <QTranslator>
|
||||
#include <QHostInfo>
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
@ -29,5 +30,6 @@ int main(int argc, char *argv[])
|
||||
MainWindow w;
|
||||
info(DEBUGMACRO, "RsyncUI begining");
|
||||
w.show();
|
||||
|
||||
return a.exec();
|
||||
}
|
||||
|
2563
mainwindow.cpp
2563
mainwindow.cpp
File diff suppressed because it is too large
Load Diff
83
mainwindow.h
83
mainwindow.h
@ -51,42 +51,45 @@ extern QMap<int, QString> rsyncErrorStrings;
|
||||
|
||||
class Connexion
|
||||
{
|
||||
public:
|
||||
public:
|
||||
int bandwidthLimit = 0;
|
||||
int bandwidthLimitUnit;
|
||||
int contimeout = 20;
|
||||
QString server;
|
||||
QString service;
|
||||
QString path;
|
||||
QString savePath;
|
||||
QString user;
|
||||
QString password;
|
||||
QProcess * process = nullptr;
|
||||
int ipversion = 4;
|
||||
uint port = 873;
|
||||
bool quit = false;
|
||||
void clear();
|
||||
QString service;
|
||||
QString path;
|
||||
QString savePath;
|
||||
QString user;
|
||||
QString password;
|
||||
QProcess * process = nullptr;
|
||||
int ipversion = 4;
|
||||
uint port = 873;
|
||||
bool quit = false;
|
||||
void clear();
|
||||
bool paused = false;
|
||||
};
|
||||
|
||||
class Downloading
|
||||
{
|
||||
public:
|
||||
public:
|
||||
QString server;
|
||||
QString service;
|
||||
QString path;
|
||||
QString savePath;
|
||||
QString user;
|
||||
QString password;
|
||||
int ipversion = 4;
|
||||
int port = 873;
|
||||
QProcess * process = nullptr;
|
||||
bool quit = false;
|
||||
void clear();
|
||||
QString user;
|
||||
QString password;
|
||||
int ipversion = 4;
|
||||
int port = 873;
|
||||
QProcess * process = nullptr;
|
||||
bool quit = false;
|
||||
bool paused = false;
|
||||
|
||||
void clear();
|
||||
};
|
||||
|
||||
class About
|
||||
{
|
||||
public:
|
||||
public:
|
||||
QString version;
|
||||
QString author = "Daniel TARTAVEL-JEANNOT";
|
||||
QString licence = "GPL_V3";
|
||||
@ -99,7 +102,7 @@ class MainWindow : public QMainWindow
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
public:
|
||||
Ui::MainWindow *ui;
|
||||
MainWindow(QWidget *parent = nullptr);
|
||||
~MainWindow();
|
||||
@ -117,27 +120,27 @@ class MainWindow : public QMainWindow
|
||||
QSystemTrayIcon * trayIcon;
|
||||
QString icon = "/usr/share/icons/RsyncUI.png";
|
||||
bool rescan = false;
|
||||
bool stopDlAsked;
|
||||
bool treeviewClicked;
|
||||
bool stopDlAsked = false;
|
||||
bool treeviewClicked = false;
|
||||
bool initialization = true;
|
||||
bool exiting = false;
|
||||
|
||||
QList<QString> UnitText
|
||||
{
|
||||
tr("B"),
|
||||
tr("KB"),
|
||||
tr("MB"),
|
||||
tr("GB"),
|
||||
tr("TB"),
|
||||
tr("PB")
|
||||
tr("B"),
|
||||
tr("KB"),
|
||||
tr("MB"),
|
||||
tr("GB"),
|
||||
tr("TB"),
|
||||
tr("PB")
|
||||
};
|
||||
QList<QChar> bwUnitChar
|
||||
{
|
||||
'K',
|
||||
'M',
|
||||
'T',
|
||||
'G',
|
||||
'P'
|
||||
'K',
|
||||
'M',
|
||||
'T',
|
||||
'G',
|
||||
'P'
|
||||
};
|
||||
|
||||
QVector<QString> downloadProcessErrorString =
|
||||
@ -154,7 +157,7 @@ class MainWindow : public QMainWindow
|
||||
void populateTree();
|
||||
void populateList(QString server, uint port);
|
||||
void listServices();
|
||||
uint validateServer(QString server);
|
||||
uint validateServer(QString * server);
|
||||
void addTreeItem(QString name, QString fileSize, QString fullsize, QString type, QString date, bool isDir, QString dirName, QTreeWidgetItem *parent);
|
||||
bool scanDir(Connexion * connexion, QTreeWidgetItem *parent = NULL, QString path = "" );
|
||||
void startDownloading();
|
||||
@ -175,7 +178,7 @@ class MainWindow : public QMainWindow
|
||||
void passwordStore (QString account, QString password);
|
||||
QString passwordGet (QString account);
|
||||
|
||||
private slots:
|
||||
private slots:
|
||||
|
||||
void on_listWidget_clicked();
|
||||
|
||||
@ -219,7 +222,13 @@ class MainWindow : public QMainWindow
|
||||
|
||||
//void on_treeWidget_itemDoubleClicked(QTreeWidgetItem *item, int column);
|
||||
|
||||
signals:
|
||||
void on_treeWidget_itemDoubleClicked(QTreeWidgetItem *item, int column);
|
||||
|
||||
void on_treeWidget_doubleClicked(const QModelIndex &index);
|
||||
|
||||
void on_actionPause_downloads_triggered();
|
||||
|
||||
signals:
|
||||
void stopDownloading(QProcess *);
|
||||
void progressSignal(int);
|
||||
void speed(QString);
|
||||
|
@ -159,13 +159,13 @@
|
||||
<set>Qt::ImhPreferNumbers</set>
|
||||
</property>
|
||||
<property name="inputMask">
|
||||
<string/>
|
||||
<string notr="true"/>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string comment="numéro"/>
|
||||
<string notr="true" comment="numéro"/>
|
||||
</property>
|
||||
<property name="maxLength">
|
||||
<number>6</number>
|
||||
<number>5</number>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
@ -407,6 +407,7 @@
|
||||
<addaction name="actionAbout"/>
|
||||
<addaction name="actionAbout_Qt"/>
|
||||
<addaction name="actionExit"/>
|
||||
<addaction name="actionPause_downloads"/>
|
||||
</widget>
|
||||
<action name="DefaultSaveFolder">
|
||||
<property name="icon">
|
||||
@ -479,6 +480,20 @@
|
||||
<string>hidden service</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionPause_downloads">
|
||||
<property name="icon">
|
||||
<iconset theme="media-playback-pause"/>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Stop/resume downloads</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Stop/resume downloading </string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>P</string>
|
||||
</property>
|
||||
</action>
|
||||
</widget>
|
||||
<customwidgets>
|
||||
<customwidget>
|
||||
|
59
tools.cpp
59
tools.cpp
@ -1,6 +1,8 @@
|
||||
#include "mainwindow.h"
|
||||
#include "tools.h"
|
||||
#include "password.h"
|
||||
#include <QTextStream>
|
||||
#include <QHostAddress>
|
||||
|
||||
using namespace std;
|
||||
|
||||
@ -53,15 +55,31 @@ QString getFileType(QString filename)
|
||||
return returnValue;
|
||||
}
|
||||
|
||||
QString preparePath(QString path)
|
||||
{
|
||||
return path.trimmed().replace(' ', "\ ");
|
||||
}
|
||||
|
||||
int whatIpVersion(QString ipAddress)
|
||||
{
|
||||
QStringList fieldList;
|
||||
ulong field;
|
||||
uint i;
|
||||
// ulong field;
|
||||
// uint i;
|
||||
uint ipversion;
|
||||
QHostAddress serverAddress;
|
||||
|
||||
info(DEBUGMACRO, "ipVersion of server at " + ipAddress);
|
||||
|
||||
fieldList = ipAddress.split(":");
|
||||
if (!serverAddress.setAddress(ipAddress))
|
||||
{
|
||||
error ("Address " + ipAddress + " is bad");
|
||||
}
|
||||
ipversion = serverAddress.protocol();
|
||||
|
||||
return (ipversion==IPV4?4:6);
|
||||
|
||||
|
||||
/*fieldList = ipAddress.split(":");
|
||||
if (fieldList.count() == 8)
|
||||
{
|
||||
for (i=0;i<8;i++)
|
||||
@ -88,8 +106,41 @@ int whatIpVersion(QString ipAddress)
|
||||
}
|
||||
info(DEBUGMACRO, "Address is ip V4");
|
||||
return 4;
|
||||
}*/
|
||||
}
|
||||
|
||||
QHostAddress searchHosts(QString server)
|
||||
{
|
||||
QString line = "";
|
||||
QStringList hosts;
|
||||
QFile fileHandle("/etc/hosts");
|
||||
QHostAddress serverAddress;
|
||||
|
||||
info(DEBUGMACRO, "reading /etc/hosts");
|
||||
if (!fileHandle.open(QIODevice::ReadOnly))
|
||||
{
|
||||
QMessageBox::information(0,MainWindow::tr("Error"), fileHandle.errorString());
|
||||
}else
|
||||
{
|
||||
QTextStream in(&fileHandle);
|
||||
|
||||
while(!in.atEnd())
|
||||
{
|
||||
line = in.readLine();
|
||||
hosts = line.split(QRegularExpression("\\s+"));
|
||||
if (hosts.contains(server))
|
||||
{
|
||||
//if (!serverAddress.isNull()) // and serverAddress.protocol() == QAbstractSocket::IPv4Protocol)
|
||||
//{
|
||||
if (!serverAddress.setAddress(hosts.first()))
|
||||
{
|
||||
error("Error setting address " + hosts.first());
|
||||
}
|
||||
//}
|
||||
}
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
return serverAddress;
|
||||
}
|
||||
|
||||
void warning(QString message)
|
||||
|
6
tools.h
6
tools.h
@ -3,6 +3,10 @@
|
||||
|
||||
#define DEBUGMACRO QString(__FILE__) + "->" + QString(Q_FUNC_INFO) + ": " + QString::number(__LINE__) + " -"
|
||||
|
||||
#define IPV4 0
|
||||
#define IPV6 1
|
||||
|
||||
#include <QHostAddress>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <array>
|
||||
@ -22,5 +26,7 @@ int whatIpVersion(QString server);
|
||||
void warning(QString message);
|
||||
void error(QString message);
|
||||
void info(QString debugHeader, QString message);
|
||||
QString preparePath(QString path);
|
||||
QHostAddress searchHosts(QString server);
|
||||
|
||||
#endif // TOOLS_H
|
||||
|
Reference in New Issue
Block a user