ScummVM API documentation
downloaddlcsdialog.h
1 /* ScummVM - Graphic Adventure Engine
2  *
3  * ScummVM is the legal property of its developers, whose names
4  * are too numerous to list here. Please refer to the COPYRIGHT
5  * file distributed with this source distribution.
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program. If not, see <http://www.gnu.org/licenses/>.
19  *
20  */
21 
22 #ifndef GUI_DOWNLOADDLCSDIALOG_H
23 #define GUI_DOWNLOADDLCSDIALOG_H
24 
25 #include "gui/dialog.h"
26 
27 namespace GUI {
28 
29 class CommandSender;
30 class StaticTextWidget;
31 class SliderWidget;
32 class ListWidget;
33 class ButtonWidget;
34 
35 class DownloadDLCsDialog : public Dialog {
36 public:
38 
39  void handleCommand(CommandSender *sender, uint32 cmd, uint32 data) override;
40  void handleTickle() override;
41  uint32 getDownloadingProgress();
42 
43 private:
44  StaticTextWidget *_currentDownloadLabel;
45  StaticTextWidget *_errorLabel;
46  StaticTextWidget *_downloadedSizeLabel;
47  StaticTextWidget *_percentLabel;
48  SliderWidget *_progressBar;
49  ListWidget *_pendingDownloadsList;
50  ButtonWidget *_cancelButton;
51 
52  int _selectedIdx = -1;
53 
54  Common::U32String getSizeLabelText();
55 
56  void refreshWidgets();
57 };
58 
59 } // End of namespace GUI
60 
61 #endif
Definition: widget.h:205
Definition: widget.h:405
Definition: system.h:46
Definition: ustr.h:57
Definition: downloaddlcsdialog.h:35
Definition: list.h:51
Definition: dialog.h:49
Definition: widget.h:233
Definition: object.h:40