24 #ifndef DIGIKAM_DTRASH_H
25 #define DIGIKAM_DTRASH_H
59 static bool deleteImage(
const QString& imagePath,
const QDateTime& deleteTime);
83 static bool prepareCollectionTrash(
const QString& collectionPath);
96 static QString createJsonRecordForFile(qlonglong imageId,
97 const QString& imagePath,
98 const QDateTime& deleteTime,
99 const QString& collectionPath);
114 static QString getAvialableJsonFilePathInTrash(
const QString& collectionPath,
115 const QString& baseName,
int version = 0);
Definition: dtrashiteminfo.h:36
static const QString TRASH_FOLDER
Definition: dtrash.h:44
static const QString INFO_FILE_EXTENSION
Definition: dtrash.h:47
static const QString INFO_FOLDER
Definition: dtrash.h:46
static const QString FILES_FOLDER
Definition: dtrash.h:45
static void extractJsonForItem(const QString &collPath, const QString &baseName, DTrashItemInfo &itemInfo)
Extracts the data from json file and gives it to DTrashItemInfo.
Definition: dtrash.cpp:131
static const QString PATH_JSON_KEY
Definition: dtrash.h:48
static const QString DELETIONTIMESTAMP_JSON_KEY
Definition: dtrash.h:49
static bool deleteDirRecursivley(const QString &dirToDelete, const QDateTime &deleteTime)
Deletes a whole folder from the collection.
Definition: dtrash.cpp:108
static const QString IMAGEID_JSON_KEY
Definition: dtrash.h:50
static bool deleteImage(const QString &imagePath, const QDateTime &deleteTime)
Deletes image to the trash of a particular collection.
Definition: dtrash.cpp:59
Definition: datefolderview.cpp:43