Добавил привязку действий к событиям

за баллы канала и за донаты можено можно выполнять списки действий, за каждое событие свой набор
This commit is contained in:
2026-02-22 10:20:04 +03:00
parent eb494ae8fa
commit 5094834ea1
7 changed files with 371 additions and 5 deletions
+13
View File
@@ -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: