Added camp service class.

master
Josef Rokos 8 years ago
parent 123aefdab5
commit 0608e277e7

@ -32,7 +32,8 @@ SOURCES += camp.cpp \
settings/campsettingsform.cpp \
data/personprice.cpp \
settings/campsettings.cpp \
campwizard.cpp
campwizard.cpp \
campservice.cpp
HEADERS += camp.h\
camp_global.h \
@ -46,7 +47,8 @@ HEADERS += camp.h\
settings/campsettingsform.h \
data/personprice.h \
settings/campsettings.h \
campwizard.h
campwizard.h \
campservice.h
include(../config_plugin.pri)

@ -0,0 +1,18 @@
#include "campservice.h"
CampService::CampService()
{
}
void CampService::addPerson(CampDataPtr data, AddressbookDataPtr address)
{
AddressItemPtr addrItem(new AddressItem);
addrItem->setAdbItem(address);
addrItem->setAddress(address->toString());
addrItem->setFirstName(address->firstName());
addrItem->setLastName(address->lastName());
addrItem->setCampData(data);
data->addPerson(addrItem);
}

@ -0,0 +1,11 @@
#ifndef CAMPSERVICE_H
#define CAMPSERVICE_H
class CampService
{
public:
CampService();
};
#endif // CAMPSERVICE_H
Loading…
Cancel
Save