Marble

RemoteIconLoader.h
1// SPDX-License-Identifier: LGPL-2.1-or-later
2//
3// SPDX-FileCopyrightText: 2014 Abhinav Gangwar <abhgang@gmail.com>
4//
5
6#ifndef MARBLE_REMOTEICONLOADER_H
7#define MARBLE_REMOTEICONLOADER_H
8
9#include <QObject>
10
11class QString;
12class QByteArray;
13class QImage;
14class QUrl;
15
16namespace Marble
17{
18class RemoteIconLoaderPrivate;
19
20class RemoteIconLoader : public QObject
21{
23
24public:
25 explicit RemoteIconLoader(QObject *parent = nullptr);
26 ~RemoteIconLoader() override;
27
28 /**
29 * Handles the icon request for passed url( whether icon is available
30 * in cache or on disk or it should gor for a download
31 */
32 QImage load(const QUrl &url);
33
35 /**
36 * Signal to indicate that image has been downloaded
37 * and is ready to be display now
38 */
39 void iconReady();
40
41private Q_SLOTS:
42 void storeIcon(const QByteArray &, const QString &);
43
44private:
45 RemoteIconLoaderPrivate *const d;
46};
47
48}
49
50#endif // MARBLE_REMOTEICONLOADER_H
Binds a QML item to a specific geodetic location in screen coordinates.
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
Q_SLOTSQ_SLOTS
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 17:04:14 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.