-> Every backend will inherit a BaseBackend classSorry to say but I didn't understand it properly. You mean to say that every Backend would inherit the dialog or should contain a dialog object ? Also how my dialog class would have different implementation for Add, Edit, Delete ? Can you please explain ..
-> BaseBackend or any other inherited backend will not have any knowledge about any dialog, all it knows is how to Add/Delete etc
-> Dialog class know about the BaseBacked which will provied virtual methods to perform Add/Delete/Edit etc.
-> There virtual methods will be implemented by the respective backend classes
-> Dialog class knows how to trigger the editing (i.e button click or other UI operation).
-> Editing/Adding operation is managed by the dialog, one the operation is done dialog will use the BaseBackend methods to save the data back to backend
Mostly this will deal the C++ way of implementing interfaces.
Bookmarks