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{
23public:
24 explicit RemoteIconLoader( QObject *parent = nullptr );
25 ~RemoteIconLoader() override;
26
27 /**
28 * Handles the icon request for passed url( whether icon is available
29 * in cache or on disk or it should gor for a download
30 */
31 QImage load( const QUrl& url );
32
34 /**
35 * Signal to indicate that image has been downloaded
36 * and is ready to be display now
37 */
38 void iconReady();
39
40private Q_SLOTS:
41 void storeIcon( const QByteArray&, const QString& );
42
43private:
44 RemoteIconLoaderPrivate *d;
45};
46
47}
48
49#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 Fri Jun 14 2024 11:54:17 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.