001/** 002 * 003 * Copyright 2003-2007 Jive Software. 004 * 005 * Licensed under the Apache License, Version 2.0 (the "License"); 006 * you may not use this file except in compliance with the License. 007 * You may obtain a copy of the License at 008 * 009 * http://www.apache.org/licenses/LICENSE-2.0 010 * 011 * Unless required by applicable law or agreed to in writing, software 012 * distributed under the License is distributed on an "AS IS" BASIS, 013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 014 * See the License for the specific language governing permissions and 015 * limitations under the License. 016 */ 017 018package org.jivesoftware.smackx.workgroup; 019 020/** 021 * An interface which all classes interested in hearing about group chat invitations should 022 * implement. 023 * 024 * @author loki der quaeler 025 */ 026public interface WorkgroupInvitationListener { 027 028 /** 029 * The implementing class instance will be notified via this method when an invitation 030 * to join a group chat has been received from the server. 031 * 032 * @param invitation an Invitation instance embodying the information pertaining to the 033 * invitation 034 */ 035 void invitationReceived(WorkgroupInvitation invitation); 036 037}