KDE 4.9 PyKDE API Reference
  • KDE's Python API
  • Overview
  • PyKDE Home
  • Sitemap
  • Contact Us
 

MarbleAbstractRunner Class Reference

from PyKDE4.marble import *

Inherits: QObject
Namespace: Marble

Detailed Description

This class is the base class for all Marble Runners.


Signals

 parsingFinished (Marble.GeoDataDocument document, QString error=QString())
 reverseGeocodingFinished (Marble.GeoDataCoordinates coordinates, Marble.GeoDataPlacemark placemark)
 routeCalculated (Marble.GeoDataDocument route)

Methods

 __init__ (self, QObject parent=0)
Marble.GeoDataFeature.GeoDataVisualCategory category (self)
Marble.MarbleModel model (self)
 parseFile (self, QString fileName, Marble.DocumentRole role)
 retrieveRoute (self, Marble.RouteRequest request)
 reverseGeocoding (self, Marble.GeoDataCoordinates coordinates)
 search (self, QString searchTerm, Marble.GeoDataLatLonAltBox preferred)
 setModel (self, Marble.MarbleModel model)

Signal Documentation

parsingFinished ( Marble.GeoDataDocument  document,
QString  error=QString()
)

File parsing is finished, result in the given document object. The signal should be emitted with null document and error description in case of fault. To be emitted by runners after a

See also:
parseFile call.

Signal syntax:
QObject.connect(source, SIGNAL("parsingFinished(Marble::GeoDataDocument*, const QString&)"), target_slot)
reverseGeocodingFinished ( Marble.GeoDataCoordinates  coordinates,
Marble.GeoDataPlacemark  placemark
)

Reverse geocoding is finished, result in the given placemark. To be emitted by runners after a

See also:
reverseGeocoding call.

Signal syntax:
QObject.connect(source, SIGNAL("reverseGeocodingFinished(const Marble::GeoDataCoordinates&, const Marble::GeoDataPlacemark&)"), target_slot)
routeCalculated ( Marble.GeoDataDocument  route
)

Route download/calculation is finished, result in the given route object. To be emitted by runners after a

See also:
retrieveRoute call.

Signal syntax:
QObject.connect(source, SIGNAL("routeCalculated(Marble::GeoDataDocument*)"), target_slot)

Method Documentation

__init__ (  self,
QObject  parent=0
)

Constructor; note that parent should be 0 in order to move the thread object into its own thread.

Marble.GeoDataFeature.GeoDataVisualCategory category (   self )

This function gives the icon for this runner

Returns:
the icon of the runner

Marble.MarbleModel model (   self )

Access to the currently used map, or null if no was set with

See also:
setMap

parseFile (  self,
QString  fileName,
Marble.DocumentRole  role
)

Start a file parsing. Called by MarbleRunnerManager, runners are expected to return the result via the parsingFinished signal. If implemented in a plugin, make sure to include Parsing in the plugin capabilities, otherwise MarbleRunnerManager will ignore the plugin

retrieveRoute (  self,
Marble.RouteRequest  request
)

Start a route download or calculation. Called by MarbleRunnerManager, runners are expected to return the result via the routeCalculated signal. If implemented in a plugin, make sure to include Routing in the plugin capabilities, otherwise MarbleRunnerManager will ignore the plugin

reverseGeocoding (  self,
Marble.GeoDataCoordinates  coordinates
)

Start a reverse geocoding request. Called by MarbleRunnerManager, runners are expected to return the result via the reverseGeocodingFinished signal. If implemented in a plugin, make sure to include ReverseGeocoding in the plugin capabilities, otherwise MarbleRunnerManager will ignore the plugin

search (  self,
QString  searchTerm,
Marble.GeoDataLatLonAltBox  preferred
)

Start a placemark search. Called by MarbleRunnerManager, runners are expected to return the result via the searchFinished signal. If implemented in a plugin, make sure to include Search in the plugin capabilities, otherwise MarbleRunnerManager will ignore the plugin

setModel (  self,
Marble.MarbleModel  model
)

Stores a pointer to the currently used map

  • Full Index

Modules

  • akonadi
  • dnssd
  • kdecore
  • kdeui
  • khtml
  • kio
  • knewstuff
  • kparts
  • kutils
  • nepomuk
  • phonon
  • plasma
  • polkitqt
  • solid
  • soprano
This documentation is maintained by Simon Edwards.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal