Represents the Infotainment System. More...
#include <infotainment_system.hpp>
|
| | InfotainmentSystem () |
| | Constructs the InfotainmentSystem object.
|
| |
| bool | connectToSmartphone (const std::string &smartphoneID) |
| | Establishes a Bluetooth connection with a smartphone.
|
| |
| void | makeHandsFreeCall (const std::string &phoneNumber) |
| | Makes a hands-free call.
|
| |
| void | streamMusic (const std::vector< std::string > &playlist) |
| | Streams music from the smartphone.
|
| |
| std::vector< Contact > | getContacts () |
| | Accesses the contacts on the smartphone.
|
| |
| void | displayDirections (const std::vector< std::string > &directions) |
| | Displays turn-by-turn directions on the user interface.
|
| |
| void | displayTrafficUpdates (const std::string &trafficInfo) |
| | Provides real-time traffic updates.
|
| |
| void | processVoiceCommand (const std::string &command) |
| | Processes a voice command from the user.
|
| |
Represents the Infotainment System.
◆ connectToSmartphone()
| bool demo::InfotainmentSystem::connectToSmartphone | ( | const std::string & | smartphoneID | ) | | | inline |
Establishes a Bluetooth connection with a smartphone.
- Parameters
-
| smartphoneID | The ID of the smartphone to connect. |
- Returns
- True if the connection is successful, false otherwise.
◆ displayDirections()
| void demo::InfotainmentSystem::displayDirections | ( | const std::vector< std::string > & | directions | ) | | | inline |
Displays turn-by-turn directions on the user interface.
- Parameters
-
| directions | The list of directions to display. |
◆ displayTrafficUpdates()
| void demo::InfotainmentSystem::displayTrafficUpdates | ( | const std::string & | trafficInfo | ) | | | inline |
Provides real-time traffic updates.
- Parameters
-
| trafficInfo | The traffic information to display. |
◆ getContacts()
| std::vector< Contact > demo::InfotainmentSystem::getContacts | ( | | ) | | | inline |
Accesses the contacts on the smartphone.
- Returns
- The list of contacts.
◆ makeHandsFreeCall()
| void demo::InfotainmentSystem::makeHandsFreeCall | ( | const std::string & | phoneNumber | ) | | | inline |
Makes a hands-free call.
- Parameters
-
| phoneNumber | The phone number to call. |
◆ processVoiceCommand()
| void demo::InfotainmentSystem::processVoiceCommand | ( | const std::string & | command | ) | | | inline |
Processes a voice command from the user.
- Parameters
-
| command | The voice command to process. |
◆ streamMusic()
| void demo::InfotainmentSystem::streamMusic | ( | const std::vector< std::string > & | playlist | ) | | | inline |
Streams music from the smartphone.
- Parameters
-
| playlist | The playlist to stream. |
The documentation for this class was generated from the following file: