digiKam
iteminfolist.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-03-20
7  * Description : Container for image info objects
8  *
9  * Copyright (C) 2007-2013 by Marcel Wiesweg <marcel dot wiesweg at gmx dot de>
10  * Copyright (C) 2007-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_ITEM_INFO_LIST_H
26 #define DIGIKAM_ITEM_INFO_LIST_H
27 
28 // Qt includes
29 
30 #include <QList>
31 
32 // Local includes
33 
34 #include "iteminfo.h"
35 #include "digikam_export.h"
36 #include "digikam_config.h"
37 
38 namespace Digikam
39 {
40 
41 class ItemInfo;
42 
43 // NOTE: implementations of batch loading methods:
44 // See imageinfo.cpp (next to the corresponding single-item implementation)
45 
46 class DIGIKAM_DATABASE_EXPORT ItemInfoList : public QList<ItemInfo>
47 {
48 public:
49 
50  ItemInfoList();
51  explicit ItemInfoList(const QList<ItemInfo>& list);
52  explicit ItemInfoList(const QList<qlonglong>& idList);
53 
54  QList<qlonglong> toImageIdList() const;
55  QList<QUrl> toImageUrlList() const;
56 
57  void loadGroupImageIds() const;
58  void loadTagIds() const;
59 
60  bool static namefileLessThan(const ItemInfo& d1, const ItemInfo& d2);
61 
67  ItemInfo singleGroupMainItem() const;
68 };
69 
70 typedef ItemInfoList::iterator ItemInfoListIterator;
71 
72 } // namespace Digikam
73 
74 Q_DECLARE_METATYPE(Digikam::ItemInfoList)
75 
76 #endif // DIGIKAM_ITEM_INFO_LIST_H
Definition: iteminfolist.h:47
Definition: iteminfo.h:78
Definition: piwigotalker.h:48
Definition: datefolderview.cpp:43
ItemInfoList::iterator ItemInfoListIterator
Definition: iteminfolist.h:70