/* SPDX-FileCopyrightText: 2007 Tobias Koenig SPDX-FileCopyrightText: 2008 Marco Martin SPDX-FileCopyrightText: 2013 Andrea Scarpino SPDX-License-Identifier: LGPL-2.0-or-later */ #pragma once #include class FaviconProvider; /** * This class provides favicons for websites * * the queries are just the url of websites we want to fetch an icon */ class FaviconsEngine : public Plasma5Support::DataEngine { Q_OBJECT public: FaviconsEngine(QObject *parent); ~FaviconsEngine() override; protected: bool sourceRequestEvent(const QString &identifier) override; protected Q_SLOTS: bool updateSourceEvent(const QString &identifier) override; private Q_SLOTS: void finished(FaviconProvider *); void error(FaviconProvider *); };