https://github.com/kdab/kdsingleapplication
KDAB's helper class for single-instance policy applications
https://github.com/kdab/kdsingleapplication
Last synced: 2 months ago
JSON representation
KDAB's helper class for single-instance policy applications
- Host: GitHub
- URL: https://github.com/kdab/kdsingleapplication
- Owner: KDAB
- License: other
- Created: 2019-08-20T17:26:52.000Z (over 5 years ago)
- Default Branch: 1.1
- Last Pushed: 2024-04-02T16:09:52.000Z (about 1 year ago)
- Last Synced: 2024-04-28T04:06:43.193Z (about 1 year ago)
- Language: CMake
- Size: 273 KB
- Stars: 53
- Watchers: 37
- Forks: 10
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: Changelog
- License: LICENSE.txt
Awesome Lists containing this project
README
# KDSingleApplication
`KDSingleApplication` is a helper class for single-instance policy applications
written by [KDAB](https://www.kdab.com).## Usage
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`.See [INSTALL.txt](INSTALL.txt) for installation instructions using CMake.
## Licensing
KDSingleApplication is © Klarälvdalens Datakonsult AB and is available
under the terms of the [MIT license](LICENSES/MIT.txt).Contact KDAB at if you need different licensing options.
## Get Involved
KDAB will happily accept external contributions.
Please submit your contributions or issue reports from our GitHub space at
.## About KDAB
KDSingleApplication is supported and maintained by Klarälvdalens Datakonsult AB (KDAB).
The KDAB Group is the global No.1 software consultancy for Qt, C++ and
OpenGL applications across desktop, embedded and mobile platforms.The KDAB Group provides consulting and mentoring for developing Qt applications
from scratch and in porting from all popular and legacy frameworks to Qt.
We continue to help develop parts of Qt and are one of the major contributors
to the Qt Project. We can give advanced or standard trainings anywhere
around the globe on Qt as well as C++, OpenGL, 3D and more.Please visit to meet the people who write code like this.
Stay up-to-date with KDAB product announcements:
* [KDAB Newsletter](https://news.kdab.com)
* [KDAB Blogs](https://www.kdab.com/category/blogs)
* [KDAB on Twitter](https://twitter.com/KDABQt)