|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.java.sip.communicator.plugin.scphone.SCPhone
net.java.sip.communicator.plugin.scphone.WinSCPhone
final class WinSCPhone
Add usb phone support for sc on the windows platform.
Field Summary | |
---|---|
private java.lang.Thread |
th
Thread that runs native code which handle communication with the device |
private static WinSCPhone |
thePhone
Singleton instance of this class |
Fields inherited from class net.java.sip.communicator.plugin.scphone.SCPhone |
---|
STATUS_OFF, STATUS_ON |
Constructor Summary | |
---|---|
private |
WinSCPhone()
Not allowed to instantiate. |
Method Summary | |
---|---|
static SCPhone |
getPhone()
Get singleton instance of the phone. |
private void |
initialize()
Initialize the SCPhone by loading the native lib and running the message receiver and sender as a daemon. |
private void |
jni_init()
Native init method. |
void |
jni_onAttach(int status)
Set the SCPhone status. |
void |
jni_onPhoneMessage(java.lang.String message)
This method gets called when the native lib has a message received. |
private void |
jni_sendMessage(java.lang.String message)
Native send message method. |
private void |
jni_windowProc()
Native event loop method. |
protected void |
sendCommand(java.lang.String command)
Send a command to the phone. |
Methods inherited from class net.java.sip.communicator.plugin.scphone.SCPhone |
---|
addSCPhoneListener, firePhoneCommandReceived, firePhoneCommandSent, fireStatusChanged, getStatus, removeSCPhoneListener, setStatus |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static WinSCPhone thePhone
private java.lang.Thread th
Constructor Detail |
---|
private WinSCPhone()
SCPhone.getPhone()
method instead.
Method Detail |
---|
public static SCPhone getPhone()
private void initialize()
SCPhone
by loading the native lib and running the message receiver and sender as a daemon.
public void jni_onAttach(int status)
status
- The new status.public void jni_onPhoneMessage(java.lang.String message)
message
- The received message.protected void sendCommand(java.lang.String command)
sendCommand
in class SCPhone
command
- The command to send.private void jni_init()
private void jni_windowProc()
private void jni_sendMessage(java.lang.String message)
message
- The message to send.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |