@@ -15,6 +15,7 | |||
|
15 | 15 | |
|
16 | 16 | class DBCatalogue; |
|
17 | 17 | class DBEvent; |
|
18 | class DBEventProduct; | |
|
18 | 19 | |
|
19 | 20 | Q_DECLARE_LOGGING_CATEGORY(LOG_CatalogueController) |
|
20 | 21 | |
@@ -44,6 +45,7 public: | |||
|
44 | 45 | retrieveEventsFromCatalogue(std::shared_ptr<DBCatalogue> catalogue) const; |
|
45 | 46 | void addEvent(std::shared_ptr<DBEvent> event); |
|
46 | 47 | void updateEvent(std::shared_ptr<DBEvent> event); |
|
48 | void updateEventProduct(std::shared_ptr<DBEventProduct> eventProduct); | |
|
47 | 49 | void removeEvent(std::shared_ptr<DBEvent> event); |
|
48 | 50 | // void trashEvent(std::shared_ptr<DBEvent> event); |
|
49 | 51 | // void restore(QUuid eventId); |
@@ -141,6 +141,11 void CatalogueController::updateEvent(std::shared_ptr<DBEvent> event) | |||
|
141 | 141 | impl->m_CatalogueDao.updateEvent(*event); |
|
142 | 142 | } |
|
143 | 143 | |
|
144 | void CatalogueController::updateEventProduct(std::shared_ptr<DBEventProduct> eventProduct) | |
|
145 | { | |
|
146 | impl->m_CatalogueDao.updateEventProduct(*eventProduct); | |
|
147 | } | |
|
148 | ||
|
144 | 149 | void CatalogueController::removeEvent(std::shared_ptr<DBEvent> event) |
|
145 | 150 | { |
|
146 | 151 | // Remove it from both repository and repository_work |
General Comments 0
You need to be logged in to leave comments.
Login now