2017-05-19 14:36:41 +02:00
|
|
|
#ifndef CAMPSERVICE_H
|
|
|
|
|
#define CAMPSERVICE_H
|
|
|
|
|
|
2017-05-20 23:40:57 +02:00
|
|
|
#include <core.h>
|
|
|
|
|
#include <addressbookdata.h>
|
|
|
|
|
#include "data/camp-data.h"
|
|
|
|
|
#include "camp-odb.hxx"
|
2017-05-19 14:36:41 +02:00
|
|
|
|
2017-05-20 23:40:57 +02:00
|
|
|
class CampService : public Service<CampData>
|
2017-05-19 14:36:41 +02:00
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
CampService();
|
2017-05-20 23:40:57 +02:00
|
|
|
void addPerson(CampDataPtr data, AddressbookDataPtr address);
|
|
|
|
|
void setOwner(CampDataPtr data, AddressItemPtr person);
|
|
|
|
|
CampDataPtr create();
|
2017-05-19 14:36:41 +02:00
|
|
|
};
|
|
|
|
|
|
2017-05-20 23:40:57 +02:00
|
|
|
#endif // CAMPSERVICE_H
|