You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

28 lines
560 B

/*
SPDX-FileCopyrightText: 2008 Alex Merry <alex.merry@kdemail.net>
SPDX-License-Identifier: LGPL-2.0-only
*/
#pragma once
#include <Plasma/DataEngine>
#include <kfileplacesmodel.h>
class PlacesProxyModel;
class PlacesEngine : public Plasma::DataEngine
{
Q_OBJECT
public:
PlacesEngine(QObject *parent, const QVariantList &args);
~PlacesEngine() override;
Plasma::Service *serviceForSource(const QString &source) override;
private:
KFilePlacesModel *m_placesModel = nullptr;
PlacesProxyModel *m_proxyModel = nullptr;
};