• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

marble

  • Marble
  • RoutingProfilesModel
Public Types | Public Member Functions | List of all members
Marble::RoutingProfilesModel Class Reference

#include <RoutingProfilesModel.h>

Inherits QAbstractListModel.

Public Types

enum  ProfileTemplate {
  CarFastestTemplate, CarShortestTemplate, CarEcologicalTemplate, BicycleTemplate,
  PedestrianTemplate, LastTemplate
}
 

Public Member Functions

 RoutingProfilesModel (const PluginManager *pluginManager, QObject *parent=0)
 
void addProfile (const QString &name)
 
virtual QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const
 
void loadDefaultProfiles ()
 
bool moveDown (int row)
 
bool moveUp (int row)
 
QList< RoutingProfile > profiles () const
 
virtual bool removeRows (int row, int count, const QModelIndex &parent=QModelIndex())
 
virtual int rowCount (const QModelIndex &parent=QModelIndex()) const
 
bool setProfileName (int row, const QString &name)
 
bool setProfilePluginSettings (int row, const QHash< QString, QHash< QString, QVariant > > &pluginSettings)
 
void setProfiles (const QList< RoutingProfile > &profiles)
 

Detailed Description

Definition at line 25 of file RoutingProfilesModel.h.

Member Enumeration Documentation

enum Marble::RoutingProfilesModel::ProfileTemplate
Enumerator
CarFastestTemplate 
CarShortestTemplate 
CarEcologicalTemplate 
BicycleTemplate 
PedestrianTemplate 
LastTemplate 

Definition at line 35 of file RoutingProfilesModel.h.

Constructor & Destructor Documentation

Marble::RoutingProfilesModel::RoutingProfilesModel ( const PluginManager *  pluginManager,
QObject *  parent = 0 
)
explicit

Definition at line 19 of file RoutingProfilesModel.cpp.

Member Function Documentation

void Marble::RoutingProfilesModel::addProfile ( const QString &  name)

Definition at line 65 of file RoutingProfilesModel.cpp.

QVariant Marble::RoutingProfilesModel::data ( const QModelIndex &  index,
int  role = Qt::DisplayRole 
) const
virtual

Definition at line 24 of file RoutingProfilesModel.cpp.

void Marble::RoutingProfilesModel::loadDefaultProfiles ( )

Definition at line 126 of file RoutingProfilesModel.cpp.

bool Marble::RoutingProfilesModel::moveDown ( int  row)

Definition at line 85 of file RoutingProfilesModel.cpp.

bool Marble::RoutingProfilesModel::moveUp ( int  row)

Definition at line 72 of file RoutingProfilesModel.cpp.

QList< RoutingProfile > Marble::RoutingProfilesModel::profiles ( ) const

Definition at line 60 of file RoutingProfilesModel.cpp.

bool Marble::RoutingProfilesModel::removeRows ( int  row,
int  count,
const QModelIndex &  parent = QModelIndex() 
)
virtual

Definition at line 41 of file RoutingProfilesModel.cpp.

int Marble::RoutingProfilesModel::rowCount ( const QModelIndex &  parent = QModelIndex()) const
virtual

Definition at line 35 of file RoutingProfilesModel.cpp.

bool Marble::RoutingProfilesModel::setProfileName ( int  row,
const QString &  name 
)

Definition at line 90 of file RoutingProfilesModel.cpp.

bool Marble::RoutingProfilesModel::setProfilePluginSettings ( int  row,
const QHash< QString, QHash< QString, QVariant > > &  pluginSettings 
)

Definition at line 99 of file RoutingProfilesModel.cpp.

void Marble::RoutingProfilesModel::setProfiles ( const QList< RoutingProfile > &  profiles)

Definition at line 53 of file RoutingProfilesModel.cpp.


The documentation for this class was generated from the following files:
  • RoutingProfilesModel.h
  • RoutingProfilesModel.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:57 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

marble

Skip menu "marble"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal