/usr/include/marble/GeoDataSnippet.h is in libmarble-dev 4:17.12.3-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | //
// This file is part of the Marble Virtual Globe.
//
// This program is free software licensed under the GNU LGPL. You can
// find a copy of this license in LICENSE.txt in the top directory of
// the source code.
//
// Copyright 2013 Levente Kurusa <levex@linux.com>
//
#ifndef MARBLE_GEODATASNIPPET_H
#define MARBLE_GEODATASNIPPET_H
#include <QString>
#include "geodata_export.h"
namespace Marble
{
class GEODATA_EXPORT GeoDataSnippet
{
public:
/**
* Create a new snippet with the given @text text and @maxLines maximum of lines.
*/
explicit GeoDataSnippet( const QString &text = QString() , int maxLines = 0 );
/**
* Check for equality/inequality between two GeoDataSnippets.
*/
bool operator==( const GeoDataSnippet &other ) const;
bool operator!=( const GeoDataSnippet &other ) const;
/**
* Return the number of lines that should be displayed at maximum. The value
* 0 (default) means "all"
*/
int maxLines() const;
/**
* Set the number of lines displayed at maximum.
*/
void setMaxLines( int lines );
/**
* Returns the text that is associated with this snippet.
*/
QString text() const;
/**
* Set the text that the snippet will display.
*/
void setText( const QString &text );
private:
QString m_text; // Text of the snippet
int m_maxLines; // max of lines that are displayed
};
}
#endif
|