Plasma5Support

favicons.h
1/*
2 SPDX-FileCopyrightText: 2007 Tobias Koenig <tokoe@kde.org>
3 SPDX-FileCopyrightText: 2008 Marco Martin <notmart@gmail.com>
4 SPDX-FileCopyrightText: 2013 Andrea Scarpino <scarpino@kde.org>
5
6 SPDX-License-Identifier: LGPL-2.0-or-later
7*/
8
9#pragma once
10
11#include <Plasma5Support/DataEngine>
12
13class FaviconProvider;
14
15/**
16 * This class provides favicons for websites
17 *
18 * the queries are just the url of websites we want to fetch an icon
19 */
21{
23
24public:
26 ~FaviconsEngine() override;
27
28protected:
29 bool sourceRequestEvent(const QString &identifier) override;
30
31protected Q_SLOTS:
32 bool updateSourceEvent(const QString &identifier) override;
33
34private Q_SLOTS:
35 void finished(FaviconProvider *);
36 void error(FaviconProvider *);
37};
This class provides a favicon for a given url.
This class provides favicons for websites.
Definition favicons.h:21
bool sourceRequestEvent(const QString &identifier) override
When a source that does not currently exist is requested by the consumer, this method is called to gi...
Definition favicons.cpp:38
Data provider for plasmoids (Plasma plugins)
Definition dataengine.h:45
Q_OBJECTQ_OBJECT
Q_SLOTSQ_SLOTS
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:08:57 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.