24 #ifndef DIGIKAM_COLLECTION_MANAGER_P_H
25 #define DIGIKAM_COLLECTION_MANAGER_P_H
32 #include <QDirIterator>
33 #include <QCoreApplication>
34 #include <QCryptographicHash>
35 #include <QReadWriteLock>
41 #include <klocalizedstring.h>
45 #if defined(Q_CC_CLANG)
46 # pragma clang diagnostic push
47 # pragma clang diagnostic ignored "-Wnonportable-include-path"
50 #include <solid/device.h>
51 #include <solid/deviceinterface.h>
52 #include <solid/devicenotifier.h>
53 #include <solid/storageaccess.h>
54 #include <solid/storagedrive.h>
55 #include <solid/storagevolume.h>
56 #include <solid/opticaldisc.h>
57 #include <solid/predicate.h>
59 #if defined(Q_CC_CLANG)
60 # pragma clang diagnostic pop
89 qCDebug(DIGIKAM_DATABASE_LOG) <<
"Creating new Location " << info.
specificPath <<
" uuid " << info.
identifier;
94 if ((path != QLatin1String(
"/")) &&
95 path.endsWith(QLatin1Char(
'/')))
102 m_label = info.
label;
189 : isRemovable (false),
190 isOpticalDisc(false),
197 return path.isNull();
222 void slotTriggerUpdateVolumesList();
245 QString volumeIdentifier(
const QString& path);
248 QString networkShareIdentifier(
const QString& path);
257 static QString directoryHash(
const QString& path);
285 d->changingDB =
true;
290 d->changingDB =
false;
Definition: coredbalbuminfo.h:48
QString identifier
Definition: coredbalbuminfo.h:64
AlbumRoot::Type type
Definition: coredbalbuminfo.h:62
QString label
Definition: coredbalbuminfo.h:61
int id
Definition: coredbalbuminfo.h:56
QString specificPath
Definition: coredbalbuminfo.h:65
int status
Definition: coredbalbuminfo.h:63
Definition: collectionmanager_p.h:77
QString identifier
Definition: collectionmanager_p.h:175
bool available
Definition: collectionmanager_p.h:177
void setStatusFromFlags()
Definition: collectionmanager_p.h:109
bool hidden
Definition: collectionmanager_p.h:178
void setStatus(CollectionLocation::Status s)
Definition: collectionmanager_p.h:128
void setId(int id)
Definition: collectionmanager_p.h:153
void setType(Type type)
Definition: collectionmanager_p.h:163
void setLabel(const QString &label)
Definition: collectionmanager_p.h:168
QString specificPath
Definition: collectionmanager_p.h:176
void setAbsolutePath(const QString &path)
Definition: collectionmanager_p.h:158
AlbumRootLocation()
Definition: collectionmanager_p.h:81
AlbumRootLocation(const AlbumRootInfo &info)
Definition: collectionmanager_p.h:87
Definition: albummanager_p.h:215
ChangingDB(CollectionManager::Private *const dd)
Definition: collectionmanager_p.h:282
~ChangingDB()
Definition: collectionmanager_p.h:288
CollectionManager::Private *const d
Definition: collectionmanager_p.h:295
Definition: collectionlocation.h:41
Type
Definition: collectionlocation.h:80
Status
Definition: collectionlocation.h:46
@ LocationHidden
Definition: collectionlocation.h:62
@ LocationUnavailable
Definition: collectionlocation.h:68
@ LocationAvailable
Definition: collectionlocation.h:56
Definition: collectionmanager_p.h:214
QList< SolidVolumeInfo > volumesListCache
Definition: collectionmanager_p.h:223
QStringList udisToWatch
Definition: collectionmanager_p.h:270
bool changingDB
Definition: collectionmanager_p.h:269
CollectionManager * s
Definition: collectionmanager_p.h:272
QReadWriteLock lock
Definition: collectionmanager_p.h:267
bool watchEnabled
Definition: collectionmanager_p.h:271
QMap< int, AlbumRootLocation * > locations
Definition: collectionmanager_p.h:268
Definition: collectionmanager.h:45
Definition: collectionmanager_p.h:184
bool isOpticalDisc
is an optical disk device as CD/DVD/BR
Definition: collectionmanager_p.h:207
bool isMounted
is mounted on File System.
Definition: collectionmanager_p.h:208
SolidVolumeInfo()
Definition: collectionmanager_p.h:188
QString label
volume label (think of CDs)
Definition: collectionmanager_p.h:205
bool isNull() const
Definition: collectionmanager_p.h:195
bool isRemovable
may be removed
Definition: collectionmanager_p.h:206
QString udi
Solid device UDI of the StorageAccess device.
Definition: collectionmanager_p.h:202
QString uuid
UUID as from Solid.
Definition: collectionmanager_p.h:204
QString path
mount path of volume, with trailing slash
Definition: collectionmanager_p.h:203
Definition: piwigotalker.h:48
std::vector< T > location(const std::vector< T > &shape, unsigned long idx)
Definition: shapepredictor.h:109
Definition: datefolderview.cpp:43
Type
Definition: gpsitemcontainer.h:45