• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

marble

  • sources
  • kde-4.14
  • kdeedu
  • marble
  • src
  • lib
  • marble
StoragePolicy.h
Go to the documentation of this file.
1 //
2 // This file is part of the Marble Virtual Globe.
3 //
4 // This program is free software licensed under the GNU LGPL. You can
5 // find a copy of this license in LICENSE.txt in the top directory of
6 // the source code.
7 //
8 // Copyright 2007 Tobias Koenig <tokoe@kde.org>
9 // Copyright 2009 Bastian Holst <bastianholst@gmx.de
10 //
11 
12 #ifndef MARBLE_STORAGEPOLICY_H
13 #define MARBLE_STORAGEPOLICY_H
14 
15 
16 #include <QObject>
17 #include <QString>
18 
19 
20 class QByteArray;
21 
22 namespace Marble
23 {
24 
25 class StoragePolicy : public QObject
26 {
27  Q_OBJECT
28 
29  public:
30  explicit StoragePolicy( QObject *parent = 0 );
31 
32  virtual ~StoragePolicy() {}
33 
34  virtual bool fileExists( const QString &fileName ) const = 0;
35 
39  virtual bool updateFile( const QString &fileName, const QByteArray &data ) = 0;
40 
41  virtual void clearCache() = 0;
42 
43  virtual QString lastErrorMessage() const = 0;
44 
45  Q_SIGNALS:
46  void cleared();
47  void sizeChanged( qint64 );
48 
49  private:
50  Q_DISABLE_COPY( StoragePolicy )
51 };
52 
53 }
54 
55 #endif
Marble::StoragePolicy::fileExists
virtual bool fileExists(const QString &fileName) const =0
Marble::StoragePolicy::~StoragePolicy
virtual ~StoragePolicy()
Definition: StoragePolicy.h:32
Marble::StoragePolicy::updateFile
virtual bool updateFile(const QString &fileName, const QByteArray &data)=0
Return true if file was written successfully.
Marble::StoragePolicy::lastErrorMessage
virtual QString lastErrorMessage() const =0
Marble::StoragePolicy::StoragePolicy
StoragePolicy(QObject *parent=0)
Definition: StoragePolicy.cpp:16
QByteArray
Marble::StoragePolicy
Definition: StoragePolicy.h:25
Marble::StoragePolicy::sizeChanged
void sizeChanged(qint64)
Marble::StoragePolicy::cleared
void cleared()
QObject
Marble::StoragePolicy::clearCache
virtual void clearCache()=0
QString
QObject::parent
QObject * parent() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:42 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

marble

Skip menu "marble"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal