From 0f821d44f3cee46b866f29830ce0987c8b36ed5e Mon Sep 17 00:00:00 2001 From: Le Liu Date: Sun, 27 Nov 2016 01:40:47 +0800 Subject: 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 --- singleapplication.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'singleapplication.h') 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) -- cgit v1.2.1