🐞 fix(文件传输): 修复打开文件失败断开连接问题

This commit is contained in:
huheng@kylinos.cn 2023-06-12 15:38:30 +08:00
parent a9449821ad
commit 8dc0f2a92d
5 changed files with 231 additions and 183 deletions

View File

@ -308,7 +308,7 @@
<name>MainWindow</name>
<message>
<location filename="../ui/mainwindow.cpp" line="380"/>
<location filename="../ui/mainwindow.cpp" line="1299"/>
<location filename="../ui/mainwindow.cpp" line="1309"/>
<source>kylin-connectivity</source>
<translation></translation>
</message>
@ -334,16 +334,17 @@
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="876"/>
<location filename="../ui/mainwindow.cpp" line="1132"/>
<location filename="../ui/mainwindow.cpp" line="1142"/>
<location filename="../ui/mainwindow.cpp" line="1210"/>
<location filename="../ui/mainwindow.cpp" line="1370"/>
<location filename="../ui/mainwindow.cpp" line="1391"/>
<location filename="../ui/mainwindow.cpp" line="1414"/>
<location filename="../ui/mainwindow.cpp" line="1475"/>
<location filename="../ui/mainwindow.cpp" line="1497"/>
<location filename="../ui/mainwindow.cpp" line="1875"/>
<location filename="../ui/mainwindow.cpp" line="1891"/>
<location filename="../ui/mainwindow.cpp" line="1133"/>
<location filename="../ui/mainwindow.cpp" line="1143"/>
<location filename="../ui/mainwindow.cpp" line="1211"/>
<location filename="../ui/mainwindow.cpp" line="1281"/>
<location filename="../ui/mainwindow.cpp" line="1380"/>
<location filename="../ui/mainwindow.cpp" line="1401"/>
<location filename="../ui/mainwindow.cpp" line="1424"/>
<location filename="../ui/mainwindow.cpp" line="1485"/>
<location filename="../ui/mainwindow.cpp" line="1507"/>
<location filename="../ui/mainwindow.cpp" line="1886"/>
<location filename="../ui/mainwindow.cpp" line="1902"/>
<source>OK</source>
<translation></translation>
</message>
@ -354,7 +355,7 @@
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="677"/>
<location filename="../ui/mainwindow.cpp" line="1287"/>
<location filename="../ui/mainwindow.cpp" line="1297"/>
<source>file download failed</source>
<translation></translation>
</message>
@ -365,7 +366,7 @@
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1006"/>
<location filename="../ui/mainwindow.cpp" line="1327"/>
<location filename="../ui/mainwindow.cpp" line="1337"/>
<source>&quot;</source>
<translation>&quot;</translation>
</message>
@ -376,29 +377,29 @@
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1013"/>
<location filename="../ui/mainwindow.cpp" line="1333"/>
<location filename="../ui/mainwindow.cpp" line="1343"/>
<source>NO</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1012"/>
<location filename="../ui/mainwindow.cpp" line="1332"/>
<location filename="../ui/mainwindow.cpp" line="1342"/>
<source>YES</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1345"/>
<location filename="../ui/mainwindow.cpp" line="1355"/>
<source>The other party has refused your screen projection request!</source>
<translation>!</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1346"/>
<location filename="../ui/mainwindow.cpp" line="1356"/>
<source>Failed to cast the screen. Please contact the other party and try again.</source>
<translation> </translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1032"/>
<location filename="../ui/mainwindow.cpp" line="1350"/>
<location filename="../ui/mainwindow.cpp" line="1360"/>
<source>RECONNECT</source>
<translation></translation>
</message>
@ -414,29 +415,29 @@
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1033"/>
<location filename="../ui/mainwindow.cpp" line="1351"/>
<location filename="../ui/mainwindow.cpp" line="1402"/>
<location filename="../ui/mainwindow.cpp" line="1690"/>
<location filename="../ui/mainwindow.cpp" line="1361"/>
<location filename="../ui/mainwindow.cpp" line="1412"/>
<location filename="../ui/mainwindow.cpp" line="1700"/>
<source>CLOSE</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1130"/>
<location filename="../ui/mainwindow.cpp" line="1131"/>
<source>Please install kylin-assistant on the Android terminal!</source>
<translation>!</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1140"/>
<location filename="../ui/mainwindow.cpp" line="1141"/>
<source>Please use the USB to connect your phone device!</source>
<translation>USBཁྱེད</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1151"/>
<location filename="../ui/mainwindow.cpp" line="1152"/>
<source>Connection error</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1153"/>
<location filename="../ui/mainwindow.cpp" line="1154"/>
<source>Connection timed out</source>
<translation></translation>
</message>
@ -449,22 +450,22 @@
<translation type="vanished"></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1300"/>
<location filename="../ui/mainwindow.cpp" line="1310"/>
<source>Version:</source>
<translation>:</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1302"/>
<location filename="../ui/mainwindow.cpp" line="1312"/>
<source>Mobile Assistant is an interconnection tool of Android device and Kirin operating system, which supports Android file synchronization, file transfer, screen mirroring and other functions, which is simple and fast to operate</source>
<translation>Andridཡིག</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1326"/>
<location filename="../ui/mainwindow.cpp" line="1336"/>
<source>Received screen projection request from &quot;</source>
<translation> &quot;</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1328"/>
<location filename="../ui/mainwindow.cpp" line="1338"/>
<source>After consent, the other party can share the device desktop to this screen.</source>
<translation></translation>
</message>
@ -477,83 +478,88 @@
<translation type="vanished"></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1365"/>
<location filename="../ui/mainwindow.cpp" line="1375"/>
<source>The other party agreed to your screen projection request!</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1366"/>
<location filename="../ui/mainwindow.cpp" line="1376"/>
<source>The screen is being cast, please wait...</source>
<translation>...</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1386"/>
<location filename="../ui/mainwindow.cpp" line="1409"/>
<location filename="../ui/mainwindow.cpp" line="1396"/>
<location filename="../ui/mainwindow.cpp" line="1419"/>
<source>End of screen projection</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1387"/>
<location filename="../ui/mainwindow.cpp" line="1410"/>
<location filename="../ui/mainwindow.cpp" line="1397"/>
<location filename="../ui/mainwindow.cpp" line="1420"/>
<source>The other party has finished the screen projection function.</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1396"/>
<location filename="../ui/mainwindow.cpp" line="1684"/>
<location filename="../ui/mainwindow.cpp" line="1406"/>
<location filename="../ui/mainwindow.cpp" line="1694"/>
<source>Screen projection loading error</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1398"/>
<location filename="../ui/mainwindow.cpp" line="1686"/>
<location filename="../ui/mainwindow.cpp" line="1408"/>
<location filename="../ui/mainwindow.cpp" line="1696"/>
<source>Please check whether to install the projection expansion package [kylin connectivity tools]</source>
<translation>[kylin-connectttity-tools]</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1491"/>
<location filename="../ui/mainwindow.cpp" line="1494"/>
<location filename="../ui/mainwindow.cpp" line="1501"/>
<location filename="../ui/mainwindow.cpp" line="1504"/>
<source>Transmission interruption</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1492"/>
<location filename="../ui/mainwindow.cpp" line="1502"/>
<source>The other party&apos;s device has insufficient local storage!</source>
<translation>!</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1494"/>
<location filename="../ui/mainwindow.cpp" line="1504"/>
<source>Insufficient local storage space!</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1674"/>
<location filename="../ui/mainwindow.cpp" line="1684"/>
<source>Uploaded to</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1645"/>
<location filename="../ui/mainwindow.cpp" line="1655"/>
<source>Downloaded to</source>
<translation>Uploaded to</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1473"/>
<location filename="../ui/mainwindow.cpp" line="1279"/>
<source>File open exception!</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1483"/>
<source>Search data loading failed!</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1869"/>
<location filename="../ui/mainwindow.cpp" line="1884"/>
<location filename="../ui/mainwindow.cpp" line="1880"/>
<location filename="../ui/mainwindow.cpp" line="1895"/>
<source>Request sent successfully!</source>
<translation>!</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1870"/>
<location filename="../ui/mainwindow.cpp" line="1881"/>
<source>The connection request has been sent to the selected device. Please click [YES] in the opposite pop-up window</source>
<translation> </translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1886"/>
<location filename="../ui/mainwindow.cpp" line="1897"/>
<source>The screen projection request has been sent to the connected device. Please click [Agree] in the opposite pop-up window</source>
<translation> </translation>
</message>
@ -589,32 +595,32 @@
<translation>:</translation>
</message>
<message>
<location filename="../ui/connectinterface/mobileconnectwin.h" line="48"/>
<location filename="../ui/connectinterface/mobileconnectwin.h" line="46"/>
<source>vivo</source>
<translation></translation>
</message>
<message>
<location filename="../ui/connectinterface/mobileconnectwin.h" line="49"/>
<location filename="../ui/connectinterface/mobileconnectwin.h" line="47"/>
<source>HUAWEI</source>
<translation></translation>
</message>
<message>
<location filename="../ui/connectinterface/mobileconnectwin.h" line="50"/>
<location filename="../ui/connectinterface/mobileconnectwin.h" line="48"/>
<source>Xiaomi</source>
<translation></translation>
</message>
<message>
<location filename="../ui/connectinterface/mobileconnectwin.h" line="51"/>
<location filename="../ui/connectinterface/mobileconnectwin.h" line="49"/>
<source>SAMSUNG</source>
<translation></translation>
</message>
<message>
<location filename="../ui/connectinterface/mobileconnectwin.h" line="52"/>
<location filename="../ui/connectinterface/mobileconnectwin.h" line="50"/>
<source>OPPO</source>
<translation></translation>
</message>
<message>
<location filename="../ui/connectinterface/mobileconnectwin.h" line="53"/>
<location filename="../ui/connectinterface/mobileconnectwin.h" line="51"/>
<source>Other</source>
<translation></translation>
</message>
@ -627,27 +633,33 @@
<translation></translation>
</message>
<message>
<location filename="../ui/connectinterface/mobileqrcode.cpp" line="55"/>
<location filename="../ui/connectinterface/mobileqrcode.cpp" line="83"/>
<source>Connect the mobile phone and computer to the same network,open the mobile phone app and scan the QR code.</source>
<translation></translation>
</message>
<message>
<location filename="../ui/connectinterface/mobileqrcode.cpp" line="58"/>
<location filename="../ui/connectinterface/mobileqrcode.cpp" line="86"/>
<source>Use the mobile app to scan this code</source>
<translation></translation>
</message>
<message>
<location filename="../ui/connectinterface/mobileqrcode.cpp" line="65"/>
<location filename="../ui/connectinterface/mobileqrcode.cpp" line="45"/>
<location filename="../ui/connectinterface/mobileqrcode.cpp" line="56"/>
<location filename="../ui/connectinterface/mobileqrcode.cpp" line="95"/>
<location filename="../ui/connectinterface/mobileqrcode.cpp" line="101"/>
<source>No app installed? Install Now</source>
<translation> </translation>
</message>
<message>
<location filename="../ui/connectinterface/mobileqrcode.cpp" line="133"/>
<location filename="../ui/connectinterface/mobileqrcode.cpp" line="50"/>
<location filename="../ui/connectinterface/mobileqrcode.cpp" line="61"/>
<location filename="../ui/connectinterface/mobileqrcode.cpp" line="171"/>
<location filename="../ui/connectinterface/mobileqrcode.cpp" line="176"/>
<source>view supported phone types&gt;&gt;</source>
<translation>&gt;&gt;</translation>
</message>
<message>
<location filename="../ui/connectinterface/mobileqrcode.cpp" line="139"/>
<location filename="../ui/connectinterface/mobileqrcode.cpp" line="181"/>
<source>Please scan this QR code with your mobile browser to download the app</source>
<translation></translation>
</message>

