TrapNode Event
Lists module trap information.
Syntax
class MibBrowserTrapNodeEventParams { public: const QString &TrapName(); int SpecificTrap(); const QString &TrapEnterprise(); const QString &TrapVariables(); const QString &TrapDescription(); const QString &TrapReferences(); const QString &TrapModuleName(); const QString &TrapFileName(); int EventRetVal(); void SetEventRetVal(int iRetVal); };
// To handle, connect one or more slots to this signal. void TrapNode(MibBrowserTrapNodeEventParams *e);
// Or, subclass MibBrowser and override this emitter function. virtual int FireTrapNode(MibBrowserTrapNodeEventParams *e) {...}
Remarks
When calling ListTraps, the TrapNode event fires once for every trap found in the module.
The following are the descriptions of the event parameters:
TrapName | The name of the trap (its label). |
TrapSpecificTrap | The specific id of this trap. |
TrapEnterprise | The defining entity. |
TrapVariables | A comma separated list of the symbols that should be present inside the trap. |
TrapDescription | A textual memo about the node. |
TrapModuleName | The module that contains the trap definition. |
TrapFileName | The filename of the MIB where the trap is defined. |
If a trap has been defined in more than one module or file, then ModuleName and FileName will contain a comma separated list of values.