~fboucault/qtcreator-plugin-ubuntu/newarch_arm64

« back to all changes in this revision

Viewing changes to src/ubuntu/processoutputdialog.h

  • Committer: Benjamin Zeller
  • Date: 2016-06-08 15:09:39 UTC
  • mfrom: (443.2.36 ubuntu)
  • Revision ID: benjamin.zeller@canonical.com-20160608150939-v4ffv2a9xy5lcr5s
LXD rewrite for building and running apps in LXD containers

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright 2014 Canonical Ltd.
 
2
 * Copyright 2014-2016 Canonical Ltd.
3
3
 *
4
4
 * This program is free software; you can redistribute it and/or modify
5
5
 * it under the terms of the GNU Lesser General Public License as published by
15
15
 *
16
16
 * Author: Benjamin Zeller <benjamin.zeller@canonical.com>
17
17
 */
18
 
#ifndef UBUNTU_INTERNAL_UBUNTUCLICKDIALOG_H
19
 
#define UBUNTU_INTERNAL_UBUNTUCLICKDIALOG_H
 
18
#ifndef UBUNTU_INTERNAL_PROCESSOUTPUTDIALOG_H
 
19
#define UBUNTU_INTERNAL_PROCESSOUTPUTDIALOG_H
20
20
 
21
21
#include <QDialog>
22
22
#include <QList>
34
34
namespace Internal {
35
35
 
36
36
namespace Ui {
37
 
    class UbuntuClickDialog;
 
37
    class ProcessOutputDialog;
38
38
}
39
39
 
40
 
class UbuntuClickDialog : public QDialog
 
40
class ProcessOutputDialog : public QDialog
41
41
{
42
42
    Q_OBJECT
43
43
public:
44
 
    UbuntuClickDialog (QWidget* parent = 0);
45
 
    ~UbuntuClickDialog ();
 
44
    ProcessOutputDialog (QWidget* parent = 0);
 
45
    ~ProcessOutputDialog ();
46
46
 
47
47
    void setParameters (const QList<ProjectExplorer::ProcessParameters> &params);
48
48
    int lastExitCode () const;
49
49
 
50
50
 
51
51
public slots:
52
 
    void runClick ();
53
 
 
54
 
    static int runClickModal(const ProjectExplorer::ProcessParameters &params, QWidget *parent = 0);
55
 
    static int runClickModal (const QList<ProjectExplorer::ProcessParameters> &params, QWidget *parent = 0);
56
 
    static bool createClickChrootModal (bool redetectKits = true , const QString &arch = QString(), const QString &framework = QString(), QWidget *parent = 0);
57
 
 
58
 
    static int maintainClickModal (const UbuntuClickTool::Target &target, const UbuntuClickTool::MaintainMode &mode);
59
 
    static int maintainClickModal (const QList<UbuntuClickTool::Target> &targetList, const UbuntuClickTool::MaintainMode &mode);
 
52
    void runTasks ();
 
53
 
 
54
    static int runProcessModal(const ProjectExplorer::ProcessParameters &params, QWidget *parent = 0);
 
55
    static int runProcessModal (const QList<ProjectExplorer::ProcessParameters> &params, QWidget *parent = 0);
60
56
 
61
57
    // QDialog interface
62
58
    virtual void done(int code);
66
62
    void nextTask ();
67
63
 
68
64
protected slots:
69
 
    void on_clickFinished(int exitCode);
70
 
    void on_clickReadyReadStandardOutput(const QString txt = QString());
71
 
    void on_clickReadyReadStandardError(const QString txt = QString());
 
65
    void on_processFinished(int exitCode);
 
66
    void on_processReadyReadStandardOutput(const QString txt = QString());
 
67
    void on_processReadyReadStandardError(const QString txt = QString());
72
68
private:
73
69
    Utils::QtcProcess *m_process;
74
 
    Ui::UbuntuClickDialog *m_ui;
 
70
    Ui::ProcessOutputDialog *m_ui;
75
71
    QList<ProjectExplorer::ProcessParameters> m_tasks;
76
72
    int m_exitCode;
 
73
    bool m_hadErrors;
77
74
};
78
75
 
79
76
} // namespace Internal
80
77
} // namespace Ubuntu
81
78
 
82
 
#endif // UBUNTU_INTERNAL_UBUNTUCLICKDIALOG_H
 
79
#endif // UBUNTU_INTERNAL_PROCESSOUTPUTDIALOG_H