[Digikam-devel] [digikam] [Bug 319001] Smart detection whether file was been downloaded

Marcel Wiesweg marcel.wiesweg at gmx.de
Sun Apr 28 17:46:36 BST 2013


https://bugs.kde.org/show_bug.cgi?id=319001

--- Comment #1 from Marcel Wiesweg <marcel.wiesweg at gmx.de> ---
The problem you encounter sooner or later (with gphoto cameras sooner than with
UMS cameras) is that the time you need to compute the hash, by accessing the
Exif data, will be disproportional to the gained functionality. Regarding the
use of make, model and name, let's have a look at the DownloadHistory database
header file:
    /**
     * 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)
     */
    static Status status(const QString& identifier, const QString& name,
                         qlonglong fileSize, const QDateTime& date);

For me all points are very minor problems, yes we could make wild guesses that
pictures on the camera were already downloaded based on some parameters, yet
file name is not useful as there can be renames, file size is not useful as
metadata can have been edited, date alone is by far too weak.

-- 
You are receiving this mail because:
You are the assignee for the bug.



More information about the Digikam-devel mailing list