Changeset View
Changeset View
Standalone View
Standalone View
core/app/utils/groupingviewimplementation.h
- This file was added.
1 | /* ============================================================ | ||||
---|---|---|---|---|---|
2 | * | ||||
3 | * This file is a part of digiKam project | ||||
4 | * http://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 VIEWGROUPINGIMPLEMENTATION_H | ||||
25 | #define VIEWGROUPINGIMPLEMENTATION_H | ||||
26 | | ||||
27 | // Local includes | ||||
28 | | ||||
29 | #include "applicationsettings.h" | ||||
30 | #include "digikam_export.h" | ||||
31 | | ||||
32 | namespace Digikam | ||||
33 | { | ||||
34 | | ||||
35 | class ImageInfo; | ||||
36 | class ImageInfoList; | ||||
37 | | ||||
38 | class DIGIKAM_EXPORT GroupingViewImplementation | ||||
39 | { | ||||
40 | public: | ||||
41 | | ||||
42 | virtual ~GroupingViewImplementation() {} | ||||
43 | | ||||
44 | // must be implemented by parent view | ||||
45 | virtual bool hasHiddenGroupedImages(const ImageInfo&) const {return false;} | ||||
46 | | ||||
47 | bool needGroupResolving(ApplicationSettings::OperationType type, | ||||
48 | const ImageInfoList& infos) const; | ||||
49 | ImageInfoList resolveGrouping(const ImageInfoList& infos) const; | ||||
50 | ImageInfoList getHiddenGroupedInfos(const ImageInfoList& infos) const; | ||||
51 | }; | ||||
52 | | ||||
53 | } // namespace Digikam | ||||
54 | | ||||
55 | #endif /* VIEWGROUPINGIMPLEMENTATION_H */ |