Marble

StoragePolicy.h
1// SPDX-License-Identifier: LGPL-2.1-or-later
2//
3// SPDX-FileCopyrightText: 2007 Tobias Koenig <tokoe@kde.org>
4// SPDX-FileCopyrightText: 2009 Bastian Holst <bastianholst@gmx.de>
5//
6
7#ifndef MARBLE_STORAGEPOLICY_H
8#define MARBLE_STORAGEPOLICY_H
9
10#include <QObject>
11
12class QByteArray;
13class QString;
14
15namespace Marble
16{
17
18class StoragePolicy : public QObject
19{
21
22public:
23 explicit StoragePolicy(QObject *parent = nullptr);
24
25 ~StoragePolicy() override = default;
26
27 virtual bool fileExists(const QString &fileName) const = 0;
28
29 /**
30 * Return true if file was written successfully.
31 */
32 virtual bool updateFile(const QString &fileName, const QByteArray &data) = 0;
33
34 virtual void clearCache() = 0;
35
36 virtual QString lastErrorMessage() const = 0;
37
39 void cleared();
40 void sizeChanged(qint64);
41
42private:
43 Q_DISABLE_COPY(StoragePolicy)
44};
45
46}
47
48#endif
Binds a QML item to a specific geodetic location in screen coordinates.
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 8 2024 12:02:44 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.