Marble
1 #include "KmlRefreshModeTagHandler.h"
2 #include "MarbleDebug.h"
3 #include "KmlElementDictionary.h"
4 #include "GeoDataLink.h"
11 KML_DEFINE_TAG_HANDLER( refreshMode )
13 GeoNode* KmlrefreshModeTagHandler::parse( GeoParser& parser )
const
15 Q_ASSERT(parser.isStartElement() && parser.isValidElement(
QLatin1String(kmlTag_refreshMode)));
17 GeoStackItem parentItem = parser.parentElement();
19 GeoDataLink::RefreshMode mode;
21 if ( parentItem.is<GeoDataLink>()) {
23 mode = GeoDataLink::OnChange;
25 mode = GeoDataLink::OnExpire;
27 mode = GeoDataLink::OnInterval;
29 mode = GeoDataLink::OnChange;
30 mDebug() <<
"Value " << content <<
"set in kml file is invalid."
31 <<
"Value of <refreshMode> has been reset to onChange" ;
33 parentItem.nodeAs<GeoDataLink>()->setRefreshMode( mode );
QString trimmed() const const
Binds a QML item to a specific geodetic location in screen coordinates.
QDebug mDebug()
a function to replace qDebug() in Marble library code
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Sep 25 2023 03:50:19 by
doxygen 1.8.17 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.