digiKam
|
Public Member Functions | |
QList< SolidVolumeInfo > | actuallyListVolumes () |
hack for Solid's threading problems More... | |
bool | checkIfExists (const QString &path, QList< CollectionLocation > assumeDeleted) |
Check if a location for specified path exists, assuming the given list of locations was deleted. More... | |
SolidVolumeInfo | findVolumeForLocation (const AlbumRootLocation *location, const QList< SolidVolumeInfo > &volumes) |
SolidVolumeInfo | findVolumeForUrl (const QUrl &fileUrl, const QList< SolidVolumeInfo > &volumes) |
QList< SolidVolumeInfo > | listVolumes () |
Access Solid and return a list of storage volumes. More... | |
QString | networkShareIdentifier (const QString &path) |
Create a network share identifier based on the mountpath. More... | |
QStringList | networkShareMountPathsFromIdentifier (const AlbumRootLocation *location) |
Return the path, if location has a path-only identifier. Else returns a null string. More... | |
QString | pathFromIdentifier (const AlbumRootLocation *location) |
Return the path, if location has a path-only identifier. Else returns a null string. More... | |
Private (CollectionManager *const s) | |
void | slotTriggerUpdateVolumesList () |
QString | technicalDescription (const AlbumRootLocation *location) |
Make a user presentable description, regardless of current location status. More... | |
QString | volumeIdentifier (const QString &path) |
Create a volume identifier based on the path only. More... | |
Static Public Member Functions | |
static QString | directoryHash (const QString &path) |
Create an MD5 hash of the top-level entries (file names, not file content) of the given path. More... | |
static QString | volumeIdentifier (const SolidVolumeInfo &info) |
Create the volume identifier for the given volume info. More... | |
Public Attributes | |
bool | changingDB |
QMap< int, AlbumRootLocation * > | locations |
QReadWriteLock | lock |
CollectionManager * | s |
QStringList | udisToWatch |
QList< SolidVolumeInfo > | volumesListCache |
bool | watchEnabled |
|
explicit |
QList< SolidVolumeInfo > Digikam::CollectionManager::Private::actuallyListVolumes | ( | ) |
hack for Solid's threading problems
References Digikam::SolidVolumeInfo::udi.
bool Digikam::CollectionManager::Private::checkIfExists | ( | const QString & | path, |
QList< CollectionLocation > | assumeDeleted | ||
) |
Check if a location for specified path exists, assuming the given list of locations was deleted.
References Digikam::CollectionLocation::id(), and Digikam::RedEye::location().
Referenced by Digikam::CollectionManager::checkLocation(), and Digikam::CollectionManager::checkNetworkLocation().
|
static |
Create an MD5 hash of the top-level entries (file names, not file content) of the given path.
References Digikam::DeleteDialogMode::Files.
SolidVolumeInfo Digikam::CollectionManager::Private::findVolumeForLocation | ( | const AlbumRootLocation * | location, |
const QList< SolidVolumeInfo > & | volumes | ||
) |
Find from a given list (usually the result of listVolumes) the volume corresponding to the location
References Digikam::AlbumRootLocation::identifier, Digikam::SolidVolumeInfo::isMounted, Digikam::SolidVolumeInfo::label, Digikam::RedEye::location(), Digikam::SolidVolumeInfo::path, and Digikam::SolidVolumeInfo::uuid.
SolidVolumeInfo Digikam::CollectionManager::Private::findVolumeForUrl | ( | const QUrl & | fileUrl, |
const QList< SolidVolumeInfo > & | volumes | ||
) |
Find from a given list (usually the result of listVolumes) the volume on which the file path specified by the url is located.
References Digikam::SolidVolumeInfo::isMounted, and Digikam::SolidVolumeInfo::path.
Referenced by Digikam::CollectionManager::addLocation(), Digikam::CollectionManager::checkLocation(), and Digikam::CollectionManager::refreshLocation().
QList< SolidVolumeInfo > Digikam::CollectionManager::Private::listVolumes | ( | ) |
Access Solid and return a list of storage volumes.
Referenced by Digikam::CollectionManager::addLocation(), Digikam::CollectionManager::checkHardWiredLocations(), Digikam::CollectionManager::checkLocation(), Digikam::CollectionManager::migrationCandidates(), and Digikam::CollectionManager::refreshLocation().
QString Digikam::CollectionManager::Private::networkShareIdentifier | ( | const QString & | path | ) |
Create a network share identifier based on the mountpath.
Referenced by Digikam::CollectionManager::addNetworkLocation(), and Digikam::CollectionManager::refreshLocation().
QStringList Digikam::CollectionManager::Private::networkShareMountPathsFromIdentifier | ( | const AlbumRootLocation * | location | ) |
Return the path, if location has a path-only identifier. Else returns a null string.
References Digikam::RedEye::location().
QString Digikam::CollectionManager::Private::pathFromIdentifier | ( | const AlbumRootLocation * | location | ) |
Return the path, if location has a path-only identifier. Else returns a null string.
References Digikam::RedEye::location().
void Digikam::CollectionManager::Private::slotTriggerUpdateVolumesList | ( | ) |
Referenced by Private().
QString Digikam::CollectionManager::Private::technicalDescription | ( | const AlbumRootLocation * | location | ) |
Make a user presentable description, regardless of current location status.
References Digikam::AlbumRootLocation::identifier, and Digikam::AlbumRootLocation::specificPath.
Referenced by Digikam::CollectionManager::migrationCandidates().
QString Digikam::CollectionManager::Private::volumeIdentifier | ( | const QString & | path | ) |
Create a volume identifier based on the path only.
|
static |
Create the volume identifier for the given volume info.
References Digikam::SolidVolumeInfo::isOpticalDisc, Digikam::SolidVolumeInfo::isRemovable, Digikam::SolidVolumeInfo::label, Digikam::SolidVolumeInfo::path, and Digikam::SolidVolumeInfo::uuid.
Referenced by Digikam::CollectionManager::addLocation(), Digikam::CollectionManager::migrationCandidates(), and Digikam::CollectionManager::refreshLocation().
bool Digikam::CollectionManager::Private::changingDB |
QMap<int, AlbumRootLocation*> Digikam::CollectionManager::Private::locations |
Referenced by Digikam::CollectionManager::album(), Digikam::CollectionManager::albumRootLabel(), Digikam::CollectionManager::albumRootPath(), Digikam::CollectionManager::allAvailableAlbumRootPaths(), Digikam::CollectionManager::allAvailableLocations(), Digikam::CollectionManager::allLocations(), Digikam::CollectionManager::changeType(), Digikam::CollectionManager::checkHardWiredLocations(), Digikam::CollectionManager::checkLocation(), Digikam::CollectionManager::isAlbumRoot(), Digikam::CollectionManager::locationForAlbumRootId(), Digikam::CollectionManager::locationForAlbumRootPath(), Digikam::CollectionManager::locationForPath(), Digikam::CollectionManager::migrateToVolume(), Digikam::CollectionManager::migrationCandidates(), Digikam::CollectionManager::oneAlbumRootPath(), Digikam::CollectionManager::refreshLocation(), Digikam::CollectionManager::removeLocation(), and Digikam::CollectionManager::setLabel().
QReadWriteLock Digikam::CollectionManager::Private::lock |
Referenced by Digikam::CollectionManager::album(), Digikam::CollectionManager::albumRootLabel(), Digikam::CollectionManager::albumRootPath(), Digikam::CollectionManager::allAvailableAlbumRootPaths(), Digikam::CollectionManager::allAvailableLocations(), Digikam::CollectionManager::allLocations(), Digikam::CollectionManager::changeType(), Digikam::CollectionManager::checkHardWiredLocations(), Digikam::CollectionManager::isAlbumRoot(), Digikam::CollectionManager::locationForAlbumRootId(), Digikam::CollectionManager::locationForAlbumRootPath(), Digikam::CollectionManager::locationForPath(), Digikam::CollectionManager::migrateToVolume(), Digikam::CollectionManager::migrationCandidates(), Digikam::CollectionManager::oneAlbumRootPath(), Digikam::CollectionManager::refreshLocation(), Digikam::CollectionManager::removeLocation(), and Digikam::CollectionManager::setLabel().
CollectionManager* Digikam::CollectionManager::Private::s |
Referenced by Private().
QStringList Digikam::CollectionManager::Private::udisToWatch |
QList<SolidVolumeInfo> Digikam::CollectionManager::Private::volumesListCache |
bool Digikam::CollectionManager::Private::watchEnabled |
Referenced by Digikam::CollectionManager::setWatchDisabled().