webperimental: killstack decides stack protects.
[freeciv.git] / tools / mpgui_qt_worker.h
blob95df9759f9f11c7c2a2b87436b6b6136ae9e00d5
1 /**********************************************************************
2 Freeciv - Copyright (C) 1996 - A Kjeldberg, L Gregersen, P Unold
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License as published by
5 the Free Software Foundation; either version 2, or (at your option)
6 any later version.
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
12 ***********************************************************************/
14 #ifndef FC__MPGUI_QT_WORKER_H
15 #define FC__MPGUI_QT_WORKER_H
17 #ifdef HAVE_CONFIG_H
18 #include <fc_config.h>
19 #endif
21 // Qt
22 #include <QString>
23 #include <QThread>
25 // tools
26 #include "download.h"
28 class mpgui;
29 struct fcmp_params;
31 class mpqt_worker : public QThread
33 Q_OBJECT
35 public:
36 void run();
37 void download(QString URL_in, class mpgui *gui_in,
38 struct fcmp_params *fcmp_in,
39 dl_msg_callback msg_callback_in,
40 dl_pb_callback pb_callback_in);
42 private:
43 QString URL;
44 class mpgui *gui;
45 struct fcmp_params *fcmp;
46 dl_msg_callback msg_callback;
47 dl_pb_callback pb_callback;
50 #endif // FC__MPGUI_QT_WORKER_H