Revision 0312f6c...

Go back to digest for 10th June 2012

Other in Utilities

Friedrich Karl Tilman Pülz committed changes in [publictransport/QtScriptAndThreadWeaver] /:

Rename all occurances of "accessor" to "(service) provider (plugin)"

- I think the new names are much better and easier to understand
- Rename everywhere: Class names and it's file names, variables,
functions, comments, documentation, path names
- Also rename variables named "info" or "accessorInfo" to "data"
or "providerData"
- Rename "/engine/accessorInfos" to "/engine/serviceProviders",
also rename the installation directory for provider plugins
to serviceProviders
- To have the path in one place it can now be retrieved from
ServiceProvider::installationSubDirectory()
- Retrieve provider plugin file patterns/extensions using
ServiceProvider::filePatterns() / fileExtensions(),
these functions use the mime type to get patterns/extensions
- Add support for the new mime type
"application/x-publictransport-serviceprovider", ie. let the engine
search plugin files with all patterns of the mime type
TODO: Move engine/timetablemate/timetablemate.xml to
engine/serviceproviderplugin.xml
- Rename the log file from "accessors.log" to "serviceproviders.log"
- Rename TimetableAccessor to ServiceProvider and
TimetableAccessorScript to ServiceProviderScript
- Rename TimetableAccessorInfo to ServiceProviderData
- Rename AccessorInfoTester to ServiceProviderDataTester
- Rename AccessorInfoXmlWriter/Reader to
ServiceProviderDataWriter/Reader
- Rename AccessorInfoDialog to ServiceProviderDataDialog
- Rename fields in TimetableMateHelper:
"filenameAccessor" to "filenameProvider" and
"contentsAccessor" to "contentsProvider"
- Update Provider XML format: The root tag is now called
<serviceProvider> instead of <accessorInfo>
- Some provider scripts are also updated to the new script API

File Changes

Added 7 files
  • /serviceProviders
  •   engine/CMakeLists.txt
  •   engine/de_dvb.xml
  •   engine/de_nasa.xml
  •   engine/de_vvs.xml
  •   engine/dk_rejseplanen.js
  •   engine/dk_rejseplanen.xml
  •   engine/sk_imhd.xml
Deleted 8 files
  • /accessorInfos
  •   engine/.directory
  •   engine/CMakeLists.txt
  •   engine/de_dvb.xml
  •   engine/de_nasa.xml
  •   engine/de_vvs.xml
  •   engine/dk_rejseplanen.js
  •   engine/dk_rejseplanen.xml
  •   engine/sk_imhd.xml
Modified 70 files
  •   applet/departuremodel.cpp
  •   applet/publictransport.cpp
  •   applet/publictransport.h
  •   applet/settingsio.cpp
  •   applet/settingsui.cpp
  •   applet/settingsui.h
  •   engine-openstreetmap/osmreader.h
  •   engine/CMakeLists.txt
  •   engine/enums.h
  •   engine/publictransportdataengine.cpp
  •   engine/publictransportdataengine.h
  •   engine/request.cpp
  •   engine/request.h
  •   engine/script_thread.cpp
  •   engine/script_thread.h
  •   engine/scripting.cpp
  •   engine/scripting.h
  •   icons/CMakeLists.txt
  •   libpublictransporthelper/CMakeLists.txt
  •   libpublictransporthelper/locationmodel.cpp
  •   libpublictransporthelper/locationmodel.h
  •   libpublictransporthelper/serviceprovidermodel.cpp
  •   libpublictransporthelper/stopsettingsdialog.cpp
  •   libpublictransporthelper/stopsettingsdialog.h
  •   libpublictransporthelper/stopwidget.cpp
  •   libpublictransporthelper/stopwidget.h
  •   engine/tests/DeparturesTest.cpp
  •   engine/tests/LocationsTest.cpp
  •   engine/tests/StopSuggestionsTest.cpp
  •   libpublictransporthelper/tests/PublicTransportHelperTest.cpp
  •   libpublictransporthelper/tests/PublicTransportHelperTest.h
  •   runner/config/publictransportrunner_config.cpp
  •   engine/timetablemate/src/changelogwidget.cpp
  •   engine/timetablemate/src/changelogwidget.h
  •   engine/timetablemate/src/CMakeLists.txt
  •   engine/timetablemate/src/javascriptcompletionmodel.cpp
  •   engine/timetablemate/src/networkmonitormodel.cpp
  •   engine/timetablemate/src/project.cpp
  •   engine/timetablemate/src/project.h
  •   engine/timetablemate/src/projectmodel.cpp
  •   engine/timetablemate/src/projectmodel.h
  •   engine/timetablemate/src/projectsettingsdialog.cpp
  •   engine/timetablemate/src/projectsettingsdialog.h
  •   engine/timetablemate/src/testmodel.cpp
  •   engine/timetablemate/src/testmodel.h
  •   engine/timetablemate/src/timetablemate.cpp
  •   engine/timetablemate/src/timetablemate.h
  •   engine/timetablemate/src/timetablematehelper.cpp
  •   engine/timetablemate/templates/template.js
  •   engine/timetablemate/templates/template.xml
  •   engine/timetablemate/src/debugger/debugger.cpp
  •   engine/timetablemate/src/debugger/debugger.h
  •   engine/timetablemate/src/debugger/debuggeragent.cpp
  •   engine/timetablemate/src/debugger/debuggerjobs.cpp
  •   engine/timetablemate/src/debugger/debuggerjobs.h
  •   engine/timetablemate/src/debugger/timetabledatarequestjob.cpp
  •   engine/timetablemate/src/debugger/timetabledatarequestjob.h
  •   engine/timetablemate/src/debugger/variablemodel.cpp
  •   engine/timetablemate/src/docks/consoledockwidget.cpp
  •   engine/timetablemate/src/docks/projectsdockwidget.cpp
  •   engine/timetablemate/src/tabs/abstracttab.cpp
  •   engine/timetablemate/src/tabs/abstracttab.h
  •   engine/timetablemate/src/tabs/dashboard.qml
  •   engine/timetablemate/src/tabs/dashboardtab.cpp
  •   engine/timetablemate/src/tabs/plasmapreview.cpp
  •   engine/timetablemate/src/tabs/plasmapreviewtab.cpp
  •   engine/timetablemate/src/tabs/projectsourcetab.cpp
  •   engine/timetablemate/src/tabs/projectsourcetab.h
  •   engine/timetablemate/src/tabs/scripttab.cpp
  •   engine/timetablemate/src/tabs/webtab.cpp
85 files changed in total