InfotainmentSystem Class Reference#

Demo: demo::InfotainmentSystem Class Reference
Demo
demo::InfotainmentSystem Class Reference

Represents the Infotainment System. More...

#include <infotainment_system.hpp>

Public Member Functions

 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.
 

Detailed Description

Represents the Infotainment System.

Implementation Class: InfotainmentSystem SW-CLS-INFOTAIN ../../../../_images/arrow-right-circle.svg
implements: SW-COMP-002

Member Function Documentation

◆ connectToSmartphone()

bool demo::InfotainmentSystem::connectToSmartphone ( const std::string &  smartphoneID)
inline

Establishes a Bluetooth connection with a smartphone.

Parameters
smartphoneIDThe 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
directionsThe list of directions to display.

◆ displayTrafficUpdates()

void demo::InfotainmentSystem::displayTrafficUpdates ( const std::string &  trafficInfo)
inline

Provides real-time traffic updates.

Parameters
trafficInfoThe 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
phoneNumberThe phone number to call.

◆ processVoiceCommand()

void demo::InfotainmentSystem::processVoiceCommand ( const std::string &  command)
inline

Processes a voice command from the user.

Parameters
commandThe voice command to process.

◆ streamMusic()

void demo::InfotainmentSystem::streamMusic ( const std::vector< std::string > &  playlist)
inline

Streams music from the smartphone.

Parameters
playlistThe playlist to stream.

The documentation for this class was generated from the following file: