1/** 2 * $Revision$ 3 * $Date$ 4 * 5 * Copyright 2006-2007 Jive Software. 6 * 7 * All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); 8 * you may not use this file except in compliance with the License. 9 * You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, software 14 * distributed under the License is distributed on an "AS IS" BASIS, 15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 * See the License for the specific language governing permissions and 17 * limitations under the License. 18 */ 19 20package org.jivesoftware.smack; 21 22import org.jivesoftware.smack.packet.PrivacyItem; 23 24import java.util.List; 25 26/** 27 * Interface to implement classes to listen for server events about privacy communication. 28 * Listeners are registered with the {@link PrivacyListManager}. 29 * 30 * @see PrivacyListManager#addListener 31 * 32 * @author Francisco Vives 33 */ 34public interface PrivacyListListener { 35 36 /** 37 * Set or update a privacy list with PrivacyItem. 38 * 39 * @param listName the name of the new or updated privacy list. 40 * @param listItem the PrivacyItems that rules the list. 41 */ 42 public void setPrivacyList(String listName, List<PrivacyItem> listItem); 43 44 /** 45 * A privacy list has been modified by another. It gets notified. 46 * 47 * @param listName the name of the updated privacy list. 48 */ 49 public void updatedPrivacyList(String listName); 50 51}