C
Qt Quick Ultralite Automotive Cluster Demo
// Copyright (C) 2024 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial #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