kdsingleapplication
KDAB's helper class for single-instance policy applications
kdsingleapplication
Description
Currently the documentation is woefully lacking, but see the examples or tests for inspiration. Basically it involves:
1. Create a 'Q(Core|Gui)Application' object. 2. Create a 'KDSingleApplication' object. 3. Check if the current instance is *primary* (or master) or *secondary* (or slave) by calling 'isPrimaryInstance': * the *primary* instance needs to listen from messages coming from the secondary instances, by connecting a slot to the 'messageReceived' signal; * the *secondary* instances can send messages to the primary instance by calling 'sendMessage'.
Install
Channel stable v1.2.0-1
This app is curated in HaikuPorts. Install it from there, it is already available in HaikuDepot.
pkgman install kdsingleapplication
Careful: the file comes from HaikuPorts' own server, but installing it by hand is not the way in. It is pkgman that resolves the dependencies an .hpkg does not carry with it, and a package installed on its own may simply not run. Use the pkgman command above, unless you know exactly why you want the file.