|
|
|
#include <context.h>
|
|
|
|
|
|
|
|
#include "accommodation.h"
|
|
|
|
#include <QDebug>
|
|
|
|
#include "accommodationform.h"
|
|
|
|
|
|
|
|
#include "data/person.h"
|
|
|
|
#include "accommodationservice.h"
|
|
|
|
|
|
|
|
Accommodation::Accommodation()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void Accommodation::initServiceUi()
|
|
|
|
{
|
|
|
|
m_ui = new AccommodationForm();
|
|
|
|
AccommodationService *service = new AccommodationService();
|
|
|
|
m_service = service;
|
|
|
|
}
|
|
|
|
|
|
|
|
QWidget *Accommodation::ui()
|
|
|
|
{
|
|
|
|
QWidget *ui = IPlugin::ui();
|
|
|
|
AccommodationForm *form = qobject_cast<AccommodationForm*>(ui);
|
|
|
|
|
|
|
|
form->fillGrid();
|
|
|
|
|
|
|
|
return ui;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
QString Accommodation::pluginName()
|
|
|
|
{
|
|
|
|
return "Ubytovani";
|
|
|
|
}
|
|
|
|
|
|
|
|
void Accommodation::init(const QJsonObject &metaData)
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
QString Accommodation::pluginId()
|
|
|
|
{
|
|
|
|
return "ACCOMMODATION";
|
|
|
|
}
|
|
|
|
*/
|