KickJava   Java API By Example, From Geeks To Geeks.

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


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: JMessengerEventListener.java,v 1.11 2007/01/28 17:39:21 popolony2k Exp $
32  * $Author: popolony2k $
33  * $Name: $
34  * $Revision: 1.11 $
35  * $State: Exp $
36  *
37  */

38
39 package org.planetamessenger.plugin;
40
41
42 public interface JMessengerEventListener {
43   
44   static public final int MESSAGE_TYPE_ONLINE = 0;
45   static public final int MESSAGE_TYPE_OFFLINE = 1;
46
47
48   public void onLogin( int nPluginStatus );
49   public void onLogout();
50   public void onAddUserToContactList( java.lang.String JavaDoc strUserId );
51   public void onRemoveUserFromContactList( java.lang.String JavaDoc strUserId );
52   public void onSendMessage( java.lang.String JavaDoc strToUser, java.lang.String JavaDoc msg, int nMsgType );
53   public void onRequestAuthorization( java.lang.String JavaDoc strUserId, java.lang.String JavaDoc strNickName );
54   public void onBuddyDetails( java.lang.String JavaDoc strUserId );
55   public void onAuthorizeBuddy( java.lang.String JavaDoc strUserId );
56   public void onUnauthorizeBuddy( java.lang.String JavaDoc strUserId );
57   public void onPluginStatusChanged( int nStatus );
58   public void onRegisterExistingUser( java.lang.String JavaDoc strNickName, java.lang.String JavaDoc strUserId, java.lang.String JavaDoc strPasswd );
59   public void onRegisterNewUser( java.lang.String JavaDoc strNickName, java.lang.StringBuffer JavaDoc strNewUserId, java.lang.String JavaDoc strPasswd );
60   public void onUnregisterUser();
61   public void onChangePassword( java.lang.String JavaDoc strNewPasswd );
62   public void onChangePrivacy( java.lang.String JavaDoc strUserId, int nPrivacyType );
63   public void onPrivacyChanged();
64   public void onPluginPropertiesUpdated();
65 }
66
67 // JPluginNetworkEventListener Interface
Popular Tags