KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > planetamessenger > plugin > JContactListListener


1 /*
2     =========================================================================
3     Package plugin - Plugin management
4
5     This module is developed and maintained by PlanetaMessenger.org.
6     Specs, New and updated versions can be found in
7     http://www.planetamessenger.org
8     If you want contact the Team please send a email to Project Manager
9     Leidson Campos Alves Ferreira at leidson@planetamessenger.org
10
11     Copyright (C) since 2001 by PlanetaMessenger.org
12     
13     This library is free software; you can redistribute it and/or
14     modify it under the terms of the GNU Lesser General Public
15     License as published by the Free Software Foundation; either
16     version 2.1 of the License, or (at your option) any later version.
17
18     This library is distributed in the hope that it will be useful,
19     but WITHOUT ANY WARRANTY; without even the implied warranty of
20     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21     Lesser General Public License for more details.
22
23     You should have received a copy of the GNU Lesser General Public
24     License along with this library; if not, write to the Free Software
25     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26
27     =========================================================================
28 */

29 /**
30  *
31  * $Id: JContactListListener.java,v 1.18 2007/01/28 17:39:21 popolony2k Exp $
32  * $Author: popolony2k $
33  * $Name: $
34  * $Revision: 1.18 $
35  * $State: Exp $
36  *
37  */

38
39 package org.planetamessenger.plugin;
40
41
42 public interface JContactListListener extends java.util.EventListener JavaDoc {
43
44   public boolean saveMessage( org.planetamessenger.plugin.JPlugin sender, java.lang.String JavaDoc strFromUserId, int nMessageType, java.lang.String JavaDoc strMsg );
45   public void setItemStatus( org.planetamessenger.plugin.JPlugin plugin, java.lang.String JavaDoc strItemId, int nStatus );
46   public void setAllItemsStatus( org.planetamessenger.plugin.JPlugin plugin, int nStatus );
47   public void removeAllUIItems( org.planetamessenger.plugin.JPlugin plugin );
48   public boolean addToContactList( org.planetamessenger.plugin.JPlugin plugin, java.lang.String JavaDoc strNick, java.lang.String JavaDoc strUserId );
49   public boolean removeFromContactList( org.planetamessenger.plugin.JPlugin plugin, java.lang.String JavaDoc strUserId );
50   public boolean onBuddyRequestAuthorization( java.lang.String JavaDoc strUserId, java.lang.String JavaDoc strNickName );
51   public boolean updateScreenName( org.planetamessenger.plugin.JPlugin plugin, java.lang.String JavaDoc strUserId, java.lang.String JavaDoc strNewNick );
52   public boolean updatePrivacy( JContactListItem contactItem );
53   public java.util.Hashtable JavaDoc getContactList( org.planetamessenger.plugin.JPlugin plugin );
54   public org.planetamessenger.plugin.JContactListItem getContact( org.planetamessenger.plugin.JPlugin plugin, String JavaDoc strUserId );
55   public boolean isContact( org.planetamessenger.plugin.JPlugin plugin, String JavaDoc strUserId );
56   public void updateUI();
57 }
58
59 // JContactListListener interface
60
Popular Tags