Implemented Export and Import for Server Actions. Fixes #NX-703
[public/netxms.git] / src / server / include / nms_actions.h
CommitLineData
5039dede
AK
1/*
2** NetXMS - Network Management System
ca0e18d2 3** Copyright (C) 2003-2014 Victor Kirhenshtein
5039dede
AK
4**
5** This program is free software; you can redistribute it and/or modify
6** it under the terms of the GNU General Public License as published by
7** the Free Software Foundation; either version 2 of the License, or
8** (at your option) any later version.
9**
10** This program is distributed in the hope that it will be useful,
11** but WITHOUT ANY WARRANTY; without even the implied warranty of
12** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13** GNU General Public License for more details.
14**
15** You should have received a copy of the GNU General Public License
16** along with this program; if not, write to the Free Software
17** Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18**
ca0e18d2 19** File: nms_actions.h
5039dede
AK
20**
21**/
22
23#ifndef _nms_actions_h_
24#define _nms_actions_h_
25
26
27//
28// Functions
29//
30
35f836fe
VK
31BOOL InitActions();
32void CleanupActions();
2649d20b 33BOOL ExecuteAction(UINT32 dwActionId, Event *pEvent, const Alarm *alarm);
967893bb
VK
34UINT32 CreateNewAction(const TCHAR *pszName, UINT32 *pdwId);
35UINT32 DeleteActionFromDB(UINT32 dwActionId);
b368969c
VK
36UINT32 ModifyActionFromMessage(NXCPMessage *pMsg);
37void FillActionInfoMessage(NXCPMessage *pMsg, NXC_ACTION *pAction);
967893bb 38void SendActionsToClient(ClientSession *pSession, UINT32 dwRqId);
f99f5b80
EJ
39void CreateActionExportRecord(String &xml, UINT32 id);
40bool ImportAction(ConfigEntry *config);
5039dede
AK
41
42#endif /* _nms_actions_ */