10#ifndef KDBUSINTERPROCESSLOCK_H
11#define KDBUSINTERPROCESSLOCK_H
16#include <kdbusaddons_export.h>
18class KDBusInterProcessLockPrivate;
105 friend class KDBusInterProcessLockPrivate;
106 std::unique_ptr<KDBusInterProcessLockPrivate>
const d;
A class for serializing access to a resource that is shared between multiple processes.
Definition kdbusinterprocesslock.h:52
void waitForLockGranted()
Waits for the granting of a lock by starting an internal event loop.
void lock()
Requests the lock.
~KDBusInterProcessLock() override
Destroys the inter process lock object.
QString resource() const
Returns the identifier of the resource the lock is set on.
KDBusInterProcessLock(const QString &resource)
Creates a new inter process lock object.
void lockGranted(KDBusInterProcessLock *lock)
This signal is emitted when the requested lock has been granted.
void unlock()
Releases the lock.