|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectblueme.messenger.kernel.Kernel
public class Kernel
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 | |
---|---|
Kernel()
Creates a new instance of Kernel |
Method Summary | |
---|---|
boolean |
addUser(iUserList user)
Notify Kernel that the defined user is to be added to the buddy list. |
boolean |
addUserToLocalList(java.lang.String uid)
Tries to add the user to the buddy list |
boolean |
addUserToLocalListBluetooth(java.lang.String bluetoothAddress)
Tries to add the user to the buddy list (from Bluetooth) |
boolean |
announceNick(java.lang.String nick)
Send your nick to server |
boolean |
changeFriend(iUserList user,
boolean friend)
|
boolean |
changeUnread(iMSG msg,
boolean unread)
Changes the read / unread flag of defined message. |
boolean |
deleteAllMessages(iUserList userList)
Deletes all messages associated with the defined iUserList object. |
boolean |
deleteMessage(iMSG msg)
Will delete defined message. |
boolean |
deleteUser(iUserList user)
Deletes the user associated with the iUserList object. |
void |
deleteUserOnLocalList(java.lang.String uid)
Tries to remove specified user from buddy list |
void |
deliverMessage(iMSG msg)
Deliver new incoming message. |
void |
endApplication()
Method used to inform the application that is must exit. |
iConfig |
getConfig()
Used to get the configuration data. |
iMSG[] |
getMessages(iUserList userList)
Used to get all messages associated with defined iUserList object. |
iProfile |
getProfile()
|
iUserData |
getUserData()
Used to get user data. |
iUserList[] |
getUserList()
Used to get the buddy list. |
void |
newUser(java.lang.String bluetoothAddress)
Deliver Bluetooth addres of newly discovered unit. |
boolean |
pauseApplication()
Method returns “true” if the application could be put on pause, “false” otherwise. |
void |
run()
|
boolean |
sendAddMessage(iUserList user)
Send an ADD message to specified user |
int |
sendNewMessage(iMSG msg)
Used for sending new messages. |
void |
setBootLoaderReference(iBootLoader_Kernel bootLoader)
Method used to give a reference for BootLoader to Kernel. |
boolean |
setConfig(iConfig config)
Used to store the configuration data defined in the argument. |
void |
setGUIReference(iGUI_Kernel gui)
Method used to give a reference for GUI to Kernel. |
boolean |
setProfile(iProfile profile)
|
boolean |
setUserData(iUserData userData)
Used to store the user data defined in the argument. |
boolean |
startApplication()
Method returns “true” if everything started OK, “false” otherwise. |
boolean |
updateListFromServer()
Download the removely saved buddy list (on the server), and replace this with the local buddy list. |
boolean |
updateProfileOnUser(java.lang.String uid)
Download profile for specified user. |
void |
updateUserNick(java.lang.String uid,
java.lang.String nick)
Update nick on specified user |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Kernel()
Method Detail |
---|
public boolean startApplication()
iKernel_BootLoader
startApplication
in interface iKernel_BootLoader
public boolean pauseApplication()
iKernel_BootLoader
pauseApplication
in interface iKernel_BootLoader
public void endApplication()
iKernel_BootLoader
endApplication
in interface iKernel_BootLoader
public void setGUIReference(iGUI_Kernel gui)
iKernel_BootLoader
setGUIReference
in interface iKernel_BootLoader
public void setBootLoaderReference(iBootLoader_Kernel bootLoader)
iKernel_BootLoader
setBootLoaderReference
in interface iKernel_BootLoader
public boolean setUserData(iUserData userData)
iKernel_GUI
setUserData
in interface iKernel_GUI
public iUserData getUserData()
iKernel_Com
getUserData
in interface iKernel_Com
getUserData
in interface iKernel_GUI
public boolean setConfig(iConfig config)
iKernel_GUI
setConfig
in interface iKernel_GUI
public iConfig getConfig()
iKernel_Com
getConfig
in interface iKernel_Com
getConfig
in interface iKernel_GUI
public boolean setProfile(iProfile profile)
public iProfile getProfile()
public iUserList[] getUserList()
iKernel_Com
getUserList
in interface iKernel_Com
getUserList
in interface iKernel_GUI
public iMSG[] getMessages(iUserList userList)
iKernel_GUI
getMessages
in interface iKernel_GUI
public int sendNewMessage(iMSG msg)
iKernel_GUI
sendNewMessage
in interface iKernel_GUI
public boolean deleteAllMessages(iUserList userList)
iKernel_GUI
deleteAllMessages
in interface iKernel_GUI
public boolean deleteMessage(iMSG msg)
iKernel_GUI
deleteMessage
in interface iKernel_GUI
public boolean changeFriend(iUserList user, boolean friend)
public boolean addUser(iUserList user)
iKernel_GUI
addUser
in interface iKernel_GUI
public boolean deleteUser(iUserList user)
iKernel_GUI
deleteUser
in interface iKernel_GUI
public boolean changeUnread(iMSG msg, boolean unread)
iKernel_GUI
changeUnread
in interface iKernel_GUI
public void deliverMessage(iMSG msg)
iKernel_Com
deliverMessage
in interface iKernel_Com
public void newUser(java.lang.String bluetoothAddress)
iKernel_Com
newUser
in interface iKernel_Com
public void run()
run
in interface java.lang.Runnable
public boolean announceNick(java.lang.String nick)
announceNick
in interface iKernel_Ticket
public boolean sendAddMessage(iUserList user)
sendAddMessage
in interface iKernel_Ticket
public boolean addUserToLocalList(java.lang.String uid)
addUserToLocalList
in interface iKernel_Ticket
public boolean addUserToLocalListBluetooth(java.lang.String bluetoothAddress)
addUserToLocalListBluetooth
in interface iKernel_Ticket
public boolean updateProfileOnUser(java.lang.String uid)
updateProfileOnUser
in interface iKernel_Ticket
public void updateUserNick(java.lang.String uid, java.lang.String nick)
updateUserNick
in interface iKernel_Ticket
public boolean updateListFromServer()
updateListFromServer
in interface iKernel_Ticket
public void deleteUserOnLocalList(java.lang.String uid)
deleteUserOnLocalList
in interface iKernel_Ticket
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |