|
||||||||||
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.NCBNativeAdapter
public class NCBNativeAdapter
This is an adapter to the NCB interface. This class wraps around the NCB 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 |
---|
Fields inherited from class cvm.ncb.adapters.NCBBridge |
---|
password, username |
Constructor Summary | |
---|---|
NCBNativeAdapter()
|
Method Summary | |
---|---|
void |
addParticipant(java.lang.String sID,
java.lang.String participantID)
Adds a participant to the session. |
void |
createSession(java.lang.String sessionID)
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. |
java.lang.String |
getCapability()
This functions returns a coma separated list with the device capabilities. |
boolean |
isLoggedIn(java.lang.String userName)
This functions checks if the bridge is looged in with the specified username. |
boolean |
isSessionCreated(java.lang.String sID)
Checks is the session is currntly created. |
UserObject |
login(java.lang.String userName,
java.lang.String password)
This function logs the user into the communication bridge i.e Skype, GTalk... |
void |
logout(java.lang.String userName)
Logs the user out of the Bridge. |
void |
removeParticipant(java.lang.String sID,
java.lang.String participant)
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NCBNativeAdapter()
Method Detail |
---|
public void addParticipant(java.lang.String sID, java.lang.String participantID) throws PartyNotAddedException
NCBBridge
addParticipant
in class NCBBridge
sID
- Id of the session to add.participantID
- Id of the participant to add. i.e useranem: crinsomkairos.
PartyNotAddedException
public void createSession(java.lang.String sessionID)
NCBBridge
createSession
in class NCBBridge
sessionID
- Id of the session to create.public java.lang.String getCapability()
NCBBridge
getCapability
in class NCBBridge
NCBBridgeCapability
public boolean isLoggedIn(java.lang.String userName)
NCBBridge
isLoggedIn
in class NCBBridge
userName
- user handle to check for ownership of the Bridge.
public UserObject login(java.lang.String userName, java.lang.String password) throws LoginException
NCBBridge
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)
NCBBridge
logout
in class NCBBridge
public void removeParticipant(java.lang.String sID, java.lang.String participant) throws PartyNotFoundException
NCBBridge
removeParticipant
in class NCBBridge
sID
- Id of the session to remove.participant
- Id of the participant to remove. i.e useranem: crinsomkairos.
PartyNotFoundException
public void restartService()
NCBBridge
restartService
in class NCBBridge
public boolean isSessionCreated(java.lang.String sID)
NCBBridge
isSessionCreated
in class NCBBridge
sID
- Session to check.
public void sendSchema(java.lang.String schema, java.lang.String participantID)
NCBBridge
sendSchema
in class NCBBridge
schema
- Schema File.participantID
- Id of the user.public void disableMedium(java.lang.String connectionID, java.lang.String mediumName) throws com.skype.SkypeException, PartyNotFoundException, NoSessionException
NCBBridge
disableMedium
in class NCBBridge
NoSessionException
com.skype.SkypeException
PartyNotFoundException
public void enableMedium(java.lang.String connectionID, java.lang.String mediumName) throws PartyNotAddedException, NoSessionException
NCBBridge
enableMedium
in class NCBBridge
PartyNotAddedException
NoSessionException
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 |