Ok... so I have to do this:
1.) Create a slot for the updateButton clicked() signal
2.) In that slot make a QHttp object called getVersionInfo and use get() to retrieve the version file. Exit the slot and enter the event loop.
3.) Connect the done() signal from getVersionInfo to a slot which will read the file, and determine if downloading the latest version is necessary or not
4.) If so, create a second QHttp object called getNewUpdate and again use get() to retrieve the installer. Again exit the slot and enter the event loop.
5.) Connect the done() signal from getNewUpdate object to another slot which will execute the installer, terminate the program, etc
If that is the only possible way to download a file, do something with it, and continue with other commands (In other words that it isn't possible to just create a downloadFile() function which will return only after the file is download, or else return an error message) then how would I go into implementing a downloadFile class?
Sorry, I'm a bit new to Qt and C++ (Only ~1/2 year) and used to the noob-friendly enviroment of Visual Basic .NET. The reason I quit was that it wasn't portable, required a huge framework, and wasn't *nix friendly.
If I get could some help, I would be very grateful. Thanks in advance - codeslicer




Reply With Quote
Bookmarks