23#ifndef STORAGEBOOKER_H
24#define STORAGEBOOKER_H
58 const QString &aClientId =
"");
71 const QString &aClientId =
"");
97 const QString &aClientId =
"")
const;
106 const QString &aClientId =
"")
const;
109 struct StorageMapItem {
113 StorageMapItem() : iRefCount(0) { };
115 StorageMapItem(
const QString &aClientId) :
116 iClientId(aClientId), iRefCount(1) { };
120 mutable QMutex iMutex;
A helper class for managing storage reservations.
Definition StorageBooker.h:37
unsigned releaseStorage(const QString &aStorageName)
Releases the given storage.
Definition StorageBooker.cpp:94
void releaseStorages(const QStringList &aStorageNames)
Releases the given storages.
Definition StorageBooker.cpp:117
StorageBooker()
Constructor.
Definition StorageBooker.cpp:29
bool reserveStorages(const QStringList &aStorageNames, const QString &aClientId="")
Tries to reserve multiple storages for the given client.
Definition StorageBooker.cpp:74
bool isStorageAvailable(const QString &aStorageName, const QString &aClientId="") const
Checks if the given storage is available for the given client.
Definition StorageBooker.cpp:128
bool reserveStorage(const QString &aStorageName, const QString &aClientId="")
Tries to reserve one storage for the given client.
Definition StorageBooker.cpp:44
~StorageBooker()
Destructor.
Definition StorageBooker.cpp:39
bool storagesAvailable(const QStringList &aStorageNames, const QString &aClientId="") const
Checks if the given storages are available for the given client.
Definition StorageBooker.cpp:141
Definition SyncBackupAdaptor.h:41