1
0
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:
Tux3 / Mlkj / !Lev.uXFMLA 2014-07-01 13:52:53 +02:00
parent ae1ce8ec88
commit 941a237d4d
2 changed files with 3 additions and 3 deletions

View File

@ -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()

View File

@ -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);