digiKam
Digikam::CoreDbDownloadHistory Class Reference

Static Public Member Functions

static void setDownloaded (const QString &identifier, const QString &name, qlonglong fileSize, const QDateTime &date)
 
static CamItemInfo::DownloadStatus status (const QString &identifier, const QString &name, qlonglong fileSize, const QDateTime &date)
 

Member Function Documentation

◆ setDownloaded()

void Digikam::CoreDbDownloadHistory::setDownloaded ( const QString &  identifier,
const QString &  name,
qlonglong  fileSize,
const QDateTime &  date 
)
static

Sets the status of the item to Downloaded

References Digikam::CoreDB::addToDownloadHistory(), and Digikam::CoreDbAccess::db().

◆ status()

CamItemInfo::DownloadStatus Digikam::CoreDbDownloadHistory::status ( const QString &  identifier,
const QString &  name,
qlonglong  fileSize,
const QDateTime &  date 
)
static

Queries the status of a download item that is uniquely described by the four parameters. The identifier is recommended to be an MD5 hash of properties describing the camera, if available, and the directory path (though you are free to use all four parameters as you want)

References Digikam::CamItemInfo::DownloadedNo, and Digikam::CamItemInfo::DownloadedYes.


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