#include #include "accommodation.h" #include #include "data/person.h" #include "accommodationservice.h" #include "accgrid.h" #include "acform.h" Accommodation::Accommodation() { } void Accommodation::initServiceUi() { AccGrid *grid = new AccGrid(); AcForm *form = new AcForm(); grid->setForm(form); grid->setPluginId(pluginId()); AccommodationService *service = new AccommodationService(); service->setPluginId(pluginId()); m_service = service; m_ui = grid; } QWidget *Accommodation::ui() { QWidget *ui = IPlugin::ui(); AccGrid *form = qobject_cast(ui); form->fillData(); return ui; }