Marble

PositionProviderPluginInterface.cpp
1// SPDX-License-Identifier: LGPL-2.1-or-later
2//
3// SPDX-FileCopyrightText: 2009 Eckhart W├Ârner <ewoerner@kde.org>
4//
5
6#include "PositionProviderPluginInterface.h"
7
8namespace Marble
9{
10
11PositionProviderPluginInterface::~PositionProviderPluginInterface()
12{
13 // nothing to do
14}
15
17{
18 // Subclasses are expected to override this, but we provide
19 // a default implementation
20
21 if ( status() == PositionProviderStatusError )
22 {
23 return QObject::tr( "Unknown error" );
24 }
25
26 return QString();
27}
28
29} // namespace Marble
virtual QString error() const
Returns an error string to be presented to the user if the status is PositionProviderStatusError.
Binds a QML item to a specific geodetic location in screen coordinates.
QString tr(const char *sourceText, const char *disambiguation, int n)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Jul 12 2024 11:58:56 by doxygen 1.11.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.