commit 9705e5a8842b1d41acdfdca925a58c1b630f40ca Author: Thomas Schwery Date: Sat Feb 10 12:44:06 2024 +0100 feat: Import project as 2014-03-16 diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..8098c44 --- /dev/null +++ b/Makefile @@ -0,0 +1,804 @@ +############################################################################# +# Makefile for building: SwissTrains +# Generated by qmake (3.0) (Qt 5.1.0) on: Sun Jan 5 12:53:56 2014 +# Project: SwissTrains.pro +# Template: app +# Command: /usr/lib/qt5/bin/qmake QMAKE_CFLAGS_RELEASE=-O2\ -g\ -pipe\ -Wall\ -Wp,-D_FORTIFY_SOURCE=2\ -fexceptions\ -fstack-protector\ --param=ssp-buffer-size=4\ -Wformat\ -Wformat-security\ -m32\ -march=core2\ -mssse3\ \ -mtune=atom\ -mfpmath=sse\ -fasynchronous-unwind-tables\ -fno-omit-frame-pointer QMAKE_CFLAGS_DEBUG=-O2\ -g\ -pipe\ -Wall\ -Wp,-D_FORTIFY_SOURCE=2\ -fexceptions\ -fstack-protector\ --param=ssp-buffer-size=4\ -Wformat\ -Wformat-security\ -m32\ -march=core2\ -mssse3\ \ -mtune=atom\ -mfpmath=sse\ -fasynchronous-unwind-tables\ -fno-omit-frame-pointer QMAKE_CXXFLAGS_RELEASE=-O2\ -g\ -pipe\ -Wall\ -Wp,-D_FORTIFY_SOURCE=2\ -fexceptions\ -fstack-protector\ --param=ssp-buffer-size=4\ -Wformat\ -Wformat-security\ -m32\ -march=core2\ -mssse3\ \ -mtune=atom\ -mfpmath=sse\ -fasynchronous-unwind-tables\ -fno-omit-frame-pointer QMAKE_CXXFLAGS_DEBUG=-O2\ -g\ -pipe\ -Wall\ -Wp,-D_FORTIFY_SOURCE=2\ -fexceptions\ -fstack-protector\ --param=ssp-buffer-size=4\ -Wformat\ -Wformat-security\ -m32\ -march=core2\ -mssse3\ \ -mtune=atom\ -mfpmath=sse\ -fasynchronous-unwind-tables\ -fno-omit-frame-pointer QMAKE_STRIP=: PREFIX=/usr -spec linux-g++-32 CONFIG+=debug CONFIG+=declarative_debug CONFIG+=qml_debug -after OBJECTS_DIR=obj MOC_DIR=moc UI_DIR=ui RCC_DIR=rcc -o Makefile SwissTrains.pro +############################################################################# + +MAKEFILE = Makefile + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +DEFINES = -DQT_QML_DEBUG -DQT_DECLARATIVE_DEBUG -DQT_QUICK_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB +CFLAGS = -m32 -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -m32 -march=core2 -mssse3 -mtune=atom -mfpmath=sse -fasynchronous-unwind-tables -fno-omit-frame-pointer -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -D_REENTRANT -fPIE $(DEFINES) +CXXFLAGS = -m32 -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -m32 -march=core2 -mssse3 -mtune=atom -mfpmath=sse -fasynchronous-unwind-tables -fno-omit-frame-pointer -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -D_REENTRANT -fPIE $(DEFINES) +INCPATH = -I/usr/share/qt5/mkspecs/linux-g++-32 -I. -I/usr/include/sailfishapp -I/usr/include/mdeclarativecache5 -I/usr/include/qt5 -I/usr/include/qt5/QtQuick -I/usr/include/qt5/QtQml -I/usr/include/qt5/QtNetwork -I/usr/include/qt5/QtGui -I/usr/include/qt5/QtCore -Imoc +LINK = g++ +LFLAGS = -m32 +LIBS = $(SUBLIBS) -pie -rdynamic -L/usr/lib/ -lsailfishapp -lmdeclarativecache5 -lQt5Quick -lQt5Qml -lQt5Network -lQt5Gui -lQt5Core -lGLESv2 -lpthread +AR = ar cqs +RANLIB = +QMAKE = /usr/lib/qt5/bin/qmake +TAR = tar -cf +COMPRESS = gzip -9f +COPY = cp -f +SED = sed +COPY_FILE = cp -f +COPY_DIR = cp -f -R +STRIP = : +INSTALL_FILE = install -m 644 -p +INSTALL_DIR = $(COPY_DIR) +INSTALL_PROGRAM = install -m 755 -p +DEL_FILE = rm -f +SYMLINK = ln -f -s +DEL_DIR = rmdir +MOVE = mv -f +CHK_DIR_EXISTS= test -d +MKDIR = mkdir -p + +####### Output directory + +OBJECTS_DIR = obj/ + +####### Files + +SOURCES = src/SwissTrains.cpp +OBJECTS = obj/SwissTrains.o +DIST = /usr/share/qt5/mkspecs/features/spec_pre.prf \ + /usr/share/qt5/mkspecs/common/shell-unix.conf \ + /usr/share/qt5/mkspecs/common/unix.conf \ + /usr/share/qt5/mkspecs/common/linux.conf \ + /usr/share/qt5/mkspecs/common/gcc-base.conf \ + /usr/share/qt5/mkspecs/common/gcc-base-unix.conf \ + /usr/share/qt5/mkspecs/common/g++-base.conf \ + /usr/share/qt5/mkspecs/common/g++-unix.conf \ + /usr/share/qt5/mkspecs/qconfig.pri \ + /usr/share/qt5/mkspecs/modules/qt_lib_bluetooth.pri \ + /usr/share/qt5/mkspecs/modules/qt_lib_compositor.pri \ + /usr/share/qt5/mkspecs/modules/qt_lib_concurrent.pri \ + /usr/share/qt5/mkspecs/modules/qt_lib_contacts.pri \ + /usr/share/qt5/mkspecs/modules/qt_lib_core.pri \ + /usr/share/qt5/mkspecs/modules/qt_lib_dbus.pri \ + /usr/share/qt5/mkspecs/modules/qt_lib_declarative.pri \ + /usr/share/qt5/mkspecs/modules/qt_lib_docgallery.pri \ + /usr/share/qt5/mkspecs/modules/qt_lib_feedback.pri \ + /usr/share/qt5/mkspecs/modules/qt_lib_gui.pri \ + /usr/share/qt5/mkspecs/modules/qt_lib_location.pri \ + /usr/share/qt5/mkspecs/modules/qt_lib_multimedia.pri \ + /usr/share/qt5/mkspecs/modules/qt_lib_multimediawidgets.pri \ + /usr/share/qt5/mkspecs/modules/qt_lib_network.pri \ + /usr/share/qt5/mkspecs/modules/qt_lib_opengl.pri \ + /usr/share/qt5/mkspecs/modules/qt_lib_openglextensions.pri \ + /usr/share/qt5/mkspecs/modules/qt_lib_organizer.pri \ + /usr/share/qt5/mkspecs/modules/qt_lib_platformsupport.pri \ + /usr/share/qt5/mkspecs/modules/qt_lib_positioning.pri \ + /usr/share/qt5/mkspecs/modules/qt_lib_publishsubscribe.pri \ + /usr/share/qt5/mkspecs/modules/qt_lib_qml.pri \ + /usr/share/qt5/mkspecs/modules/qt_lib_qtmultimediaquicktools.pri \ + /usr/share/qt5/mkspecs/modules/qt_lib_quick.pri \ + /usr/share/qt5/mkspecs/modules/qt_lib_quickparticles.pri \ + /usr/share/qt5/mkspecs/modules/qt_lib_script.pri \ + /usr/share/qt5/mkspecs/modules/qt_lib_scripttools.pri \ + /usr/share/qt5/mkspecs/modules/qt_lib_sensors.pri \ + /usr/share/qt5/mkspecs/modules/qt_lib_serviceframework.pri \ + /usr/share/qt5/mkspecs/modules/qt_lib_sql.pri \ + /usr/share/qt5/mkspecs/modules/qt_lib_svg.pri \ + /usr/share/qt5/mkspecs/modules/qt_lib_versit.pri \ + /usr/share/qt5/mkspecs/modules/qt_lib_versitorganizer.pri \ + /usr/share/qt5/mkspecs/modules/qt_lib_webkit.pri \ + /usr/share/qt5/mkspecs/modules/qt_lib_widgets.pri \ + /usr/share/qt5/mkspecs/modules/qt_lib_xml.pri \ + /usr/share/qt5/mkspecs/modules/qt_lib_xmlpatterns.pri \ + /usr/share/qt5/mkspecs/features/qt_functions.prf \ + /usr/share/qt5/mkspecs/features/qt_config.prf \ + /usr/share/qt5/mkspecs/linux-g++-32/qmake.conf \ + /usr/share/qt5/mkspecs/features/spec_post.prf \ + /usr/share/qt5/mkspecs/features/exclusive_builds.prf \ + /usr/share/qt5/mkspecs/features/default_pre.prf \ + /usr/share/qt5/mkspecs/features/unix/default_pre.prf \ + /usr/share/qt5/mkspecs/features/resolve_config.prf \ + /usr/share/qt5/mkspecs/features/default_post.prf \ + /usr/share/qt5/mkspecs/features/sailfishapp.prf \ + /usr/share/qt5/mkspecs/features/link_pkgconfig.prf \ + /usr/share/qt5/mkspecs/features/qml_debug.prf \ + /usr/share/qt5/mkspecs/features/declarative_debug.prf \ + /usr/share/qt5/mkspecs/features/unix/gdb_dwarf_index.prf \ + /usr/share/qt5/mkspecs/features/warn_on.prf \ + /usr/share/qt5/mkspecs/features/qt.prf \ + /usr/share/qt5/mkspecs/features/resources.prf \ + /usr/share/qt5/mkspecs/features/moc.prf \ + /usr/share/qt5/mkspecs/features/unix/opengl.prf \ + /usr/share/qt5/mkspecs/features/unix/thread.prf \ + /usr/share/qt5/mkspecs/features/wayland-scanner.prf \ + /usr/share/qt5/mkspecs/features/testcase_targets.prf \ + /usr/share/qt5/mkspecs/features/exceptions.prf \ + /usr/share/qt5/mkspecs/features/yacc.prf \ + /usr/share/qt5/mkspecs/features/lex.prf \ + SwissTrains.pro \ + SwissTrains.pro +QMAKE_TARGET = SwissTrains +DESTDIR = #avoid trailing-slash linebreak +TARGET = SwissTrains + + +first: all +####### Implicit rules + +.SUFFIXES: .o .c .cpp .cc .cxx .C + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o "$@" "$<" + +####### Build rules + +all: Makefile $(TARGET) + +$(TARGET): $(OBJECTS) + $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS) + { test -n "$(DESTDIR)" && DESTDIR="$(DESTDIR)" || DESTDIR=.; } && test $$(gdb --version | sed -e 's,[^0-9]\+\([0-9]\)\.\([0-9]\).*,\1\2,;q') -gt 72 && gdb --nx --batch --quiet -ex 'set confirm off' -ex "save gdb-index $$DESTDIR" -ex quit '$(TARGET)' && test -f $(TARGET).gdb-index && objcopy --add-section '.gdb_index=$(TARGET).gdb-index' --set-section-flags '.gdb_index=readonly' '$(TARGET)' '$(TARGET)' && rm -f $(TARGET).gdb-index || true + +Makefile: SwissTrains.pro /usr/share/qt5/mkspecs/linux-g++-32/qmake.conf /usr/share/qt5/mkspecs/features/spec_pre.prf \ + /usr/share/qt5/mkspecs/common/shell-unix.conf \ + /usr/share/qt5/mkspecs/common/unix.conf \ + /usr/share/qt5/mkspecs/common/linux.conf \ + /usr/share/qt5/mkspecs/common/gcc-base.conf \ + /usr/share/qt5/mkspecs/common/gcc-base-unix.conf \ + /usr/share/qt5/mkspecs/common/g++-base.conf \ + /usr/share/qt5/mkspecs/common/g++-unix.conf \ + /usr/share/qt5/mkspecs/qconfig.pri \ + /usr/share/qt5/mkspecs/modules/qt_lib_bluetooth.pri \ + /usr/share/qt5/mkspecs/modules/qt_lib_compositor.pri \ + /usr/share/qt5/mkspecs/modules/qt_lib_concurrent.pri \ + /usr/share/qt5/mkspecs/modules/qt_lib_contacts.pri \ + /usr/share/qt5/mkspecs/modules/qt_lib_core.pri \ + /usr/share/qt5/mkspecs/modules/qt_lib_dbus.pri \ + /usr/share/qt5/mkspecs/modules/qt_lib_declarative.pri \ + /usr/share/qt5/mkspecs/modules/qt_lib_docgallery.pri \ + /usr/share/qt5/mkspecs/modules/qt_lib_feedback.pri \ + /usr/share/qt5/mkspecs/modules/qt_lib_gui.pri \ + /usr/share/qt5/mkspecs/modules/qt_lib_location.pri \ + /usr/share/qt5/mkspecs/modules/qt_lib_multimedia.pri \ + /usr/share/qt5/mkspecs/modules/qt_lib_multimediawidgets.pri \ + /usr/share/qt5/mkspecs/modules/qt_lib_network.pri \ + /usr/share/qt5/mkspecs/modules/qt_lib_opengl.pri \ + /usr/share/qt5/mkspecs/modules/qt_lib_openglextensions.pri \ + /usr/share/qt5/mkspecs/modules/qt_lib_organizer.pri \ + /usr/share/qt5/mkspecs/modules/qt_lib_platformsupport.pri \ + /usr/share/qt5/mkspecs/modules/qt_lib_positioning.pri \ + /usr/share/qt5/mkspecs/modules/qt_lib_publishsubscribe.pri \ + /usr/share/qt5/mkspecs/modules/qt_lib_qml.pri \ + /usr/share/qt5/mkspecs/modules/qt_lib_qtmultimediaquicktools.pri \ + /usr/share/qt5/mkspecs/modules/qt_lib_quick.pri \ + /usr/share/qt5/mkspecs/modules/qt_lib_quickparticles.pri \ + /usr/share/qt5/mkspecs/modules/qt_lib_script.pri \ + /usr/share/qt5/mkspecs/modules/qt_lib_scripttools.pri \ + /usr/share/qt5/mkspecs/modules/qt_lib_sensors.pri \ + /usr/share/qt5/mkspecs/modules/qt_lib_serviceframework.pri \ + /usr/share/qt5/mkspecs/modules/qt_lib_sql.pri \ + /usr/share/qt5/mkspecs/modules/qt_lib_svg.pri \ + /usr/share/qt5/mkspecs/modules/qt_lib_versit.pri \ + /usr/share/qt5/mkspecs/modules/qt_lib_versitorganizer.pri \ + /usr/share/qt5/mkspecs/modules/qt_lib_webkit.pri \ + /usr/share/qt5/mkspecs/modules/qt_lib_widgets.pri \ + /usr/share/qt5/mkspecs/modules/qt_lib_xml.pri \ + /usr/share/qt5/mkspecs/modules/qt_lib_xmlpatterns.pri \ + /usr/share/qt5/mkspecs/features/qt_functions.prf \ + /usr/share/qt5/mkspecs/features/qt_config.prf \ + /usr/share/qt5/mkspecs/linux-g++-32/qmake.conf \ + /usr/share/qt5/mkspecs/features/spec_post.prf \ + /usr/share/qt5/mkspecs/features/exclusive_builds.prf \ + /usr/share/qt5/mkspecs/features/default_pre.prf \ + /usr/share/qt5/mkspecs/features/unix/default_pre.prf \ + /usr/share/qt5/mkspecs/features/resolve_config.prf \ + /usr/share/qt5/mkspecs/features/default_post.prf \ + /usr/share/qt5/mkspecs/features/sailfishapp.prf \ + /usr/share/qt5/mkspecs/features/link_pkgconfig.prf \ + /usr/share/qt5/mkspecs/features/qml_debug.prf \ + /usr/share/qt5/mkspecs/features/declarative_debug.prf \ + /usr/share/qt5/mkspecs/features/unix/gdb_dwarf_index.prf \ + /usr/share/qt5/mkspecs/features/warn_on.prf \ + /usr/share/qt5/mkspecs/features/qt.prf \ + /usr/share/qt5/mkspecs/features/resources.prf \ + /usr/share/qt5/mkspecs/features/moc.prf \ + /usr/share/qt5/mkspecs/features/unix/opengl.prf \ + /usr/share/qt5/mkspecs/features/unix/thread.prf \ + /usr/share/qt5/mkspecs/features/wayland-scanner.prf \ + /usr/share/qt5/mkspecs/features/testcase_targets.prf \ + /usr/share/qt5/mkspecs/features/exceptions.prf \ + /usr/share/qt5/mkspecs/features/yacc.prf \ + /usr/share/qt5/mkspecs/features/lex.prf \ + SwissTrains.pro \ + /usr/lib/libQt5Quick.prl \ + /usr/lib/libQt5Qml.prl \ + /usr/lib/libQt5Network.prl \ + /usr/lib/libQt5Gui.prl \ + /usr/lib/libQt5Core.prl + $(QMAKE) QMAKE_CFLAGS_RELEASE=-O2\ -g\ -pipe\ -Wall\ -Wp,-D_FORTIFY_SOURCE=2\ -fexceptions\ -fstack-protector\ --param=ssp-buffer-size=4\ -Wformat\ -Wformat-security\ -m32\ -march=core2\ -mssse3\ \ -mtune=atom\ -mfpmath=sse\ -fasynchronous-unwind-tables\ -fno-omit-frame-pointer QMAKE_CFLAGS_DEBUG=-O2\ -g\ -pipe\ -Wall\ -Wp,-D_FORTIFY_SOURCE=2\ -fexceptions\ -fstack-protector\ --param=ssp-buffer-size=4\ -Wformat\ -Wformat-security\ -m32\ -march=core2\ -mssse3\ \ -mtune=atom\ -mfpmath=sse\ -fasynchronous-unwind-tables\ -fno-omit-frame-pointer QMAKE_CXXFLAGS_RELEASE=-O2\ -g\ -pipe\ -Wall\ -Wp,-D_FORTIFY_SOURCE=2\ -fexceptions\ -fstack-protector\ --param=ssp-buffer-size=4\ -Wformat\ -Wformat-security\ -m32\ -march=core2\ -mssse3\ \ -mtune=atom\ -mfpmath=sse\ -fasynchronous-unwind-tables\ -fno-omit-frame-pointer QMAKE_CXXFLAGS_DEBUG=-O2\ -g\ -pipe\ -Wall\ -Wp,-D_FORTIFY_SOURCE=2\ -fexceptions\ -fstack-protector\ --param=ssp-buffer-size=4\ -Wformat\ -Wformat-security\ -m32\ -march=core2\ -mssse3\ \ -mtune=atom\ -mfpmath=sse\ -fasynchronous-unwind-tables\ -fno-omit-frame-pointer QMAKE_STRIP=: PREFIX=/usr -spec linux-g++-32 CONFIG+=debug CONFIG+=declarative_debug CONFIG+=qml_debug -after OBJECTS_DIR=obj MOC_DIR=moc UI_DIR=ui RCC_DIR=rcc -o Makefile SwissTrains.pro +/usr/share/qt5/mkspecs/features/spec_pre.prf: +/usr/share/qt5/mkspecs/common/shell-unix.conf: +/usr/share/qt5/mkspecs/common/unix.conf: +/usr/share/qt5/mkspecs/common/linux.conf: +/usr/share/qt5/mkspecs/common/gcc-base.conf: +/usr/share/qt5/mkspecs/common/gcc-base-unix.conf: +/usr/share/qt5/mkspecs/common/g++-base.conf: +/usr/share/qt5/mkspecs/common/g++-unix.conf: +/usr/share/qt5/mkspecs/qconfig.pri: +/usr/share/qt5/mkspecs/modules/qt_lib_bluetooth.pri: +/usr/share/qt5/mkspecs/modules/qt_lib_compositor.pri: +/usr/share/qt5/mkspecs/modules/qt_lib_concurrent.pri: +/usr/share/qt5/mkspecs/modules/qt_lib_contacts.pri: +/usr/share/qt5/mkspecs/modules/qt_lib_core.pri: +/usr/share/qt5/mkspecs/modules/qt_lib_dbus.pri: +/usr/share/qt5/mkspecs/modules/qt_lib_declarative.pri: +/usr/share/qt5/mkspecs/modules/qt_lib_docgallery.pri: +/usr/share/qt5/mkspecs/modules/qt_lib_feedback.pri: +/usr/share/qt5/mkspecs/modules/qt_lib_gui.pri: +/usr/share/qt5/mkspecs/modules/qt_lib_location.pri: +/usr/share/qt5/mkspecs/modules/qt_lib_multimedia.pri: +/usr/share/qt5/mkspecs/modules/qt_lib_multimediawidgets.pri: +/usr/share/qt5/mkspecs/modules/qt_lib_network.pri: +/usr/share/qt5/mkspecs/modules/qt_lib_opengl.pri: +/usr/share/qt5/mkspecs/modules/qt_lib_openglextensions.pri: +/usr/share/qt5/mkspecs/modules/qt_lib_organizer.pri: +/usr/share/qt5/mkspecs/modules/qt_lib_platformsupport.pri: +/usr/share/qt5/mkspecs/modules/qt_lib_positioning.pri: +/usr/share/qt5/mkspecs/modules/qt_lib_publishsubscribe.pri: +/usr/share/qt5/mkspecs/modules/qt_lib_qml.pri: +/usr/share/qt5/mkspecs/modules/qt_lib_qtmultimediaquicktools.pri: +/usr/share/qt5/mkspecs/modules/qt_lib_quick.pri: +/usr/share/qt5/mkspecs/modules/qt_lib_quickparticles.pri: +/usr/share/qt5/mkspecs/modules/qt_lib_script.pri: +/usr/share/qt5/mkspecs/modules/qt_lib_scripttools.pri: +/usr/share/qt5/mkspecs/modules/qt_lib_sensors.pri: +/usr/share/qt5/mkspecs/modules/qt_lib_serviceframework.pri: +/usr/share/qt5/mkspecs/modules/qt_lib_sql.pri: +/usr/share/qt5/mkspecs/modules/qt_lib_svg.pri: +/usr/share/qt5/mkspecs/modules/qt_lib_versit.pri: +/usr/share/qt5/mkspecs/modules/qt_lib_versitorganizer.pri: +/usr/share/qt5/mkspecs/modules/qt_lib_webkit.pri: +/usr/share/qt5/mkspecs/modules/qt_lib_widgets.pri: +/usr/share/qt5/mkspecs/modules/qt_lib_xml.pri: +/usr/share/qt5/mkspecs/modules/qt_lib_xmlpatterns.pri: +/usr/share/qt5/mkspecs/features/qt_functions.prf: +/usr/share/qt5/mkspecs/features/qt_config.prf: +/usr/share/qt5/mkspecs/linux-g++-32/qmake.conf: +/usr/share/qt5/mkspecs/features/spec_post.prf: +/usr/share/qt5/mkspecs/features/exclusive_builds.prf: +/usr/share/qt5/mkspecs/features/default_pre.prf: +/usr/share/qt5/mkspecs/features/unix/default_pre.prf: +/usr/share/qt5/mkspecs/features/resolve_config.prf: +/usr/share/qt5/mkspecs/features/default_post.prf: +/usr/share/qt5/mkspecs/features/sailfishapp.prf: +/usr/share/qt5/mkspecs/features/link_pkgconfig.prf: +/usr/share/qt5/mkspecs/features/qml_debug.prf: +/usr/share/qt5/mkspecs/features/declarative_debug.prf: +/usr/share/qt5/mkspecs/features/unix/gdb_dwarf_index.prf: +/usr/share/qt5/mkspecs/features/warn_on.prf: +/usr/share/qt5/mkspecs/features/qt.prf: +/usr/share/qt5/mkspecs/features/resources.prf: +/usr/share/qt5/mkspecs/features/moc.prf: +/usr/share/qt5/mkspecs/features/unix/opengl.prf: +/usr/share/qt5/mkspecs/features/unix/thread.prf: +/usr/share/qt5/mkspecs/features/wayland-scanner.prf: +/usr/share/qt5/mkspecs/features/testcase_targets.prf: +/usr/share/qt5/mkspecs/features/exceptions.prf: +/usr/share/qt5/mkspecs/features/yacc.prf: +/usr/share/qt5/mkspecs/features/lex.prf: +SwissTrains.pro: +/usr/lib/libQt5Quick.prl: +/usr/lib/libQt5Qml.prl: +/usr/lib/libQt5Network.prl: +/usr/lib/libQt5Gui.prl: +/usr/lib/libQt5Core.prl: +qmake: FORCE + @$(QMAKE) QMAKE_CFLAGS_RELEASE=-O2\ -g\ -pipe\ -Wall\ -Wp,-D_FORTIFY_SOURCE=2\ -fexceptions\ -fstack-protector\ --param=ssp-buffer-size=4\ -Wformat\ -Wformat-security\ -m32\ -march=core2\ -mssse3\ \ -mtune=atom\ -mfpmath=sse\ -fasynchronous-unwind-tables\ -fno-omit-frame-pointer QMAKE_CFLAGS_DEBUG=-O2\ -g\ -pipe\ -Wall\ -Wp,-D_FORTIFY_SOURCE=2\ -fexceptions\ -fstack-protector\ --param=ssp-buffer-size=4\ -Wformat\ -Wformat-security\ -m32\ -march=core2\ -mssse3\ \ -mtune=atom\ -mfpmath=sse\ -fasynchronous-unwind-tables\ -fno-omit-frame-pointer QMAKE_CXXFLAGS_RELEASE=-O2\ -g\ -pipe\ -Wall\ -Wp,-D_FORTIFY_SOURCE=2\ -fexceptions\ -fstack-protector\ --param=ssp-buffer-size=4\ -Wformat\ -Wformat-security\ -m32\ -march=core2\ -mssse3\ \ -mtune=atom\ -mfpmath=sse\ -fasynchronous-unwind-tables\ -fno-omit-frame-pointer QMAKE_CXXFLAGS_DEBUG=-O2\ -g\ -pipe\ -Wall\ -Wp,-D_FORTIFY_SOURCE=2\ -fexceptions\ -fstack-protector\ --param=ssp-buffer-size=4\ -Wformat\ -Wformat-security\ -m32\ -march=core2\ -mssse3\ \ -mtune=atom\ -mfpmath=sse\ -fasynchronous-unwind-tables\ -fno-omit-frame-pointer QMAKE_STRIP=: PREFIX=/usr -spec linux-g++-32 CONFIG+=debug CONFIG+=declarative_debug CONFIG+=qml_debug -after OBJECTS_DIR=obj MOC_DIR=moc UI_DIR=ui RCC_DIR=rcc -o Makefile SwissTrains.pro + +qmake_all: FORCE + +dist: + @test -d obj/SwissTrains1.0.0 || mkdir -p obj/SwissTrains1.0.0 + $(COPY_FILE) --parents $(SOURCES) $(DIST) obj/SwissTrains1.0.0/ && $(COPY_FILE) --parents src/SwissTrains.cpp obj/SwissTrains1.0.0/ && (cd `dirname obj/SwissTrains1.0.0` && $(TAR) SwissTrains1.0.0.tar SwissTrains1.0.0 && $(COMPRESS) SwissTrains1.0.0.tar) && $(MOVE) `dirname obj/SwissTrains1.0.0`/SwissTrains1.0.0.tar.gz . && $(DEL_FILE) -r obj/SwissTrains1.0.0 + + +clean:compiler_clean + -$(DEL_FILE) $(OBJECTS) + -$(DEL_FILE) *~ core *.core + + +####### Sub-libraries + +distclean: clean + -$(DEL_FILE) $(TARGET) + -$(DEL_FILE) Makefile + + +mocclean: compiler_moc_header_clean compiler_moc_source_clean + +mocables: compiler_moc_header_make_all compiler_moc_source_make_all + +check: first + +compiler_rcc_make_all: +compiler_rcc_clean: +compiler_wayland-server-header_make_all: +compiler_wayland-server-header_clean: +compiler_wayland-client-header_make_all: +compiler_wayland-client-header_clean: +compiler_qtwayland-client-header_make_all: +compiler_qtwayland-client-header_clean: +compiler_qtwayland-server-header_make_all: +compiler_qtwayland-server-header_clean: +compiler_moc_header_make_all: +compiler_moc_header_clean: +compiler_wayland-code_make_all: +compiler_wayland-code_clean: +compiler_qtwayland-client-code_make_all: +compiler_qtwayland-client-code_clean: +compiler_qtwayland-server-code_make_all: +compiler_qtwayland-server-code_clean: +compiler_moc_source_make_all: +compiler_moc_source_clean: +compiler_yacc_decl_make_all: +compiler_yacc_decl_clean: +compiler_yacc_impl_make_all: +compiler_yacc_impl_clean: +compiler_lex_make_all: +compiler_lex_clean: +compiler_clean: + +####### Compile + +obj/SwissTrains.o: src/SwissTrains.cpp /usr/include/qt5/QtQuick/QtQuick \ + /usr/include/qt5/QtQuick/QtQuickDepends \ + /usr/include/qt5/QtCore/QtCore \ + /usr/include/qt5/QtCore/QtCoreDepends \ + /usr/include/qt5/QtCore/qabstractanimation.h \ + /usr/include/qt5/QtCore/qobject.h \ + /usr/include/qt5/QtCore/qobjectdefs.h \ + /usr/include/qt5/QtCore/qnamespace.h \ + /usr/include/qt5/QtCore/qglobal.h \ + /usr/include/qt5/QtCore/qconfig.h \ + /usr/include/qt5/QtCore/qfeatures.h \ + /usr/include/qt5/QtCore/qsystemdetection.h \ + /usr/include/qt5/QtCore/qcompilerdetection.h \ + /usr/include/qt5/QtCore/qprocessordetection.h \ + /usr/include/qt5/QtCore/qglobalstatic.h \ + /usr/include/qt5/QtCore/qatomic.h \ + /usr/include/qt5/QtCore/qbasicatomic.h \ + /usr/include/qt5/QtCore/qatomic_bootstrap.h \ + /usr/include/qt5/QtCore/qgenericatomic.h \ + /usr/include/qt5/QtCore/qatomic_msvc.h \ + /usr/include/qt5/QtCore/qatomic_integrity.h \ + /usr/include/qt5/QtCore/qoldbasicatomic.h \ + /usr/include/qt5/QtCore/qatomic_vxworks.h \ + /usr/include/qt5/QtCore/qatomic_power.h \ + /usr/include/qt5/QtCore/qatomic_alpha.h \ + /usr/include/qt5/QtCore/qatomic_armv7.h \ + /usr/include/qt5/QtCore/qatomic_armv6.h \ + /usr/include/qt5/QtCore/qatomic_armv5.h \ + /usr/include/qt5/QtCore/qatomic_bfin.h \ + /usr/include/qt5/QtCore/qatomic_ia64.h \ + /usr/include/qt5/QtCore/qatomic_mips.h \ + /usr/include/qt5/QtCore/qatomic_s390.h \ + /usr/include/qt5/QtCore/qatomic_sh4a.h \ + /usr/include/qt5/QtCore/qatomic_sparc.h \ + /usr/include/qt5/QtCore/qatomic_x86.h \ + /usr/include/qt5/QtCore/qatomic_cxx11.h \ + /usr/include/qt5/QtCore/qatomic_gcc.h \ + /usr/include/qt5/QtCore/qatomic_unix.h \ + /usr/include/qt5/QtCore/qmutex.h \ + /usr/include/qt5/QtCore/qlogging.h \ + /usr/include/qt5/QtCore/qflags.h \ + /usr/include/qt5/QtCore/qtypeinfo.h \ + /usr/include/qt5/QtCore/qtypetraits.h \ + /usr/include/qt5/QtCore/qsysinfo.h \ + /usr/include/qt5/QtCore/qobjectdefs_impl.h \ + /usr/include/qt5/QtCore/qstring.h \ + /usr/include/qt5/QtCore/qchar.h \ + /usr/include/qt5/QtCore/qbytearray.h \ + /usr/include/qt5/QtCore/qrefcount.h \ + /usr/include/qt5/QtCore/qarraydata.h \ + /usr/include/qt5/QtCore/qstringbuilder.h \ + /usr/include/qt5/QtCore/qlist.h \ + /usr/include/qt5/QtCore/qalgorithms.h \ + /usr/include/qt5/QtCore/qiterator.h \ + /usr/include/qt5/QtCore/qcoreevent.h \ + /usr/include/qt5/QtCore/qscopedpointer.h \ + /usr/include/qt5/QtCore/qmetatype.h \ + /usr/include/qt5/QtCore/qvarlengtharray.h \ + /usr/include/qt5/QtCore/qcontainerfwd.h \ + /usr/include/qt5/QtCore/qisenum.h \ + /usr/include/qt5/QtCore/qobject_impl.h \ + /usr/include/qt5/QtCore/qanimationgroup.h \ + /usr/include/qt5/QtCore/qparallelanimationgroup.h \ + /usr/include/qt5/QtCore/qpauseanimation.h \ + /usr/include/qt5/QtCore/qpropertyanimation.h \ + /usr/include/qt5/QtCore/qvariantanimation.h \ + /usr/include/qt5/QtCore/qeasingcurve.h \ + /usr/include/qt5/QtCore/qvector.h \ + /usr/include/qt5/QtCore/qpoint.h \ + /usr/include/qt5/QtCore/qvariant.h \ + /usr/include/qt5/QtCore/qmap.h \ + /usr/include/qt5/QtCore/qpair.h \ + /usr/include/qt5/QtCore/qdebug.h \ + /usr/include/qt5/QtCore/qhash.h \ + /usr/include/qt5/QtCore/qtextstream.h \ + /usr/include/qt5/QtCore/qiodevice.h \ + /usr/include/qt5/QtCore/qlocale.h \ + /usr/include/qt5/QtCore/qshareddata.h \ + /usr/include/qt5/QtCore/qset.h \ + /usr/include/qt5/QtCore/qcontiguouscache.h \ + /usr/include/qt5/QtCore/qsequentialanimationgroup.h \ + /usr/include/qt5/QtCore/qtextcodec.h \ + /usr/include/qt5/QtCore/qendian.h \ + /usr/include/qt5/QtCore/qlibraryinfo.h \ + /usr/include/qt5/QtCore/qdatetime.h \ + /usr/include/qt5/QtCore/qsharedpointer.h \ + /usr/include/qt5/QtCore/qsharedpointer_impl.h \ + /usr/include/qt5/QtCore/qnumeric.h \ + /usr/include/qt5/QtCore/qbuffer.h \ + /usr/include/qt5/QtCore/qdatastream.h \ + /usr/include/qt5/QtCore/qdir.h \ + /usr/include/qt5/QtCore/qfileinfo.h \ + /usr/include/qt5/QtCore/qfile.h \ + /usr/include/qt5/QtCore/qfiledevice.h \ + /usr/include/qt5/QtCore/qstringlist.h \ + /usr/include/qt5/QtCore/qregexp.h \ + /usr/include/qt5/QtCore/qstringmatcher.h \ + /usr/include/qt5/QtCore/qdiriterator.h \ + /usr/include/qt5/QtCore/qfilesystemwatcher.h \ + /usr/include/qt5/QtCore/qlockfile.h \ + /usr/include/qt5/QtCore/qprocess.h \ + /usr/include/qt5/QtCore/qresource.h \ + /usr/include/qt5/QtCore/qsavefile.h \ + /usr/include/qt5/QtCore/qsettings.h \ + /usr/include/qt5/QtCore/qstandardpaths.h \ + /usr/include/qt5/QtCore/qtemporarydir.h \ + /usr/include/qt5/QtCore/QScopedPointer \ + /usr/include/qt5/QtCore/qtemporaryfile.h \ + /usr/include/qt5/QtCore/qurl.h \ + /usr/include/qt5/QtCore/qurlquery.h \ + /usr/include/qt5/QtCore/qabstractitemmodel.h \ + /usr/include/qt5/QtCore/qabstractproxymodel.h \ + /usr/include/qt5/QtCore/qidentityproxymodel.h \ + /usr/include/qt5/QtCore/qitemselectionmodel.h \ + /usr/include/qt5/QtCore/qsortfilterproxymodel.h \ + /usr/include/qt5/QtCore/qstringlistmodel.h \ + /usr/include/qt5/QtCore/qjsonarray.h \ + /usr/include/qt5/QtCore/qjsonvalue.h \ + /usr/include/qt5/QtCore/qjsondocument.h \ + /usr/include/qt5/QtCore/qjsonobject.h \ + /usr/include/qt5/QtCore/qabstracteventdispatcher.h \ + /usr/include/qt5/QtCore/qeventloop.h \ + /usr/include/qt5/QtCore/qabstractnativeeventfilter.h \ + /usr/include/qt5/QtCore/qbasictimer.h \ + /usr/include/qt5/QtCore/qcoreapplication.h \ + /usr/include/qt5/QtCore/qmath.h \ + /usr/include/qt5/QtCore/qmetaobject.h \ + /usr/include/qt5/QtCore/qmimedata.h \ + /usr/include/qt5/QtCore/qobjectcleanuphandler.h \ + /usr/include/qt5/QtCore/qpointer.h \ + /usr/include/qt5/QtCore/qsharedmemory.h \ + /usr/include/qt5/QtCore/qsignalmapper.h \ + /usr/include/qt5/QtCore/qsocketnotifier.h \ + /usr/include/qt5/QtCore/qsystemsemaphore.h \ + /usr/include/qt5/QtCore/qtimer.h \ + /usr/include/qt5/QtCore/qtranslator.h \ + /usr/include/qt5/QtCore/qwineventnotifier.h \ + /usr/include/qt5/QtCore/qt_windows.h \ + /usr/include/qt5/QtCore/qmimedatabase.h \ + /usr/include/qt5/QtCore/qmimetype.h \ + /usr/include/qt5/QtCore/qfactoryinterface.h \ + /usr/include/qt5/QtCore/qlibrary.h \ + /usr/include/qt5/QtCore/qplugin.h \ + /usr/include/qt5/QtCore/qpluginloader.h \ + /usr/include/qt5/QtCore/quuid.h \ + /usr/include/qt5/QtCore/qabstractstate.h \ + /usr/include/qt5/QtCore/qabstracttransition.h \ + /usr/include/qt5/QtCore/qeventtransition.h \ + /usr/include/qt5/QtCore/qfinalstate.h \ + /usr/include/qt5/QtCore/qhistorystate.h \ + /usr/include/qt5/QtCore/qsignaltransition.h \ + /usr/include/qt5/QtCore/qstate.h \ + /usr/include/qt5/QtCore/qstatemachine.h \ + /usr/include/qt5/QtCore/qexception.h \ + /usr/include/qt5/QtCore/qfuture.h \ + /usr/include/qt5/QtCore/qfutureinterface.h \ + /usr/include/qt5/QtCore/qrunnable.h \ + /usr/include/qt5/QtCore/qresultstore.h \ + /usr/include/qt5/QtCore/qfuturesynchronizer.h \ + /usr/include/qt5/QtCore/qfuturewatcher.h \ + /usr/include/qt5/QtCore/qreadwritelock.h \ + /usr/include/qt5/QtCore/qsemaphore.h \ + /usr/include/qt5/QtCore/qthread.h \ + /usr/include/qt5/QtCore/qthreadpool.h \ + /usr/include/qt5/QtCore/qthreadstorage.h \ + /usr/include/qt5/QtCore/qwaitcondition.h \ + /usr/include/qt5/QtCore/qarraydataops.h \ + /usr/include/qt5/QtCore/qarraydatapointer.h \ + /usr/include/qt5/QtCore/qbitarray.h \ + /usr/include/qt5/QtCore/qbytearraymatcher.h \ + /usr/include/qt5/QtCore/qcache.h \ + /usr/include/qt5/QtCore/qcryptographichash.h \ + /usr/include/qt5/QtCore/qelapsedtimer.h \ + /usr/include/qt5/QtCore/qline.h \ + /usr/include/qt5/QtCore/qlinkedlist.h \ + /usr/include/qt5/QtCore/qmargins.h \ + /usr/include/qt5/QtCore/qrect.h \ + /usr/include/qt5/QtCore/qsize.h \ + /usr/include/qt5/QtCore/qmessageauthenticationcode.h \ + /usr/include/qt5/QtCore/qqueue.h \ + /usr/include/qt5/QtCore/qregularexpression.h \ + /usr/include/qt5/QtCore/qscopedvaluerollback.h \ + /usr/include/qt5/QtCore/qstack.h \ + /usr/include/qt5/QtCore/qtextboundaryfinder.h \ + /usr/include/qt5/QtCore/qtimeline.h \ + /usr/include/qt5/QtCore/qxmlstream.h \ + /usr/include/qt5/QtCore/qtcoreversion.h \ + /usr/include/qt5/QtGui/QtGui \ + /usr/include/qt5/QtGui/QtGuiDepends \ + /usr/include/qt5/QtGui/qaccessible.h \ + /usr/include/qt5/QtGui/qcolor.h \ + /usr/include/qt5/QtGui/qrgb.h \ + /usr/include/qt5/QtGui/qevent.h \ + /usr/include/qt5/QtGui/qwindowdefs.h \ + /usr/include/qt5/QtGui/qwindowdefs_win.h \ + /usr/include/qt5/QtGui/qregion.h \ + /usr/include/qt5/QtGui/qkeysequence.h \ + /usr/include/qt5/QtGui/qvector2d.h \ + /usr/include/qt5/QtGui/qtouchdevice.h \ + /usr/include/qt5/QtGui/qaccessiblebridge.h \ + /usr/include/qt5/QtGui/qaccessibleobject.h \ + /usr/include/qt5/QtGui/qaccessibleplugin.h \ + /usr/include/qt5/QtGui/qbitmap.h \ + /usr/include/qt5/QtGui/qpixmap.h \ + /usr/include/qt5/QtGui/qpaintdevice.h \ + /usr/include/qt5/QtGui/qimage.h \ + /usr/include/qt5/QtGui/qtransform.h \ + /usr/include/qt5/QtGui/qmatrix.h \ + /usr/include/qt5/QtGui/qpolygon.h \ + /usr/include/qt5/QtGui/qpainterpath.h \ + /usr/include/qt5/QtGui/qicon.h \ + /usr/include/qt5/QtGui/qiconengine.h \ + /usr/include/qt5/QtGui/qiconengineplugin.h \ + /usr/include/qt5/QtGui/qimageiohandler.h \ + /usr/include/qt5/QtGui/qimagereader.h \ + /usr/include/qt5/QtGui/qimagewriter.h \ + /usr/include/qt5/QtGui/qmovie.h \ + /usr/include/qt5/QtGui/qpicture.h \ + /usr/include/qt5/QtGui/qpictureformatplugin.h \ + /usr/include/qt5/QtGui/qpixmapcache.h \ + /usr/include/qt5/QtGui/qstandarditemmodel.h \ + /usr/include/qt5/QtGui/qbrush.h \ + /usr/include/qt5/QtGui/qfont.h \ + /usr/include/qt5/QtGui/qclipboard.h \ + /usr/include/qt5/QtGui/qcursor.h \ + /usr/include/qt5/QtGui/qdrag.h \ + /usr/include/qt5/QtGui/qgenericplugin.h \ + /usr/include/qt5/QtGui/qgenericpluginfactory.h \ + /usr/include/qt5/QtGui/qguiapplication.h \ + /usr/include/qt5/QtGui/qinputmethod.h \ + /usr/include/qt5/QtGui/qoffscreensurface.h \ + /usr/include/qt5/QtCore/QObject \ + /usr/include/qt5/QtGui/qsurface.h \ + /usr/include/qt5/QtGui/qsurfaceformat.h \ + /usr/include/qt5/QtGui/qopenglcontext.h \ + /usr/include/qt5/QtGui/QSurfaceFormat \ + /usr/include/qt5/QtGui/qopengl.h \ + /usr/include/qt5/QtGui/qopengles2ext.h \ + /usr/include/qt5/QtGui/qopenglext.h \ + /usr/include/qt5/QtGui/qopenglversionfunctions.h \ + /usr/include/qt5/QtGui/qpalette.h \ + /usr/include/qt5/QtGui/qscreen.h \ + /usr/include/qt5/QtCore/QList \ + /usr/include/qt5/QtCore/QRect \ + /usr/include/qt5/QtCore/QSize \ + /usr/include/qt5/QtCore/QSizeF \ + /usr/include/qt5/QtGui/QTransform \ + /usr/include/qt5/QtGui/qsessionmanager.h \ + /usr/include/qt5/QtGui/qstylehints.h \ + /usr/include/qt5/QtGui/qwindow.h \ + /usr/include/qt5/QtCore/QEvent \ + /usr/include/qt5/QtCore/QMargins \ + /usr/include/qt5/QtGui/qgenericmatrix.h \ + /usr/include/qt5/QtGui/qmatrix4x4.h \ + /usr/include/qt5/QtGui/qvector3d.h \ + /usr/include/qt5/QtGui/qvector4d.h \ + /usr/include/qt5/QtGui/qquaternion.h \ + /usr/include/qt5/QtGui/qopenglbuffer.h \ + /usr/include/qt5/QtGui/qopengldebug.h \ + /usr/include/qt5/QtGui/qopenglframebufferobject.h \ + /usr/include/qt5/QtGui/qopenglfunctions.h \ + /usr/include/qt5/QtGui/qopenglpaintdevice.h \ + /usr/include/qt5/QtGui/qopenglshaderprogram.h \ + /usr/include/qt5/QtGui/qopengltimerquery.h \ + /usr/include/qt5/QtGui/qopenglvertexarrayobject.h \ + /usr/include/qt5/QtGui/qbackingstore.h \ + /usr/include/qt5/QtGui/qpagedpaintdevice.h \ + /usr/include/qt5/QtGui/qpaintengine.h \ + /usr/include/qt5/QtGui/qpainter.h \ + /usr/include/qt5/QtGui/qtextoption.h \ + /usr/include/qt5/QtGui/qpen.h \ + /usr/include/qt5/QtGui/qfontinfo.h \ + /usr/include/qt5/QtGui/qfontmetrics.h \ + /usr/include/qt5/QtGui/qpdfwriter.h \ + /usr/include/qt5/QtGui/qabstracttextdocumentlayout.h \ + /usr/include/qt5/QtGui/qtextlayout.h \ + /usr/include/qt5/QtGui/qtextformat.h \ + /usr/include/qt5/QtGui/qglyphrun.h \ + /usr/include/qt5/QtGui/qrawfont.h \ + /usr/include/qt5/QtGui/qfontdatabase.h \ + /usr/include/qt5/QtGui/qtextcursor.h \ + /usr/include/qt5/QtGui/qtextdocument.h \ + /usr/include/qt5/QtGui/qstatictext.h \ + /usr/include/qt5/QtGui/qsyntaxhighlighter.h \ + /usr/include/qt5/QtGui/qtextobject.h \ + /usr/include/qt5/QtGui/qtextdocumentfragment.h \ + /usr/include/qt5/QtGui/qtextdocumentwriter.h \ + /usr/include/qt5/QtGui/qtextlist.h \ + /usr/include/qt5/QtGui/qtexttable.h \ + /usr/include/qt5/QtGui/qdesktopservices.h \ + /usr/include/qt5/QtGui/qvalidator.h \ + /usr/include/qt5/QtGui/qtguiversion.h \ + /usr/include/qt5/QtQml/QtQml \ + /usr/include/qt5/QtQml/QtQmlDepends \ + /usr/include/qt5/QtNetwork/QtNetwork \ + /usr/include/qt5/QtNetwork/QtNetworkDepends \ + /usr/include/qt5/QtNetwork/qabstractnetworkcache.h \ + /usr/include/qt5/QtNetwork/qnetworkrequest.h \ + /usr/include/qt5/QtCore/QSharedDataPointer \ + /usr/include/qt5/QtCore/QString \ + /usr/include/qt5/QtCore/QUrl \ + /usr/include/qt5/QtCore/QVariant \ + /usr/include/qt5/QtNetwork/qhttpmultipart.h \ + /usr/include/qt5/QtCore/QByteArray \ + /usr/include/qt5/QtCore/QIODevice \ + /usr/include/qt5/QtNetwork/QNetworkRequest \ + /usr/include/qt5/QtNetwork/qnetworkaccessmanager.h \ + /usr/include/qt5/QtNetwork/qnetworkcookie.h \ + /usr/include/qt5/QtCore/QMetaType \ + /usr/include/qt5/QtNetwork/qnetworkcookiejar.h \ + /usr/include/qt5/QtNetwork/qnetworkdiskcache.h \ + /usr/include/qt5/QtNetwork/qnetworkreply.h \ + /usr/include/qt5/QtNetwork/QNetworkAccessManager \ + /usr/include/qt5/QtNetwork/qnetworkconfigmanager.h \ + /usr/include/qt5/QtNetwork/qnetworkconfiguration.h \ + /usr/include/qt5/QtNetwork/qnetworksession.h \ + /usr/include/qt5/QtNetwork/qnetworkinterface.h \ + /usr/include/qt5/QtNetwork/qhostaddress.h \ + /usr/include/qt5/QtNetwork/qabstractsocket.h \ + /usr/include/qt5/QtNetwork/qauthenticator.h \ + /usr/include/qt5/QtNetwork/qdnslookup.h \ + /usr/include/qt5/QtNetwork/qhostinfo.h \ + /usr/include/qt5/QtNetwork/qnetworkproxy.h \ + /usr/include/qt5/QtNetwork/qlocalserver.h \ + /usr/include/qt5/QtNetwork/qlocalsocket.h \ + /usr/include/qt5/QtNetwork/qtcpserver.h \ + /usr/include/qt5/QtNetwork/qtcpsocket.h \ + /usr/include/qt5/QtNetwork/qudpsocket.h \ + /usr/include/qt5/QtNetwork/qssl.h \ + /usr/include/qt5/QtCore/QFlags \ + /usr/include/qt5/QtNetwork/qsslcertificate.h \ + /usr/include/qt5/QtNetwork/qsslcertificateextension.h \ + /usr/include/qt5/QtNetwork/qsslcipher.h \ + /usr/include/qt5/QtNetwork/qsslconfiguration.h \ + /usr/include/qt5/QtNetwork/qsslsocket.h \ + /usr/include/qt5/QtNetwork/qsslerror.h \ + /usr/include/qt5/QtNetwork/qsslkey.h \ + /usr/include/qt5/QtNetwork/qtnetworkversion.h \ + /usr/include/qt5/QtQml/qtqmlglobal.h \ + /usr/include/qt5/QtQml/qqmldebug.h \ + /usr/include/qt5/QtQml/qqml.h \ + /usr/include/qt5/QtQml/qqmlprivate.h \ + /usr/include/qt5/QtQml/qqmlparserstatus.h \ + /usr/include/qt5/QtQml/qqmlpropertyvaluesource.h \ + /usr/include/qt5/QtQml/qqmllist.h \ + /usr/include/qt5/QtQml/qqmlapplicationengine.h \ + /usr/include/qt5/QtQml/qqmlengine.h \ + /usr/include/qt5/QtQml/qjsengine.h \ + /usr/include/qt5/QtQml/qjsvalue.h \ + /usr/include/qt5/QtQml/qqmlerror.h \ + /usr/include/qt5/QtQml/qqmlcomponent.h \ + /usr/include/qt5/QtQml/qqmlcontext.h \ + /usr/include/qt5/QtQml/qqmlexpression.h \ + /usr/include/qt5/QtQml/qqmlscriptstring.h \ + /usr/include/qt5/QtQml/qqmlextensioninterface.h \ + /usr/include/qt5/QtQml/qqmlextensionplugin.h \ + /usr/include/qt5/QtQml/qqmlfile.h \ + /usr/include/qt5/QtQml/qqmlincubator.h \ + /usr/include/qt5/QtQml/qqmlinfo.h \ + /usr/include/qt5/QtQml/qqmlnetworkaccessmanagerfactory.h \ + /usr/include/qt5/QtQml/qqmlproperty.h \ + /usr/include/qt5/QtQml/qqmlpropertymap.h \ + /usr/include/qt5/QtCore/QHash \ + /usr/include/qt5/QtCore/QStringList \ + /usr/include/qt5/QtQml/qjsvalueiterator.h \ + /usr/include/qt5/QtQml/qtqmlversion.h \ + /usr/include/qt5/QtQuick/qtquickglobal.h \ + /usr/include/qt5/QtQuick/designersupport.h \ + /usr/include/qt5/QtCore/QtGlobal \ + /usr/include/qt5/QtCore/QRectF \ + /usr/include/qt5/QtQuick/qquickitem.h \ + /usr/include/qt5/QtQuick/qquickpainteditem.h \ + /usr/include/qt5/QtQuick/qquicktextdocument.h \ + /usr/include/qt5/QtGui/QTextDocument \ + /usr/include/qt5/QtQuick/QQuickItem \ + /usr/include/qt5/QtQuick/qquickview.h \ + /usr/include/qt5/QtQuick/qquickwindow.h \ + /usr/include/qt5/QtQuick/qquickimageprovider.h \ + /usr/include/qt5/QtQuick/qsggeometry.h \ + /usr/include/qt5/QtQuick/qsgmaterial.h \ + /usr/include/qt5/QtQuick/qsgnode.h \ + /usr/include/qt5/QtGui/QMatrix4x4 \ + /usr/include/qt5/QtQuick/qsgflatcolormaterial.h \ + /usr/include/qt5/QtQuick/qsgsimplematerial.h \ + /usr/include/qt5/QtQuick/qsgsimplerectnode.h \ + /usr/include/qt5/QtQuick/qsgsimpletexturenode.h \ + /usr/include/qt5/QtQuick/qsgtexturematerial.h \ + /usr/include/qt5/QtQuick/qsgtexture.h \ + /usr/include/qt5/QtGui/QImage \ + /usr/include/qt5/QtQuick/qsgtextureprovider.h \ + /usr/include/qt5/QtQuick/qsgvertexcolormaterial.h \ + /usr/include/qt5/QtQuick/qtquickversion.h \ + /usr/include/sailfishapp/sailfishapp.h + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/SwissTrains.o src/SwissTrains.cpp + +####### Install + +install_target: first FORCE + @test -d $(INSTALL_ROOT)/usr/bin || mkdir -p $(INSTALL_ROOT)/usr/bin + -$(INSTALL_PROGRAM) "$(QMAKE_TARGET)" "$(INSTALL_ROOT)/usr/bin/$(QMAKE_TARGET)" + +uninstall_target: FORCE + -$(DEL_FILE) "$(INSTALL_ROOT)/usr/bin/$(QMAKE_TARGET)" + -$(DEL_DIR) $(INSTALL_ROOT)/usr/bin/ + + +install_qml: first FORCE + @test -d $(INSTALL_ROOT)/usr/share/SwissTrains || mkdir -p $(INSTALL_ROOT)/usr/share/SwissTrains + -$(INSTALL_DIR) /home/mersdk/workspace/SwissTrains/qml $(INSTALL_ROOT)/usr/share/SwissTrains/ + +uninstall_qml: FORCE + -$(DEL_FILE) -r $(INSTALL_ROOT)/usr/share/SwissTrains/qml + -$(DEL_DIR) $(INSTALL_ROOT)/usr/share/SwissTrains/ + + +install_desktop: first FORCE + @test -d $(INSTALL_ROOT)/usr/share/applications || mkdir -p $(INSTALL_ROOT)/usr/share/applications + -$(INSTALL_PROGRAM) /home/mersdk/workspace/SwissTrains/SwissTrains.desktop $(INSTALL_ROOT)/usr/share/applications/ + +uninstall_desktop: FORCE + -$(DEL_FILE) -r $(INSTALL_ROOT)/usr/share/applications/SwissTrains.desktop + -$(DEL_DIR) $(INSTALL_ROOT)/usr/share/applications/ + + +install_icon: first FORCE + @test -d $(INSTALL_ROOT)/usr/share/icons/hicolor/90x90/apps || mkdir -p $(INSTALL_ROOT)/usr/share/icons/hicolor/90x90/apps + -$(INSTALL_PROGRAM) /home/mersdk/workspace/SwissTrains/SwissTrains.png $(INSTALL_ROOT)/usr/share/icons/hicolor/90x90/apps/ + +uninstall_icon: FORCE + -$(DEL_FILE) -r $(INSTALL_ROOT)/usr/share/icons/hicolor/90x90/apps/SwissTrains.png + -$(DEL_DIR) $(INSTALL_ROOT)/usr/share/icons/hicolor/90x90/apps/ + + +install: install_target install_qml install_desktop install_icon FORCE + +uninstall: uninstall_target uninstall_qml uninstall_desktop uninstall_icon FORCE + +FORCE: + diff --git a/SwissTrains b/SwissTrains new file mode 100755 index 0000000..a2c7fc7 Binary files /dev/null and b/SwissTrains differ diff --git a/SwissTrains.desktop b/SwissTrains.desktop new file mode 100644 index 0000000..c863ed9 --- /dev/null +++ b/SwissTrains.desktop @@ -0,0 +1,7 @@ +[Desktop Entry] +Type=Application +X-Nemo-Application-Type=silica-qt5 +Name=SwissTrains +Icon=/usr/share/icons/hicolor/90x90/apps/SwissTrains.png +Exec=SwissTrains + diff --git a/SwissTrains.png b/SwissTrains.png new file mode 100644 index 0000000..4b15e07 Binary files /dev/null and b/SwissTrains.png differ diff --git a/SwissTrains.pro b/SwissTrains.pro new file mode 100644 index 0000000..5f2c20d --- /dev/null +++ b/SwissTrains.pro @@ -0,0 +1,33 @@ +# The name of your app. +# NOTICE: name defined in TARGET has a corresponding QML filename. +# If name defined in TARGET is changed, following needs to be +# done to match new name: +# - corresponding QML filename must be changed +# - desktop icon filename must be changed +# - desktop filename must be changed +# - icon definition filename in desktop file must be changed +TARGET = SwissTrains + +CONFIG += sailfishapp + +QT += sql dbus core quick qml xml + +SOURCES += src/SwissTrains.cpp \ + src/utils.cpp \ + src/connection/sbbstation.cpp \ + src/connection/sbbconnectioninfo.cpp + +OTHER_FILES += qml/SwissTrains.qml \ + qml/cover/CoverPage.qml \ + rpm/SwissTrains.spec \ + rpm/SwissTrains.yaml \ + SwissTrains.desktop \ + qml/pages/MainPage.qml \ + qml/pages/ScheduleInputPage.qml \ + qml/pages/DeparturesInputPage.qml \ + qml/pages/ScheduleResultsPage.qml + +HEADERS += \ + src/utils.h \ + src/connection/sbbstation.h \ + src/connection/sbbconnectioninfo.h diff --git a/SwissTrains.pro.user b/SwissTrains.pro.user new file mode 100644 index 0000000..2b22d44 --- /dev/null +++ b/SwissTrains.pro.user @@ -0,0 +1,529 @@ + + + + + + ProjectExplorer.Project.ActiveTarget + 1 + + + ProjectExplorer.Project.EditorSettings + + true + false + true + + Cpp + + CppGlobal + + + + QmlJS + + QmlJSGlobal + + + 2 + UTF-8 + false + 4 + false + true + 1 + true + 0 + true + 0 + 8 + true + 1 + true + true + true + false + + + + ProjectExplorer.Project.PluginSettings + + + + ProjectExplorer.Project.Target.0 + + MerSDK-SailfishOS-i486-x86 + MerSDK-SailfishOS-i486-x86 + {379cbd70-3740-4da1-80ea-84f64534286a} + 0 + 1 + 0 + + + + true + qmake + + QtProjectManager.QMakeBuildStep + false + true + + false + + + true + Make + + Qt4ProjectManager.MakeStep + + -w + -r + + false + + + + 2 + Build + + ProjectExplorer.BuildSteps.Build + + + + true + Make + + Qt4ProjectManager.MakeStep + + -w + -r + + true + clean + + + 1 + Clean + + ProjectExplorer.BuildSteps.Clean + + 2 + false + + Debug + + Qt4ProjectManager.Qt4BuildConfiguration + 2 + /home/valdor/workspace/build-SwissTrains-MerSDK_SailfishOS_i486_x86-Debug + true + + + + + true + qmake + + QtProjectManager.QMakeBuildStep + false + true + + false + + + true + Make + + Qt4ProjectManager.MakeStep + + -w + -r + + false + + + + 2 + Build + + ProjectExplorer.BuildSteps.Build + + + + true + Make + + Qt4ProjectManager.MakeStep + + -w + -r + + true + clean + + + 1 + Clean + + ProjectExplorer.BuildSteps.Clean + + 2 + false + + Release + + Qt4ProjectManager.Qt4BuildConfiguration + 0 + /home/valdor/workspace/build-SwissTrains-MerSDK_SailfishOS_i486_x86-Release + true + + 2 + + + + true + Start Emulator + + Qt4ProjectManager.MerEmulatorStartStep + + + true + Rsync + + Qt4ProjectManager.MerRsyncDeployStep + + 2 + Deploy + + ProjectExplorer.BuildSteps.Deploy + + 1 + Deploy By Copying Binaries + + Qt4ProjectManager.MerRSyncDeployConfiguration + + + + + true + Start Emulator + + Qt4ProjectManager.MerEmulatorStartStep + + + true + Rpm + + Qt4ProjectManager.MerRpmDeployStep + + 2 + Deploy + + ProjectExplorer.BuildSteps.Deploy + + 1 + Deploy As RPM Package + + Qt4ProjectManager.MerRpmDeployConfiguration + + 2 + + + true + + false + false + false + false + true + 0.01 + 10 + true + 25 + + true + valgrind + + 0 + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + + 1 + + SwissTrains (on Remote Device) + + Qt4ProjectManager.MerRunConfiguration:/home/valdor/workspace/SwissTrains/SwissTrains.pro + + SwissTrains.pro + + false + + 3768 + true + false + false + true + false + + 1 + + + + ProjectExplorer.Project.Target.1 + + MerSDK-SailfishOS-armv7hl + MerSDK-SailfishOS-armv7hl + {560e9e13-ec23-4983-9589-82e968ef4d89} + 0 + 1 + 0 + + + + true + qmake + + QtProjectManager.QMakeBuildStep + false + true + + false + + + true + Make + + Qt4ProjectManager.MakeStep + + -w + -r + + false + + + + 2 + Build + + ProjectExplorer.BuildSteps.Build + + + + true + Make + + Qt4ProjectManager.MakeStep + + -w + -r + + true + clean + + + 1 + Clean + + ProjectExplorer.BuildSteps.Clean + + 2 + false + + Debug + + Qt4ProjectManager.Qt4BuildConfiguration + 2 + /home/valdor/workspace/build-SwissTrains-MerSDK_SailfishOS_armv7hl-Debug + true + + + + + true + qmake + + QtProjectManager.QMakeBuildStep + false + true + + false + + + true + Make + + Qt4ProjectManager.MakeStep + + -w + -r + + false + + + + 2 + Build + + ProjectExplorer.BuildSteps.Build + + + + true + Make + + Qt4ProjectManager.MakeStep + + -w + -r + + true + clean + + + 1 + Clean + + ProjectExplorer.BuildSteps.Clean + + 2 + false + + Release + + Qt4ProjectManager.Qt4BuildConfiguration + 0 + /home/valdor/workspace/build-SwissTrains-MerSDK_SailfishOS_armv7hl-Release + true + + 2 + + + + true + Rpm + + Qt4ProjectManager.MerRpmBuildStep + + 1 + Deploy + + ProjectExplorer.BuildSteps.Deploy + + 1 + Deploy By Building An RPM Package + + Qt4ProjectManager.MerArmDeployConfiguration + + + + + true + Rsync + + Qt4ProjectManager.MerRsyncDeployStep + + 1 + Deploy + + ProjectExplorer.BuildSteps.Deploy + + 1 + Deploy By Copying Binaries + + Qt4ProjectManager.MerRSyncDeployConfiguration + + + + + true + Rpm + + Qt4ProjectManager.MerRpmDeployStep + + 1 + Deploy + + ProjectExplorer.BuildSteps.Deploy + + 1 + Deploy As RPM Package + + Qt4ProjectManager.MerRpmDeployConfiguration + + 3 + + + true + + false + false + false + false + true + 0.01 + 10 + true + 25 + + true + valgrind + + 0 + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + + 1 + + SwissTrains (on Remote Device) + + Qt4ProjectManager.MerRunConfiguration:/home/valdor/workspace/SwissTrains/SwissTrains.pro + + SwissTrains.pro + + false + + 3768 + true + false + false + true + false + + 1 + + + + ProjectExplorer.Project.TargetCount + 2 + + + ProjectExplorer.Project.Updater.EnvironmentId + {00517375-fe2c-42fa-b2be-66a59b0c0e89} + + + ProjectExplorer.Project.Updater.FileVersion + 14 + + diff --git a/SwissTrains.pro.user.cafa0be b/SwissTrains.pro.user.cafa0be new file mode 100644 index 0000000..fefc928 --- /dev/null +++ b/SwissTrains.pro.user.cafa0be @@ -0,0 +1,297 @@ + + + + + + ProjectExplorer.Project.ActiveTarget + 0 + + + ProjectExplorer.Project.EditorSettings + + true + false + true + + Cpp + + CppGlobal + + + + QmlJS + + QmlJSGlobal + + + 2 + UTF-8 + false + 4 + false + true + 1 + true + 0 + true + 0 + 8 + true + 1 + true + true + true + false + + + + ProjectExplorer.Project.PluginSettings + + + + ProjectExplorer.Project.Target.0 + + MerSDK-SailfishOS-i486-x86 + MerSDK-SailfishOS-i486-x86 + {cedf8e17-794b-4c27-b54b-c474229f3d9f} + 0 + 0 + 0 + + + + true + qmake + + QtProjectManager.QMakeBuildStep + false + true + + false + + + true + Make + + Qt4ProjectManager.MakeStep + + -w + -r + + false + + + + 2 + Build + + ProjectExplorer.BuildSteps.Build + + + + true + Make + + Qt4ProjectManager.MakeStep + + -w + -r + + true + clean + + + 1 + Clean + + ProjectExplorer.BuildSteps.Clean + + 2 + false + + MER_PROJECTPATH=/home/valdor/workspace/SwissTrains + + Debug + + Qt4ProjectManager.Qt4BuildConfiguration + 2 + /home/valdor/workspace/SwissTrains + false + + + + + true + qmake + + QtProjectManager.QMakeBuildStep + false + true + + false + + + true + Make + + Qt4ProjectManager.MakeStep + + -w + -r + + false + + + + 2 + Build + + ProjectExplorer.BuildSteps.Build + + + + true + Make + + Qt4ProjectManager.MakeStep + + -w + -r + + true + clean + + + 1 + Clean + + ProjectExplorer.BuildSteps.Clean + + 2 + false + + MER_PROJECTPATH=/home/valdor/workspace/SwissTrains + + Release + + Qt4ProjectManager.Qt4BuildConfiguration + 0 + /home/valdor/workspace/SwissTrains + false + + 2 + + + + true + Start Emulator + + Qt4ProjectManager.MerEmulatorStartStep + + + true + Rsync + + Qt4ProjectManager.MerRsyncDeployStep + + 2 + Deploy + + ProjectExplorer.BuildSteps.Deploy + + 1 + Deploy By Copying Binaries + Deploy By Copying Binaries + Qt4ProjectManager.MerRSyncDeployConfiguration + + + + + true + Start Emulator + + Qt4ProjectManager.MerEmulatorStartStep + + + true + Rpm + + Qt4ProjectManager.MerRpmDeployStep + + 2 + Deploy + + ProjectExplorer.BuildSteps.Deploy + + 1 + Deploy As RPM Package + Deploy As RPM Package + Qt4ProjectManager.MerRpmDeployConfiguration + + 2 + + + true + + false + false + false + false + true + 0.01 + 10 + true + 25 + + true + valgrind + + 0 + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + + 1 + + SwissTrains (on Mer Device) + + Qt4ProjectManager.MerRunConfiguration:/home/valdor/workspace/SwissTrains/SwissTrains.pro + + SwissTrains.pro + + false + + 3768 + true + false + false + true + false + + 1 + + + + ProjectExplorer.Project.TargetCount + 1 + + + ProjectExplorer.Project.Updater.EnvironmentId + {cafa0be0-7c8b-4a08-92ea-018f96294651} + + + ProjectExplorer.Project.Updater.FileVersion + 14 + + diff --git a/obj/SwissTrains.o b/obj/SwissTrains.o new file mode 100644 index 0000000..eb8a49a Binary files /dev/null and b/obj/SwissTrains.o differ diff --git a/qml/SwissTrains.qml b/qml/SwissTrains.qml new file mode 100644 index 0000000..2ff162f --- /dev/null +++ b/qml/SwissTrains.qml @@ -0,0 +1,41 @@ +/* + Copyright (C) 2013 Jolla Ltd. + Contact: Thomas Perl + All rights reserved. + + You may use this file under the terms of BSD license as follows: + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + * Neither the name of the Jolla Ltd nor the + names of its contributors may be used to endorse or promote products + derived from this software without specific prior written permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND + ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR + ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +import QtQuick 2.0 +import Sailfish.Silica 1.0 +import "pages" + +ApplicationWindow +{ + initialPage: MainPage { } + cover: Qt.resolvedUrl("cover/CoverPage.qml") +} + + diff --git a/qml/cover/CoverPage.qml b/qml/cover/CoverPage.qml new file mode 100644 index 0000000..6907e0e --- /dev/null +++ b/qml/cover/CoverPage.qml @@ -0,0 +1,70 @@ +/* + Copyright (C) 2013 Jolla Ltd. + Contact: Thomas Perl + All rights reserved. + + You may use this file under the terms of BSD license as follows: + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + * Neither the name of the Jolla Ltd nor the + names of its contributors may be used to endorse or promote products + derived from this software without specific prior written permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND + ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR + ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +import QtQuick 2.0 +import Sailfish.Silica 1.0 + +CoverBackground { + + property string message: sbbConnectionInfo.departureName + "\n -> \n" + sbbConnectionInfo.arrivalName + + Label { + id: label + anchors.centerIn: parent + text: message + } + + + Connections { + target: sbbConnectionInfo + onDepartureNameChanged: { + message = sbbConnectionInfo.departureName + "\n -> \n" + sbbConnectionInfo.arrivalName + } + onArrivalNameChanged: { + message = sbbConnectionInfo.departureName + "\n -> \n" + sbbConnectionInfo.arrivalName + } + } + + CoverActionList { + id: coverAction + + CoverAction { + iconSource: "image://theme/icon-cover-next" + onTriggered: utils.togglePlaying() + } + + CoverAction { + iconSource: "image://theme/icon-cover-refresh" + onTriggered: sbbConnectionInfo.refreshConnection() + } + } +} + + diff --git a/qml/pages/DeparturesInputPage.qml b/qml/pages/DeparturesInputPage.qml new file mode 100644 index 0000000..dfb9ddd --- /dev/null +++ b/qml/pages/DeparturesInputPage.qml @@ -0,0 +1,28 @@ +import QtQuick 2.0 +import Sailfish.Silica 1.0 + +Dialog { + id: page + SilicaListView { + id: departureInput + model: 20 + anchors.fill: parent + + header: PageHeader { + title: "Departures" + } + + delegate: BackgroundItem { + id: delegate + + Label { + x: Theme.paddingLarge + text: "Item " + index + color: delegate.highlighted ? Theme.highlightColor : Theme.primaryColor + } + onClicked: console.log("Clicked " + index) + } + } + + acceptDestination: Qt.resolvedUrl("ScheduleInputPage.qml") +} diff --git a/qml/pages/MainPage.qml b/qml/pages/MainPage.qml new file mode 100644 index 0000000..45ca4b6 --- /dev/null +++ b/qml/pages/MainPage.qml @@ -0,0 +1,151 @@ +/* + Copyright (C) 2013 Jolla Ltd. + Contact: Thomas Perl + All rights reserved. + + You may use this file under the terms of BSD license as follows: + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + * Neither the name of the Jolla Ltd nor the + names of its contributors may be used to endorse or promote products + derived from this software without specific prior written permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND + ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR + ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +import QtQuick 2.0 +import Sailfish.Silica 1.0 + + +Page { + id: mainPage + + SilicaFlickable { + anchors.fill: parent + + PullDownMenu { + MenuItem { + text: "Refresh" + onClicked: sbbConnectionInfo.refresh() + } + MenuItem { + text: "Schedule" + onClicked: pageStack.push(Qt.resolvedUrl("ScheduleInputPage.qml")) + } + MenuItem { + text: "Departures" + onClicked: pageStack.push(Qt.resolvedUrl("DeparturesInputPage.qml")) + } + } + + contentHeight: column.height + + Column { + id: column + + width: mainPage.width + spacing: Theme.paddingLarge + PageHeader { + title: "UI Template" + } + Label { + x: Theme.paddingLarge + text: "Departure" + color: Theme.secondaryHighlightColor + font.pixelSize: Theme.fontSizeLarge + anchors.horizontalCenter: parent.horizontalCenter + } + + Label { + x: Theme.paddingLarge + text: sbbConnectionInfo.departureName; + color: Theme.secondaryHighlightColor + } + + Label { + x: Theme.paddingLarge + text: "Arrival" + color: Theme.secondaryHighlightColor + font.pixelSize: Theme.fontSizeLarge + anchors.horizontalCenter: parent.horizontalCenter + } + + Label { + x: Theme.paddingLarge + text: sbbConnectionInfo.arrivalName; + color: Theme.secondaryHighlightColor + } + + Separator { + } + + Label { + x: Theme.paddingLarge + text: "Next Departure" + color: Theme.secondaryHighlightColor + font.pixelSize: Theme.fontSizeLarge + anchors.horizontalCenter: parent.horizontalCenter + } + + Label { + x: Theme.paddingLarge + text: "18:34" + color: Theme.secondaryHighlightColor + } + + Label { + x: Theme.paddingLarge + text: "Voie 3" + color: Theme.secondaryHighlightColor + } + + Separator { + } + + Button { + text: "More Connections" + onClicked: pageStack.push(Qt.resolvedUrl("ScheduleResultsPage.qml")) + anchors.horizontalCenter: parent.horizontalCenter + } + + /* + TextField { + width: parent.width + label: "Text field" + placeholderText: "Type here" + focus: true + horizontalAlignment: textAlignment + } + + TextField { + width: parent.width + label: "Text field" + placeholderText: "Type here" + focus: true + horizontalAlignment: textAlignment + EnterKey.onClicked: { + text = "Return key pressed"; + parent.focus = true; + } + } + */ + } + } +} + + diff --git a/qml/pages/ScheduleInputPage.qml b/qml/pages/ScheduleInputPage.qml new file mode 100644 index 0000000..9446425 --- /dev/null +++ b/qml/pages/ScheduleInputPage.qml @@ -0,0 +1,52 @@ +import QtQuick 2.0 +import Sailfish.Silica 1.0 + +Dialog { + id: page + Column { + id: column + + width: page.width + spacing: Theme.paddingLarge + PageHeader { + title: "UI Template" + } + Label { + x: Theme.paddingLarge + text: "Departure" + color: Theme.secondaryHighlightColor + font.pixelSize: Theme.fontSizeLarge + anchors.horizontalCenter: parent.horizontalCenter + } + + TextField { + id: departureNameField + x: Theme.paddingLarge + text: sbbConnectionInfo.departureName; + placeholderText: "Departure Station Name" + } + + Label { + x: Theme.paddingLarge + text: "Arrival" + color: Theme.secondaryHighlightColor + font.pixelSize: Theme.fontSizeLarge + anchors.horizontalCenter: parent.horizontalCenter + } + + TextField { + id: arrivalNameField + x: Theme.paddingLarge + text: sbbConnectionInfo.arrivalName; + placeholderText: "Arrival Station Name" + } + + } + + onDone: { + if (result === DialogResult.Accepted) { + sbbConnectionInfo.arrivalName = arrivalNameField.text + sbbConnectionInfo.departureName = departureNameField.text + } + } +} diff --git a/qml/pages/ScheduleResultsPage.qml b/qml/pages/ScheduleResultsPage.qml new file mode 100644 index 0000000..ae8457d --- /dev/null +++ b/qml/pages/ScheduleResultsPage.qml @@ -0,0 +1,26 @@ +import QtQuick 2.0 +import Sailfish.Silica 1.0 + +Page { + id: scheduleResultsPage + + SilicaListView { + id: scheduleInput + model: 5 + anchors.fill: parent + + header: PageHeader { + title: "Schedule Results" + } + + delegate: BackgroundItem { + id: delegate + + Label { + x: Theme.paddingLarge + text: "Item " + index + color: delegate.highlighted ? Theme.highlightColor : Theme.primaryColor + } + } + } +} diff --git a/rpm/SwissTrains.spec b/rpm/SwissTrains.spec new file mode 100644 index 0000000..b131670 --- /dev/null +++ b/rpm/SwissTrains.spec @@ -0,0 +1,75 @@ +# +# Do NOT Edit the Auto-generated Part! +# Generated by: spectacle version 0.27 +# + +Name: SwissTrains + +# >> macros +# << macros + +%{!?qtc_qmake:%define qtc_qmake %qmake} +%{!?qtc_qmake5:%define qtc_qmake5 %qmake5} +%{!?qtc_make:%define qtc_make make} +%{?qtc_builddir:%define _builddir %qtc_builddir} +Summary: Swiss Trains Schedule +Version: 0.1 +Release: 1 +Group: Qt/Qt +License: LICENSE +Source0: %{name}-%{version}.tar.bz2 +Source100: SwissTrains.yaml +Requires: sailfishsilica-qt5 +BuildRequires: pkgconfig(Qt5Core) +BuildRequires: pkgconfig(Qt5Qml) +BuildRequires: pkgconfig(Qt5Quick) +BuildRequires: pkgconfig(sailfishapp) +BuildRequires: desktop-file-utils + +%description +Short description of my SailfishOS Application + + +%prep +%setup -q -n %{name}-%{version} + +# >> setup +# << setup + +%build +# >> build pre +# << build pre + +%qtc_qmake5 + +%qtc_make %{?_smp_mflags} + +# >> build post +# << build post + +%install +rm -rf %{buildroot} +# >> install pre +# << install pre +%qmake5_install + +# >> install post +# << install post + +desktop-file-install --delete-original \ + --dir %{buildroot}%{_datadir}/applications \ + %{buildroot}%{_datadir}/applications/*.desktop + +%files +%defattr(-,root,root,-) +/usr/share/icons/hicolor/86x86/apps +/usr/share/icons/hicolor/90x90/apps +/usr/share/applications +/usr/share/SwissTrains +/usr/bin +%{_datadir}/icons/hicolor/90x90/apps/%{name}.png +%{_datadir}/applications/%{name}.desktop +%{_datadir}/%{name}/qml +%{_bindir} +# >> files +# << files diff --git a/rpm/SwissTrains.yaml b/rpm/SwissTrains.yaml new file mode 100644 index 0000000..16c9fe5 --- /dev/null +++ b/rpm/SwissTrains.yaml @@ -0,0 +1,29 @@ +Name: SwissTrains +Summary: Swiss Trains Schedule +Version: 0.1 +Release: 1 +Group: Qt/Qt +License: LICENSE +Sources: +- '%{name}-%{version}.tar.bz2' +Description: | + Short description of my SailfishOS Application +Configure: none +Builder: qtc5 +PkgConfigBR: +- Qt5Core +- Qt5Qml +- Qt5Quick +- sailfishapp +Requires: +- sailfishsilica-qt5 +Files: +- /usr/share/icons/hicolor/86x86/apps +- /usr/share/icons/hicolor/90x90/apps +- /usr/share/applications +- /usr/share/SwissTrains +- /usr/bin +- '%{_datadir}/icons/hicolor/90x90/apps/%{name}.png' +- '%{_datadir}/applications/%{name}.desktop' +- '%{_datadir}/%{name}/qml' +- '%{_bindir}' diff --git a/src/SwissTrains.cpp b/src/SwissTrains.cpp new file mode 100644 index 0000000..2ccc399 --- /dev/null +++ b/src/SwissTrains.cpp @@ -0,0 +1,43 @@ +#include +#include + +#include +#include +#include + +#include +#include +#include + +#include + +#include +#include + +#include "utils.h" + +#include "connection/sbbconnectioninfo.h" + +Q_DECL_EXPORT +int main(int argc, char *argv[]) +{ + qDebug() << "Starting application"; + QGuiApplication *app = SailfishApp::application(argc, argv); + QQuickView *view = SailfishApp::createView(); + view->rootContext()->setContextProperty("view", view); + view->rootContext()->setContextProperty("app", app); + + qDebug() << "Creating WhatsApp object"; + Utils *whatsapp = new Utils(); + view->rootContext()->setContextProperty("utils", whatsapp); + + SBBConnectionInfo *sci = new SBBConnectionInfo(); + view->rootContext()->setContextProperty("sbbConnectionInfo", sci); + + qDebug() << "Showing main widow"; + view->setSource(SailfishApp::pathTo("qml/SwissTrains.qml")); + view->showFullScreen(); + + return app->exec(); +} + diff --git a/src/connection/sbbconnectioninfo.cpp b/src/connection/sbbconnectioninfo.cpp new file mode 100644 index 0000000..5699b06 --- /dev/null +++ b/src/connection/sbbconnectioninfo.cpp @@ -0,0 +1,18 @@ +#include "sbbconnectioninfo.h" + +SBBConnectionInfo::SBBConnectionInfo(QObject *parent) : + QObject(parent) +{ + QString depName("Martigny"); + _departure = depName; + + + QString arrName("Icogne"); + SBBStation arr(arrName); + _arrival = arr; + +} + +void SBBConnectionInfo::refreshConnection() { + +} diff --git a/src/connection/sbbconnectioninfo.h b/src/connection/sbbconnectioninfo.h new file mode 100644 index 0000000..64bc2d3 --- /dev/null +++ b/src/connection/sbbconnectioninfo.h @@ -0,0 +1,39 @@ +#ifndef SBBCONNECTIONINFO_H +#define SBBCONNECTIONINFO_H + +#include +#include "sbbstation.h" + +class SBBConnectionInfo : public QObject +{ + Q_OBJECT + Q_PROPERTY(QString departureName READ getDepartureName NOTIFY departureNameChanged WRITE setDepartureName) + Q_PROPERTY(QString arrivalName READ getArrivalName NOTIFY arrivalNameChanged WRITE setArrivalName) +public: + explicit SBBConnectionInfo(QObject *parent = 0); + + SBBStation getDeparture() { return _departure; } + SBBStation getArrival() { return _arrival; } + + QString getDepartureName() { return _departure.getName(); } + QString getArrivalName() { return _arrival.getName(); } + + void setDepartureName(const QString& newName) { _departure.setName(newName); emit departureNameChanged(); } + void setArrivalName(const QString& newName) { _arrival.setName(newName); emit arrivalNameChanged(); } + +private: + SBBStation _departure; + SBBStation _arrival; + +signals: + void departureChanged(); + void arrivalChanged(); + void departureNameChanged(); + void arrivalNameChanged(); + +public slots: + void refreshConnection(); + +}; + +#endif // SBBCONNECTIONINFO_H diff --git a/src/connection/sbbstation.cpp b/src/connection/sbbstation.cpp new file mode 100644 index 0000000..d180800 --- /dev/null +++ b/src/connection/sbbstation.cpp @@ -0,0 +1,42 @@ +#include "sbbstation.h" + +SBBStation::SBBStation(QObject *parent) : + QObject(parent) +{ +} + +SBBStation::SBBStation(QString& name) : + QObject(), _name(name) +{ +} + + +SBBStation::SBBStation(const SBBStation &other) : + QObject() +{ + _name = other.getName(); +} + +SBBStation& SBBStation::operator=(const SBBStation & that) { + if (this != &that) { + this->_externalId = that._externalId; + this->_name = that._name; + + } + return *this; +} + + +void SBBStation::setName(const QString &newName) +{ + _name = newName; + _externalId = ""; +} + + +SBBStation& SBBStation::operator=(const QString & that) { + this->_name = that; + this->_externalId = ""; + + return *this; +} diff --git a/src/connection/sbbstation.h b/src/connection/sbbstation.h new file mode 100644 index 0000000..252b60c --- /dev/null +++ b/src/connection/sbbstation.h @@ -0,0 +1,49 @@ +#ifndef SBBSTATION_H +#define SBBSTATION_H + +#include +#include + +class SBBStation : public QObject +{ + Q_OBJECT + Q_PROPERTY(QString name READ getName) +public: + explicit SBBStation(QObject *parent = 0); + SBBStation(QString& name); + SBBStation(const SBBStation&); + + const QString& getName() const { return _name; } + const QString& getId() const { return _externalId; } + + void setName(const QString& newName); + + SBBStation& operator =(const SBBStation& other); + SBBStation& operator =(const QString& other); + +private: + /** Name of the station */ + QString _name; + + /** Identifier of the station in the HAFAS system */ + QString _externalId; + + /** UNKNOWN */ + QString externalStationNr; + + /** Always WGS84 */ + QString type; + + /** GPS Coordinates */ + int x; + + /** GPS Coordinates */ + int y; + +signals: + +public slots: + +}; + +#endif // SBBSTATION_H diff --git a/src/utils.cpp b/src/utils.cpp new file mode 100644 index 0000000..4a62bd5 --- /dev/null +++ b/src/utils.cpp @@ -0,0 +1,27 @@ +#include "utils.h" + +Utils::Utils(QObject *parent) : + QObject(parent) +{ + _msgcounter = 0; +} + +void Utils::togglePlaying() +{ + qDebug() << "Connecting to DBus signals"; + _message = "Message " + QString('a' + _msgcounter); + _msgcounter++; + emit Utils::messageChanged(); +} + +QString Utils::getMessage() +{ + return _message; +} + +void Utils::setText() +{ + _message = "Message " + QString('a' + _msgcounter); + _msgcounter++; + emit Utils::messageChanged(); +} diff --git a/src/utils.h b/src/utils.h new file mode 100644 index 0000000..d138bdf --- /dev/null +++ b/src/utils.h @@ -0,0 +1,28 @@ +#ifndef UTILS_H +#define UTILS_H + +#include +#include + +class Utils : public QObject +{ + Q_OBJECT + Q_PROPERTY(QString message READ getMessage NOTIFY messageChanged) +public: + explicit Utils(QObject *parent = 0); + +private: + QString _message; + QString getMessage(); + int _msgcounter; + +signals: + void messageChanged(); + +public slots: + void togglePlaying(); + void setText(); + +}; + +#endif // UTILS_H