digiKam
Digikam::CollectionManager::Private Class Reference

Public Member Functions

QList< SolidVolumeInfoactuallyListVolumes ()
 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< SolidVolumeInfolistVolumes ()
 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
 
CollectionManagers
 
QStringList udisToWatch
 
QList< SolidVolumeInfovolumesListCache
 
bool watchEnabled
 

Constructor & Destructor Documentation

◆ Private()

Digikam::CollectionManager::Private::Private ( CollectionManager *const  s)
explicit

Member Function Documentation

◆ actuallyListVolumes()

QList< SolidVolumeInfo > Digikam::CollectionManager::Private::actuallyListVolumes ( )

hack for Solid's threading problems

References Digikam::SolidVolumeInfo::udi.

◆ checkIfExists()

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().

◆ directoryHash()

QString Digikam::CollectionManager::Private::directoryHash ( const QString &  path)
static

Create an MD5 hash of the top-level entries (file names, not file content) of the given path.

References Digikam::DeleteDialogMode::Files.

◆ findVolumeForLocation()

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.

◆ findVolumeForUrl()

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().

◆ listVolumes()

◆ networkShareIdentifier()

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().

◆ networkShareMountPathsFromIdentifier()

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().

◆ pathFromIdentifier()

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().

◆ slotTriggerUpdateVolumesList()

void Digikam::CollectionManager::Private::slotTriggerUpdateVolumesList ( )

Referenced by Private().

◆ technicalDescription()

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().

◆ volumeIdentifier() [1/2]

QString Digikam::CollectionManager::Private::volumeIdentifier ( const QString &  path)

Create a volume identifier based on the path only.

◆ volumeIdentifier() [2/2]

Member Data Documentation

◆ changingDB

bool Digikam::CollectionManager::Private::changingDB

◆ locations

◆ lock

◆ s

CollectionManager* Digikam::CollectionManager::Private::s

Referenced by Private().

◆ udisToWatch

QStringList Digikam::CollectionManager::Private::udisToWatch

◆ volumesListCache

QList<SolidVolumeInfo> Digikam::CollectionManager::Private::volumesListCache

◆ watchEnabled

bool Digikam::CollectionManager::Private::watchEnabled

The documentation for this class was generated from the following files: