ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/cvsroot/Net-XMPP2/lib/Net/XMPP2/Error/Register.pm
Revision: 1.4
Committed: Thu Jul 26 19:45:13 2007 UTC (19 years, 2 months ago) by elmex
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +3 -2 lines
Log Message:
Finally implemented the last parts of in band registration.
Let me call it 'in band frustration'!

File Contents

# Content
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 Net::XMPP2::Error::Register - In-band registration error
8
9 Subclass of L<Net::XMPP2::Error::IQ>
10
11 =cut
12
13 =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
21 =over 4
22
23 =item B<register_state ()>
24
25 Returns the state of registration, one of:
26
27 register
28 unregister
29 submit
30
31 =cut
32
33 sub register_state {
34 my ($self) = @_;
35 $self->{register_state}
36 }
37
38 sub string {
39 my ($self) = @_;
40
41 sprintf "ibb registration error (in %s): %s",
42 $self->register_state,
43 $self->SUPER::string
44 }
45
46 =back
47
48 =head1 AUTHOR
49
50 Robin Redeker, C<< <elmex at ta-sa.org> >>, JID: C<< <elmex at jabber.org> >>
51
52 =head1 COPYRIGHT & LICENSE
53
54 Copyright 2007 Robin Redeker, all rights reserved.
55
56 This program is free software; you can redistribute it and/or modify it
57 under the same terms as Perl itself.
58
59 =cut
60
61 1; # End of Net::XMPP2