File indexing completed on 2024-05-19 05:37:51
0001 /* 0002 SPDX-FileCopyrightText: 2008 Alex Merry <alex.merry@kdemail.net> 0003 0004 SPDX-License-Identifier: LGPL-2.0-only 0005 */ 0006 0007 #pragma once 0008 0009 #include <Plasma5Support/DataEngine> 0010 0011 #include <kfileplacesmodel.h> 0012 0013 class PlacesProxyModel; 0014 0015 class PlacesEngine : public Plasma5Support::DataEngine 0016 { 0017 Q_OBJECT 0018 0019 public: 0020 PlacesEngine(QObject *parent); 0021 ~PlacesEngine() override; 0022 0023 Plasma5Support::Service *serviceForSource(const QString &source) override; 0024 0025 private: 0026 KFilePlacesModel *m_placesModel = nullptr; 0027 PlacesProxyModel *m_proxyModel = nullptr; 0028 };