blueme.messenger.gui
Class GUI

java.lang.Object
  extended by blueme.messenger.gui.GUI
All Implemented Interfaces:
iConstants, iGUI_BootLoader, iGUI_Kernel, javax.microedition.lcdui.CommandListener, javax.microedition.lcdui.ItemStateListener

public class GUI
extends java.lang.Object
implements javax.microedition.lcdui.CommandListener, javax.microedition.lcdui.ItemStateListener, iGUI_BootLoader, iGUI_Kernel, iConstants

This class needs cleaning!


Field Summary
 
Fields inherited from interface blueme.messenger.common.iConstants
ADMIN_UID, APP_TITLE, BLUETOOTH_INDEX, BLUETOOTH_LENGTH, BLUETOOTH_POSTFIX, BLUETOOTH_PREFIX, COM_OBJECTS, DISCOVERY_SLEEP, GPRS_INDEX, MAX_REDIRECTS, MSG_MAX_COUNT, MSG_MAX_LENGTH, NICK_MAX_LENGTH, PID_LENGTH, SMS_PUSH_PORT, UID_LENGTH
 
Constructor Summary
GUI()
          Creates a new instance of GUI
 
Method Summary
 void commandAction(javax.microedition.lcdui.Command command, javax.microedition.lcdui.Displayable displayable)
           
 void itemStateChanged(javax.microedition.lcdui.Item item)
           
 void newMessage(iMSG msg)
          This method notifies the GUI that there is a new incoming message.
 void notifyBMC(boolean param)
          NOT IN USE Used to notify the GUI that it should change a user notification on BMC (BlueMe Central).
 void notifyBMS(boolean param)
          NOT IN USE Used to notify the GUI that it should change a user notification on BMS (BlueMe Shop!).
 void playNewUserSound()
           
 void setBootLoaderReference(iBootLoader_GUI bootLoader)
          Method used to transfer a reference for BootLoader to GUI.
 void setDisplayReference(javax.microedition.lcdui.Display display)
          Method used to transfer a reference of the display to GUI.
 void setKernelReference(iKernel_GUI kernel)
          Method used for transfering a reference for Kernel to GUI.
 void updatedBuddyList(boolean playSound)
          Used to alert the GUI that there has been changes to the buddy list.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface blueme.messenger.interfaces.iGUI_Kernel
updatedUserData
 

Constructor Detail

GUI

public GUI()
Creates a new instance of GUI

Method Detail

commandAction

public void commandAction(javax.microedition.lcdui.Command command,
                          javax.microedition.lcdui.Displayable displayable)
Specified by:
commandAction in interface javax.microedition.lcdui.CommandListener

newMessage

public void newMessage(iMSG msg)
Description copied from interface: iGUI_Kernel
This method notifies the GUI that there is a new incoming message. Method is only used when there is a new incoming text message from another client (or the server for that matter). In other words, this is not used when the user sends outgoing messages.

Specified by:
newMessage in interface iGUI_Kernel

notifyBMC

public void notifyBMC(boolean param)
Description copied from interface: iGUI_Kernel
NOT IN USE Used to notify the GUI that it should change a user notification on BMC (BlueMe Central). The user should get notified some what the same way as when there are new messages, but only when state is “true”. When state is “false”, a possible existing notification should get removed.

Specified by:
notifyBMC in interface iGUI_Kernel

notifyBMS

public void notifyBMS(boolean param)
Description copied from interface: iGUI_Kernel
NOT IN USE Used to notify the GUI that it should change a user notification on BMS (BlueMe Shop!). The user should get notified some what the same way as when there are new messages, but only when state is “true”. When state is “false”, a possible existing notification should get removed.

Specified by:
notifyBMS in interface iGUI_Kernel

setDisplayReference

public void setDisplayReference(javax.microedition.lcdui.Display display)
Description copied from interface: iGUI_BootLoader
Method used to transfer a reference of the display to GUI. This method must be used before setGUI is used in iKernel_BootLoader. The GUI object has complete responsibilities for the display after this method has been used. The method must only be used ones.

Specified by:
setDisplayReference in interface iGUI_BootLoader

setKernelReference

public void setKernelReference(iKernel_GUI kernel)
Description copied from interface: iGUI_Kernel
Method used for transfering a reference for Kernel to GUI. GUI can not make much use of it self before this method is run. Method may only get used ones.

Specified by:
setKernelReference in interface iGUI_Kernel

setBootLoaderReference

public void setBootLoaderReference(iBootLoader_GUI bootLoader)
Description copied from interface: iGUI_BootLoader
Method used to transfer a reference for BootLoader to GUI. This method shall be the first method of a new GUI object to be run after the constructor

Specified by:
setBootLoaderReference in interface iGUI_BootLoader

updatedBuddyList

public void updatedBuddyList(boolean playSound)
Description copied from interface: iGUI_Kernel
Used to alert the GUI that there has been changes to the buddy list. This method is only used when there are changes not initiated by GUI (or the user). newBuddy will be “true” is there's a new buddy added to the buddy list. In any other case, it will be “false”.

Specified by:
updatedBuddyList in interface iGUI_Kernel

itemStateChanged

public void itemStateChanged(javax.microedition.lcdui.Item item)
Specified by:
itemStateChanged in interface javax.microedition.lcdui.ItemStateListener

playNewUserSound

public void playNewUserSound()