mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Preparation for large file transfers
This commit is contained in:
parent
ae1ce8ec88
commit
941a237d4d
|
@ -295,11 +295,11 @@ void ChatForm::onAttachClicked()
|
|||
QFile file(path);
|
||||
if (!file.exists() || !file.open(QIODevice::ReadOnly))
|
||||
return;
|
||||
QByteArray fileData = file.readAll();
|
||||
long long filesize = file.size();
|
||||
file.close();
|
||||
QFileInfo fi(path);
|
||||
|
||||
emit sendFile(f->friendId, fi.fileName(), fileData);
|
||||
emit sendFile(f->friendId, fi.fileName(), path, filesize);
|
||||
}
|
||||
|
||||
void ChatForm::onSliderRangeChanged()
|
||||
|
|
|
@ -52,7 +52,7 @@ public:
|
|||
|
||||
signals:
|
||||
void sendMessage(int, QString);
|
||||
void sendFile(int32_t friendId, QString, QByteArray);
|
||||
void sendFile(int32_t friendId, QString, QString, long long);
|
||||
void startCall(int friendId);
|
||||
void startVideoCall(int friendId, bool video);
|
||||
void answerCall(int callId);
|
||||
|
|
Loading…
Reference in New Issue
Block a user