org.jivesoftware.smack.packet.Presence.Mode Java Examples

The following examples show how to use org.jivesoftware.smack.packet.Presence.Mode. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: PresenceBuilder.java    From Smack with Apache License 2.0 5 votes vote down vote up
@Override
 public Presence.Mode getMode() {
     if (mode == null) {
         return Mode.available;
     }
     return mode;
}
 
Example #2
Source File: XmppLoginRunnable.java    From yiim_v2 with GNU General Public License v2.0 4 votes vote down vote up
public XmppLoginRunnable(XmppListener listener) {
	super(listener);
	mType = Type.available;
	mMode = Mode.available;
	mStatus = null;
}
 
Example #3
Source File: XmppLoginRunnable.java    From yiim_v2 with GNU General Public License v2.0 4 votes vote down vote up
public void setMode(Mode mode) {
	this.mMode = mode;
}
 
Example #4
Source File: PresenceBuilder.java    From Smack with Apache License 2.0 4 votes vote down vote up
public PresenceBuilder setMode(Presence.Mode mode) {
    this.mode = mode;
    return getThis();
}
 
Example #5
Source File: ClientHelper.java    From olat with Apache License 2.0 2 votes vote down vote up
/**
 * @param type
 * @param status
 * @param priority
 * @param mode
 */
public void sendPresence(final Type type, final String status, final int priority, final Mode mode) {
    imc.sendPresence(type, status, priority, mode);
}
 
Example #6
Source File: ClientHelper.java    From olat with Apache License 2.0 2 votes vote down vote up
/**
 * send a presence packet "available" with a certain mode e.g. "away" to all buddies
 * 
 * @param mode
 */
public void sendPresenceAvailable(final Presence.Mode mode) {
    imc.sendPresence(Presence.Type.available, null, 0, mode);
}
 
Example #7
Source File: ClientHelper.java    From olat with Apache License 2.0 2 votes vote down vote up
/**
 * @param type
 * @param status
 * @param priority
 * @param mode
 */
public void sendPresence(final Type type, final String status, final int priority, final Mode mode) {
    imc.sendPresence(type, status, priority, mode);
}
 
Example #8
Source File: ClientHelper.java    From olat with Apache License 2.0 2 votes vote down vote up
/**
 * send a presence packet "available" with a certain mode e.g. "away" to all buddies
 * 
 * @param mode
 */
public void sendPresenceAvailable(final Presence.Mode mode) {
    imc.sendPresence(Presence.Type.available, null, 0, mode);
}