marble
KmlNetworkLinkControlTagWriter.cpp
Go to the documentation of this file.
28 const GeoDataNetworkLinkControl *networkLinkControl = static_cast<const GeoDataNetworkLinkControl*>( node );
31 writer.writeOptionalElement( kml::kmlTag_minRefreshPeriod, QString::number( networkLinkControl->minRefreshPeriod() ), "1" );
32 writer.writeOptionalElement( kml::kmlTag_maxSessionLength, QString::number( networkLinkControl->maxSessionLength() ), "2" );
36 writer.writeOptionalElement( kml::kmlTag_linkDescription, networkLinkControl->linkDescription() );
47 writer.writeOptionalElement( kml::kmlTag_expires, networkLinkControl->expires().toString( Qt::ISODate ) );
QString toString(Qt::DateFormat format) const
void writeOptionalElement(const QString &key, const QString &value, const QString &defaultValue=QString())
Convenience method to write value if value is not equal to defaultValue.
Definition: GeoWriter.cpp:98
qreal minRefreshPeriod() const
Definition: GeoDataNetworkLinkControl.cpp:152
const char * kmlTag_linkSnippet
Definition: KmlElementDictionary.cpp:105
A shared base class for all classes that are mapped to a specific tag (ie.
Definition: GeoDocument.h:60
const char * kmlTag_minRefreshPeriod
Definition: KmlElementDictionary.cpp:123
int maxLines() const
Definition: GeoDataNetworkLinkControl.cpp:222
QString linkSnippet() const
Definition: GeoDataNetworkLinkControl.cpp:212
QString linkDescription() const
Definition: GeoDataNetworkLinkControl.cpp:202
virtual bool write(const GeoNode *node, GeoWriter &writer) const
Definition: KmlNetworkLinkControlTagWriter.cpp:26
QString linkName() const
Definition: GeoDataNetworkLinkControl.cpp:192
GeoDataUpdate & update()
Definition: GeoDataNetworkLinkControl.cpp:242
QString cookie() const
Definition: GeoDataNetworkLinkControl.cpp:172
QString number(int n, int base)
QDateTime expires() const
Definition: GeoDataNetworkLinkControl.cpp:232
QString message() const
Definition: GeoDataNetworkLinkControl.cpp:182
const char * kmlTag_maxSessionLength
Definition: KmlElementDictionary.cpp:116
const char * kmlTag_NetworkLinkControl
Definition: KmlElementDictionary.cpp:129
Standard Marble way of writing XML This class is intended to be a standardised way of writing XML for...
Definition: GeoWriter.h:29
QPair< QString, QString > QualifiedName
Object Name and Namespace Pair This type is intended to be used in a similar way to.
Definition: GeoTagWriter.h:48
const char * kmlTag_nameSpaceOgc22
Definition: KmlElementDictionary.cpp:34
bool writeElement(const GeoNode *object, GeoWriter &writer) const
Definition: GeoTagWriter.cpp:29
void writeAttribute(const QString &qualifiedName, const QString &value)
const char * kmlTag_linkDescription
Definition: KmlElementDictionary.cpp:103
static GeoTagWriterRegistrar s_writerNetworkLinkControl(GeoTagWriter::QualifiedName(GeoDataTypes::GeoDataNetworkLinkControlType, kml::kmlTag_nameSpaceOgc22), new KmlNetworkLinkControlTagWriter)
const char * GeoDataNetworkLinkControlType
Definition: GeoDataTypes.cpp:94
qreal maxSessionLength() const
Definition: GeoDataNetworkLinkControl.cpp:162
void writeCharacters(const QString &text)
void writeEndElement()
void writeStartElement(const QString &qualifiedName)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:40 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:40 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.