File indexing completed on 2025-01-05 03:56:11

0001 /* ============================================================
0002  *
0003  * This file is a part of digiKam project
0004  * https://www.digikam.org
0005  *
0006  * Date        : 2015-08-08
0007  * Description : DTrash item info container
0008  *
0009  * SPDX-FileCopyrightText: 2015 by Mohamed_Anwer <m_dot_anwer at gmx dot com>
0010  *
0011  * SPDX-License-Identifier: GPL-2.0-or-later
0012  *
0013  * ============================================================ */
0014 
0015 #ifndef DIGIKAM_DTRASH_ITEM_INFO_H
0016 #define DIGIKAM_DTRASH_ITEM_INFO_H
0017 
0018 // Qt includes
0019 
0020 #include <QList>
0021 #include <QDateTime>
0022 
0023 namespace Digikam
0024 {
0025 
0026 class DTrashItemInfo
0027 {
0028 
0029 public:
0030 
0031     explicit DTrashItemInfo();
0032 
0033     bool isNull()                                   const;
0034     bool operator==(const DTrashItemInfo& itemInfo) const;
0035 
0036 public:
0037 
0038     QString   trashPath;
0039     QString   jsonFilePath;
0040     QString   collectionPath;
0041     QString   collectionRelativePath;
0042     QDateTime deletionTimestamp;
0043     qlonglong imageId;
0044 };
0045 
0046 typedef QList<DTrashItemInfo> DTrashItemInfoList;
0047 
0048 //! qDebug() stream operator. Writes property @a info to the debug output in a nicely formatted way.
0049 QDebug operator<<(QDebug dbg, const DTrashItemInfo& info);
0050 
0051 } // namespace Digikam
0052 
0053 #endif // DIGIKAM_DTRASH_ITEM_INFO_H