28#include <guichan/actionlistener.hpp>
29#include <guichan/keylistener.hpp>
56 public gcn::KeyListener
69 const std::string &updatesDir,
74 void action(
const gcn::ActionEvent &event)
override;
76 void keyPressed(gcn::KeyEvent &keyEvent)
override;
78 void logic()
override;
89 std::optional<unsigned long> adler32 = {});
A simple browser box able to handle links and forward events to the parent conteiner.
A simple interface to windows that need to handle links from BrowserBox widget.
Update progress window GUI.
unsigned int mUpdateIndex
Index of the file to be downloaded.
Button * mPlayButton
Button to start playing.
std::string mUpdatesDir
Place where the updates are stored (absolute path).
std::unique_ptr< LinkHandler > mLinkHandler
std::vector< UpdateFile > mUpdateFiles
List of files to download.
BrowserBox * mBrowserBox
Box to display news.
std::unique_ptr< Net::Download > mDownload
Download handle.
std::string mCurrentFile
The file currently downloading.
void loadNews()
Loads and display news.
std::string mUpdateHost
Host where we get the updated files.
DialogState mDialogState
Status of the current download.
ScrollArea * mScrollArea
Used to scroll news box.
void startDownload(const std::string &fileName, bool storeInMemory, std::optional< unsigned long > adler32={})
ProgressBar * mProgressBar
Update progress bar.
~UpdaterWindow() override
void loadUpdates()
Loads the updates this window has gotten into the resource manager.
Button * mCancelButton
Button to stop the update process.
void action(const gcn::ActionEvent &event) override
void setLabel(const std::string &)
void keyPressed(gcn::KeyEvent &keyEvent) override
bool mLoadUpdates
Tells ~UpdaterWindow() if it should load updates.
gcn::Label * mLabel
Progress bar caption.