Plasma5Support

placesengine.h
1/*
2 SPDX-FileCopyrightText: 2008 Alex Merry <alex.merry@kdemail.net>
3
4 SPDX-License-Identifier: LGPL-2.0-only
5*/
6
7#pragma once
8
9#include <Plasma5Support/DataEngine>
10
11#include <kfileplacesmodel.h>
12
13class PlacesProxyModel;
14
15class PlacesEngine : public Plasma5Support::DataEngine
16{
18
19public:
20 PlacesEngine(QObject *parent);
21 ~PlacesEngine() override;
22
23 Plasma5Support::Service *serviceForSource(const QString &source) override;
24
25private:
26 KFilePlacesModel *m_placesModel = nullptr;
27 PlacesProxyModel *m_proxyModel = nullptr;
28};
Data provider for plasmoids (Plasma plugins)
Definition dataengine.h:45
This class provides a generic API for write access to settings or services.
Definition service.h:78
Q_OBJECTQ_OBJECT
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:59:38 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.