2 * Copyright (C) 2011, Jamie Thompson
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public
6 * License as published by the Free Software Foundation; either
7 * version 3 of the License, or (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * General Public License for more details.
14 * You should have received a copy of the GNU General Public
15 * License along with this program; If not, see
16 * <http://www.gnu.org/licenses/>.
19 #ifndef DBBACKENDS_RTCOMEVENTLOGGERCOMPONENTS_TRIGGERDISABLER_H
20 #define DBBACKENDS_RTCOMEVENTLOGGERCOMPONENTS_TRIGGERDISABLER_H
30 namespace RtcomEventLoggerComponents
35 TriggerDisabler(const Settings &settings);
41 const Settings &CurrentSettings() const { return m_Settings; }
43 const QHash<QString, QString> &Triggers() const { return m_Triggers; }
45 const bool Reenabled() const { return m_Reenabled; }
47 void RestoreTriggers(QSqlDatabase &db);
48 void UpdateGroupCache(QSqlDatabase &db);
51 const Settings &m_Settings;
53 QHash<QString, QString> &Triggers() { return m_Triggers; }
54 QHash<QString, QString> m_Triggers;
56 void Reenabled(bool reenabled) { m_Reenabled = reenabled; }
62 #endif // DBBACKENDS_RTCOMEVENTLOGGERCOMPONENTS_TRIGGERDISABLER_H