File indexing completed on 2025-03-09 03:58:50
0001 /* ============================================================ 0002 * 0003 * This file is a part of digiKam project 0004 * https://www.digikam.org 0005 * 0006 * Date : 2009-02-15 0007 * Description : queue pool info container. 0008 * 0009 * SPDX-FileCopyrightText: 2009-2024 by Gilles Caulier <caulier dot gilles at gmail dot com> 0010 * 0011 * SPDX-License-Identifier: GPL-2.0-or-later 0012 * 0013 * ============================================================ */ 0014 0015 #ifndef DIGIKAM_BQM_ITEM_INFO_SET_H 0016 #define DIGIKAM_BQM_ITEM_INFO_SET_H 0017 0018 // Qt includes 0019 0020 #include <QList> 0021 0022 // Local includes 0023 0024 #include "iteminfo.h" 0025 0026 namespace Digikam 0027 { 0028 0029 /** 0030 * A container of associated ItemInfo and queue id. 0031 */ 0032 class ItemInfoSet 0033 { 0034 public: 0035 0036 ItemInfoSet() 0037 : queueId(0) 0038 { 0039 }; 0040 0041 ItemInfoSet(int id, const ItemInfo& inf) 0042 : queueId(id), 0043 info (inf) 0044 { 0045 }; 0046 0047 ~ItemInfoSet() 0048 { 0049 }; 0050 0051 int queueId; 0052 ItemInfo info; 0053 }; 0054 0055 /** 0056 * A list of all queued items from the pool. 0057 */ 0058 typedef QList<ItemInfoSet> QueuePoolItemsList; 0059 0060 } // namespace Digikam 0061 0062 Q_DECLARE_METATYPE(Digikam::ItemInfoSet) 0063 Q_DECLARE_METATYPE(Digikam::QueuePoolItemsList) 0064 0065 #endif // DIGIKAM_BQM_ITEM_INFO_SET_H