|
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.impl.protocol.jabber.extensions.inputevt.RemoteControlExtensionProvider
public class RemoteControlExtensionProvider
This class parses incoming remote-control XML element and extracts input events such as keyboard and mouse ones.
| Field Summary | |
|---|---|
static String |
ELEMENT_KEY_PRESS
The name of the remote-info XML element key-press. |
static String |
ELEMENT_KEY_RELEASE
The name of the remote-info XML element key-release. |
static String |
ELEMENT_KEY_TYPE
The name of the remote-info XML element key-type. |
static String |
ELEMENT_MOUSE_MOVE
The name of the remote-info XML element mouse-move. |
static String |
ELEMENT_MOUSE_PRESS
The name of the remote-info XML element mouse-press. |
static String |
ELEMENT_MOUSE_RELEASE
The name of the remote-info XML element mouse-release. |
static String |
ELEMENT_MOUSE_WHEEL
The name of the remote-info XML element mouse-wheel. |
static String |
ELEMENT_REMOTE_CONTROL
The name of the remote-info XML element remote-control. |
static String |
NAMESPACE
Namespace of this extension. |
| Constructor Summary | |
|---|---|
RemoteControlExtensionProvider()
Constructor. |
|
| Method Summary | |
|---|---|
static String |
getKeyPressedXML(int keycode)
Build a key-press remote-control XML element. |
static String |
getKeyReleasedXML(int keycode)
Build a key-release remote-control XML element. |
static String |
getKeyTypedXML(int keycode)
Build a key-typed remote-control XML element. |
static String |
getMouseMovedXML(double x,
double y)
Build a remote-info mouse-move remote-control XML element. |
static String |
getMousePressedXML(int btns)
Build a mouse-press remote-control XML element. |
static String |
getMouseReleasedXML(int btns)
Build a remote-info mouse-release remote-control XML element. |
static String |
getMouseWheelXML(int notch)
Build a remote-info mouse-wheel remote-control XML element. |
org.jivesoftware.smack.packet.PacketExtension |
parseExtension(org.xmlpull.v1.XmlPullParser parser)
Parses the extension and returns a PacketExtension. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String ELEMENT_REMOTE_CONTROL
public static final String ELEMENT_MOUSE_MOVE
public static final String ELEMENT_MOUSE_WHEEL
public static final String ELEMENT_MOUSE_PRESS
public static final String ELEMENT_MOUSE_RELEASE
public static final String ELEMENT_KEY_PRESS
public static final String ELEMENT_KEY_RELEASE
public static final String ELEMENT_KEY_TYPE
public static final String NAMESPACE
| Constructor Detail |
|---|
public RemoteControlExtensionProvider()
| Method Detail |
|---|
public org.jivesoftware.smack.packet.PacketExtension parseExtension(org.xmlpull.v1.XmlPullParser parser)
throws Exception
parseExtension in interface org.jivesoftware.smack.provider.PacketExtensionProviderparser - XML parser
Exception - if an error occurs during XML parsingpublic static String getKeyPressedXML(int keycode)
keycode - keyboard's code
public static String getKeyReleasedXML(int keycode)
keycode - keyboard's code
public static String getKeyTypedXML(int keycode)
keycode - keyboard's code
public static String getMousePressedXML(int btns)
btns - button mask
public static String getMouseReleasedXML(int btns)
btns - button mask
public static String getMouseMovedXML(double x,
double y)
x - x position of the mousey - y position of the mouse
public static String getMouseWheelXML(int notch)
notch - wheel notch
|
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 | |||||||||