summaryrefslogtreecommitdiff
path: root/polux/application/agent/inc/trapBuilder.h
diff options
context:
space:
mode:
Diffstat (limited to 'polux/application/agent/inc/trapBuilder.h')
-rwxr-xr-xpolux/application/agent/inc/trapBuilder.h55
1 files changed, 55 insertions, 0 deletions
diff --git a/polux/application/agent/inc/trapBuilder.h b/polux/application/agent/inc/trapBuilder.h
new file mode 100755
index 0000000000..f719fafdcd
--- /dev/null
+++ b/polux/application/agent/inc/trapBuilder.h
@@ -0,0 +1,55 @@
+/*
+ ****************************************************************************
+ * PROGRAM MODULE
+ *
+ * $Workfile: systemmanager.h $
+ * $Author: antunes $
+ * $Date: 2006/02/10 08:21:50 $
+ *
+ * Copyright (C) 2003 by SPiDCOM Technologies All rights reserved.
+ *
+ ****************************************************************************
+ */
+
+#ifndef __TRAP_BUILDER__
+#define __TRAP_BUILDER__
+
+
+
+//Forward declaration
+class AlarmObjectModel;
+class UdpAddress;
+class Vbx;
+
+
+class trapBuilder
+{
+
+
+public:
+
+
+ //trapBuilder();
+
+ /**
+ * Send the trap which describes the alarm
+ */
+ virtual void sendTrap(const AlarmObjectModel& iAlarmToSend, const char* oid);
+
+
+ /**
+ * Send a trap for all active alarms => resynchronisation NMS <-> Modem
+ */
+ virtual void resynchronize();
+
+ /**
+ * Build the variable binding of SNMP trap
+ */
+ void buildVariableBinding(Vbx vbs[], const AlarmObjectModel& iAlarmToSend, bool iSynchro=false);
+
+};
+
+
+
+#endif
+