Changeset View
Changeset View
Standalone View
Standalone View
src/widgets/krun_p.h
Show All 24 Lines | |||||
25 | #include <QObject> | 25 | #include <QObject> | ||
26 | #include <QPointer> | 26 | #include <QPointer> | ||
27 | #include <QTimer> | 27 | #include <QTimer> | ||
28 | #include <QEventLoopLocker> | 28 | #include <QEventLoopLocker> | ||
29 | #include <QProcess> | 29 | #include <QProcess> | ||
30 | #include <KService> | 30 | #include <KService> | ||
31 | class KProcess; | 31 | class KProcess; | ||
32 | 32 | | |||
33 | #include "executablefileopendialog_p.h" | ||||
33 | #include "kstartupinfo.h" | 34 | #include "kstartupinfo.h" | ||
34 | 35 | | |||
35 | /** | 36 | /** | ||
36 | * @internal | 37 | * @internal | ||
37 | * This class runs a KService or a shell command, using QProcess internally. | 38 | * This class runs a KService or a shell command, using QProcess internally. | ||
38 | * It creates a startup notification and finishes it on success or on error (for the taskbar) | 39 | * It creates a startup notification and finishes it on success or on error (for the taskbar) | ||
39 | * It also shows an error message if necessary (e.g. "program not found"). | 40 | * It also shows an error message if necessary (e.g. "program not found"). | ||
40 | */ | 41 | */ | ||
▲ Show 20 Lines • Show All 83 Lines • ▼ Show 20 Line(s) | |||||
124 | #endif | 125 | #endif | ||
125 | bool runExecutable(const QString &_exec); | 126 | bool runExecutable(const QString &_exec); | ||
126 | 127 | | |||
127 | void showPrompt(); | 128 | void showPrompt(); | ||
128 | /** | 129 | /** | ||
129 | * Check whether we need to show a prompt(before executing a script or desktop file) | 130 | * Check whether we need to show a prompt(before executing a script or desktop file) | ||
130 | */ | 131 | */ | ||
131 | bool isPromptNeeded(); | 132 | bool isPromptNeeded(); | ||
133 | ExecutableFileOpenDialog::Mode promptMode(); | ||||
132 | void onDialogFinished(int result, bool isDontAskAgainSet); | 134 | void onDialogFinished(int result, bool isDontAskAgainSet); | ||
133 | 135 | | |||
134 | KRun * const q; | 136 | KRun * const q; | ||
135 | bool m_showingDialog; | 137 | bool m_showingDialog; | ||
136 | bool m_runExecutables; | 138 | bool m_runExecutables; | ||
137 | bool m_followRedirections; | 139 | bool m_followRedirections; | ||
138 | 140 | | |||
139 | // Don't exit the app while a KRun is running. | 141 | // Don't exit the app while a KRun is running. | ||
Show All 40 Lines |