akonadi
Akonadi::GetLockJob Class Reference
#include <specialcollectionshelperjobs_p.h>
Inherits KJob.
Public Member Functions | |
GetLockJob (QObject *parent=0) | |
~GetLockJob () | |
virtual void | start () |
Detailed Description
For internal use only.
Helper job for SpecialCollectionsRequestJob.
If SpecialCollectionsRequestJob needs to create a collection, it sets a lock so that other instances do not interfere. This lock is an org.kde.pim.SpecialCollections name registered on D-Bus. This job is used to get that lock. This job will give the lock immediately if possible, or wait up to three seconds for the lock to be released. If the lock is not released during that time, this job fails. (This is based on the assumption that SpecialCollectionsRequestJob operations should not take long.)
Use the releaseLock() function to release the lock.
- Since:
- 4.4
Definition at line 196 of file specialcollectionshelperjobs_p.h.
Constructor & Destructor Documentation
Akonadi::GetLockJob::GetLockJob | ( | QObject * | parent = 0 |
) | [explicit] |
Creates a new GetLockJob.
Akonadi::GetLockJob::~GetLockJob | ( | ) |
Destroys the GetLockJob.
The documentation for this class was generated from the following file: