Changeset View
Changeset View
Standalone View
Standalone View
src/qmlcontrols/kioplugin/krunproxy.h
Show All 27 Lines | 25 | { | |||
---|---|---|---|---|---|
28 | public: | 28 | public: | ||
29 | 29 | | |||
30 | explicit KRunProxy (QObject* parent = nullptr); | 30 | explicit KRunProxy (QObject* parent = nullptr); | ||
31 | 31 | | |||
32 | /** | 32 | /** | ||
33 | * opens the url from the existing file | 33 | * opens the url from the existing file | ||
34 | */ | 34 | */ | ||
35 | Q_INVOKABLE bool openUrl(const QString &filePath); | 35 | Q_INVOKABLE bool openUrl(const QString &filePath); | ||
36 | | ||||
37 | /** | ||||
38 | * Runs the service (application) | ||||
39 | * @param serviceName the name of the desktop file without extension | ||||
40 | * @return true on success | ||||
41 | */ | ||||
42 | Q_INVOKABLE bool openService(const QString &serviceName); | ||||
36 | }; | 43 | }; | ||
37 | 44 | | |||
38 | #endif | 45 | #endif |