digiKam
Digikam::DTrash Class Reference

Static Public Member Functions

static bool deleteDirRecursivley (const QString &dirToDelete, const QDateTime &deleteTime)
 Deletes a whole folder from the collection. More...
 
static bool deleteImage (const QString &imagePath, const QDateTime &deleteTime)
 Deletes image to the trash of a particular collection. More...
 
static void extractJsonForItem (const QString &collPath, const QString &baseName, DTrashItemInfo &itemInfo)
 Extracts the data from json file and gives it to DTrashItemInfo. More...
 

Static Public Attributes

static const QString DELETIONTIMESTAMP_JSON_KEY = QLatin1String("deletiontimestamp")
 
static const QString FILES_FOLDER = QLatin1String("files")
 
static const QString IMAGEID_JSON_KEY = QLatin1String("imageid")
 
static const QString INFO_FILE_EXTENSION = QLatin1String(".dtrashinfo")
 
static const QString INFO_FOLDER = QLatin1String("info")
 
static const QString PATH_JSON_KEY = QLatin1String("path")
 
static const QString TRASH_FOLDER = QLatin1String(".dtrash")
 

Member Function Documentation

◆ deleteDirRecursivley()

bool Digikam::DTrash::deleteDirRecursivley ( const QString &  dirToDelete,
const QDateTime &  deleteTime 
)
static

Deletes a whole folder from the collection.

Parameters
dirToDeletepath to folder
Returns
true if folder was deleted

References deleteImage(), and Digikam::DeleteDialogMode::Files.

Referenced by Digikam::DeleteJob::run().

◆ deleteImage()

bool Digikam::DTrash::deleteImage ( const QString &  imagePath,
const QDateTime &  deleteTime 
)
static

◆ extractJsonForItem()

void Digikam::DTrash::extractJsonForItem ( const QString &  collPath,
const QString &  baseName,
DTrashItemInfo itemInfo 
)
static

Member Data Documentation

◆ DELETIONTIMESTAMP_JSON_KEY

const QString Digikam::DTrash::DELETIONTIMESTAMP_JSON_KEY = QLatin1String("deletiontimestamp")
static

Referenced by extractJsonForItem().

◆ FILES_FOLDER

const QString Digikam::DTrash::FILES_FOLDER = QLatin1String("files")
static

◆ IMAGEID_JSON_KEY

const QString Digikam::DTrash::IMAGEID_JSON_KEY = QLatin1String("imageid")
static

Referenced by extractJsonForItem().

◆ INFO_FILE_EXTENSION

const QString Digikam::DTrash::INFO_FILE_EXTENSION = QLatin1String(".dtrashinfo")
static

Referenced by extractJsonForItem().

◆ INFO_FOLDER

const QString Digikam::DTrash::INFO_FOLDER = QLatin1String("info")
static

Referenced by extractJsonForItem().

◆ PATH_JSON_KEY

const QString Digikam::DTrash::PATH_JSON_KEY = QLatin1String("path")
static

Referenced by extractJsonForItem().

◆ TRASH_FOLDER

const QString Digikam::DTrash::TRASH_FOLDER = QLatin1String(".dtrash")
static

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