• 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
  • plugins
  • render
  • opencaching
OpenCachingCacheLog.cpp
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 2011 Daniel Marth <danielmarth@gmx.at>
9 //
10 
11 #include "OpenCachingCacheLog.h"
12 
13 namespace Marble
14 {
15 
16 OpenCachingCacheLog::OpenCachingCacheLog()
17  : m_cacheId( 0 )
18 {
19 }
20 
21 OpenCachingCacheLogEntry& OpenCachingCacheLog::operator[]( int index )
22 {
23  return m_logEntries[index];
24 }
25 
26 void OpenCachingCacheLog::setCacheId( unsigned long long cacheId )
27 {
28  m_cacheId = cacheId;
29 }
30 
31 unsigned long long OpenCachingCacheLog::cacheId() const
32 {
33  return m_cacheId;
34 }
35 
36 void OpenCachingCacheLog::addLogEntry( const OpenCachingCacheLogEntry& logEntry )
37 {
38  m_logEntries.append( logEntry );
39 }
40 
41 void OpenCachingCacheLog::removeLogEntry( int index )
42 {
43  m_logEntries.removeAt( index );
44 }
45 
46 int OpenCachingCacheLog::size() const
47 {
48  return m_logEntries.size();
49 }
50 
51 void OpenCachingCacheLog::clear()
52 {
53  m_logEntries.clear();
54 }
55 
56 }
Marble::OpenCachingCacheLog::removeLogEntry
void removeLogEntry(int index)
Definition: OpenCachingCacheLog.cpp:41
Marble::OpenCachingCacheLog::setCacheId
void setCacheId(unsigned long long cacheId)
Definition: OpenCachingCacheLog.cpp:26
Marble::OpenCachingCacheLog::OpenCachingCacheLog
OpenCachingCacheLog()
Definition: OpenCachingCacheLog.cpp:16
Marble::OpenCachingCacheLog::operator[]
OpenCachingCacheLogEntry & operator[](int index)
Definition: OpenCachingCacheLog.cpp:21
Marble::OpenCachingCacheLog::size
int size() const
Definition: OpenCachingCacheLog.cpp:46
Marble::OpenCachingCacheLog::addLogEntry
void addLogEntry(const OpenCachingCacheLogEntry &logEntry)
Definition: OpenCachingCacheLog.cpp:36
Marble::OpenCachingCacheLogEntry
Single log entry for a cache.
Definition: OpenCachingCacheLogEntry.h:25
Marble::OpenCachingCacheLog::clear
void clear()
Definition: OpenCachingCacheLog.cpp:51
OpenCachingCacheLog.h
Marble::OpenCachingCacheLog::cacheId
unsigned long long cacheId() const
Definition: OpenCachingCacheLog.cpp:31
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:41 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