public interface ChatRoomWrapper
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
JOIN_AUTHENTICATION_FAILED_PROP
Property to be fired when authentication failed
while joining a chat room.
|
static java.lang.String |
JOIN_PROVIDER_NOT_REGISTERED_PROP
Property to be fired when provider is not registered
while joining a chat room.
|
static java.lang.String |
JOIN_REGISTRATION_REQUIRED_PROP
Property to be fired when chat room requires registration and we failed
while joining the chat room.
|
static java.lang.String |
JOIN_SUBSCRIPTION_ALREADY_EXISTS_PROP
Property to be fired when we try to join twice the same chat room.
|
static java.lang.String |
JOIN_SUCCESS_PROP
Property to be fired when successfully joined to chat room.
|
static java.lang.String |
JOIN_UNKNOWN_ERROR_PROP
Property to be fired when unknown error occurred
while joining a chat room.
|
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Property changes for the room wrapper.
|
ChatRoom |
getChatRoom()
Returns the ChatRoom that this wrapper represents.
|
java.lang.String |
getChatRoomID()
Returns the identifier of the chat room.
|
java.lang.String |
getChatRoomName()
Returns the chat room name.
|
ChatRoomProviderWrapper |
getParentProvider()
Returns the parent protocol provider.
|
boolean |
isAutojoin()
Is room set to auto join on start-up.
|
boolean |
isPersistent()
Returns
true if the chat room is persistent,
otherwise - returns false . |
java.lang.String |
loadPassword()
Returns the password for the chat room.
|
void |
removeListeners()
Removes the listeners.
|
void |
removePassword()
Removes the saved password for the chat room.
|
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes property change listener.
|
void |
savePassword(java.lang.String password)
Stores the password for the chat room.
|
void |
setAutoJoin(boolean value)
Changes auto join value in configuration service.
|
void |
setChatRoom(ChatRoom chatRoom)
Sets the ChatRoom that this wrapper represents.
|
void |
setPersistent(boolean value)
Change persistence of this room.
|
static final java.lang.String JOIN_SUCCESS_PROP
static final java.lang.String JOIN_AUTHENTICATION_FAILED_PROP
static final java.lang.String JOIN_REGISTRATION_REQUIRED_PROP
static final java.lang.String JOIN_PROVIDER_NOT_REGISTERED_PROP
static final java.lang.String JOIN_SUBSCRIPTION_ALREADY_EXISTS_PROP
static final java.lang.String JOIN_UNKNOWN_ERROR_PROP
ChatRoom getChatRoom()
void setChatRoom(ChatRoom chatRoom)
chatRoom
- the chat roomjava.lang.String getChatRoomName()
java.lang.String getChatRoomID()
ChatRoomProviderWrapper getParentProvider()
boolean isPersistent()
true
if the chat room is persistent,
otherwise - returns false
.true
if the chat room is persistent,
otherwise - returns false
.void setPersistent(boolean value)
value
- set persistent state.void savePassword(java.lang.String password)
password
- the password to storejava.lang.String loadPassword()
void removePassword()
boolean isAutojoin()
void setAutoJoin(boolean value)
value
- change of auto join property.void removeListeners()
void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
- the listener to be notified.void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
-
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.