C

Qt Quick Ultralite Automotive Cluster Demo

/****************************************************************************** ** ** Copyright (C) 2020 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of the Qt Quick Ultralite module. ** ** $QT_BEGIN_LICENSE:COMM$ ** ** Commercial License Usage ** Licensees holding valid commercial Qt licenses may use this file in ** accordance with the commercial license agreement provided with the ** Software or, alternatively, in accordance with the terms contained in ** a written agreement between you and The Qt Company. For licensing terms ** and conditions see http://www.qt.io/terms-conditions. For further ** information use the contact form at http://www.qt.io/contact-us. ** ** $QT_END_LICENSE$ ** ******************************************************************************/
#ifndef SIMULATIONCONTROLLER_H #define SIMULATIONCONTROLLER_H #ifdef __cplusplus #include <qul/object.h> #include <qul/property.h> #else #include <stdbool.h> #endif #ifdef __cplusplus struct SimulationController : Qul::Object { SimulationController(); void start(); void startInteractiveMode(); void stopInteractiveMode(); void switchToSportMode(); void switchToNormalMode(); }; extern "C" { #endif void qul_application_force_interactive_mode(bool force_interactive_mode); void qul_application_show_simulated_drive_data(bool simulated_drive_data); void qul_application_set_speed(float speed); void qul_application_set_rpm(float rpm); void qul_application_set_gear(int gear); void qul_application_set_odo(float odo); void qul_application_set_range(int range); void qul_application_set_battery_level(float battery_level); void qul_application_set_fuel_level(float fuel_level); void qul_application_set_coolant_temp(float coolant_temp); void qul_application_set_lane_assistant_enabled(bool enabled); void qul_application_show_simulated_light_indicators(bool simulated_light_indicators); void qul_application_set_left_blinker_on(bool left_blinker_on); void qul_application_set_right_blinker_on(bool right_blinker_on); void qul_application_set_parking_lights_on(bool parking_lights_on); void qul_application_set_low_beam_headlights_on(bool low_beam_headlights_on); void qul_application_control_navigate_up(bool pressed); void qul_application_control_navigate_down(bool pressed); void qul_application_control_navigate_left(bool pressed); void qul_application_control_navigate_right(bool pressed); void qul_application_control_previous_page(bool pressed); void qul_application_control_next_page(bool pressed); void qul_application_control_validate(bool pressed); #ifdef __cplusplus } #endif #endif // SIMULATIONCONTROLLER_H