|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--wtanaka.praya.Protocol
|
+--wtanaka.praya.msn.MsnClient
MSN Messenger Client Library using crunchybear.com.
Return to
or the Praya Homepage
| Inner Class Summary | |
private class |
MsnClient.MainListener
MainConnectionListener |
| Field Summary | |
static int |
CONF_ID
|
static int |
CONF_ITEM_COUNT
|
static int |
CONF_PASSWD
|
static int |
CONF_REALNAME
|
static int |
CONF_STATUS
|
private ConfigItem[] |
m_configItems
|
private boolean |
m_firstConnect
|
private boolean |
m_isConnected
|
private MainConnection |
m_mainConnection
|
private java.util.Hashtable |
m_sessions
Set of SessionConnection (map of SessionConnection to itself) |
static int |
SO_TIMEOUT
|
static java.lang.String[] |
statusList
List of visible strings, in any order, corresponding to the status configuration pulldown menu. |
| Fields inherited from class wtanaka.praya.Protocol |
descriptionListeners, iAmGarbage, m_buddyList, m_configPanel, m_currentDescription, m_messageListeners, recipientListeners |
| Fields inherited from interface wtanaka.praya.msn.MsnConstants |
ALLOW_LIST, AWY, BLOCK_LIST, BRB, BSY, FLN, FORWARD_LIST, HDN, IDL, LUN, NLN, PHN, REVERSE_LIST |
| Constructor Summary | |
MsnClient()
Constructor |
|
| Method Summary | |
(package private) java.lang.String |
byteArrayToString(byte[] array)
|
void |
checkForNewMessages(boolean isAutomatic)
Checks for new messages on the protocol. |
void |
connect()
Connects to the network, if that makes any sense. |
CommandInterface[] |
consoleCommands()
Returns a list of commands available through this console. |
void |
disconnect()
Disconnects from the network, if that makes any sense. |
ConfigItem[] |
getConfiguration()
|
Recipient |
getDefaultRecipient()
|
static java.awt.Image |
getIcon()
|
java.lang.String |
getPassword()
|
static java.lang.String |
getProtocolDescription()
Used to describe the class of this protocol, before any instances have been created. |
java.lang.String |
getUsername()
|
boolean |
isConnected()
Returns if the protocol is connected right now. |
void |
sendMessage(java.lang.String username,
java.lang.Object message)
Sends a message to the given username |
void |
setRealName(java.lang.String realname)
|
void |
setStatus(Status status)
Sets the status. |
void |
setUsername(java.lang.String username)
|
| Methods inherited from class java.lang.Object |
|
| Field Detail |
public static final int SO_TIMEOUT
public static final int CONF_ID
public static final int CONF_PASSWD
public static final int CONF_STATUS
public static final int CONF_REALNAME
public static final int CONF_ITEM_COUNT
private ConfigItem[] m_configItems
private boolean m_firstConnect
private boolean m_isConnected
private MainConnection m_mainConnection
private java.util.Hashtable m_sessions
public static final java.lang.String[] statusList
| Constructor Detail |
public MsnClient()
| Method Detail |
public static java.awt.Image getIcon()
public static java.lang.String getProtocolDescription()
public ConfigItem[] getConfiguration()
getConfiguration in class Protocolwtanaka.praya.Protocolpublic Recipient getDefaultRecipient()
getDefaultRecipient in class Protocol
public void connect()
throws java.io.IOException
Protocolconnect in class Protocolwtanaka.praya.Protocoljava.io.IOException - if the connection fails due to an I/O error.java.lang.InterruptedException - todo, why does it throw this?public void disconnect()
Protocoldisconnect in class Protocol
public void setStatus(Status status)
throws java.io.IOException
setStatus in class Protocolpublic boolean isConnected()
ProtocolisConnected in class Protocoljava.lang.String byteArrayToString(byte[] array)
public void checkForNewMessages(boolean isAutomatic)
ProtocolcheckForNewMessages in class Protocolwtanaka.praya.ProtocolisAutomatic - true if the check is generated automatically with a
timer. false if the check is generated manually by the user.public CommandInterface[] consoleCommands()
ProtocolconsoleCommands in class Protocolpublic java.lang.String getUsername()
public void setUsername(java.lang.String username)
public void setRealName(java.lang.String realname)
public java.lang.String getPassword()
public void sendMessage(java.lang.String username,
java.lang.Object message)
throws NotSentException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||