|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.unibi.airobots.resaidroid.services.XmppConnection
public class XmppConnection
Constructor Summary | |
---|---|
XmppConnection()
|
Method Summary | |
---|---|
static void |
addListener(org.jivesoftware.smack.PacketListener packetListener,
org.jivesoftware.smack.filter.PacketFilter packetFilter)
Add a new listener to connection using given filter. |
static void |
connect(java.lang.String _server,
int _port)
Connects to given XMPP Server. |
static void |
disconnect()
Disconnect from XMPP Server. |
static long |
getBeaconDuration()
|
static long |
getClientTime()
|
static long |
getServerTime()
|
static long |
getStartTime()
|
static long |
getTimeDiff()
|
static Activity |
getUsingActivity()
|
static boolean |
isConnected()
Check if connection is connected. |
static boolean |
isConnectedToReSAI()
|
static boolean |
isLoggedIn()
Check if account is authenticated. |
static void |
login(java.lang.String _account,
java.lang.String _password)
Login to given account on XMPP Connection. |
static void |
removeListener(org.jivesoftware.smack.PacketListener packetListener)
Remove given listener from connection. |
static void |
sendMessage(org.jivesoftware.smack.packet.Message _mout)
Send a message over XMPP connection. |
static void |
setBeaconDuration(long beaconDuration)
|
static void |
setClientTime(long clientTime)
|
static void |
setConnectedToReSAI(boolean connectedToReSAI)
|
static void |
setServerTime(long serverTime)
|
static void |
setStartTime(long startTime)
|
static void |
setTimeDiff(long timeDiff)
|
static void |
setUsingActivity(Activity usingActivity)
|
static void |
startBeacon()
Start beacon to show ReSAI that connection is alive. |
static void |
stopBeacon()
Stop beacon. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XmppConnection()
Method Detail |
---|
public static void startBeacon()
public static void stopBeacon()
public static void connect(java.lang.String _server, int _port) throws org.jivesoftware.smack.XMPPException
_server
- _port
-
org.jivesoftware.smack.XMPPException
public static void login(java.lang.String _account, java.lang.String _password) throws org.jivesoftware.smack.XMPPException
_account
- _password
-
org.jivesoftware.smack.XMPPException
public static void disconnect() throws org.jivesoftware.smack.XMPPException
org.jivesoftware.smack.XMPPException
public static void sendMessage(org.jivesoftware.smack.packet.Message _mout)
public static void addListener(org.jivesoftware.smack.PacketListener packetListener, org.jivesoftware.smack.filter.PacketFilter packetFilter)
packetListener
- packetFilter
- public static void removeListener(org.jivesoftware.smack.PacketListener packetListener)
packetListener
- public static boolean isConnected()
public static boolean isLoggedIn()
public static void setStartTime(long startTime)
public static long getStartTime()
public static void setTimeDiff(long timeDiff)
public static long getTimeDiff()
public static void setServerTime(long serverTime)
public static long getServerTime()
public static void setClientTime(long clientTime)
public static long getClientTime()
public static void setBeaconDuration(long beaconDuration)
public static long getBeaconDuration()
public static boolean isConnectedToReSAI()
public static void setConnectedToReSAI(boolean connectedToReSAI)
public static Activity getUsingActivity()
public static void setUsingActivity(Activity usingActivity)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |