digiKam
tilegrouper.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-05
7  * Description : Merges tiles into groups
8  *
9  * Copyright (C) 2010-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
10  * Copyright (C) 2010-2011 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_TILE_GROUPER_H
26 #define DIGIKAM_TILE_GROUPER_H
27 
28 // Local includes
29 
30 #include "digikam_export.h"
31 #include "geoifacecommon.h"
32 
33 namespace Digikam
34 {
35 class MapBackend;
36 
37 class DIGIKAM_EXPORT TileGrouper : public QObject
38 {
39  Q_OBJECT
40 
41 public:
42 
43  explicit TileGrouper(const QExplicitlySharedDataPointer<GeoIfaceSharedData>& sharedData,
44  QObject* const parent);
45  ~TileGrouper() override;
46 
47  void setClustersDirty();
48  bool getClustersDirty() const;
49  void updateClusters();
50  void setCurrentBackend(MapBackend* const backend);
51 
52 private:
53 
54  bool currentBackendReady();
55 
56 private:
57 
58  class Private;
59  const QScopedPointer<Private> d;
60 
61  const QExplicitlySharedDataPointer<GeoIfaceSharedData> s;
62 };
63 
64 } // namespace Digikam
65 
66 #endif // DIGIKAM_TILE_GROUPER_H
Definition: mapbackend.h:52
Definition: tilegrouper.h:38
Definition: datefolderview.cpp:43