aboutsummaryrefslogtreecommitdiff
path: root/singleapplication.h
diff options
context:
space:
mode:
authorLe Liu <liulex@users.noreply.github.com>2016-11-27 01:40:47 +0800
committerItay Grudev <itay-grudev@users.noreply.github.com>2016-11-26 17:40:47 +0000
commit0f821d44f3cee46b866f29830ce0987c8b36ed5e (patch)
treeef6c80ff8a62f019e08747b19eaae64f9dc8dd96 /singleapplication.h
parentFixed typo in README.md (diff)
downloadsingleapplication-0f821d44f3cee46b866f29830ce0987c8b36ed5e.tar.xz
Allow data exclusion for the server name hash and Windows fixes (#16)
* Allows the application path and version to be excluded from the server name hash. The following flags were added for this purpose: * `SingleApplication::Mode::ExcludeAppVersion` * `SingleApplication::Mode::ExcludeAppPath` * Allow a non elevated process to connect to a local server created by an elevated process run by the same user on Windows * Fixes a problem with upper case letters in paths on Windows
Diffstat (limited to 'singleapplication.h')
-rw-r--r--singleapplication.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/singleapplication.h b/singleapplication.h
index 9376dfe..93447f4 100644
--- a/singleapplication.h
+++ b/singleapplication.h
@@ -59,7 +59,9 @@ public:
enum Mode {
User = 1 << 0,
System = 1 << 1,
- SecondaryNotification = 1 << 2
+ SecondaryNotification = 1 << 2,
+ ExcludeAppVersion = 1 << 3,
+ ExcludeAppPath = 1 << 4
};
Q_DECLARE_FLAGS(Options, Mode)