Net::Jabber::X::ReplyPres - Jabber X Reply Presence Notification
Net::Jabber::X::ReplyPres is a companion to the Net::Jabber::X module. It provides the user a simple interface to set and retrieve all parts of a Jabber X Reply Presence. The main purpose for this module is to handle the presence that is sent when a user is typing a reply to you.
To initialize the ReplyPres with a Jabber <x/> you must pass it the XML::Parser Tree array from the module trying to access the <x/>. In the callback function: use Net::Jabber; sub presence { my $foo = new Net::Jabber::Foo(@_); my @xTags = $foo->GetX("jabber:x:replypres"); my $xTag; foreach $xTag (@xTags) { $xTag->.... } . . . } You now have access to all of the retrieval functions available. To create a new ReplyPres to send to the server: use Net::Jabber; $foo = new Net::Jabber::Foo(); $xTag = $foo->NewX("jabber:x:replypres"); Now you can call the creation functions below. For more information about the array format being passed to the CallBack please read the Net::Jabber::Client documentation.
n/a
By Ryan Eatmon in November of 2000 for http://jabber.org..
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Net::Jabber, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::Jabber
CPAN shell
perl -MCPAN -e shell install Net::Jabber
For more information on module installation, please visit the detailed CPAN module installation guide.