aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorLoren Burkholder <computersemiexpert@outlook.com>2020-12-10 19:18:00 -0500
committerLoren Burkholder <computersemiexpert@outlook.com>2020-12-16 22:17:24 -0500
commitf236032cf988950c12ebd8ff5e3cd3f9778ea55a (patch)
tree1025557f8196116bf4c262c5ec4eecaf5707094e /README.md
parentUpdate CHANGELOG.md (diff)
downloadsingleapplication-f236032cf988950c12ebd8ff5e3cd3f9778ea55a.tar.xz
Allow adding unique userdata to instances
Diffstat (limited to 'README.md')
-rw-r--r--README.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index d20756f..457ab33 100644
--- a/README.md
+++ b/README.md
@@ -154,7 +154,7 @@ API
### Members
```cpp
-SingleApplication::SingleApplication( int &argc, char *argv[], bool allowSecondary = false, Options options = Mode::User, int timeout = 100 )
+SingleApplication::SingleApplication( int &argc, char *argv[], bool allowSecondary = false, Options options = Mode::User, int timeout = 100, QString userData = QString() )
```
Depending on whether `allowSecondary` is set, this constructor may terminate
@@ -163,7 +163,7 @@ can be specified to set whether the SingleApplication block should work
user-wide or system-wide. Additionally the `Mode::SecondaryNotification` may be
used to notify the primary instance whenever a secondary instance had been
started (disabled by default). `timeout` specifies the maximum time in
-milliseconds to wait for blocking operations.
+milliseconds to wait for blocking operations. Setting `userData` provides additional data that will isolate this instance from other instances that do not have the same (or any) user data set.
*__Note:__ `argc` and `argv` may be changed as Qt removes arguments that it
recognizes.*