ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/cvsroot/Net-XMPP2/lib/Net/XMPP2/Error/Register.pm
Revision: 1.3
Committed: Sat Jul 7 12:39:45 2007 UTC (19 years, 3 months ago) by elmex
Branch: MAIN
Changes since 1.2: +10 -4 lines
Log Message:
fixed some bugs, redesigned disco mechanism, probably added some bugs,
added samples/disco_test example.

File Contents

# User Rev Content
1 elmex 1.1 package Net::XMPP2::Error::Register;
2     use Net::XMPP2::Error;
3     our @ISA = qw/Net::XMPP2::Error::IQ/;
4    
5     =head1 NAME
6    
7 elmex 1.2 Net::XMPP2::Error::Register - In-band registration error
8 elmex 1.1
9 elmex 1.3 Subclass of L<Net::XMPP2::Error::IQ>
10 elmex 1.1
11     =cut
12    
13 elmex 1.3 =head1 DESCRIPTION
14    
15     This is a In-band registration error. For a mapping
16     of IQ error values to their meaning please consult
17     XEP-0077 for now.
18    
19     =head1 METHODS
20 elmex 1.1
21     =over 4
22    
23     =item B<register_state ()>
24    
25     Returns the state of registration, one of:
26    
27 elmex 1.3 register-form-request
28     register-form-submitted
29 elmex 1.1
30     =cut
31    
32     sub register_state {
33     my ($self) = @_;
34     $self->{register_state}
35     }
36    
37     sub string {
38     my ($self) = @_;
39    
40     sprintf "ibb registration error (in %s): %s",
41     $self->register_state,
42     $self->SUPER::string
43     }
44    
45     =back
46    
47     =head1 AUTHOR
48    
49     Robin Redeker, C<< <elmex at ta-sa.org> >>, JID: C<< <elmex at jabber.org> >>
50    
51     =head1 COPYRIGHT & LICENSE
52    
53     Copyright 2007 Robin Redeker, all rights reserved.
54    
55     This program is free software; you can redistribute it and/or modify it
56     under the same terms as Perl itself.
57    
58     =cut
59    
60     1; # End of Net::XMPP2