View File

@ -338,7 +338,7 @@
<name>MainWindow</name>
<message>
<location filename="../ui/mainwindow.cpp" line="380"/>
<location filename="../ui/mainwindow.cpp" line="1299"/>
<location filename="../ui/mainwindow.cpp" line="1309"/>
<source>kylin-connectivity</source>
<translation>kylin-connectivity</translation>
</message>
@ -377,7 +377,7 @@
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="677"/>
<location filename="../ui/mainwindow.cpp" line="1287"/>
<location filename="../ui/mainwindow.cpp" line="1297"/>
<source>file download failed</source>
<translation>file download failed</translation>
</message>
@ -388,7 +388,7 @@
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1006"/>
<location filename="../ui/mainwindow.cpp" line="1327"/>
<location filename="../ui/mainwindow.cpp" line="1337"/>
<source>&quot;</source>
<translation>&quot;</translation>
</message>
@ -399,29 +399,34 @@
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1013"/>
<location filename="../ui/mainwindow.cpp" line="1333"/>
<location filename="../ui/mainwindow.cpp" line="1343"/>
<source>NO</source>
<translation>No</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1012"/>
<location filename="../ui/mainwindow.cpp" line="1332"/>
<location filename="../ui/mainwindow.cpp" line="1342"/>
<source>YES</source>
<translation>Yes</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1345"/>
<location filename="../ui/mainwindow.cpp" line="1279"/>
<source>File open exception!</source>
<translation>File open exception!</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1355"/>
<source>The other party has refused your screen projection request!</source>
<translation>The other party has refused your screen projection request!</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1346"/>
<location filename="../ui/mainwindow.cpp" line="1356"/>
<source>Failed to cast the screen. Please contact the other party and try again.</source>
<translation>Failed to cast the screen. Please contact the other party and try again.</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1032"/>
<location filename="../ui/mainwindow.cpp" line="1350"/>
<location filename="../ui/mainwindow.cpp" line="1360"/>
<source>RECONNECT</source>
<translation>Reconnect</translation>
</message>
@ -437,29 +442,29 @@
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1033"/>
<location filename="../ui/mainwindow.cpp" line="1351"/>
<location filename="../ui/mainwindow.cpp" line="1402"/>
<location filename="../ui/mainwindow.cpp" line="1690"/>
<location filename="../ui/mainwindow.cpp" line="1361"/>
<location filename="../ui/mainwindow.cpp" line="1412"/>
<location filename="../ui/mainwindow.cpp" line="1700"/>
<source>CLOSE</source>
<translation>Close</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1130"/>
<location filename="../ui/mainwindow.cpp" line="1131"/>
<source>Please install kylin-assistant on the Android terminal!</source>
<translation>Please install kylin-assistant on the Android terminal!</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1140"/>
<location filename="../ui/mainwindow.cpp" line="1141"/>
<source>Please use the USB to connect your phone device!</source>
<translation>Please use the USB to connect your phone device!</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1151"/>
<location filename="../ui/mainwindow.cpp" line="1152"/>
<source>Connection error</source>
<translation>Connection error</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1153"/>
<location filename="../ui/mainwindow.cpp" line="1154"/>
<source>Connection timed out</source>
<translation>Connection timed out</translation>
</message>
@ -476,22 +481,22 @@
<translation type="vanished">Umount failed</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1300"/>
<location filename="../ui/mainwindow.cpp" line="1310"/>
<source>Version:</source>
<translation>Version:</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1302"/>
<location filename="../ui/mainwindow.cpp" line="1312"/>
<source>Mobile Assistant is an interconnection tool of Android device and Kirin operating system, which supports Android file synchronization, file transfer, screen mirroring and other functions, which is simple and fast to operate</source>
<translation>Mobile Assistant is an interconnection tool of Android device and Kirin operating system, which supports Android file synchronization, file transfer, screen mirroring and other functions, which is simple and fast to operate</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1326"/>
<location filename="../ui/mainwindow.cpp" line="1336"/>
<source>Received screen projection request from &quot;</source>
<translation>Received screen projection request from &quot;</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1328"/>
<location filename="../ui/mainwindow.cpp" line="1338"/>
<source>After consent, the other party can share the device desktop to this screen.</source>
<translation>After consent, the other party can share the device desktop to this screen.</translation>
</message>
@ -504,77 +509,78 @@
<translation type="vanished">Close</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1365"/>
<location filename="../ui/mainwindow.cpp" line="1375"/>
<source>The other party agreed to your screen projection request!</source>
<translation>The other party agreed to your screen projection request!</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1366"/>
<location filename="../ui/mainwindow.cpp" line="1376"/>
<source>The screen is being cast, please wait...</source>
<translation>The screen is being cast, please wait...</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1386"/>
<location filename="../ui/mainwindow.cpp" line="1409"/>
<location filename="../ui/mainwindow.cpp" line="1396"/>
<location filename="../ui/mainwindow.cpp" line="1419"/>
<source>End of screen projection</source>
<translation>End of screen projection</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1387"/>
<location filename="../ui/mainwindow.cpp" line="1410"/>
<location filename="../ui/mainwindow.cpp" line="1397"/>
<location filename="../ui/mainwindow.cpp" line="1420"/>
<source>The other party has finished the screen projection function.</source>
<translation>The other party has finished the screen projection function.</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1473"/>
<location filename="../ui/mainwindow.cpp" line="1483"/>
<source>Search data loading failed!</source>
<translation>Search data loading failed!</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1491"/>
<location filename="../ui/mainwindow.cpp" line="1494"/>
<location filename="../ui/mainwindow.cpp" line="1501"/>
<location filename="../ui/mainwindow.cpp" line="1504"/>
<source>Transmission interruption</source>
<translation>Transmission interruption</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1492"/>
<location filename="../ui/mainwindow.cpp" line="1502"/>
<source>The other party&apos;s device has insufficient local storage!</source>
<translation>The other party&apos;s device has insufficient local storage!</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1494"/>
<location filename="../ui/mainwindow.cpp" line="1504"/>
<source>Insufficient local storage space!</source>
<translation>Insufficient local storage space!</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1886"/>
<location filename="../ui/mainwindow.cpp" line="1897"/>
<source>The screen projection request has been sent to the connected device. Please click [Agree] in the opposite pop-up window</source>
<translation>The screen projection request has been sent to the connected device. Please click [Agree] in the opposite pop-up window</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="876"/>
<location filename="../ui/mainwindow.cpp" line="1132"/>
<location filename="../ui/mainwindow.cpp" line="1142"/>
<location filename="../ui/mainwindow.cpp" line="1210"/>
<location filename="../ui/mainwindow.cpp" line="1370"/>
<location filename="../ui/mainwindow.cpp" line="1391"/>
<location filename="../ui/mainwindow.cpp" line="1414"/>
<location filename="../ui/mainwindow.cpp" line="1475"/>
<location filename="../ui/mainwindow.cpp" line="1497"/>
<location filename="../ui/mainwindow.cpp" line="1875"/>
<location filename="../ui/mainwindow.cpp" line="1891"/>
<location filename="../ui/mainwindow.cpp" line="1133"/>
<location filename="../ui/mainwindow.cpp" line="1143"/>
<location filename="../ui/mainwindow.cpp" line="1211"/>
<location filename="../ui/mainwindow.cpp" line="1281"/>
<location filename="../ui/mainwindow.cpp" line="1380"/>
<location filename="../ui/mainwindow.cpp" line="1401"/>
<location filename="../ui/mainwindow.cpp" line="1424"/>
<location filename="../ui/mainwindow.cpp" line="1485"/>
<location filename="../ui/mainwindow.cpp" line="1507"/>
<location filename="../ui/mainwindow.cpp" line="1886"/>
<location filename="../ui/mainwindow.cpp" line="1902"/>
<source>OK</source>
<translation>Ok</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1396"/>
<location filename="../ui/mainwindow.cpp" line="1684"/>
<location filename="../ui/mainwindow.cpp" line="1406"/>
<location filename="../ui/mainwindow.cpp" line="1694"/>
<source>Screen projection loading error</source>
<translation>Screen projection loading error</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1398"/>
<location filename="../ui/mainwindow.cpp" line="1686"/>
<location filename="../ui/mainwindow.cpp" line="1408"/>
<location filename="../ui/mainwindow.cpp" line="1696"/>
<source>Please check whether to install the projection expansion package [kylin connectivity tools]</source>
<translation>Please check whether to install the projection expansion package [kylin connectivity tools]</translation>
</message>
@ -635,23 +641,23 @@
<translation type="vanished">QQ</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1674"/>
<location filename="../ui/mainwindow.cpp" line="1684"/>
<source>Uploaded to</source>
<translation>Uploaded to</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1645"/>
<location filename="../ui/mainwindow.cpp" line="1655"/>
<source>Downloaded to</source>
<translation>Downloaded to</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1869"/>
<location filename="../ui/mainwindow.cpp" line="1884"/>
<location filename="../ui/mainwindow.cpp" line="1880"/>
<location filename="../ui/mainwindow.cpp" line="1895"/>
<source>Request sent successfully!</source>
<translation>Request sent successfully!</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1870"/>
<location filename="../ui/mainwindow.cpp" line="1881"/>
<source>The connection request has been sent to the selected device. Please click [YES] in the opposite pop-up window</source>
<translation>The connection request has been sent to the selected device. Please click [YES] in the opposite pop-up window</translation>
</message>
@ -687,32 +693,32 @@
<translation>Your phone model: </translation>
</message>
<message>
<location filename="../ui/connectinterface/mobileconnectwin.h" line="48"/>
<location filename="../ui/connectinterface/mobileconnectwin.h" line="46"/>
<source>vivo</source>
<translation>vivo</translation>
</message>
<message>
<location filename="../ui/connectinterface/mobileconnectwin.h" line="49"/>
<location filename="../ui/connectinterface/mobileconnectwin.h" line="47"/>
<source>HUAWEI</source>
<translation>HUAWEI</translation>
</message>
<message>
<location filename="../ui/connectinterface/mobileconnectwin.h" line="50"/>
<location filename="../ui/connectinterface/mobileconnectwin.h" line="48"/>
<source>Xiaomi</source>
<translation>Xiaomi</translation>
</message>
<message>
<location filename="../ui/connectinterface/mobileconnectwin.h" line="51"/>
<location filename="../ui/connectinterface/mobileconnectwin.h" line="49"/>
<source>SAMSUNG</source>
<translation>SAMSUNG</translation>
</message>
<message>
<location filename="../ui/connectinterface/mobileconnectwin.h" line="52"/>
<location filename="../ui/connectinterface/mobileconnectwin.h" line="50"/>
<source>OPPO</source>
<translation>OPPO</translation>
</message>
<message>
<location filename="../ui/connectinterface/mobileconnectwin.h" line="53"/>
<location filename="../ui/connectinterface/mobileconnectwin.h" line="51"/>
<source>Other</source>
<translation>Other</translation>
</message>
@ -915,22 +921,28 @@
<translation>No network</translation>
</message>
<message>
<location filename="../ui/connectinterface/mobileqrcode.cpp" line="55"/>
<location filename="../ui/connectinterface/mobileqrcode.cpp" line="83"/>
<source>Connect the mobile phone and computer to the same network,open the mobile phone app and scan the QR code.</source>
<translation>Connect the mobile phone and computer to the same network,open the mobile phone app and scan the QR code.</translation>
</message>
<message>
<location filename="../ui/connectinterface/mobileqrcode.cpp" line="58"/>
<location filename="../ui/connectinterface/mobileqrcode.cpp" line="86"/>
<source>Use the mobile app to scan this code</source>
<translation>Use the mobile app to scan this code</translation>
</message>
<message>
<location filename="../ui/connectinterface/mobileqrcode.cpp" line="65"/>
<location filename="../ui/connectinterface/mobileqrcode.cpp" line="45"/>
<location filename="../ui/connectinterface/mobileqrcode.cpp" line="56"/>
<location filename="../ui/connectinterface/mobileqrcode.cpp" line="95"/>
<location filename="../ui/connectinterface/mobileqrcode.cpp" line="101"/>
<source>No app installed? Install Now</source>
<translation>No app installed? Install Now</translation>
</message>
<message>
<location filename="../ui/connectinterface/mobileqrcode.cpp" line="133"/>
<location filename="../ui/connectinterface/mobileqrcode.cpp" line="50"/>
<location filename="../ui/connectinterface/mobileqrcode.cpp" line="61"/>
<location filename="../ui/connectinterface/mobileqrcode.cpp" line="171"/>
<location filename="../ui/connectinterface/mobileqrcode.cpp" line="176"/>
<source>view supported phone types&gt;&gt;</source>
<translation>view supported phone types&gt;&gt;</translation>
</message>
@ -939,7 +951,7 @@
<translation type="vanished">Scan this code with your mobile browser</translation>
</message>
<message>
<location filename="../ui/connectinterface/mobileqrcode.cpp" line="139"/>
<location filename="../ui/connectinterface/mobileqrcode.cpp" line="181"/>
<source>Please scan this QR code with your mobile browser to download the app</source>
<translation>Please scan this QR code with your mobile browser to download the app</translation>
</message>

