File: kshellcmddialog.h

package info (click to toggle)
konqueror 4%3A25.12.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 61,852 kB
  • sloc: cpp: 59,368; python: 943; xml: 682; javascript: 186; sh: 165; makefile: 10
file content (33 lines) | stat: -rw-r--r-- 759 bytes parent folder | download | duplicates (2)
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
/*  This file is part of the KDE project
    SPDX-FileCopyrightText: 2000 Alexander Neundorf <neundorf@kde.org>

    SPDX-License-Identifier: LGPL-2.0-or-later
*/

#ifndef KSHELLCMDDIALOG_H
#define KSHELLCMDDIALOG_H

#include <QDialog>

class KShellCommandExecutor;
class QPushButton;

class KShellCommandDialog: public QDialog
{
    Q_OBJECT
public:
    KShellCommandDialog(const QString &title, const QString &command, QWidget *parent = nullptr, bool modal = false);
    ~KShellCommandDialog() override;
    //blocking
    int executeCommand();
protected:

    KShellCommandExecutor *m_shell;
    QPushButton *cancelButton;
    QPushButton *closeButton;
protected Q_SLOTS:
    void disableStopButton();
    void slotClose();
};

#endif // KSHELLCMDDIALOG_H