Добавил привязку действий к событиям
за баллы канала и за донаты можено можно выполнять списки действий, за каждое событие свой набор
This commit is contained in:
+13
@@ -68,6 +68,13 @@ struct ActionData {
|
||||
QString notificationSound;
|
||||
};
|
||||
|
||||
struct EventActionLink {
|
||||
int id;
|
||||
QString eventType;
|
||||
QString eventName;
|
||||
int actionId;
|
||||
};
|
||||
|
||||
class uDataBase : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
@@ -142,6 +149,12 @@ public:
|
||||
int saveDonationTrigger(const DonationTrigger &trigger);
|
||||
bool deleteDonationTrigger(int id);
|
||||
QList<DonationTrigger> loadAllDonationTriggers();
|
||||
|
||||
bool saveEventActionLink(const QString &eventType, const QString &eventName, int actionId);
|
||||
bool deleteEventActionLink(int id);
|
||||
QList<EventActionLink> getLinksForEvent(const QString &eventType, const QString &eventName);
|
||||
bool deleteLinksForEvent(const QString &eventType, const QString &eventName);
|
||||
bool deleteLinksByActionId(int actionId);
|
||||
private:
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user