View File

@ -319,7 +319,7 @@
<name>MainWindow</name>
<message>
<location filename="../ui/mainwindow.cpp" line="380"/>
<location filename="../ui/mainwindow.cpp" line="1299"/>
<location filename="../ui/mainwindow.cpp" line="1309"/>
<source>kylin-connectivity</source>
<translation></translation>
</message>
@ -358,7 +358,7 @@
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="677"/>
<location filename="../ui/mainwindow.cpp" line="1287"/>
<location filename="../ui/mainwindow.cpp" line="1297"/>
<source>file download failed</source>
<translation></translation>
</message>
@ -369,7 +369,7 @@
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1006"/>
<location filename="../ui/mainwindow.cpp" line="1327"/>
<location filename="../ui/mainwindow.cpp" line="1337"/>
<source>&quot;</source>
<translation>&quot; </translation>
</message>
@ -380,29 +380,34 @@
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1013"/>
<location filename="../ui/mainwindow.cpp" line="1333"/>
<location filename="../ui/mainwindow.cpp" line="1343"/>
<source>NO</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1012"/>
<location filename="../ui/mainwindow.cpp" line="1332"/>
<location filename="../ui/mainwindow.cpp" line="1342"/>
<source>YES</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1345"/>
<location filename="../ui/mainwindow.cpp" line="1279"/>
<source>File open exception!</source>
<translation>!</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1355"/>
<source>The other party has refused your screen projection request!</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1346"/>
<location filename="../ui/mainwindow.cpp" line="1356"/>
<source>Failed to cast the screen. Please contact the other party and try again.</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1032"/>
<location filename="../ui/mainwindow.cpp" line="1350"/>
<location filename="../ui/mainwindow.cpp" line="1360"/>
<source>RECONNECT</source>
<translation></translation>
</message>
@ -418,29 +423,29 @@
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1033"/>
<location filename="../ui/mainwindow.cpp" line="1351"/>
<location filename="../ui/mainwindow.cpp" line="1402"/>
<location filename="../ui/mainwindow.cpp" line="1690"/>
<location filename="../ui/mainwindow.cpp" line="1361"/>
<location filename="../ui/mainwindow.cpp" line="1412"/>
<location filename="../ui/mainwindow.cpp" line="1700"/>
<source>CLOSE</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1130"/>
<location filename="../ui/mainwindow.cpp" line="1131"/>
<source>Please install kylin-assistant on the Android terminal!</source>
<translation>app</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1140"/>
<location filename="../ui/mainwindow.cpp" line="1141"/>
<source>Please use the USB to connect your phone device!</source>
<translation>使USB连接手机设备</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1151"/>
<location filename="../ui/mainwindow.cpp" line="1152"/>
<source>Connection error</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1153"/>
<location filename="../ui/mainwindow.cpp" line="1154"/>
<source>Connection timed out</source>
<translation></translation>
</message>
@ -457,22 +462,22 @@
<translation type="vanished"></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1300"/>
<location filename="../ui/mainwindow.cpp" line="1310"/>
<source>Version:</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1302"/>
<location filename="../ui/mainwindow.cpp" line="1312"/>
<source>Mobile Assistant is an interconnection tool of Android device and Kirin operating system, which supports Android file synchronization, file transfer, screen mirroring and other functions, which is simple and fast to operate</source>
<translation>Android文件同步</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1326"/>
<location filename="../ui/mainwindow.cpp" line="1336"/>
<source>Received screen projection request from &quot;</source>
<translation> &quot;</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1328"/>
<location filename="../ui/mainwindow.cpp" line="1338"/>
<source>After consent, the other party can share the device desktop to this screen.</source>
<translation></translation>
</message>
@ -485,77 +490,78 @@
<translation type="vanished"></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1365"/>
<location filename="../ui/mainwindow.cpp" line="1375"/>
<source>The other party agreed to your screen projection request!</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1366"/>
<location filename="../ui/mainwindow.cpp" line="1376"/>
<source>The screen is being cast, please wait...</source>
<translation>...</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1386"/>
<location filename="../ui/mainwindow.cpp" line="1409"/>
<location filename="../ui/mainwindow.cpp" line="1396"/>
<location filename="../ui/mainwindow.cpp" line="1419"/>
<source>End of screen projection</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1387"/>
<location filename="../ui/mainwindow.cpp" line="1410"/>
<location filename="../ui/mainwindow.cpp" line="1397"/>
<location filename="../ui/mainwindow.cpp" line="1420"/>
<source>The other party has finished the screen projection function.</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1473"/>
<location filename="../ui/mainwindow.cpp" line="1483"/>
<source>Search data loading failed!</source>
<translation>!</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1491"/>
<location filename="../ui/mainwindow.cpp" line="1494"/>
<location filename="../ui/mainwindow.cpp" line="1501"/>
<location filename="../ui/mainwindow.cpp" line="1504"/>
<source>Transmission interruption</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1492"/>
<location filename="../ui/mainwindow.cpp" line="1502"/>
<source>The other party&apos;s device has insufficient local storage!</source>
<translation>!</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1494"/>
<location filename="../ui/mainwindow.cpp" line="1504"/>
<source>Insufficient local storage space!</source>
<translation>!</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1886"/>
<location filename="../ui/mainwindow.cpp" line="1897"/>
<source>The screen projection request has been sent to the connected device. Please click [Agree] in the opposite pop-up window</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="876"/>
<location filename="../ui/mainwindow.cpp" line="1132"/>
<location filename="../ui/mainwindow.cpp" line="1142"/>
<location filename="../ui/mainwindow.cpp" line="1210"/>
<location filename="../ui/mainwindow.cpp" line="1370"/>
<location filename="../ui/mainwindow.cpp" line="1391"/>
<location filename="../ui/mainwindow.cpp" line="1414"/>
<location filename="../ui/mainwindow.cpp" line="1475"/>
<location filename="../ui/mainwindow.cpp" line="1497"/>
<location filename="../ui/mainwindow.cpp" line="1875"/>
<location filename="../ui/mainwindow.cpp" line="1891"/>
<location filename="../ui/mainwindow.cpp" line="1133"/>
<location filename="../ui/mainwindow.cpp" line="1143"/>
<location filename="../ui/mainwindow.cpp" line="1211"/>
<location filename="../ui/mainwindow.cpp" line="1281"/>
<location filename="../ui/mainwindow.cpp" line="1380"/>
<location filename="../ui/mainwindow.cpp" line="1401"/>
<location filename="../ui/mainwindow.cpp" line="1424"/>
<location filename="../ui/mainwindow.cpp" line="1485"/>
<location filename="../ui/mainwindow.cpp" line="1507"/>
<location filename="../ui/mainwindow.cpp" line="1886"/>
<location filename="../ui/mainwindow.cpp" line="1902"/>
<source>OK</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1396"/>
<location filename="../ui/mainwindow.cpp" line="1684"/>
<location filename="../ui/mainwindow.cpp" line="1406"/>
<location filename="../ui/mainwindow.cpp" line="1694"/>
<source>Screen projection loading error</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1398"/>
<location filename="../ui/mainwindow.cpp" line="1686"/>
<location filename="../ui/mainwindow.cpp" line="1408"/>
<location filename="../ui/mainwindow.cpp" line="1696"/>
<source>Please check whether to install the projection expansion package [kylin connectivity tools]</source>
<translation>[kylin-connectivity-tools]</translation>
</message>
@ -616,23 +622,23 @@
<translation type="vanished">QQ</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1674"/>
<location filename="../ui/mainwindow.cpp" line="1684"/>
<source>Uploaded to</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1645"/>
<location filename="../ui/mainwindow.cpp" line="1655"/>
<source>Downloaded to</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1869"/>
<location filename="../ui/mainwindow.cpp" line="1884"/>
<location filename="../ui/mainwindow.cpp" line="1880"/>
<location filename="../ui/mainwindow.cpp" line="1895"/>
<source>Request sent successfully!</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1870"/>
<location filename="../ui/mainwindow.cpp" line="1881"/>
<source>The connection request has been sent to the selected device. Please click [YES] in the opposite pop-up window</source>
<translation></translation>
</message>
@ -668,32 +674,32 @@
<translation>:</translation>
</message>
<message>
<location filename="../ui/connectinterface/mobileconnectwin.h" line="48"/>
<location filename="../ui/connectinterface/mobileconnectwin.h" line="46"/>
<source>vivo</source>
<translation>vivo</translation>
</message>
<message>
<location filename="../ui/connectinterface/mobileconnectwin.h" line="49"/>
<location filename="../ui/connectinterface/mobileconnectwin.h" line="47"/>
<source>HUAWEI</source>
<translation></translation>
</message>
<message>
<location filename="../ui/connectinterface/mobileconnectwin.h" line="50"/>
<location filename="../ui/connectinterface/mobileconnectwin.h" line="48"/>
<source>Xiaomi</source>
<translation></translation>
</message>
<message>
<location filename="../ui/connectinterface/mobileconnectwin.h" line="51"/>
<location filename="../ui/connectinterface/mobileconnectwin.h" line="49"/>
<source>SAMSUNG</source>
<translation></translation>
</message>
<message>
<location filename="../ui/connectinterface/mobileconnectwin.h" line="52"/>
<location filename="../ui/connectinterface/mobileconnectwin.h" line="50"/>
<source>OPPO</source>
<translation>OPPO</translation>
</message>
<message>
<location filename="../ui/connectinterface/mobileconnectwin.h" line="53"/>
<location filename="../ui/connectinterface/mobileconnectwin.h" line="51"/>
<source>Other</source>
<translation></translation>
</message>
@ -873,22 +879,28 @@
<translation></translation>
</message>
<message>
<location filename="../ui/connectinterface/mobileqrcode.cpp" line="55"/>
<location filename="../ui/connectinterface/mobileqrcode.cpp" line="83"/>
<source>Connect the mobile phone and computer to the same network,open the mobile phone app and scan the QR code.</source>
<translation>App扫描此二维码</translation>
</message>
<message>
<location filename="../ui/connectinterface/mobileqrcode.cpp" line="58"/>
<location filename="../ui/connectinterface/mobileqrcode.cpp" line="86"/>
<source>Use the mobile app to scan this code</source>
<translation>使app扫描此码</translation>
</message>
<message>
<location filename="../ui/connectinterface/mobileqrcode.cpp" line="65"/>
<location filename="../ui/connectinterface/mobileqrcode.cpp" line="45"/>
<location filename="../ui/connectinterface/mobileqrcode.cpp" line="56"/>
<location filename="../ui/connectinterface/mobileqrcode.cpp" line="95"/>
<location filename="../ui/connectinterface/mobileqrcode.cpp" line="101"/>
<source>No app installed? Install Now</source>
<translation>App</translation>
</message>
<message>
<location filename="../ui/connectinterface/mobileqrcode.cpp" line="133"/>
<location filename="../ui/connectinterface/mobileqrcode.cpp" line="50"/>
<location filename="../ui/connectinterface/mobileqrcode.cpp" line="61"/>
<location filename="../ui/connectinterface/mobileqrcode.cpp" line="171"/>
<location filename="../ui/connectinterface/mobileqrcode.cpp" line="176"/>
<source>view supported phone types&gt;&gt;</source>
<translation>&gt;&gt;</translation>
</message>
@ -897,7 +909,7 @@
<translation type="vanished">使</translation>
</message>
<message>
<location filename="../ui/connectinterface/mobileqrcode.cpp" line="139"/>
<location filename="../ui/connectinterface/mobileqrcode.cpp" line="181"/>
<source>Please scan this QR code with your mobile browser to download the app</source>
<translation>使App</translation>
</message>

