Camp wizard is now able to open from shop plugin
This commit is contained in:
+11
-1
@@ -4,14 +4,16 @@
|
||||
#include <core.h>
|
||||
#include <addressbookdata.h>
|
||||
#include <accservice.h>
|
||||
#include <isellableservice.h>
|
||||
#include "data/camp-data.h"
|
||||
#include "settings/campsettings.h"
|
||||
#include "camp-odb.hxx"
|
||||
|
||||
class CampService : public Service<CampData>
|
||||
class CampService : public Service<CampData>, public ISellableService
|
||||
{
|
||||
public:
|
||||
CampService();
|
||||
|
||||
void addPerson(CampDataPtr data, AddressbookDataPtr address);
|
||||
void addService(CampDataPtr data, AccServicePtr service);
|
||||
void addService(CampDataPtr data, AccServicePtr service, QDecDouble price, QString description);
|
||||
@@ -27,6 +29,14 @@ private:
|
||||
void calcPrice(CampDataPtr data);
|
||||
void addAccFee(CampDataPtr data, AddressItemPtr item, int startAge, int endAge, int days);
|
||||
CampSettingsPtr m_settings;
|
||||
ISeller *m_seller;
|
||||
|
||||
// ISellableService interface
|
||||
public:
|
||||
QList<ShopItemPtr> shopItems();
|
||||
ShopItemPtr shopItem(int itemId);
|
||||
void addedToVoucher(int itemId, int countAdded);
|
||||
ISeller *seller();
|
||||
};
|
||||
|
||||
#endif // CAMPSERVICE_H
|
||||
|
||||
Reference in New Issue
Block a user