digiKam
itemlistmodel.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 : 2010-12-06
7  * Description : An item model based on a static list
8  *
9  * Copyright (C) 2010-2011 by Marcel Wiesweg <marcel dot wiesweg at gmx dot de>
10  *
11  * This program is free software; you can redistribute it
12  * and/or modify it under the terms of the GNU General
13  * Public License as published by the Free Software Foundation;
14  * either version 2, or (at your option)
15  * any later version.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU General Public License for more details.
21  *
22  * ============================================================ */
23 
24 #ifndef DIGIKAM_ITEM_LIST_MODEL_H
25 #define DIGIKAM_ITEM_LIST_MODEL_H
26 
27 // Local includes
28 
29 #include "itemthumbnailmodel.h"
30 #include "digikam_export.h"
31 
32 namespace Digikam
33 {
34 
35 class ImageChangeset;
36 class CollectionImageChangeset;
37 
38 class DIGIKAM_DATABASE_EXPORT ItemListModel : public ItemThumbnailModel
39 {
40  Q_OBJECT
41 
42 public:
43 
44  explicit ItemListModel(QObject* const parent = nullptr);
45  ~ItemListModel() override;
46 
47  // NOTE: necessary methods to add and remove ItemInfos to the model are inherited from ItemModel
48 
49 Q_SIGNALS:
50 
54  void imageInfosRemoved(const QList<ItemInfo>& infos);
55 
56 protected Q_SLOTS:
57 
58  void slotCollectionImageChange(const CollectionImageChangeset& changeset);
59 };
60 
61 } // namespace Digikam
62 
63 #endif // DIGIKAM_ITEM_LIST_MODEL_H
Definition: coredbchangesets.h:152
Definition: itemlistmodel.h:39
void imageInfosRemoved(const QList< ItemInfo > &infos)
Definition: itemthumbnailmodel.h:41
Definition: datefolderview.cpp:43