-
Notifications
You must be signed in to change notification settings - Fork 83
Expand file tree
/
Copy pathdbhelper.h
More file actions
32 lines (22 loc) · 786 Bytes
/
dbhelper.h
File metadata and controls
32 lines (22 loc) · 786 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef DBHELPER_H
#define DBHELPER_H
#include <QObject>
class DBHelper : public QObject
{
Q_OBJECT
public:
explicit DBHelper(QObject *parent = 0);
//添加日志记录
static void AddEventInfo(QString triggerType, QString triggerContent, QString defenceID, QString defenceName);
static void AddEventInfoUser(QString triggerContent);
static void AddEventInfoHost(QString triggerContent);
//防区是否已经存在
static bool IsExistDefence(QString defenceID);
//根据防区号获取防区名称和告警声音
static void GetDefenceInfo(QString defenceID, QString &defenceName, QString &defenceSound);
//当前联动预案是否存在
static bool IsExistLink(QString linkName);
signals:
public slots:
};
#endif // DBHELPER_H