You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
prodejna/addressbook/addressbookservice.cpp

31 lines
908 B
C++

#include <service.h>
#include "addressbookservice.h"
AddressBookService::AddressBookService()
{
}
AddressBookService::~AddressBookService()
{
}
AddressbookDataPtr AddressBookService::copyAddress(AddressbookDataPtr address)
{
AddressbookDataPtr newAddress(new AddressbookData());
newAddress->setTitle(address->title());
newAddress->setFirstName(address->firstName());
newAddress->setLastName(address->lastName());
newAddress->setBirthDate(address->birthDate());
newAddress->setIdCardNumber(address->idCardNumber());
newAddress->setZtp(address->ztp());
newAddress->setAddressStreet(address->addressStreet());
newAddress->setAddressHouseNumber(address->addressHouseNumber());
newAddress->setAddressZipCode(address->addressZipCode());
newAddress->setAddressCity(address->addressCity());
//newAddress->setCountry(address->country());
return newAddress;
}