- Added possibility to set confirmation messages for object tools
[public/netxms.git] / include / nxtools.h
1 /*
2 ** NetXMS - Network Management System
3 ** Copyright (C) 2003, 2004, 2005 Victor Kirhenshtein
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 **
19 ** $module: nxtools.h
20 **
21 **/
22
23 #ifndef _nxtools_h
24 #define _nxtools_h
25
26
27 //
28 // Tool types
29 //
30
31 #define TOOL_TYPE_INTERNAL 0
32 #define TOOL_TYPE_ACTION 1
33 #define TOOL_TYPE_TABLE_SNMP 2
34 #define TOOL_TYPE_TABLE_AGENT 3
35 #define TOOL_TYPE_URL 4
36 #define TOOL_TYPE_COMMAND 5
37
38
39 //
40 // Object tool flags
41 //
42
43 #define TF_REQUIRES_SNMP ((DWORD)0x00000001)
44 #define TF_REQUIRES_AGENT ((DWORD)0x00000002)
45 #define TF_REQUIRES_OID_MATCH ((DWORD)0x00000004)
46 #define TF_ASK_CONFIRMATION ((DWORD)0x00000008)
47 #define TF_SNMP_INDEXED_BY_VALUE ((DWORD)0x00010000)
48
49
50 //
51 // Column formats
52 //
53
54 #define CFMT_STRING 0
55 #define CFMT_INTEGER 1
56 #define CFMT_FLOAT 2
57 #define CFMT_IP_ADDR 3
58 #define CFMT_MAC_ADDR 4
59 #define CFMT_IFINDEX 5
60
61
62 #endif