mirror of
https://invent.kde.org/system/dolphin
synced 2024-08-22 09:50:12 +00:00
![Elvis Angelaccio](/assets/img/avatar_default.png)
Unfortunately licensedigger does not strip the trailing * characters. While at it, use a common style for all source files.
39 lines
956 B
C++
39 lines
956 B
C++
/*
|
|
* SPDX-FileCopyrightText: 2018 Kai Uwe Broulik <kde@privat.broulik.de>
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
|
*/
|
|
|
|
#ifndef DOLPHINPLACESMODELSINGLETON_H
|
|
#define DOLPHINPLACESMODELSINGLETON_H
|
|
|
|
#include <QString>
|
|
#include <QScopedPointer>
|
|
|
|
class KFilePlacesModel;
|
|
|
|
/**
|
|
* @brief Provides a global KFilePlacesModel instance.
|
|
*/
|
|
class DolphinPlacesModelSingleton
|
|
{
|
|
|
|
public:
|
|
static DolphinPlacesModelSingleton& instance();
|
|
|
|
KFilePlacesModel *placesModel() const;
|
|
/** A suffix to the application-name of the stored bookmarks is
|
|
added, which is only read by PlacesItemModel. */
|
|
static QString applicationNameSuffix();
|
|
|
|
DolphinPlacesModelSingleton(const DolphinPlacesModelSingleton&) = delete;
|
|
DolphinPlacesModelSingleton& operator=(const DolphinPlacesModelSingleton&) = delete;
|
|
|
|
private:
|
|
DolphinPlacesModelSingleton();
|
|
|
|
QScopedPointer<KFilePlacesModel> m_placesModel;
|
|
};
|
|
|
|
#endif // DOLPHINPLACESMODELSINGLETON_H
|