-
Notifications
You must be signed in to change notification settings - Fork 116
Implement file send/receive function #85
base: master
Are you sure you want to change the base?
Conversation
Travis encountered an error while building with clang. Also, we don't use exceptions. Have you read #68? Please note that I probably won't be able to go over your PR earlier than the week of December 16th, my final exams are starting very shortly. |
Hi, I've remove the exception in the latest commit. I haven't read #68 yet, but I do so later. BTW, is their any reason that you don't use QtDesigner to design the UI? I think building GUI with the graphical editor is much easier than doing it with code. |
|
I see. |
What do you need userId and username for? |
I meant to lookup username by userId. |
Yeah, there should be a message in the Message Display widget saying that someone whats to send you a file. The File Transfer widget on the top would show some one-line info with filename and filesize, and buttons: save, save as, deny. The expanded state of File Transfer widget should also show those.
The File Transfer widget is a part of ChatPageWidget, which knows username and status of a user. If you need those, you can just connect add an appropriate line to the corresponding methods. For example, in void ChatPageWidget::setUsername(const QString& newUsername) add fileTransferWidget->setUsername(newUsername); There is usually no need to query anything from the Core since everything is event-based. |
I see, I'll try to modify the code to match the design you mentioned in #68 until you have time to review the patches. |
You are welcome to join the IRC channel mentioned in the readme. |
How is progress in behind the scenes with file sending and other features? QT 5.2 is released too btw. |
@fcore117 file sending works but the UI is different from the mock up. |
I no longer have to time work on this patch, feel free to merge it to another branch and use it as base. |
Just done rebase to current master branch so the patch can build. |
Thanks for Schlumpf's commit. |
Built it to test without looking at the code yet - seems to crash when sending big files (~3.24gb). Well, that will require rework anyway. |
@Schlumpf I see you are working on the new message widget thingy (I'm so happy!) : ) We settled on a separate widget for file transfers, apart from message widget, but I'm curious if you now know if it's possible to include a custom widget in a message? |
@nurupo Crash with big files? Should I investigate and fix it or you want to redo that part? |
You could fix it, if you don't mind. |
Currently at least it works somehow so at least we can keep up with Tox and release alpha when it comes. It would be really good to test at least text chat in beginning. |
@nurupo, sure will do. |
@nurupo how did you manage to test a 3.8G file? the transfer speed is so damn slow even with two local clients... lol |
I think I just selected a file to send, started sending it and the app crashed right away(?) Can try it again later today, maybe I will even get a back trace or something. |
Windows ... It worked fine on Linux though. I'll fix it, thanks for the detailed backtrace. |
Implement file receiving function.
The UI is ugly for now but the functionality works.