edu.columbia.coms6901.pingtel.pingim
Class PingIM

java.lang.Object
  |
  +--com.pingtel.xpressa.Application
        |
        +--edu.columbia.coms6901.pingtel.pingim.PingIM

public class PingIM
extends com.pingtel.xpressa.Application

PingIM -- Instant Messaging on PingTel Phones. This class contains the "main()" program code.

Version:
1.0
Author:
Micah Sherr

Field Summary
private static boolean bFirstGoodbye
          should we print the good-bye message the first time the user exits?
private static BuddyList buddyList
          the buddy list
private  ExpirationThread expirationThread
          updates expiration times and subscriptions
private static int iBuddyState
          the state of this instance (e.g., away, etc.)
private static LDAPHandler ldapHandler
          handles LDAP communication
private static MenuSystem menuSystem
          handles human interfacing
private  MESSAGEListener objMsgListener
          listens for incoming MESSAGE messages
private  NOTIFYListener objNotifyListener
          listens for incoming NOTIFY messages
private  SUBSCRIBEListener objSubscribeListener
          listens for incoming SUBSCRIBE messages
private static SubscribersList subscribers
          list of subscribers
 
Fields inherited from class com.pingtel.xpressa.Application
m_context, m_iAppCreationCnt
 
Constructor Summary
PingIM()
           
 
Method Summary
private  void exitPingIM()
          Exits the program.
static int getBuddyState()
          Retrieves current state of buddy (e.g., away, busy, etc.)
protected static SubscribersList getSubscribersList()
          Retrieves the subscriber's list
 void main(java.lang.String[] argv)
          Main method of PingIM Pingtel Expression.
static void onLoad()
          Called when PingIM is loaded
static void onUnload()
          Called when Pingtel Expression is destroyed.
static void setBuddyState(int iState)
          Sets current state of buddy (e.g., away, busy, etc.)
private  void startListeners()
          Starts SIP message listeners
private  void stopListeners()
          Stops SIP message listeners
 
Methods inherited from class com.pingtel.xpressa.Application
, exit, getName, getObject, getPropertyValue, getResourceAsStream, getSystemResource, getThread, putObject, showMessageBox, showMessageBox, start
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

ldapHandler

private static LDAPHandler ldapHandler
handles LDAP communication

menuSystem

private static MenuSystem menuSystem
handles human interfacing

subscribers

private static SubscribersList subscribers
list of subscribers

iBuddyState

private static int iBuddyState
the state of this instance (e.g., away, etc.)

buddyList

private static BuddyList buddyList
the buddy list

objMsgListener

private MESSAGEListener objMsgListener
listens for incoming MESSAGE messages

objSubscribeListener

private SUBSCRIBEListener objSubscribeListener
listens for incoming SUBSCRIBE messages

objNotifyListener

private NOTIFYListener objNotifyListener
listens for incoming NOTIFY messages

expirationThread

private ExpirationThread expirationThread
updates expiration times and subscriptions

bFirstGoodbye

private static boolean bFirstGoodbye
should we print the good-bye message the first time the user exits?
Constructor Detail

PingIM

public PingIM()
Method Detail

onLoad

public static void onLoad()
Called when PingIM is loaded

main

public void main(java.lang.String[] argv)
Main method of PingIM Pingtel Expression.
Overrides:
main in class com.pingtel.xpressa.Application
Parameters:
argv - List of arguments

onUnload

public static void onUnload()
Called when Pingtel Expression is destroyed.

setBuddyState

public static void setBuddyState(int iState)
Sets current state of buddy (e.g., away, busy, etc.)
Parameters:
iState - new state of buddy

getBuddyState

public static int getBuddyState()
Retrieves current state of buddy (e.g., away, busy, etc.)
Returns:
current state of buddy

getSubscribersList

protected static SubscribersList getSubscribersList()
Retrieves the subscriber's list
Returns:
list of subscribers

startListeners

private void startListeners()
Starts SIP message listeners

stopListeners

private void stopListeners()
Stops SIP message listeners

exitPingIM

private void exitPingIM()
Exits the program.