summaryrefslogtreecommitdiff
path: root/src/env.h
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2019-12-02 13:51:46 -0500
committerisanae <14251494+isanae@users.noreply.github.com>2019-12-02 13:51:46 -0500
commitd4172dc5f8c642dbbe235a86a28992af310e703a (patch)
tree21eb9f6cc16d9f35cebb2a93c786c17a3a66ea4c /src/env.h
parent2b4d7929769a91d9de30e1e10319d1c9cf0450af (diff)
added "open with vfs" option to conflicts tab
Diffstat (limited to 'src/env.h')
-rw-r--r--src/env.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/env.h b/src/env.h
index dc0fd864..16f8039e 100644
--- a/src/env.h
+++ b/src/env.h
@@ -246,6 +246,26 @@ Service getService(const QString& name);
QString toString(Service::StartType st);
QString toString(Service::Status st);
+
+struct Association
+{
+ // path to the executable associated with the file
+ QFileInfo executable;
+
+ // full command line associated with the file, no replacements
+ QString commandLine;
+
+ // command line _without_ the executable and with placeholders such as %1
+ // replaced by the given file
+ QString formattedCommandLine;
+};
+
+// returns the associated executable and command line, executable is empty on
+// error
+//
+Association getAssociation(const QFileInfo& file);
+
+
enum class CoreDumpTypes
{
Mini = 1,