Freeciv-3.3
Loading...
Searching...
No Matches
mpgui_qt_worker.h
Go to the documentation of this file.
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.
7
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***********************************************************************/
13
14#ifndef FC__MPGUI_QT_WORKER_H
15#define FC__MPGUI_QT_WORKER_H
16
17#ifdef HAVE_CONFIG_H
18#include <fc_config.h>
19#endif
20
21// Qt
22#include <QString>
23#include <QThread>
24
25// tools
26#include "download.h"
27
28class mpgui;
29struct fcmp_params;
30
31class mpqt_worker : public QThread
32{
34
35 public:
36 void run();
37 void download(QString URL_in, class mpgui *gui_in,
38 struct fcmp_params *fcmp_in,
41
42 private:
44 class mpgui *gui;
48};
49
50#endif // FC__MPGUI_QT_WORKER_H
void download(QString URL_in, class mpgui *gui_in, struct fcmp_params *fcmp_in, dl_msg_callback msg_callback_in, dl_pb_callback pb_callback_in)
dl_msg_callback msg_callback
class mpgui * gui
struct fcmp_params * fcmp
dl_pb_callback pb_callback
char * incite_cost
Definition comments.c:76
void(* dl_msg_callback)(const char *msg)
Definition download.h:30
void(* dl_pb_callback)(int downloaded, int max)
Definition download.h:31