🐞 fix(连接模块): 添加多次连接处理,防止连接错误

This commit is contained in:
huheng@kylinos.cn 2023-06-15 16:57:44 +08:00
parent b3b70c4ccc
commit bf76835779
6 changed files with 379 additions and 345 deletions

View File

@ -49,31 +49,33 @@ ConnectionService::~ConnectionService()
}
}
void ConnectionService::startClient(const QString host)
bool ConnectionService::startClient(const QString host)
{
if (m_messageTcpSocket != nullptr) {
qInfo() << "There is currently a connection in progress!";
return false;
}
m_isClient = true;
m_serverIp = host;
m_connectInfo.connectType = ConnectType::WIFI;
if (m_messageTcpSocket == nullptr) {
m_messageTcpSocket = new QTcpSocket;
connect(m_messageTcpSocket, &QTcpSocket::readyRead, this, &ConnectionService::onMessageReadyRead);
connect(m_messageTcpSocket, &QTcpSocket::connected, this, [=]() {
m_isMsgSocketConnect = true;
// 客户端启动心跳服务监听
if (m_heartTcpServer == nullptr) {
m_heartTcpServer = new QTcpServer;
connect(m_heartTcpServer, &QTcpServer::newConnection, this,
&ConnectionService::slotHeartbeatConnection);
}
int sendRe = m_heartTcpServer->listen(QHostAddress::Any, HEARTBEAT_PORT);
if (sendRe == -1) {
qInfo() << "Tcpserver listening port " + QString::number(HEARTBEAT_PORT) + " failed!";
} else {
qInfo() << "Tcpserver listening port " + QString::number(HEARTBEAT_PORT) + " succeeded!";
}
});
}
m_messageTcpSocket = new QTcpSocket;
connect(m_messageTcpSocket, &QTcpSocket::readyRead, this, &ConnectionService::onMessageReadyRead);
connect(m_messageTcpSocket, &QTcpSocket::connected, this, [=]() {
m_isMsgSocketConnect = true;
// 客户端启动心跳服务监听
if (m_heartTcpServer == nullptr) {
m_heartTcpServer = new QTcpServer;
connect(m_heartTcpServer, &QTcpServer::newConnection, this, &ConnectionService::slotHeartbeatConnection);
}
int sendRe = m_heartTcpServer->listen(QHostAddress::Any, HEARTBEAT_PORT);
if (sendRe == -1) {
qInfo() << "Tcpserver listening port " + QString::number(HEARTBEAT_PORT) + " failed!";
} else {
qInfo() << "Tcpserver listening port " + QString::number(HEARTBEAT_PORT) + " succeeded!";
}
});
m_messageTcpSocket->connectToHost(host, LISTEN_PORT);
return true;
}
void ConnectionService::setConnectionCallback(ConnectSuccessCallBack connectSuccessCallBack,

View File

@ -13,8 +13,8 @@
#include "messageserialize.pb.h"
#include "adbprocess.h"
typedef std::function<void()> ConnectSuccessCallBack; // 定义连接成功函数类型
typedef std::function<void()> ConnectFailCallBack; // 定义连接失败函数类型
typedef std::function<void()> ConnectSuccessCallBack; // 定义连接成功函数类型
typedef std::function<void()> ConnectFailCallBack; // 定义连接失败函数类型
class ConnectionService : public QObject
{
@ -25,7 +25,7 @@ public:
// wifi连接
// 启动客户端连接服务器
void startClient(const QString host);
bool startClient(const QString host);
// 设置连接是否成功回调函数
void setConnectionCallback(ConnectSuccessCallBack connectSuccessCallBack, ConnectFailCallBack connectFailCallBack);
// 尝试连接address:port主机地址使用前需设置成功和失败的回调函数
@ -58,30 +58,28 @@ public:
public:
enum ConnectType {
NOTCONNECT = 0, // 未连接
WIFI, // WiFi连接
USB // USB连接
NOTCONNECT = 0, // 未连接
WIFI, // WiFi连接
USB // USB连接
};
Q_ENUM(ConnectType)
enum DeviceType {
PC = 0, // PC端
ANDROID, // 安卓端
UNKNOWN // 未知设备
PC = 0, // PC端
ANDROID, // 安卓端
UNKNOWN // 未知设备
};
Q_ENUM(DeviceType)
enum DeviceRole {
INITIATOR = 0, // 发起者
RECIPIENT, // 接收者
INITIATOR = 0, // 发起者
RECIPIENT, // 接收者
};
Q_ENUM(DeviceRole)
struct FtpNamePwd
{
QString username = ""; // 用户名
QString pwd = ""; // 密码
struct FtpNamePwd {
QString username = ""; // 用户名
QString pwd = ""; // 密码
};
struct ConnectionInfo
{
struct ConnectionInfo {
QString uuid = 0;
QString deviceName = "";
QString address = "";
@ -115,17 +113,17 @@ public Q_SLOTS:
private:
enum DataType {
FILE_DATA = 0, // 文件内容
STREAM_DATA, // 流数据
BYTE_DATA, // 字节数据
FREE // 空闲
FILE_DATA = 0, // 文件内容
STREAM_DATA, // 流数据
BYTE_DATA, // 字节数据
FREE // 空闲
};
enum AndroidConnType {
ADB = 0, // 有线adb
CONNECTWIFI = 1, // wifi
WIFIADB = 2, // 无线adb
NOTANDROID = 3 // 不是安卓设备
ADB = 0, // 有线adb
CONNECTWIFI = 1, // wifi
WIFIADB = 2, // 无线adb
NOTANDROID = 3 // 不是安卓设备
};
private:
@ -154,42 +152,42 @@ private:
private:
// wifi
QTcpServer *m_tcpServer = nullptr; // Tcp服务
QTcpSocket *m_messageTcpSocket = nullptr; // 消息通道
QTcpSocket *m_dataTcpSocket = nullptr; // 数据通道
QTcpServer *m_heartTcpServer = nullptr; // 心跳机制服务
QTcpSocket *m_heartbeatSocket = nullptr; //心跳通道
ServerStatus *m_serverStatus = nullptr; // 判断服务器状态
QThread *m_statusThread = nullptr; // 判断服务器状态线程
ConnectSuccessCallBack m_connectSuccessCallBack = nullptr; // 连接成功回调函数
ConnectFailCallBack m_connectFailCallBack = nullptr; // 连接失败回调函数
QTcpServer *m_tcpServer = nullptr; // Tcp服务
QTcpSocket *m_messageTcpSocket = nullptr; // 消息通道
QTcpSocket *m_dataTcpSocket = nullptr; // 数据通道
QTcpServer *m_heartTcpServer = nullptr; // 心跳机制服务
QTcpSocket *m_heartbeatSocket = nullptr; // 心跳通道
ServerStatus *m_serverStatus = nullptr; // 判断服务器状态
QThread *m_statusThread = nullptr; // 判断服务器状态线程
ConnectSuccessCallBack m_connectSuccessCallBack = nullptr; // 连接成功回调函数
ConnectFailCallBack m_connectFailCallBack = nullptr; // 连接失败回调函数
QFile *m_writeFile = nullptr;
// usb
AdbProcess *m_adb = nullptr; // adb接口
QTimer *m_timer = nullptr; //获取socket状态定时器
AdbProcess *m_adb = nullptr; // adb接口
QTimer *m_timer = nullptr; // 获取socket状态定时器
ConnectionInfo m_connectInfo; // 连接信息
QString m_serverIp = ""; // 服务器主机地址
int m_port = 0; // 服务器端口
QStringList m_filePathList; // 所有文件路径
ProtobufFilesInfo m_filesInfo; // 所有文件信息
bool m_isMsgSocketConnect = false; // 消息通道是否已连接
DataType m_dataType = DataType::FREE; // 当前数据类型
qint64 m_dataSize = 0; // 接收的数据大小
qint64 m_writeSize = 0; // 当前写入文件大小
bool m_isHead = true; // 是否为数据头部
int m_currentFileIndex = 0; // 当前文件索引
QByteArray m_data; // 需要发送的数据
QString m_fileSavePath = ""; // 文件保存路径
QStringList m_deviceSerialList; // 设备序列号列表
bool m_isSupportADB = false; // 安卓设备是否支持adb反控
QString m_userName = ""; // ftp用户名
QString m_password = ""; // ftp密码
AndroidConnType m_androidConnType = AndroidConnType::NOTANDROID; // 安卓连接类型
bool m_isClient = false; // 是否为客户端
bool m_isSurvival = false; // 是否收到心跳
bool m_isAgainSendHeartbeat = true; // 是否重新发送
bool m_isRemoteDisconnect = false; // 是否为远程主机断开
ConnectionInfo m_connectInfo; // 连接信息
QString m_serverIp = ""; // 服务器主机地址
int m_port = 0; // 服务器端口
QStringList m_filePathList; // 所有文件路径
ProtobufFilesInfo m_filesInfo; // 所有文件信息
bool m_isMsgSocketConnect = false; // 消息通道是否已连接
DataType m_dataType = DataType::FREE; // 当前数据类型
qint64 m_dataSize = 0; // 接收的数据大小
qint64 m_writeSize = 0; // 当前写入文件大小
bool m_isHead = true; // 是否为数据头部
int m_currentFileIndex = 0; // 当前文件索引
QByteArray m_data; // 需要发送的数据
QString m_fileSavePath = ""; // 文件保存路径
QStringList m_deviceSerialList; // 设备序列号列表
bool m_isSupportADB = false; // 安卓设备是否支持adb反控
QString m_userName = ""; // ftp用户名
QString m_password = ""; // ftp密码
AndroidConnType m_androidConnType = AndroidConnType::NOTANDROID; // 安卓连接类型
bool m_isClient = false; // 是否为客户端
bool m_isSurvival = false; // 是否收到心跳
bool m_isAgainSendHeartbeat = true; // 是否重新发送
bool m_isRemoteDisconnect = false; // 是否为远程主机断开
};
#endif // CONNECTIONSERVICE_H
#endif // CONNECTIONSERVICE_H

View File

@ -137,107 +137,107 @@
<context>
<name>FileManageWin</name>
<message>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="23"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="25"/>
<source>Go Back</source>
<translation></translation>
</message>
<message>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="35"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="37"/>
<source>Go Forward</source>
<translation></translation>
</message>
<message>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="56"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="418"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="57"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="407"/>
<source>Search File</source>
<translation></translation>
</message>
<message>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="84"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="85"/>
<source>Select</source>
<translation></translation>
</message>
<message>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="105"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="518"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="106"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="629"/>
<source>List Mode</source>
<translation></translation>
</message>
<message>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="117"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="118"/>
<source>Refresh</source>
<translation></translation>
</message>
<message>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="123"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="444"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="124"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="433"/>
<source>Select File</source>
<translation></translation>
</message>
<message>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="132"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="211"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="538"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="542"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="550"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="133"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="212"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="649"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="653"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="661"/>
<source>Select All</source>
<translation></translation>
</message>
<message>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="141"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="142"/>
<source>Finish</source>
<translation></translation>
</message>
<message>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="209"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="539"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="541"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="549"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="210"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="650"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="652"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="660"/>
<source>Deselect All</source>
<translation></translation>
</message>
<message>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="523"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="634"/>
<source>Icon Mode</source>
<translation></translation>
</message>
<message>
<location filename="../ui/filemanageview/filemanagewin.h" line="88"/>
<location filename="../ui/filemanageview/filemanagewin.h" line="91"/>
<source>List of Mobile Files</source>
<translation></translation>
</message>
<message>
<location filename="../ui/filemanageview/filemanagewin.h" line="89"/>
<location filename="../ui/filemanageview/filemanagewin.h" line="92"/>
<source>Picture</source>
<translation></translation>
</message>
<message>
<location filename="../ui/filemanageview/filemanagewin.h" line="90"/>
<location filename="../ui/filemanageview/filemanagewin.h" line="93"/>
<source>Video</source>
<translation></translation>
</message>
<message>
<location filename="../ui/filemanageview/filemanagewin.h" line="91"/>
<location filename="../ui/filemanageview/filemanagewin.h" line="94"/>
<source>Music</source>
<translation></translation>
</message>
<message>
<location filename="../ui/filemanageview/filemanagewin.h" line="92"/>
<location filename="../ui/filemanageview/filemanagewin.h" line="95"/>
<source>Doc</source>
<translation></translation>
</message>
<message>
<location filename="../ui/filemanageview/filemanagewin.h" line="93"/>
<location filename="../ui/filemanageview/filemanagewin.h" line="96"/>
<source>QQ</source>
<translation>QQ</translation>
</message>
<message>
<location filename="../ui/filemanageview/filemanagewin.h" line="94"/>
<location filename="../ui/filemanageview/filemanagewin.h" line="97"/>
<source>WeChat</source>
<translation></translation>
</message>
<message>
<location filename="../ui/filemanageview/filemanagewin.h" line="95"/>
<location filename="../ui/filemanageview/filemanagewin.h" line="98"/>
<source>Mobile Storage</source>
<translation></translation>
</message>
@ -307,44 +307,45 @@
<context>
<name>MainWindow</name>
<message>
<location filename="../ui/mainwindow.cpp" line="380"/>
<location filename="../ui/mainwindow.cpp" line="1309"/>
<location filename="../ui/mainwindow.cpp" line="379"/>
<location filename="../ui/mainwindow.cpp" line="1306"/>
<source>kylin-connectivity</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="474"/>
<location filename="../ui/mainwindow.cpp" line="473"/>
<source>Agreed to connect</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="476"/>
<location filename="../ui/mainwindow.cpp" line="475"/>
<source>Peer has agreed</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="478"/>
<location filename="../ui/mainwindow.cpp" line="477"/>
<source>Establishing connection, please wait...</source>
<translation>...</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="482"/>
<location filename="../ui/mainwindow.cpp" line="481"/>
<source>CANCEL</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="876"/>
<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"/>
<location filename="../ui/mainwindow.cpp" line="1130"/>
<location filename="../ui/mainwindow.cpp" line="1140"/>
<location filename="../ui/mainwindow.cpp" line="1208"/>
<location filename="../ui/mainwindow.cpp" line="1278"/>
<location filename="../ui/mainwindow.cpp" line="1377"/>
<location filename="../ui/mainwindow.cpp" line="1398"/>
<location filename="../ui/mainwindow.cpp" line="1421"/>
<location filename="../ui/mainwindow.cpp" line="1482"/>
<location filename="../ui/mainwindow.cpp" line="1504"/>
<location filename="../ui/mainwindow.cpp" line="1884"/>
<location filename="../ui/mainwindow.cpp" line="1890"/>
<location filename="../ui/mainwindow.cpp" line="1907"/>
<source>OK</source>
<translation></translation>
</message>
@ -355,7 +356,7 @@
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="677"/>
<location filename="../ui/mainwindow.cpp" line="1297"/>
<location filename="../ui/mainwindow.cpp" line="1294"/>
<source>file download failed</source>
<translation></translation>
</message>
@ -366,7 +367,7 @@
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1006"/>
<location filename="../ui/mainwindow.cpp" line="1337"/>
<location filename="../ui/mainwindow.cpp" line="1334"/>
<source>&quot;</source>
<translation>&quot;</translation>
</message>
@ -377,29 +378,29 @@
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1013"/>
<location filename="../ui/mainwindow.cpp" line="1343"/>
<location filename="../ui/mainwindow.cpp" line="1340"/>
<source>NO</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1012"/>
<location filename="../ui/mainwindow.cpp" line="1342"/>
<location filename="../ui/mainwindow.cpp" line="1339"/>
<source>YES</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1355"/>
<location filename="../ui/mainwindow.cpp" line="1352"/>
<source>The other party has refused your screen projection request!</source>
<translation>!</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1356"/>
<location filename="../ui/mainwindow.cpp" line="1353"/>
<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="1360"/>
<location filename="../ui/mainwindow.cpp" line="1357"/>
<source>RECONNECT</source>
<translation></translation>
</message>
@ -415,29 +416,29 @@
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1033"/>
<location filename="../ui/mainwindow.cpp" line="1361"/>
<location filename="../ui/mainwindow.cpp" line="1412"/>
<location filename="../ui/mainwindow.cpp" line="1700"/>
<location filename="../ui/mainwindow.cpp" line="1358"/>
<location filename="../ui/mainwindow.cpp" line="1409"/>
<location filename="../ui/mainwindow.cpp" line="1697"/>
<source>CLOSE</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1131"/>
<location filename="../ui/mainwindow.cpp" line="1128"/>
<source>Please install kylin-assistant on the Android terminal!</source>
<translation>!</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1141"/>
<location filename="../ui/mainwindow.cpp" line="1138"/>
<source>Please use the USB to connect your phone device!</source>
<translation>USBཁྱེད</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1152"/>
<location filename="../ui/mainwindow.cpp" line="1149"/>
<source>Connection error</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1154"/>
<location filename="../ui/mainwindow.cpp" line="1151"/>
<source>Connection timed out</source>
<translation></translation>
</message>
@ -450,22 +451,22 @@
<translation type="vanished"></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1310"/>
<location filename="../ui/mainwindow.cpp" line="1307"/>
<source>Version:</source>
<translation>:</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1312"/>
<location filename="../ui/mainwindow.cpp" line="1309"/>
<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="1336"/>
<location filename="../ui/mainwindow.cpp" line="1333"/>
<source>Received screen projection request from &quot;</source>
<translation> &quot;</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1338"/>
<location filename="../ui/mainwindow.cpp" line="1335"/>
<source>After consent, the other party can share the device desktop to this screen.</source>
<translation></translation>
</message>
@ -478,88 +479,93 @@
<translation type="vanished"></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1375"/>
<location filename="../ui/mainwindow.cpp" line="1372"/>
<source>The other party agreed to your screen projection request!</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1376"/>
<location filename="../ui/mainwindow.cpp" line="1373"/>
<source>The screen is being cast, please wait...</source>
<translation>...</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1396"/>
<location filename="../ui/mainwindow.cpp" line="1419"/>
<location filename="../ui/mainwindow.cpp" line="1393"/>
<location filename="../ui/mainwindow.cpp" line="1416"/>
<source>End of screen projection</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1397"/>
<location filename="../ui/mainwindow.cpp" line="1420"/>
<location filename="../ui/mainwindow.cpp" line="1394"/>
<location filename="../ui/mainwindow.cpp" line="1417"/>
<source>The other party has finished the screen projection function.</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1406"/>
<location filename="../ui/mainwindow.cpp" line="1694"/>
<location filename="../ui/mainwindow.cpp" line="1403"/>
<location filename="../ui/mainwindow.cpp" line="1691"/>
<source>Screen projection loading error</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1408"/>
<location filename="../ui/mainwindow.cpp" line="1696"/>
<location filename="../ui/mainwindow.cpp" line="1405"/>
<location filename="../ui/mainwindow.cpp" line="1693"/>
<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="1498"/>
<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="1502"/>
<location filename="../ui/mainwindow.cpp" line="1499"/>
<source>The other party&apos;s device has insufficient local storage!</source>
<translation>!</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1504"/>
<location filename="../ui/mainwindow.cpp" line="1501"/>
<source>Insufficient local storage space!</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1684"/>
<location filename="../ui/mainwindow.cpp" line="1681"/>
<source>Uploaded to</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1655"/>
<location filename="../ui/mainwindow.cpp" line="1888"/>
<source>There is currently a connection in progress!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1652"/>
<source>Downloaded to</source>
<translation>Uploaded to</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1279"/>
<location filename="../ui/mainwindow.cpp" line="1276"/>
<source>File open exception!</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1483"/>
<location filename="../ui/mainwindow.cpp" line="1480"/>
<source>Search data loading failed!</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1880"/>
<location filename="../ui/mainwindow.cpp" line="1895"/>
<location filename="../ui/mainwindow.cpp" line="1878"/>
<location filename="../ui/mainwindow.cpp" line="1900"/>
<source>Request sent successfully!</source>
<translation>!</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1881"/>
<location filename="../ui/mainwindow.cpp" line="1879"/>
<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="1897"/>
<location filename="../ui/mainwindow.cpp" line="1902"/>
<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>

View File

@ -167,107 +167,107 @@
<context>
<name>FileManageWin</name>
<message>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="23"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="25"/>
<source>Go Back</source>
<translation>Go Back</translation>
</message>
<message>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="35"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="37"/>
<source>Go Forward</source>
<translation>Go Forward</translation>
</message>
<message>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="56"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="418"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="57"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="407"/>
<source>Search File</source>
<translation>Search File</translation>
</message>
<message>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="84"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="85"/>
<source>Select</source>
<translation>Select</translation>
</message>
<message>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="105"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="518"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="106"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="629"/>
<source>List Mode</source>
<translation>List Mode</translation>
</message>
<message>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="117"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="118"/>
<source>Refresh</source>
<translation>Refresh</translation>
</message>
<message>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="123"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="444"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="124"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="433"/>
<source>Select File</source>
<translation>Select File</translation>
</message>
<message>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="132"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="211"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="538"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="542"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="550"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="133"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="212"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="649"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="653"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="661"/>
<source>Select All</source>
<translation>Select All</translation>
</message>
<message>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="141"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="142"/>
<source>Finish</source>
<translation>Finish</translation>
</message>
<message>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="209"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="539"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="541"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="549"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="210"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="650"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="652"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="660"/>
<source>Deselect All</source>
<translation>Deselect All</translation>
</message>
<message>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="523"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="634"/>
<source>Icon Mode</source>
<translation>Icon Mode</translation>
</message>
<message>
<location filename="../ui/filemanageview/filemanagewin.h" line="88"/>
<location filename="../ui/filemanageview/filemanagewin.h" line="91"/>
<source>List of Mobile Files</source>
<translation>List of Mobile Files</translation>
</message>
<message>
<location filename="../ui/filemanageview/filemanagewin.h" line="89"/>
<location filename="../ui/filemanageview/filemanagewin.h" line="92"/>
<source>Picture</source>
<translation>Picture</translation>
</message>
<message>
<location filename="../ui/filemanageview/filemanagewin.h" line="90"/>
<location filename="../ui/filemanageview/filemanagewin.h" line="93"/>
<source>Video</source>
<translation>Video</translation>
</message>
<message>
<location filename="../ui/filemanageview/filemanagewin.h" line="91"/>
<location filename="../ui/filemanageview/filemanagewin.h" line="94"/>
<source>Music</source>
<translation>Music</translation>
</message>
<message>
<location filename="../ui/filemanageview/filemanagewin.h" line="92"/>
<location filename="../ui/filemanageview/filemanagewin.h" line="95"/>
<source>Doc</source>
<translation></translation>
</message>
<message>
<location filename="../ui/filemanageview/filemanagewin.h" line="93"/>
<location filename="../ui/filemanageview/filemanagewin.h" line="96"/>
<source>QQ</source>
<translation>QQ</translation>
</message>
<message>
<location filename="../ui/filemanageview/filemanagewin.h" line="94"/>
<location filename="../ui/filemanageview/filemanagewin.h" line="97"/>
<source>WeChat</source>
<translation>WeChat</translation>
</message>
<message>
<location filename="../ui/filemanageview/filemanagewin.h" line="95"/>
<location filename="../ui/filemanageview/filemanagewin.h" line="98"/>
<source>Mobile Storage</source>
<translation>Mobile Storage</translation>
</message>
@ -337,28 +337,28 @@
<context>
<name>MainWindow</name>
<message>
<location filename="../ui/mainwindow.cpp" line="380"/>
<location filename="../ui/mainwindow.cpp" line="1309"/>
<location filename="../ui/mainwindow.cpp" line="379"/>
<location filename="../ui/mainwindow.cpp" line="1306"/>
<source>kylin-connectivity</source>
<translation>kylin-connectivity</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="474"/>
<location filename="../ui/mainwindow.cpp" line="473"/>
<source>Agreed to connect</source>
<translation>Agreed to connect</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="476"/>
<location filename="../ui/mainwindow.cpp" line="475"/>
<source>Peer has agreed</source>
<translation>Peer has agreed</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="478"/>
<location filename="../ui/mainwindow.cpp" line="477"/>
<source>Establishing connection, please wait...</source>
<translation>Establishing connection, please wait...</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="482"/>
<location filename="../ui/mainwindow.cpp" line="481"/>
<source>CANCEL</source>
<translation>Cancel</translation>
</message>
@ -377,7 +377,7 @@
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="677"/>
<location filename="../ui/mainwindow.cpp" line="1297"/>
<location filename="../ui/mainwindow.cpp" line="1294"/>
<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="1337"/>
<location filename="../ui/mainwindow.cpp" line="1334"/>
<source>&quot;</source>
<translation>&quot;</translation>
</message>
@ -399,34 +399,34 @@
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1013"/>
<location filename="../ui/mainwindow.cpp" line="1343"/>
<location filename="../ui/mainwindow.cpp" line="1340"/>
<source>NO</source>
<translation>No</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1012"/>
<location filename="../ui/mainwindow.cpp" line="1342"/>
<location filename="../ui/mainwindow.cpp" line="1339"/>
<source>YES</source>
<translation>Yes</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1279"/>
<location filename="../ui/mainwindow.cpp" line="1276"/>
<source>File open exception!</source>
<translation>File open exception!</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1355"/>
<location filename="../ui/mainwindow.cpp" line="1352"/>
<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="1356"/>
<location filename="../ui/mainwindow.cpp" line="1353"/>
<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="1360"/>
<location filename="../ui/mainwindow.cpp" line="1357"/>
<source>RECONNECT</source>
<translation>Reconnect</translation>
</message>
@ -442,32 +442,37 @@
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1033"/>
<location filename="../ui/mainwindow.cpp" line="1361"/>
<location filename="../ui/mainwindow.cpp" line="1412"/>
<location filename="../ui/mainwindow.cpp" line="1700"/>
<location filename="../ui/mainwindow.cpp" line="1358"/>
<location filename="../ui/mainwindow.cpp" line="1409"/>
<location filename="../ui/mainwindow.cpp" line="1697"/>
<source>CLOSE</source>
<translation>Close</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1131"/>
<location filename="../ui/mainwindow.cpp" line="1128"/>
<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="1141"/>
<location filename="../ui/mainwindow.cpp" line="1138"/>
<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="1152"/>
<location filename="../ui/mainwindow.cpp" line="1149"/>
<source>Connection error</source>
<translation>Connection error</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1154"/>
<location filename="../ui/mainwindow.cpp" line="1151"/>
<source>Connection timed out</source>
<translation>Connection timed out</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1888"/>
<source>There is currently a connection in progress!</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Warning</source>
<translation type="vanished">Warning</translation>
@ -481,22 +486,22 @@
<translation type="vanished">Umount failed</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1310"/>
<location filename="../ui/mainwindow.cpp" line="1307"/>
<source>Version:</source>
<translation>Version:</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1312"/>
<location filename="../ui/mainwindow.cpp" line="1309"/>
<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="1336"/>
<location filename="../ui/mainwindow.cpp" line="1333"/>
<source>Received screen projection request from &quot;</source>
<translation>Received screen projection request from &quot;</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1338"/>
<location filename="../ui/mainwindow.cpp" line="1335"/>
<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>
@ -509,78 +514,83 @@
<translation type="vanished">Close</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1375"/>
<location filename="../ui/mainwindow.cpp" line="1372"/>
<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="1376"/>
<location filename="../ui/mainwindow.cpp" line="1373"/>
<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="1396"/>
<location filename="../ui/mainwindow.cpp" line="1419"/>
<location filename="../ui/mainwindow.cpp" line="1393"/>
<location filename="../ui/mainwindow.cpp" line="1416"/>
<source>End of screen projection</source>
<translation>End of screen projection</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1397"/>
<location filename="../ui/mainwindow.cpp" line="1420"/>
<location filename="../ui/mainwindow.cpp" line="1394"/>
<location filename="../ui/mainwindow.cpp" line="1417"/>
<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="1483"/>
<location filename="../ui/mainwindow.cpp" line="1480"/>
<source>Search data loading failed!</source>
<translation>Search data loading failed!</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1498"/>
<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="1502"/>
<location filename="../ui/mainwindow.cpp" line="1499"/>
<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="1504"/>
<location filename="../ui/mainwindow.cpp" line="1501"/>
<source>Insufficient local storage space!</source>
<translation>Insufficient local storage space!</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1897"/>
<source>There is currently a connection in progress</source>
<translation type="vanished">There is currently a connection in progress</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1902"/>
<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="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"/>
<location filename="../ui/mainwindow.cpp" line="1130"/>
<location filename="../ui/mainwindow.cpp" line="1140"/>
<location filename="../ui/mainwindow.cpp" line="1208"/>
<location filename="../ui/mainwindow.cpp" line="1278"/>
<location filename="../ui/mainwindow.cpp" line="1377"/>
<location filename="../ui/mainwindow.cpp" line="1398"/>
<location filename="../ui/mainwindow.cpp" line="1421"/>
<location filename="../ui/mainwindow.cpp" line="1482"/>
<location filename="../ui/mainwindow.cpp" line="1504"/>
<location filename="../ui/mainwindow.cpp" line="1884"/>
<location filename="../ui/mainwindow.cpp" line="1890"/>
<location filename="../ui/mainwindow.cpp" line="1907"/>
<source>OK</source>
<translation>Ok</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1406"/>
<location filename="../ui/mainwindow.cpp" line="1694"/>
<location filename="../ui/mainwindow.cpp" line="1403"/>
<location filename="../ui/mainwindow.cpp" line="1691"/>
<source>Screen projection loading error</source>
<translation>Screen projection loading error</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1408"/>
<location filename="../ui/mainwindow.cpp" line="1696"/>
<location filename="../ui/mainwindow.cpp" line="1405"/>
<location filename="../ui/mainwindow.cpp" line="1693"/>
<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>
@ -641,23 +651,23 @@
<translation type="vanished">QQ</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1684"/>
<location filename="../ui/mainwindow.cpp" line="1681"/>
<source>Uploaded to</source>
<translation>Uploaded to</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1655"/>
<location filename="../ui/mainwindow.cpp" line="1652"/>
<source>Downloaded to</source>
<translation>Downloaded to</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1880"/>
<location filename="../ui/mainwindow.cpp" line="1895"/>
<location filename="../ui/mainwindow.cpp" line="1878"/>
<location filename="../ui/mainwindow.cpp" line="1900"/>
<source>Request sent successfully!</source>
<translation>Request sent successfully!</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1881"/>
<location filename="../ui/mainwindow.cpp" line="1879"/>
<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>

View File

@ -148,107 +148,107 @@
<context>
<name>FileManageWin</name>
<message>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="23"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="25"/>
<source>Go Back</source>
<translation>退</translation>
</message>
<message>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="35"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="37"/>
<source>Go Forward</source>
<translation></translation>
</message>
<message>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="56"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="418"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="57"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="407"/>
<source>Search File</source>
<translation></translation>
</message>
<message>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="84"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="85"/>
<source>Select</source>
<translation></translation>
</message>
<message>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="105"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="518"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="106"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="629"/>
<source>List Mode</source>
<translation></translation>
</message>
<message>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="117"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="118"/>
<source>Refresh</source>
<translation></translation>
</message>
<message>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="123"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="444"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="124"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="433"/>
<source>Select File</source>
<translation></translation>
</message>
<message>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="132"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="211"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="538"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="542"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="550"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="133"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="212"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="649"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="653"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="661"/>
<source>Select All</source>
<translation></translation>
</message>
<message>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="141"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="142"/>
<source>Finish</source>
<translation></translation>
</message>
<message>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="209"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="539"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="541"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="549"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="210"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="650"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="652"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="660"/>
<source>Deselect All</source>
<translation></translation>
</message>
<message>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="523"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="634"/>
<source>Icon Mode</source>
<translation></translation>
</message>
<message>
<location filename="../ui/filemanageview/filemanagewin.h" line="88"/>
<location filename="../ui/filemanageview/filemanagewin.h" line="91"/>
<source>List of Mobile Files</source>
<translation></translation>
</message>
<message>
<location filename="../ui/filemanageview/filemanagewin.h" line="89"/>
<location filename="../ui/filemanageview/filemanagewin.h" line="92"/>
<source>Picture</source>
<translation></translation>
</message>
<message>
<location filename="../ui/filemanageview/filemanagewin.h" line="90"/>
<location filename="../ui/filemanageview/filemanagewin.h" line="93"/>
<source>Video</source>
<translation></translation>
</message>
<message>
<location filename="../ui/filemanageview/filemanagewin.h" line="91"/>
<location filename="../ui/filemanageview/filemanagewin.h" line="94"/>
<source>Music</source>
<translation></translation>
</message>
<message>
<location filename="../ui/filemanageview/filemanagewin.h" line="92"/>
<location filename="../ui/filemanageview/filemanagewin.h" line="95"/>
<source>Doc</source>
<translation></translation>
</message>
<message>
<location filename="../ui/filemanageview/filemanagewin.h" line="93"/>
<location filename="../ui/filemanageview/filemanagewin.h" line="96"/>
<source>QQ</source>
<translation>QQ</translation>
</message>
<message>
<location filename="../ui/filemanageview/filemanagewin.h" line="94"/>
<location filename="../ui/filemanageview/filemanagewin.h" line="97"/>
<source>WeChat</source>
<translation></translation>
</message>
<message>
<location filename="../ui/filemanageview/filemanagewin.h" line="95"/>
<location filename="../ui/filemanageview/filemanagewin.h" line="98"/>
<source>Mobile Storage</source>
<translation></translation>
</message>
@ -318,28 +318,28 @@
<context>
<name>MainWindow</name>
<message>
<location filename="../ui/mainwindow.cpp" line="380"/>
<location filename="../ui/mainwindow.cpp" line="1309"/>
<location filename="../ui/mainwindow.cpp" line="379"/>
<location filename="../ui/mainwindow.cpp" line="1306"/>
<source>kylin-connectivity</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="474"/>
<location filename="../ui/mainwindow.cpp" line="473"/>
<source>Agreed to connect</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="476"/>
<location filename="../ui/mainwindow.cpp" line="475"/>
<source>Peer has agreed</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="478"/>
<location filename="../ui/mainwindow.cpp" line="477"/>
<source>Establishing connection, please wait...</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="482"/>
<location filename="../ui/mainwindow.cpp" line="481"/>
<source>CANCEL</source>
<translation></translation>
</message>
@ -358,7 +358,7 @@
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="677"/>
<location filename="../ui/mainwindow.cpp" line="1297"/>
<location filename="../ui/mainwindow.cpp" line="1294"/>
<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="1337"/>
<location filename="../ui/mainwindow.cpp" line="1334"/>
<source>&quot;</source>
<translation>&quot; </translation>
</message>
@ -380,34 +380,34 @@
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1013"/>
<location filename="../ui/mainwindow.cpp" line="1343"/>
<location filename="../ui/mainwindow.cpp" line="1340"/>
<source>NO</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1012"/>
<location filename="../ui/mainwindow.cpp" line="1342"/>
<location filename="../ui/mainwindow.cpp" line="1339"/>
<source>YES</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1279"/>
<location filename="../ui/mainwindow.cpp" line="1276"/>
<source>File open exception!</source>
<translation>!</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1355"/>
<location filename="../ui/mainwindow.cpp" line="1352"/>
<source>The other party has refused your screen projection request!</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1356"/>
<location filename="../ui/mainwindow.cpp" line="1353"/>
<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="1360"/>
<location filename="../ui/mainwindow.cpp" line="1357"/>
<source>RECONNECT</source>
<translation></translation>
</message>
@ -423,32 +423,37 @@
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1033"/>
<location filename="../ui/mainwindow.cpp" line="1361"/>
<location filename="../ui/mainwindow.cpp" line="1412"/>
<location filename="../ui/mainwindow.cpp" line="1700"/>
<location filename="../ui/mainwindow.cpp" line="1358"/>
<location filename="../ui/mainwindow.cpp" line="1409"/>
<location filename="../ui/mainwindow.cpp" line="1697"/>
<source>CLOSE</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1131"/>
<location filename="../ui/mainwindow.cpp" line="1128"/>
<source>Please install kylin-assistant on the Android terminal!</source>
<translation>app</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1141"/>
<location filename="../ui/mainwindow.cpp" line="1138"/>
<source>Please use the USB to connect your phone device!</source>
<translation>使USB连接手机设备</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1152"/>
<location filename="../ui/mainwindow.cpp" line="1149"/>
<source>Connection error</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1154"/>
<location filename="../ui/mainwindow.cpp" line="1151"/>
<source>Connection timed out</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1888"/>
<source>There is currently a connection in progress!</source>
<translation>!</translation>
</message>
<message>
<source>Warning</source>
<translation type="vanished"></translation>
@ -462,22 +467,22 @@
<translation type="vanished"></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1310"/>
<location filename="../ui/mainwindow.cpp" line="1307"/>
<source>Version:</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1312"/>
<location filename="../ui/mainwindow.cpp" line="1309"/>
<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="1336"/>
<location filename="../ui/mainwindow.cpp" line="1333"/>
<source>Received screen projection request from &quot;</source>
<translation> &quot;</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1338"/>
<location filename="../ui/mainwindow.cpp" line="1335"/>
<source>After consent, the other party can share the device desktop to this screen.</source>
<translation></translation>
</message>
@ -490,78 +495,83 @@
<translation type="vanished"></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1375"/>
<location filename="../ui/mainwindow.cpp" line="1372"/>
<source>The other party agreed to your screen projection request!</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1376"/>
<location filename="../ui/mainwindow.cpp" line="1373"/>
<source>The screen is being cast, please wait...</source>
<translation>...</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1396"/>
<location filename="../ui/mainwindow.cpp" line="1419"/>
<location filename="../ui/mainwindow.cpp" line="1393"/>
<location filename="../ui/mainwindow.cpp" line="1416"/>
<source>End of screen projection</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1397"/>
<location filename="../ui/mainwindow.cpp" line="1420"/>
<location filename="../ui/mainwindow.cpp" line="1394"/>
<location filename="../ui/mainwindow.cpp" line="1417"/>
<source>The other party has finished the screen projection function.</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1483"/>
<location filename="../ui/mainwindow.cpp" line="1480"/>
<source>Search data loading failed!</source>
<translation>!</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1498"/>
<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="1502"/>
<location filename="../ui/mainwindow.cpp" line="1499"/>
<source>The other party&apos;s device has insufficient local storage!</source>
<translation>!</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1504"/>
<location filename="../ui/mainwindow.cpp" line="1501"/>
<source>Insufficient local storage space!</source>
<translation>!</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1897"/>
<source>There is currently a connection in progress</source>
<translation type="vanished"></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1902"/>
<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="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"/>
<location filename="../ui/mainwindow.cpp" line="1130"/>
<location filename="../ui/mainwindow.cpp" line="1140"/>
<location filename="../ui/mainwindow.cpp" line="1208"/>
<location filename="../ui/mainwindow.cpp" line="1278"/>
<location filename="../ui/mainwindow.cpp" line="1377"/>
<location filename="../ui/mainwindow.cpp" line="1398"/>
<location filename="../ui/mainwindow.cpp" line="1421"/>
<location filename="../ui/mainwindow.cpp" line="1482"/>
<location filename="../ui/mainwindow.cpp" line="1504"/>
<location filename="../ui/mainwindow.cpp" line="1884"/>
<location filename="../ui/mainwindow.cpp" line="1890"/>
<location filename="../ui/mainwindow.cpp" line="1907"/>
<source>OK</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1406"/>
<location filename="../ui/mainwindow.cpp" line="1694"/>
<location filename="../ui/mainwindow.cpp" line="1403"/>
<location filename="../ui/mainwindow.cpp" line="1691"/>
<source>Screen projection loading error</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1408"/>
<location filename="../ui/mainwindow.cpp" line="1696"/>
<location filename="../ui/mainwindow.cpp" line="1405"/>
<location filename="../ui/mainwindow.cpp" line="1693"/>
<source>Please check whether to install the projection expansion package [kylin connectivity tools]</source>
<translation>[kylin-connectivity-tools]</translation>
</message>
@ -622,23 +632,23 @@
<translation type="vanished">QQ</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1684"/>
<location filename="../ui/mainwindow.cpp" line="1681"/>
<source>Uploaded to</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1655"/>
<location filename="../ui/mainwindow.cpp" line="1652"/>
<source>Downloaded to</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1880"/>
<location filename="../ui/mainwindow.cpp" line="1895"/>
<location filename="../ui/mainwindow.cpp" line="1878"/>
<location filename="../ui/mainwindow.cpp" line="1900"/>
<source>Request sent successfully!</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1881"/>
<location filename="../ui/mainwindow.cpp" line="1879"/>
<source>The connection request has been sent to the selected device. Please click [YES] in the opposite pop-up window</source>
<translation></translation>
</message>

View File

@ -1871,17 +1871,25 @@ void MainWindow::slotReturnHomePage()
void MainWindow::slotConnectServiceUI(QString address)
{
m_reconnectAddress = address;
m_connectionService->startClient(address);
startTimer();
QString str1 = QString(tr("Request sent successfully!"));
QString str2 = QString(tr("The connection request has been sent to the selected device. Please click [YES] in "
"the opposite pop-up window"));
m_messageBox = new MessageDialog(this);
m_messageBox->setText(str1, str2);
m_messageBox->setIconPixmap(QIcon::fromTheme("ukui-dialog-success"));
m_messageBox->addButton(QString(tr("OK")));
moveMessageBox();
bool ret = m_connectionService->startClient(address);
if (ret) {
m_reconnectAddress = address;
startTimer();
QString str1 = QString(tr("Request sent successfully!"));
QString str2 = QString(tr("The connection request has been sent to the selected device. Please click [YES] in "
"the opposite pop-up window"));
m_messageBox = new MessageDialog(this);
m_messageBox->setText(str1, str2);
m_messageBox->setIconPixmap(QIcon::fromTheme("ukui-dialog-success"));
m_messageBox->addButton(QString(tr("OK")));
moveMessageBox();
} else {
m_messageBox = new MessageDialog(this);
m_messageBox->setText(tr("There is currently a connection in progress!"));
m_messageBox->setIconPixmap(QIcon::fromTheme("dialog-warning"));
m_messageBox->addButton(QString(tr("OK")));
moveMessageBox();
}
}
void MainWindow::slotConnectedWinBtnClicked(ConnectedWin::BtnType type)