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 return QObject::tr("Unknown error");
23 }
24
25 return {};
26}
27
28} // 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 Mon Nov 4 2024 16:37:03 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.