ODIN
odindialog_process.h
1 /***************************************************************************
2  odindialog_process.h - description
3  -------------------
4  begin : Sun Oct 2 21:30:11 CEST 2005
5  copyright : (C) 2000-2021 by Thies H. Jochimsen
6  email : thies@jochimsen.de
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #ifndef ODINDIALOG_PROCESS_H
19 #define ODINDIALOG_PROCESS_H
20 
21 #include <tjutils/tjprocess.h> // for forkResult
22 
23 #include "odindialog_progress.h"
24 
25 #define TIMER_INTERVAL 100
26 
27 class ProcessDialog : public ProgressDisplayDialog {
28 
29  public:
30  ProcessDialog(QWidget *parent);
31 
32  int execute_cmds(const svector& command_chain, bool log_std_streams=true);
33 
34  private:
35  void update_progbar();
36 
37  int progcount;
38 };
39 
40 #endif