|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cvm.ncb.adapters.NCBBridge cvm.ncb.adapters.SkypeAdapter
public class SkypeAdapter
This is an adapter to the Skype interface. This class wraps around the skype4java API calls. For starters it performs the basic operations that are required by the basic implementation of CVM but it can be extended to perform all the operations allowed by Skype with the uses of Skype call and chat objects and the connector object. Date: 01/13/2008
Connector
Field Summary | |
---|---|
boolean |
b_SendLock
|
boolean |
m_bConnectorLocked
|
Fields inherited from class cvm.ncb.adapters.NCBBridge |
---|
password, username |
Constructor Summary | |
---|---|
SkypeAdapter()
|
Method Summary | |
---|---|
void |
addParticipant(java.lang.String sID,
java.lang.String participantID)
Adds a participant to the session. |
void |
addParticpantToApplication(java.lang.String participantID)
This function adds a participant to the current application. |
void |
createSession(java.lang.String sID)
This function creates a session in the Networks Bridge for the specified session ID. |
void |
disableMedium(java.lang.String connectionID,
java.lang.String mediumName)
This function is used to disable a communicaciot medium. |
void |
enableMedium(java.lang.String connectionID,
java.lang.String mediumName)
This function is used to enable a communicaciot medium. |
void |
enqueueSchemaForProcessing(java.lang.String arg0)
Places the schemas in a container for processing. |
java.lang.String |
getCapability()
Returns the device capabilities. |
static com.skype.Call |
getMyCall()
|
void |
handledReceviedSchemas()
Private this method handles all the schemas that have been received and have yet to be sent to the upper layers. |
boolean |
isAppConnected()
|
boolean |
isLoggedIn(java.lang.String userName)
Check if user is logged in. |
boolean |
isSessionCreated(java.lang.String sID)
Checks is the session is currntly created. |
UserObject |
login(java.lang.String userName,
java.lang.String password)
Returns a user object after login |
void |
logout(java.lang.String userName)
Logs the user out. |
void |
removeParticipant(java.lang.String sID,
java.lang.String participantID)
Removes a participant to the session. |
void |
restartService()
Restarts the adapter. |
void |
sendMedia(java.lang.String sID,
java.lang.String medium,
java.lang.String mediumURL)
|
void |
sendSchema(java.lang.String schema,
java.lang.String participantID)
This function sends the schema file to the specified user. |
void |
setAppConnected(boolean conn)
|
static void |
setMyCall(com.skype.Call aCall)
|
void |
signalSchemaReceived()
|
void |
switchToVideo(java.lang.String sessionID)
This function switches the call to video call. |
void |
transferFromChatToConference(java.lang.String sID)
This function transfer all the members of a chat into a conference call. |
void |
transferFromConferenceToChat(java.lang.String sID)
This function transfer all the members of a conference into a chat session. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public boolean b_SendLock
public boolean m_bConnectorLocked
Constructor Detail |
---|
public SkypeAdapter()
Method Detail |
---|
public static com.skype.Call getMyCall()
public static void setMyCall(com.skype.Call aCall)
public java.lang.String getCapability()
getCapability
in class NCBBridge
NCBBridgeCapability
public UserObject login(java.lang.String userName, java.lang.String password) throws LoginException
login
in class NCBBridge
userName
- Username registered under the specific bridge.password
- Password registered under the specific bridge.
LoginException
UserObject
public void logout(java.lang.String userName)
logout
in class NCBBridge
public void restartService()
restartService
in class NCBBridge
public void createSession(java.lang.String sID)
createSession
in class NCBBridge
sID
- Id of the session to create.public void addParticipant(java.lang.String sID, java.lang.String participantID) throws PartyNotAddedException, NoSessionException
addParticipant
in class NCBBridge
sID
- Id of the session to add.participantID
- Id of the participant to add. i.e useranem: crinsomkairos.
PartyNotAddedException
NoSessionException
com.skype.connector.ConnectorException
public void enableMedium(java.lang.String connectionID, java.lang.String mediumName) throws PartyNotAddedException, NoSessionException
enableMedium
in class NCBBridge
connectionID
- mediumName
-
PartyNotAddedException
NoSessionException
public void disableMedium(java.lang.String connectionID, java.lang.String mediumName) throws com.skype.SkypeException, PartyNotFoundException, NoSessionException
disableMedium
in class NCBBridge
connectionID
- mediumName
-
PartyNotAddedException
NoSessionException
com.skype.SkypeException
PartyNotFoundException
public void removeParticipant(java.lang.String sID, java.lang.String participantID) throws PartyNotFoundException, NoSessionException
removeParticipant
in class NCBBridge
sID
- Id of the session to remove.participantID
- Id of the participant to remove. i.e useranem: crinsomkairos.
PartyNotFoundException
NoSessionException
public void switchToVideo(java.lang.String sessionID)
sessionID
- Id of the session to change.public void transferFromChatToConference(java.lang.String sID)
sID
- public void transferFromConferenceToChat(java.lang.String sID) throws PartyNotAddedException, NoSessionException
sID
-
NoSessionException
PartyNotAddedException
public boolean isLoggedIn(java.lang.String userName) throws LoginException
isLoggedIn
in class NCBBridge
userName
- user handle to check for ownership of the Bridge.
LoginException
public boolean isSessionCreated(java.lang.String sID)
isSessionCreated
in class NCBBridge
sID
- Session to check.
public void addParticpantToApplication(java.lang.String participantID)
participantID
- Id of the participant to Add.public void handledReceviedSchemas() throws java.lang.InterruptedException
java.lang.InterruptedException
public void enqueueSchemaForProcessing(java.lang.String arg0)
arg0
- public void signalSchemaReceived()
public boolean isAppConnected()
public void setAppConnected(boolean conn)
public void sendSchema(java.lang.String schema, java.lang.String participantID)
sendSchema
in class NCBBridge
schema
- Schema File.participantID
- Id of the user.public void sendMedia(java.lang.String sID, java.lang.String medium, java.lang.String mediumURL)
sendMedia
in class NCBBridge
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |