This example app demonstrates the following features:
- Retrieve vehicles from the database that match the specified search filter.
When you run the example app, all vehicles in the database that contain the searchTerm will be retrieved. The searchTerm is a string used to search for vehicles, and it is matched against each field in the vehicle's object.
- Create two
vrp::Vehicleobjects and set the desired fields (name, type, manufacturer, model, etc.). - Create a
ProgressListener,vrp::Service, and avrp::VehicleList. - Call the
addVehicle()method from thevrp::Serviceusing thevrp::VehicleandProgressListener, and wait for the operation to complete. - After adding the vehicles, call the
getVehicles()method from thevrp::Serviceusing the list from step 2.) and theProgressListener. - Once the operation is complete, the list from step 2.) will be populated with vehicles that match the search criteria.