Added camp service class.
parent
123aefdab5
commit
0608e277e7
@ -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…
Reference in New Issue