digiKam
coredbdownloadhistory.h
Go to the documentation of this file.
1 /* ============================================================
2  *
3  * This file is a part of digiKam project
4  * https://www.digikam.org
5  *
6  * Date : 2007-11-01
7  * Description : Core database interface to manage camera item download history.
8  *
9  * Copyright (C) 2007-2008 by Marcel Wiesweg <marcel dot wiesweg at gmx dot de>
10  * Copyright (C) 2010-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
11  *
12  * This program is free software; you can redistribute it
13  * and/or modify it under the terms of the GNU General
14  * Public License as published by the Free Software Foundation;
15  * either version 2, or (at your option)
16  * any later version.
17  *
18  * This program is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21  * GNU General Public License for more details.
22  *
23  * ============================================================ */
24 
25 #ifndef DIGIKAM_CORE_DB_DOWNLOAD_HISTORY_H
26 #define DIGIKAM_CORE_DB_DOWNLOAD_HISTORY_H
27 
28 // Qt includes
29 
30 #include <QString>
31 #include <QDateTime>
32 
33 // Local includes
34 
35 #include "digikam_export.h"
36 #include "camiteminfo.h"
37 
38 namespace Digikam
39 {
40 
41 class DIGIKAM_DATABASE_EXPORT CoreDbDownloadHistory
42 {
43 public:
44 
50  static CamItemInfo::DownloadStatus status(const QString& identifier, const QString& name,
51  qlonglong fileSize, const QDateTime& date);
52 
56  static void setDownloaded(const QString& identifier, const QString& name,
57  qlonglong fileSize, const QDateTime& date);
58 };
59 
60 } // namespace Digikam
61 
62 #endif // DIGIKAM_CORE_DB_DOWNLOAD_HISTORY_H
DownloadStatus
Definition: camiteminfo.h:53
Definition: coredbdownloadhistory.h:42
Definition: datefolderview.cpp:43