Marble
6#ifndef MARBLE_ROUTINGPROFILESMODEL_H
7#define MARBLE_ROUTINGPROFILESMODEL_H
9#include "RoutingProfile.h"
10#include "marble_export.h"
12#include <QAbstractListModel>
19class MARBLE_EXPORT RoutingProfilesModel :
public QAbstractListModel
23 explicit RoutingProfilesModel(
const PluginManager *pluginManager, QObject *parent =
nullptr);
25 QVariant data(
const QModelIndex &index,
int role =
Qt::DisplayRole)
const override;
26 int rowCount(
const QModelIndex &parent = QModelIndex())
const override;
27 bool removeRows(
int row,
int count,
const QModelIndex &parent = QModelIndex())
override;
29 enum ProfileTemplate {
32 CarEcologicalTemplate,
39 void setProfiles(
const QList<RoutingProfile> &profiles);
40 QList<RoutingProfile> profiles()
const;
42 void loadDefaultProfiles();
44 void addProfile(
const QString &name);
46 bool moveDown(
int row);
48 bool setProfileName(
int row,
const QString &name);
49 bool setProfilePluginSettings(
int row,
const QHash<QString, QHash<QString, QVariant>> &pluginSettings);
52 QList<RoutingProfile> m_profiles;
53 const PluginManager *m_pluginManager;
The class that handles Marble's plugins.
Binds a QML item to a specific geodetic location in screen coordinates.
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:52:10 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.