View File

@ -1117,6 +1117,7 @@ void MainWindow::slotDisconnect()
m_isDownloadingThumbanil = false;
m_uploadPath = "";
m_isFileViewPage = false;
m_isOpeningFile = false;
if (m_isServerConnect) {
disconnectService();
}
@ -1273,6 +1274,15 @@ void MainWindow::slotDownFileFail(QString fileName, QString flag)
{
Q_UNUSED(fileName);
deleterDialog();
if (m_isOpeningFile) {
m_messageBox = new MessageDialog(this);
m_messageBox->setText(tr("File open exception!"));
m_messageBox->setIconPixmap(QIcon::fromTheme("dialog-warning"));
m_messageBox->addButton(tr("OK"));
moveMessageBox();
m_isOpeningFile = false;
return;
}
if (flag.isEmpty()) {
slotConnectFailed();
}
@ -1795,6 +1805,7 @@ void MainWindow::slotOpenFile(FileInfo::FileType type, QString path)
} else {
// 打开文件埋点
GenerateTools::buriedPoint(kabase::BuriedPoint::PT::KylinMobileAssistantOpenFile);
m_isOpeningFile = true;
if (m_connectInfo.deviceType == ConnectionService::DeviceType::PC) {
m_ftpClient->setTempPath(FILE_DOWN_PATH + m_connectInfo.uuid + TEMP_DOWN_PATH);
m_ftpClient->downFile(path);

View File

@ -266,6 +266,7 @@ private:
PublicAttributes::Theme m_theme = PublicAttributes::Theme::Light; // 主题
bool m_isDownloadingThumbanil = false;
bool m_isDusUpload = false;
bool m_isOpeningFile = false;
};
#endif // MAINWINDOW_H