Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sbb parser #15

Merged
merged 3 commits into from
Jun 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 24 additions & 21 deletions fahrplan2.pro
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
APP_NAME = Fahrplan

# Define Version
VERSION = 2.0.40-1
VERSION = 2.0.41-1

#CONFIG+= openrepos

Expand Down Expand Up @@ -102,26 +102,21 @@ INCLUDEPATH += src
unix:!symbian: LIBS += -lz

HEADERS += \
src/parser/parser_hafasxml.h \
src/parser/parser_abstract.h \
src/parser/parser_definitions.h \
src/parser/parser_xmlrejseplanendk.h \
src/parser/parser_xmloebbat.h \
src/parser/parser_xmlvasttrafikse.h \
src/fahrplan.h \
src/fahrplan_backend_manager.h \
src/parser/parser_mobilebahnde.h \
src/calendarthreadwrapper.h \
src/calendar_sfos_wrapper.h \
src/parser/parser_xmlnri.h \
src/parser/parser_hafasbinary.h \
src/fahrplan_parser_thread.h \
src/fahrplan_calendar_manager.h \
src/models/backends.h \
src/models/stationslistmodel.h \
src/models/favorites.h \
src/models/stationsearchresults.h \
src/models/timetable.h \
src/models/trainrestrictions.h \
src/parser/parser_xmlnri.h \
src/parser/parser_hafasbinary.h \
src/parser/parser_mobilebahnde.h \
src/parser/parser_ptvvicgovau.h \
src/parser/parser_efa.h \
src/parser/parser_ireland_efa.h \
Expand All @@ -132,29 +127,30 @@ HEADERS += \
src/parser/parser_resrobot.h \
src/parser/parser_finland_matka.h \
src/parser/parser_vrr_efa.h \
src/models/backends.h
src/parser/parser_hafasxml.h \
src/parser/parser_abstract.h \
src/parser/parser_definitions.h \
src/parser/parser_xmlrejseplanendk.h \
src/parser/parser_xmloebbat.h \
src/parser/parser_xmlvasttrafikse.h \
src/parser/parser_search_ch.h

SOURCES += src/main.cpp \
src/parser/parser_hafasxml.cpp \
src/parser/parser_abstract.cpp \
src/parser/parser_definitions.cpp \
src/parser/parser_xmlrejseplanendk.cpp \
src/parser/parser_xmloebbat.cpp \
src/parser/parser_xmlvasttrafikse.cpp \
src/fahrplan.cpp \
src/fahrplan_backend_manager.cpp \
src/parser/parser_mobilebahnde.cpp \
src/calendarthreadwrapper.cpp \
src/calendar_sfos_wrapper.cpp \
src/parser/parser_xmlnri.cpp \
src/parser/parser_hafasbinary.cpp \
src/fahrplan_parser_thread.cpp \
src/fahrplan_calendar_manager.cpp \
src/models/backends.cpp \
src/models/stationslistmodel.cpp \
src/models/favorites.cpp \
src/models/stationsearchresults.cpp \
src/models/timetable.cpp \
src/models/trainrestrictions.cpp \
src/parser/parser_mobilebahnde.cpp \
src/parser/parser_xmlnri.cpp \
src/parser/parser_hafasbinary.cpp \
src/parser/parser_ptvvicgovau.cpp \
src/parser/parser_efa.cpp \
src/parser/parser_ireland_efa.cpp \
Expand All @@ -165,7 +161,14 @@ SOURCES += src/main.cpp \
src/parser/parser_resrobot.cpp \
src/parser/parser_finland_matka.cpp \
src/parser/parser_vrr_efa.cpp \
src/models/backends.cpp
src/parser/parser_hafasxml.cpp \
src/parser/parser_abstract.cpp \
src/parser/parser_definitions.cpp \
src/parser/parser_xmlrejseplanendk.cpp \
src/parser/parser_xmloebbat.cpp \
src/parser/parser_xmlvasttrafikse.cpp \
src/parser/parser_search_ch.cpp


LIBS += $$PWD/3rdparty/gauss-kruger-cpp/gausskruger.cpp

Expand Down
2 changes: 1 addition & 1 deletion rpm/harbour-fahrplan2.spec
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Name: harbour-fahrplan2
%{!?qtc_make:%define qtc_make make}
%{?qtc_builddir:%define _builddir %qtc_builddir}
Summary: Public transportation application
Version: 2.0.40
Version: 2.0.41
Release: 1
Group: Location/Location Adaptation
License: GPLv2
Expand Down
1 change: 1 addition & 0 deletions src/fahrplan_backend_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ QStringList FahrplanBackendManager::getParserList()
result.append(ParserResRobot::getName());
result.append(ParserFinlandMatka::getName());
result.append(ParserVRREFA::getName());
result.append(ParserSearchCH::getName());

// Make sure the index is in bounds
if (currentParserIndex > (result.count() - 1) || currentParserIndex < 0) {
Expand Down
3 changes: 3 additions & 0 deletions src/fahrplan_parser_thread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,9 @@ void FahrplanParserThread::run()
case 13:
m_parser = new ParserVRREFA();
break;
case 14:
m_parser = new ParserSearchCH();
break;
}

m_name = m_parser->name();
Expand Down
1 change: 1 addition & 0 deletions src/fahrplan_parser_thread.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
#include "parser/parser_resrobot.h"
#include "parser/parser_finland_matka.h"
#include "parser/parser_vrr_efa.h"
#include "parser/parser_search_ch.h"

class FahrplanParserThread : public QThread
{
Expand Down
Loading