Freeciv-3.2: /fast/freeciv/nightly/S3_2/tools/fcmp/mpgui_qt_worker.h Source File

Freeciv-3.2

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
31 class mpqt_worker : public QThread
32{
33 Q_OBJECT
34
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);
41
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;
48};
49
50#endif // FC__MPGUI_QT_WORKER_H
mpgui
Definition mpgui_qt.h:50
mpqt_worker
Definition mpgui_qt_worker.h:32
mpqt_worker::download
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)
Definition mpgui_qt_worker.cpp:63
mpqt_worker::msg_callback
dl_msg_callback msg_callback
Definition mpgui_qt_worker.h:46
mpqt_worker::gui
class mpgui * gui
Definition mpgui_qt_worker.h:44
mpqt_worker::URL
QString URL
Definition mpgui_qt_worker.h:43
mpqt_worker::fcmp
struct fcmp_params * fcmp
Definition mpgui_qt_worker.h:45
mpqt_worker::pb_callback
dl_pb_callback pb_callback
Definition mpgui_qt_worker.h:47
mpqt_worker::run
void run()
Definition mpgui_qt_worker.cpp:42
incite_cost
char * incite_cost
Definition comments.c:74
download.h
dl_msg_callback
void(* dl_msg_callback)(const char *msg)
Definition download.h:30
dl_pb_callback
void(* dl_pb_callback)(int downloaded, int max)
Definition download.h:31
fcmp_params
Definition modinst.h:17