digiKam
groupingviewimplementation.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 : 2017-11-02
7  * Description : Implementation of grouping specific functions for views
8  *
9  * Copyright (C) 2017 by Simon Frei <freisim93 at gmail dot com>
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_GROUPING_VIEW_IMPLEMENTATION_H
25 #define DIGIKAM_GROUPING_VIEW_IMPLEMENTATION_H
26 
27 // Local includes
28 
29 #include "applicationsettings.h"
30 #include "digikam_export.h"
31 
32 namespace Digikam
33 {
34 
35 class ItemInfo;
36 class ItemInfoList;
37 
38 class DIGIKAM_GUI_EXPORT GroupingViewImplementation
39 {
40 
41 public:
42 
44  virtual ~GroupingViewImplementation() = default;
45 
47 
48  virtual bool hasHiddenGroupedImages(const ItemInfo&) const
49  {
50  return false;
51  }
52 
53  bool needGroupResolving(ApplicationSettings::OperationType type,
54  const ItemInfoList& infos) const;
55 
56  ItemInfoList resolveGrouping(const ItemInfoList& infos) const;
57  ItemInfoList getHiddenGroupedInfos(const ItemInfoList& infos) const;
58 
59 private:
60 
61  Q_DISABLE_COPY(GroupingViewImplementation)
62 };
63 
64 } // namespace Digikam
65 
66 #endif // DIGIKAM_GROUPING_VIEW_IMPLEMENTATION_H
OperationType
Definition: applicationsettings.h:99
Definition: groupingviewimplementation.h:39
virtual ~GroupingViewImplementation()=default
virtual bool hasHiddenGroupedImages(const ItemInfo &) const
must be implemented by parent view
Definition: groupingviewimplementation.h:48
Definition: iteminfolist.h:47
Definition: iteminfo.h:78
Definition: datefolderview.cpp:43