dolphin/src/dolphinplacesmodelsingleton.h
Elvis Angelaccio 954e8c4790 Output of licensedigger + manual cleanup afterwards.
Unfortunately licensedigger does not strip the trailing * characters.
While at it, use a common style for all source files.
2020-08-25 17:07:38 +00:00

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