digiKam
groupstatecomputer.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 : 2009-12-01
7  * Description : class GroupStateComputer
8  *
9  * Copyright (C) 2010-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
10  * Copyright (C) 2009-2010 by Michael G. Hansen <mike at mghansen dot de>
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_GROUP_STATE_COMPUTER_H
26 #define DIGIKAM_GROUP_STATE_COMPUTER_H
27 
28 #include "geogroupstate.h"
29 
30 // Qt includes
31 
32 #include <QScopedPointer>
33 
34 // Local includes
35 
36 #include "digikam_export.h"
37 
38 namespace Digikam
39 {
40 
41 class DIGIKAM_EXPORT GroupStateComputer
42 {
43 public:
44 
45  explicit GroupStateComputer();
46  virtual ~GroupStateComputer();
47 
48  GeoGroupState getState() const;
49 
50  void clear();
51 
52  void addState(const GeoGroupState state);
53  void addSelectedState(const GeoGroupState state);
54  void addFilteredPositiveState(const GeoGroupState state);
55  void addRegionSelectedState(const GeoGroupState state);
56 
57 private:
58 
59  class Private;
60  const QScopedPointer<Private> d;
61 };
62 
63 } // namespace Digikam
64 
65 #endif // DIGIKAM_GROUP_STATE_COMPUTER_H
Definition: groupstatecomputer.h:42
Definition: datefolderview.cpp:43