File: DebugDialog.h

package info (click to toggle)
ultracopier 2.2.6.0-1.1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 40,480 kB
  • sloc: ansic: 60,903; cpp: 59,790; sh: 6,882; asm: 723; xml: 675; makefile: 320; perl: 264
file content (48 lines) | stat: -rwxr-xr-x 1,229 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/** \file debugDialog.h
\brief Define the dialog to have debug information
\author alpha_one_x86
\licence GPL3, see the file COPYING */

#ifndef DEBUGDAILOG_H
#define DEBUGDAILOG_H

#include "Environment.h"

#ifdef ULTRACOPIER_PLUGIN_DEBUG_WINDOW
#include <QWidget>
#include <QTimer>

namespace Ui {
    class debugDialog;
}

class CopyEngine;

/// \brief class to the dialog to have debug information
class DebugDialog : public QWidget
{
    Q_OBJECT
public:
    explicit DebugDialog(QWidget *parent = 0);
    ~DebugDialog();
    /// \brief to set the transfer list, limited in result to not slow down the application
    void setTransferList(const std::vector<std::string> &list);
    /// \brief show the transfer thread, it show be a thread pool in normal time
    void setTransferThreadList(const std::vector<std::string> &list);
    /// \brief show how many transfer is active
    void setActiveTransfer(const int &activeTransfer);
    /// \brief show many many inode is manipulated
    void setInodeUsage(const int &inodeUsage);

    CopyEngine *copyEngine;
private:
    Ui::debugDialog *ui;
    QTimer timer;

private slots:
    void updateOnTimer();
};

#endif // ULTRACOPIER_PLUGIN_DEBUG_WINDOW

#endif // DEBUGDAILOG_H