File indexing completed on 2024-07-14 10:58:48

0001 // SPDX-License-Identifier: LGPL-2.1-or-later
0002 //
0003 // SPDX-FileCopyrightText: 2010 Dennis Nienhüser <nienhueser@kde.org>
0004 //
0005 
0006 #include "TravelingSalesmanPlugin.h"
0007 #include "TravelingSalesmanRunner.h"
0008 
0009 namespace Marble
0010 {
0011 
0012 TravelingSalesmanPlugin::TravelingSalesmanPlugin( QObject *parent ) : RunnerPlugin( parent )
0013 {
0014     setCapabilities( Routing );
0015     setSupportedCelestialBodies(QStringList(QStringLiteral("earth")));
0016     setCanWorkOffline( true );
0017     setName( tr( "Traveling Salesman" ) );
0018     setNameId( "travelingsalesman" );
0019     setDescription( tr( "Retrieves routes from traveling salesman" ) );
0020     setGuiString( tr( "Traveling Salesman Routing" ) );
0021 }
0022 
0023 MarbleAbstractRunner* TravelingSalesmanPlugin::newRunner() const
0024 {
0025     return new TravelingSalesmanRunner;
0026 }
0027 
0028 }
0029 
0030 #include "moc_TravelingSalesmanPlugin.cpp"