|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.service.protocol.AbstractOperationSetAvatar<T>
public abstract class AbstractOperationSetAvatar<T extends ProtocolProviderService>
Represents a default implementation of OperationSetAvatar in order to
make it easier for implementers to provide complete solutions while focusing
on implementation-specific details.
| Constructor Summary | |
|---|---|
protected |
AbstractOperationSetAvatar(T parentProvider,
OperationSetServerStoredAccountInfo accountInfoOpSet,
int maxWidth,
int maxHeight,
int maxSize)
|
| Method Summary | |
|---|---|
void |
addAvatarListener(AvatarListener listener)
Registers a listener that would receive events upon avatar changes. |
protected void |
fireAvatarChanged(byte[] newAvatar)
Notifies all registered listeners of the new event. |
byte[] |
getAvatar()
Returns the current avatar of this protocol. |
int |
getMaxHeight()
Returns the maximum height of the avatar. |
int |
getMaxSize()
Returns the maximum size of the avatar. |
int |
getMaxWidth()
Returns the maximum width of the avatar. |
void |
removeAvatarListener(AvatarListener listener)
Removes the specified group change listener so that it won't receive any further events. |
void |
setAvatar(byte[] avatar)
Defines a new avatar for this protocol |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected AbstractOperationSetAvatar(T parentProvider,
OperationSetServerStoredAccountInfo accountInfoOpSet,
int maxWidth,
int maxHeight,
int maxSize)
| Method Detail |
|---|
public int getMaxWidth()
OperationSetAvatar
getMaxWidth in interface OperationSetAvatarpublic int getMaxHeight()
OperationSetAvatar
getMaxHeight in interface OperationSetAvatarpublic int getMaxSize()
OperationSetAvatar
getMaxSize in interface OperationSetAvatarpublic byte[] getAvatar()
OperationSetAvatar
getAvatar in interface OperationSetAvatarpublic void setAvatar(byte[] avatar)
OperationSetAvatar
setAvatar in interface OperationSetAvataravatar - the new avatarpublic void addAvatarListener(AvatarListener listener)
OperationSetAvatar
addAvatarListener in interface OperationSetAvatarlistener - a AvatarListener that would receive events upon avatar
changes.public void removeAvatarListener(AvatarListener listener)
OperationSetAvatar
removeAvatarListener in interface OperationSetAvatarlistener - the AvatarListener to removeprotected void fireAvatarChanged(byte[] newAvatar)
newAvatar - the new avatar
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||