marble
RoutingProfilesModel.cpp
Go to the documentation of this file.
19 RoutingProfilesModel::RoutingProfilesModel( const PluginManager* pluginManager, QObject *parent )
99 bool RoutingProfilesModel::setProfilePluginSettings( int row, const QHash< QString, QHash< QString, QVariant > >& pluginSettings )
128 beginInsertRows( QModelIndex(), m_profiles.count(), m_profiles.count() + int( LastTemplate ) - 1 );
virtual QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const
Definition: RoutingProfilesModel.cpp:24
QList< RoutingProfile > profiles() const
Definition: RoutingProfilesModel.cpp:60
QString templateName(RoutingProfilesModel::ProfileTemplate profileTemplate)
Definition: RoutingProfilesModel.cpp:107
bool beginMoveRows(const QModelIndex &sourceParent, int sourceFirst, int sourceLast, const QModelIndex &destinationParent, int destinationChild)
virtual QHash< QString, QVariant > templateSettings(RoutingProfilesModel::ProfileTemplate profileTemplate) const
Settings for the given routing profile template.
Definition: RoutingRunnerPlugin.cpp:91
Definition: RoutingProfile.h:24
void setProfiles(const QList< RoutingProfile > &profiles)
Definition: RoutingProfilesModel.cpp:53
QString tr(const char *sourceText, const char *disambiguation, int n)
QList< RoutingRunnerPlugin * > routingRunnerPlugins() const
Returns all routing runner plugins.
Definition: PluginManager.cpp:123
void beginResetModel()
const char * name() const
bool isValid() const
bool setProfilePluginSettings(int row, const QHash< QString, QHash< QString, QVariant > > &pluginSettings)
Definition: RoutingProfilesModel.cpp:99
void dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight)
void endInsertRows()
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const
void setTransportType(TransportType transportType)
Definition: RoutingProfile.cpp:43
void beginRemoveRows(const QModelIndex &parent, int first, int last)
int row() const
void endMoveRows()
QModelIndex parent() const
virtual int rowCount(const QModelIndex &parent=QModelIndex()) const
Definition: RoutingProfilesModel.cpp:35
virtual QString nameId() const =0
Returns the unique name of the plugin.
virtual bool supportsTemplate(RoutingProfilesModel::ProfileTemplate profileTemplate) const
True if the plugin supports the given routing profile template.
Definition: RoutingRunnerPlugin.cpp:86
void loadDefaultProfiles()
Definition: RoutingProfilesModel.cpp:126
bool setProfileName(int row, const QString &name)
Definition: RoutingProfilesModel.cpp:90
void beginInsertRows(const QModelIndex &parent, int first, int last)
const QHash< QString, QHash< QString, QVariant > > & pluginSettings() const
Definition: RoutingProfile.cpp:33
A plugin for Marble to execute a routing task.
Definition: RoutingRunnerPlugin.h:33
int column() const
virtual bool removeRows(int row, int count, const QModelIndex &parent=QModelIndex())
Definition: RoutingProfilesModel.cpp:41
void endRemoveRows()
void addProfile(const QString &name)
Definition: RoutingProfilesModel.cpp:65
RoutingProfilesModel(const PluginManager *pluginManager, QObject *parent=0)
Definition: RoutingProfilesModel.cpp:19
void endResetModel()
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:41 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:41 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.