Marble

PositionProviderPluginInterface.cpp
1 // SPDX-License-Identifier: LGPL-2.1-or-later
2 //
3 // SPDX-FileCopyrightText: 2009 Eckhart Wörner <[email protected]>
4 //
5 
6 #include "PositionProviderPluginInterface.h"
7 
8 namespace Marble
9 {
10 
11 PositionProviderPluginInterface::~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-2023 The KDE developers.
Generated on Mon May 8 2023 03:53:22 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.