File indexing completed on 2024-05-12 03:50:18

0001 // SPDX-License-Identifier: LGPL-2.1-or-later
0002 //
0003 // SPDX-FileCopyrightText: 2013 Levente Kurusa <levex@linux.com>
0004 //
0005 
0006 #include "GeoDataSnippet.h"
0007 
0008 namespace Marble
0009 {
0010 
0011 GeoDataSnippet::GeoDataSnippet(const QString &text , int maxLines ) :
0012     m_text( text ),
0013     m_maxLines( maxLines )
0014 {
0015     // nothing to do
0016 }
0017 
0018 bool GeoDataSnippet::operator==( const GeoDataSnippet &other ) const
0019 {
0020     return m_text == other.m_text && m_maxLines == other.m_maxLines;
0021 }
0022 
0023 bool GeoDataSnippet::operator!=( const GeoDataSnippet &other ) const
0024 {
0025     return !this->operator==( other );
0026 }
0027 
0028 int GeoDataSnippet::maxLines() const
0029 {
0030     return m_maxLines;
0031 }
0032 
0033 void GeoDataSnippet::setMaxLines( int lines )
0034 {
0035     m_maxLines = lines;
0036 }
0037 
0038 QString GeoDataSnippet::text() const
0039 {
0040     return m_text;
0041 }
0042 
0043 void GeoDataSnippet::setText( const QString &text )
0044 {
0045     m_text = text;
0046 }
0047 
0048 }
0049