blueme.messenger.common
Class UserData

java.lang.Object
  extended by java.util.Hashtable
      extended by blueme.messenger.common.SerUnser
          extended by blueme.messenger.common.UserData
All Implemented Interfaces:
iConstants, iUserData

public class UserData
extends SerUnser
implements iUserData, iConstants

Different userdata specific information..


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
UserData()
          Creates a new instance of UserData
 
Method Summary
 java.lang.String getBluetoothAddress()
          Get Bluetooth address
 int getConnected()
          Get current connection status: 0: Inactive (default) 1: Connected and logged in -1: Unable to connect to proxy -2: Proxy unable to connect to IM server
 java.lang.String getLogin()
          Get login id (like an email address or whatever the IM-protocol in use is using
 java.lang.String getNick()
          Get nick
 java.lang.String getPID()
          Get PID (Private ID or key)
 boolean getRememberPassword()
          Returns "true" if the client will remember the users password till next start up.
 java.lang.String getUid()
          Get UID
 int getUserDataVersion()
          Get UserData version
 void setBluetoothAddress(java.lang.String bluetoothAddress)
          Set Bluetooth address
 void setConnected(int state)
          Set current connection status: 0: Inactive (default) 1: Connected and logged in -1: Unable to connect to proxy -2: Proxy unable to connect to IM server
 void setLogin(java.lang.String login)
          Set login id (like an email address or whatever the IM-protocol in use is using
 void setNick(java.lang.String nick)
          Set nick
 void setPID(java.lang.String pid)
          Set PID (Private ID or key)
 void setRememberPassword(boolean remember)
          If "true", the client will remember the users password till next start up.
 void setUid(java.lang.String uid)
          Set UID
 
Methods inherited from class blueme.messenger.common.SerUnser
get, put, serialize, unserialize
 
Methods inherited from class java.util.Hashtable
clear, contains, containsKey, elements, isEmpty, keys, rehash, remove, size, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface blueme.messenger.common.iUserData
serialize, unserialize
 

Constructor Detail

UserData

public UserData()
Creates a new instance of UserData

Method Detail

getBluetoothAddress

public java.lang.String getBluetoothAddress()
                                     throws java.lang.NullPointerException
Description copied from interface: iUserData
Get Bluetooth address

Specified by:
getBluetoothAddress in interface iUserData
Throws:
java.lang.NullPointerException

getNick

public java.lang.String getNick()
                         throws java.lang.NullPointerException
Description copied from interface: iUserData
Get nick

Specified by:
getNick in interface iUserData
Throws:
java.lang.NullPointerException

getPID

public java.lang.String getPID()
                        throws java.lang.NullPointerException
Description copied from interface: iUserData
Get PID (Private ID or key)

Specified by:
getPID in interface iUserData
Throws:
java.lang.NullPointerException

getUserDataVersion

public int getUserDataVersion()
Description copied from interface: iUserData
Get UserData version

Specified by:
getUserDataVersion in interface iUserData

setBluetoothAddress

public void setBluetoothAddress(java.lang.String bluetoothAddress)
                         throws java.lang.StringIndexOutOfBoundsException
Description copied from interface: iUserData
Set Bluetooth address

Specified by:
setBluetoothAddress in interface iUserData
Throws:
java.lang.StringIndexOutOfBoundsException

setNick

public void setNick(java.lang.String nick)
Description copied from interface: iUserData
Set nick

Specified by:
setNick in interface iUserData

setPID

public void setPID(java.lang.String pid)
Description copied from interface: iUserData
Set PID (Private ID or key)

Specified by:
setPID in interface iUserData

getUid

public java.lang.String getUid()
                        throws java.lang.NullPointerException
Description copied from interface: iUserData
Get UID

Specified by:
getUid in interface iUserData
Throws:
java.lang.NullPointerException

setUid

public void setUid(java.lang.String uid)
            throws java.lang.StringIndexOutOfBoundsException
Description copied from interface: iUserData
Set UID

Specified by:
setUid in interface iUserData
Throws:
java.lang.StringIndexOutOfBoundsException

setLogin

public void setLogin(java.lang.String login)
Description copied from interface: iUserData
Set login id (like an email address or whatever the IM-protocol in use is using

Specified by:
setLogin in interface iUserData

getLogin

public java.lang.String getLogin()
                          throws java.lang.NullPointerException
Description copied from interface: iUserData
Get login id (like an email address or whatever the IM-protocol in use is using

Specified by:
getLogin in interface iUserData
Throws:
java.lang.NullPointerException

setConnected

public void setConnected(int state)
Description copied from interface: iUserData
Set current connection status: 0: Inactive (default) 1: Connected and logged in -1: Unable to connect to proxy -2: Proxy unable to connect to IM server

Specified by:
setConnected in interface iUserData

getConnected

public int getConnected()
Description copied from interface: iUserData
Get current connection status: 0: Inactive (default) 1: Connected and logged in -1: Unable to connect to proxy -2: Proxy unable to connect to IM server

Specified by:
getConnected in interface iUserData

setRememberPassword

public void setRememberPassword(boolean remember)
Description copied from interface: iUserData
If "true", the client will remember the users password till next start up. If "false", the client will not remember the users password..

Specified by:
setRememberPassword in interface iUserData

getRememberPassword

public boolean getRememberPassword()
Description copied from interface: iUserData
Returns "true" if the client will remember the users password till next start up. Returns "false" otherwise. Default is false.

Specified by:
getRememberPassword in interface iUserData