kdsingleapplication
KDAB's helper class for single-instance policy applications
kdsingleapplication
Descrizione
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'.
Installa
Canale stable v1.2.0-1
Questa app e' curata in HaikuPorts. Installala da li', e' gia' disponibile in HaikuDepot.
pkgman install kdsingleapplication
Attenzione: il file arriva dal server di HaikuPorts, ma installarlo a mano non è la strada consigliata. È «pkgman» a risolvere le dipendenze che un .hpkg non porta con sé: un pacchetto installato da solo potrebbe non partire. Usa il comando pkgman qui sopra, a meno che tu non sappia esattamente perché ti serve il file.