• 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
OpenCachingCacheLogEntry.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 "OpenCachingCacheLogEntry.h"
12 
13 namespace Marble
14 {
15 
16 OpenCachingCacheLogEntry::OpenCachingCacheLogEntry( const QHash<QString, QVariant>& properties )
17 {
18  m_cacheId = properties["cacheid"].toULongLong();
19  m_userName = properties["userid"].toString();
20  m_logType = properties["logtype"].toString();
21  m_text = properties["text"].toString();
22  m_logDate = properties["date"].toDateTime();
23  m_createdDate = properties["datecreated"].toDateTime();
24  m_lastModifiedDate = properties["lastmodified"].toDateTime();
25 }
26 
27 void OpenCachingCacheLogEntry::setCacheId( int cacheId )
28 {
29  m_cacheId = cacheId;
30 }
31 
32 int OpenCachingCacheLogEntry::cacheId() const
33 {
34  return m_cacheId;
35 }
36 
37 void OpenCachingCacheLogEntry::setUserName( const QString& userName )
38 {
39  m_userName = userName;
40 }
41 
42 const QString& OpenCachingCacheLogEntry::userName() const
43 {
44  return m_userName;
45 }
46 
47 void OpenCachingCacheLogEntry::setLogType( const QString& logType )
48 {
49  m_logType = logType;
50 }
51 
52 const QString& OpenCachingCacheLogEntry::logType() const
53 {
54  return m_logType;
55 }
56 
57 void OpenCachingCacheLogEntry::setText( const QString& text )
58 {
59  m_text = text;
60 }
61 
62 const QString& OpenCachingCacheLogEntry::text() const
63 {
64  return m_text;
65 }
66 
67 void OpenCachingCacheLogEntry::setLogDate( const QDateTime& logDate )
68 {
69  m_logDate = logDate;
70 }
71 
72 const QDateTime& OpenCachingCacheLogEntry::logDate() const
73 {
74  return m_logDate;
75 }
76 
77 void OpenCachingCacheLogEntry::setCreatedDate( const QDateTime& createdDate )
78 {
79  m_createdDate = createdDate;
80 }
81 
82 const QDateTime& OpenCachingCacheLogEntry::createdDate() const
83 {
84  return m_createdDate;
85 }
86 
87 void OpenCachingCacheLogEntry::setLastModifiedDate( const QDateTime& lastModifiedDate )
88 {
89  m_lastModifiedDate = lastModifiedDate;
90 }
91 
92 const QDateTime& OpenCachingCacheLogEntry::lastModifiedDate() const
93 {
94  return m_lastModifiedDate;
95 }
96 
97 }
Marble::OpenCachingCacheLogEntry::setCacheId
void setCacheId(int cacheId)
Definition: OpenCachingCacheLogEntry.cpp:27
Marble::OpenCachingCacheLogEntry::setUserName
void setUserName(const QString &userName)
Definition: OpenCachingCacheLogEntry.cpp:37
Marble::OpenCachingCacheLogEntry::lastModifiedDate
const QDateTime & lastModifiedDate() const
Definition: OpenCachingCacheLogEntry.cpp:92
Marble::OpenCachingCacheLogEntry::setText
void setText(const QString &text)
Definition: OpenCachingCacheLogEntry.cpp:57
Marble::OpenCachingCacheLogEntry::setLastModifiedDate
void setLastModifiedDate(const QDateTime &lastModifiedDate)
Definition: OpenCachingCacheLogEntry.cpp:87
Marble::OpenCachingCacheLogEntry::setLogType
void setLogType(const QString &logType)
Definition: OpenCachingCacheLogEntry.cpp:47
QHash< QString, QVariant >
Marble::OpenCachingCacheLogEntry::setCreatedDate
void setCreatedDate(const QDateTime &createdDate)
Definition: OpenCachingCacheLogEntry.cpp:77
QString
Marble::OpenCachingCacheLogEntry::userName
const QString & userName() const
Definition: OpenCachingCacheLogEntry.cpp:42
Marble::OpenCachingCacheLogEntry::cacheId
int cacheId() const
Definition: OpenCachingCacheLogEntry.cpp:32
Marble::OpenCachingCacheLogEntry::logDate
const QDateTime & logDate() const
Definition: OpenCachingCacheLogEntry.cpp:72
OpenCachingCacheLogEntry.h
Marble::OpenCachingCacheLogEntry::logType
const QString & logType() const
Definition: OpenCachingCacheLogEntry.cpp:52
Marble::OpenCachingCacheLogEntry::OpenCachingCacheLogEntry
OpenCachingCacheLogEntry(const QHash< QString, QVariant > &properties)
Definition: OpenCachingCacheLogEntry.cpp:16
Marble::OpenCachingCacheLogEntry::setLogDate
void setLogDate(const QDateTime &logDate)
Definition: OpenCachingCacheLogEntry.cpp:67
Marble::OpenCachingCacheLogEntry::text
const QString & text() const
Definition: OpenCachingCacheLogEntry.cpp:62
Marble::OpenCachingCacheLogEntry::createdDate
const QDateTime & createdDate() const
Definition: OpenCachingCacheLogEntry.cpp:82
QDateTime
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