2 * SPDX-FileCopyrightText: 2018 Kai Uwe Broulik <kde@privat.broulik.de>
4 * SPDX-License-Identifier: GPL-2.0-or-later
7 #ifndef DOLPHINPLACESMODELSINGLETON_H
8 #define DOLPHINPLACESMODELSINGLETON_H
11 #include <QScopedPointer>
13 class KFilePlacesModel
;
16 * @brief Provides a global KFilePlacesModel instance.
18 class DolphinPlacesModelSingleton
22 static DolphinPlacesModelSingleton
& instance();
24 KFilePlacesModel
*placesModel() const;
25 /** A suffix to the application-name of the stored bookmarks is
26 added, which is only read by PlacesItemModel. */
27 static QString
applicationNameSuffix();
29 DolphinPlacesModelSingleton(const DolphinPlacesModelSingleton
&) = delete;
30 DolphinPlacesModelSingleton
& operator=(const DolphinPlacesModelSingleton
&) = delete;
33 DolphinPlacesModelSingleton();
35 QScopedPointer
<KFilePlacesModel
> m_placesModel
;
38 #endif // DOLPHINPLACESMODELSINGLETON_H