KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jivesoftware > smackx > muc > InvitationListener


1 /**
2  * $RCSfile$
3  * $Revision: 2444 $
4  * $Date: 2005-01-11 14:35:41 -0300 (Tue, 11 Jan 2005) $
5  *
6  * Copyright 2003-2004 Jive Software.
7  *
8  * All rights reserved. Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  * http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  */

20
21 package org.jivesoftware.smackx.muc;
22
23 import org.jivesoftware.smack.XMPPConnection;
24 import org.jivesoftware.smack.packet.Message;
25
26 /**
27  * A listener that is fired anytime an invitation to join a MUC room is received.
28  *
29  * @author Gaston Dombiak
30  */

31 public interface InvitationListener {
32
33     /**
34      * Called when the an invitation to join a MUC room is received.<p>
35      *
36      * If the room is password-protected, the invitee will receive a password to use to join
37      * the room. If the room is members-only, the the invitee may be added to the member list.
38      *
39      * @param conn the XMPPConnection that received the invitation.
40      * @param room the room that invitation refers to.
41      * @param inviter the inviter that sent the invitation. (e.g. crone1@shakespeare.lit).
42      * @param reason the reason why the inviter sent the invitation.
43      * @param password the password to use when joining the room.
44      * @param message the message used by the inviter to send the invitation.
45      */

46     public abstract void invitationReceived(XMPPConnection conn, String JavaDoc room, String JavaDoc inviter, String JavaDoc reason,
47                                             String JavaDoc password, Message message);
48
49 }
50
Popular Tags