IJabberAgents
This interface contains the list of Agents for a specific parent object. The parent object could be a IJabberSession, or a IJabberAgentItem. This interface works very similar to the IJabberRoster interface.

Properties


Methods


Fetch(iqID: string)
Fetches the list of agents from the server. This should populate the Items property. This will kick off the corresponding IJabberSession events. Pass the desired ID to use in the xml (which will also be used for the result), or leave it blank to have the COM Lib assign an ID for you.
Add(IXMLTag): IJabberAgentItem
This method builds a new AgentItem object based on the XMLTag that was passed in. It returns an interface to the new object.
FindAgent(Name: String): IJabberAgentItem
Search the list for a specific Agent Name and returns an interface to it's JabberAgentItem object.
FindJID(jid: String): IJabberAgentItem
Searchs the list for a specific Agent JID and returns an interface to it's JabberAgentItem object.
Clear
Clear and free all the contain AgentItem objects.


IJabberAgentItem
This interface contains details and info about a specific Agent on the server. Each agent may contain several properties. These are very similar to the JabberIQ stuff.

Properties


Methods


GetProp(Value: string): string
This returns a string containing the contents of this property.
SetProp(Key, value: string)
Either add or set a new property value for a specific key.
GetRegister(ID: String)
This sends an iq type='get' xml tag to the server. This will force an new JabberIQ to be created. Send a specific ID into this function so you can catch the corresponding JabberIQ when it comes through the JabberSession.OnJabberIQ event.
SetRegister(ID: string; SetIQ: IJabberIQ)
This sends an iq type='set' xml tag to the server containing all of the properties. Use this to send a completed or modified registration query. Use the ID to specify an ID to be used. Use this ID to catch the OnJabberIQ when it comes back. You should pass in a complete JabberIQ with the fields set appropriately. The method will automatically assign the from/to JIDs, and the correct namespace.
DeleteRegister(ID: String)
This method will remove the account/registration information from the server.