[WIP] Initial support for adding reservations without files
ClosedPublic

Authored by lbeltrame on May 12 2018, 12:58 PM.

Details

Summary

This is just an initial review to gather feedback. It should be
the first building block to allow itinerary to work also when creating
events without reservation files attached.

Test Plan

Compiles

Diff Detail

Repository
R1007 Itinerary - Travel Assistance Application
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
lbeltrame created this revision.May 12 2018, 12:58 PM
Restricted Application added a project: KDE PIM. · View Herald TranscriptMay 12 2018, 12:58 PM
Restricted Application added a subscriber: kde-pim. · View Herald Transcript
lbeltrame requested review of this revision.May 12 2018, 12:58 PM
lbeltrame added a comment.EditedMay 12 2018, 1:00 PM

There's almost nothing done yet mainly because I want to gather feedback first on what the approach should be (to avoid doing work that won't be useful).

For example:

  • how should non-reservations like TouristAttraction handled?
  • Is this the right design (the reservations come from outside the clsss)
  • Should we create an entirely new class to create reservations from scratch?

I think this is the right approach, just the argument needs to be a QVariant, to handle non-reservation types and to not "slice off" Reservation sub-class properties.

lbeltrame updated this revision to Diff 34456.May 18 2018, 10:36 PM

Use QVariant

vkrause accepted this revision.May 19 2018, 12:10 PM
This revision is now accepted and ready to land.May 19 2018, 12:10 PM
This revision was automatically updated to reflect the committed changes.