|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.skype.SkypeImpl
public final class SkypeImpl
Skype information model (not view) class of Skype4Java. Use this class staticly to do model actions (send messages, SMS messages or calls, etc).
SkypeClient| Field Summary | |
|---|---|
static String |
LIBRARY_VERSION
The library version. |
| Method Summary | |
|---|---|
static Application |
addApplication(String name)
Add an AP2AP capable application. |
static void |
addCallListener(CallListener listener)
Add a listener for CALL events received from the Skype API. |
static void |
addChatMessageListener(ChatMessageListener listener)
Add a listener for CHATMESSAGE events received from the Skype API. |
static void |
addVoiceMailListener(VoiceMailListener listener)
Adds a listener for voice mail events received from the Skype API. |
static Call |
call(String... skypeIds)
Make a Skype CALL to multiple users. |
static Call |
call(String skypeId)
Make a Skype CALL to one single Skype user. |
static Chat |
chat(String skypeId)
Start a chat with a single Skype user. |
static Chat |
chat(String[] skypeIds)
Start a chat with multiple Skype users. |
static void |
clearCallHistory()
Clears all call history. |
static void |
clearChatHistory()
Clears all chat history. |
static void |
clearVoiceMailHistory()
Clears all voice mail history. |
static Call[] |
getAllActiveCalls()
Gets all the active calls visible on calltabs. |
static Chat[] |
getAllActiveChats()
Gets the all chats which are open in the windows. |
static Chat[] |
getAllBookmarkedChats()
Gets the all bookmarked chats. |
static Chat[] |
getAllChats()
Gets the all chats. |
static Chat[] |
getAllMissedChats()
Gets the all chats which include unread messages |
SMS[] |
getAllMissedSMSs()
Find all missed SMS messages. |
static Chat[] |
getAllRecentChats()
Gets the all recent chats in the locally-cached history. |
SMS[] |
getAllSMSs()
Find all SMS messages. |
static VoiceMail[] |
getAllVoiceMails()
Gets the all voice mails. |
static String |
getAudioInputDevice()
Gets the current audio input device of this Skype. |
static String |
getAudioOutputDevice()
Gets the current audio output device of this Skype. |
static ContactList |
getContactList()
Get the contactlist instance of this Skype session. |
static String |
getInstalledPath()
Find the install path of the Skype client. |
static Profile |
getProfile()
Get the singleton instance of the users profile. |
static User |
getUser(String id)
Return User based on ID. |
static String |
getVersion()
Return the version of the Skype client (not this API). |
static String |
getVideoDevice()
Get the current video input device used by the Skype Client. |
static boolean |
isInstalled()
Check if Skype client is installed on this computer. |
static boolean |
isRunning()
Check if Skype client is running. |
static void |
removeCallListener(CallListener listener)
Remove a listener for CALL events. |
static void |
removeChatMessageListener(ChatMessageListener listener)
Remove a listener for CHATMESSAGE events. |
static void |
removeVoiceMailListener(VoiceMailListener listener)
Remove a listener for VOICEMAIL events. |
static User[] |
searchUsers(String keyword)
Search users by a part of id or e-mail. |
static SMS |
sendSMS(String[] numbers,
String content)
Send an SMS to one or more cell phone numbers. |
static SMS |
sendSMS(String number,
String content)
Send an SMS to one cell phone number. |
static void |
setAudioInputDevice(String deviceName)
Sets the current audio input device of this Skype. |
static void |
setAudioOutputDevice(String deviceName)
Sets the current audio output device of this Skype. |
static void |
setDaemon(boolean on)
Sets the thread of Skype4Java to "daemon mode" or not. |
static void |
setDeamon(boolean on)
Deprecated. |
static void |
setDebug(boolean on)
Enable debug logging. |
static void |
setSkypeExceptionHandler(SkypeExceptionHandler handler)
Use another exceptionhandler then the default one. |
static void |
setVideoDevice(String deviceName)
Set the video device used by the Skype client. |
static SMS |
submitConfirmationCode(String number)
Send a SMS confirmation code. |
static SMS |
submitConfirmationCode(String[] numbers)
Send a SMS confirmation code. |
static SMS |
submitConfirmationCode(String[] numbers,
String code)
Send a SMS confirmation code. |
static SMS |
submitConfirmationCode(String number,
String code)
Send a SMS confirmation code. |
static VoiceMail |
voiceMail(String skypeId)
Leave a voicemail in a other Skype users voicemailbox. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String LIBRARY_VERSION
| Method Detail |
|---|
@Deprecated public static void setDeamon(boolean on)
on - true to set the thread to "daemon mode"public static void setDaemon(boolean on)
on - true to set the thread to "daemon mode"
public static void setDebug(boolean on)
throws SkypeException
on - if true debug logging will be sent to the console.
SkypeException - when the connection has gone bad.
public static String getVersion()
throws SkypeException
SkypeException - when connection has gone bad or ERROR reply.public static boolean isInstalled()
public static String getInstalledPath()
public static boolean isRunning()
throws SkypeException
SkypeException - when connection has gone bad or ERROR reply.
public static User[] searchUsers(String keyword)
throws SkypeException
keword - a part of id or e-mail
SkypeException - when connection has gone bad or ERROR reply.
public static ContactList getContactList()
throws SkypeException
SkypeException - when connection has gone bad or ERROR reply.
public static Call call(String... skypeIds)
throws SkypeException
skypeIds - The users to call.
SkypeException - when connection has gone bad or ERROR reply.
public static Call call(String skypeId)
throws SkypeException
skypeId - The user to call.
SkypeException - when connection has gone bad or ERROR reply.
public static Chat chat(String[] skypeIds)
throws SkypeException
skypeIds - The users to start a chat with.
SkypeException - when connection has gone bad or ERROR reply.
public static Chat chat(String skypeId)
throws SkypeException
skypeId - The user to start the with.
SkypeException - when connection has gone bad or ERROR reply.
public static SMS submitConfirmationCode(String[] numbers)
throws SkypeException
numbers - the cell phone numbers to validate.
SkypeException - when connection has gone bad or ERROR reply.
public static SMS submitConfirmationCode(String number)
throws SkypeException
number - the cell phone numbers to validate.
SkypeException - when connection has gone bad or ERROR reply.
public static SMS submitConfirmationCode(String[] numbers,
String code)
throws SkypeException
numbers - the cell phone numbers to validate.code - the validation code to send.
SkypeException - when connection has gone bad or ERROR reply.
public static SMS submitConfirmationCode(String number,
String code)
throws SkypeException
number - the cell phone numbers to validate.code - the validation code to send.
SkypeException - when connection has gone bad or ERROR reply.
public static SMS sendSMS(String[] numbers,
String content)
throws SkypeException
numbers - the cell phone numbers to send to.content - the message to send.
SkypeException - when connection has gone bad or ERROR reply.
public static SMS sendSMS(String number,
String content)
throws SkypeException
number - the cell phone numbers to send to.content - the message to send.
SkypeException - when connection has gone bad or ERROR reply.
public SMS[] getAllSMSs()
throws SkypeException
SkypeException - when connection has gone bad or ERROR reply.
public SMS[] getAllMissedSMSs()
throws SkypeException
SkypeException - when connection has gone bad or ERROR reply.
public static VoiceMail voiceMail(String skypeId)
throws SkypeException
skypeId - The Skype user to leave a voicemail.
SkypeException - when connection has gone bad or ERROR reply.
public static VoiceMail[] getAllVoiceMails()
throws SkypeException
SkypeException - If there is a problem with the connection or state at the Skype client.
public static Application addApplication(String name)
throws SkypeException
name - The name of the AP2AP application.
SkypeException - when connection has gone bad or ERROR reply.
public static String getAudioInputDevice()
throws SkypeException
null
if the device is the default.
SkypeException - when connection has gone bad or ERROR reply.setAudioInputDevice(String)
public static String getAudioOutputDevice()
throws SkypeException
null
if the device is the default.
SkypeException - when connection has gone bad or ERROR reply.setAudioOutputDevice(String)
public static String getVideoDevice()
throws SkypeException
SkypeException - when connection has gone bad or ERROR reply.
public static void setAudioInputDevice(String deviceName)
throws SkypeException
deviceName - the audio input device name. A null value means
the default.
SkypeException - when connection has gone bad or ERROR reply.getAudioInputDevice()
public static void setAudioOutputDevice(String deviceName)
throws SkypeException
deviceName - the audio output device name. A null value
means the default.
SkypeException - when connection has gone bad or ERROR reply.getAudioOutputDevice()
public static void setVideoDevice(String deviceName)
throws SkypeException
deviceName - name of the device to set.
SkypeException - when connection has gone bad or ERROR reply.public static Profile getProfile()
public static Call[] getAllActiveCalls()
throws SkypeException
SkypeException - thrown when Skype API is unavailable or getting an Skype API error.
public static Chat[] getAllChats()
throws SkypeException
SkypeException - If there is a problem with the connection or state at the Skype client.
public static Chat[] getAllActiveChats()
throws SkypeException
SkypeException - If there is a problem with the connection or state at the Skype client.
public static Chat[] getAllMissedChats()
throws SkypeException
SkypeException - If there is a problem with the connection or state at the Skype client.
public static Chat[] getAllRecentChats()
throws SkypeException
SkypeException - If there is a problem with the connection or state at the Skype client.
public static Chat[] getAllBookmarkedChats()
throws SkypeException
SkypeException - If there is a problem with the connection or state at the Skype client.
public static void clearCallHistory()
throws SkypeException
SkypeException - If there is a problem with the connection or state at the Skype client.
public static void clearChatHistory()
throws SkypeException
SkypeException - If there is a problem with the connection or state at the Skype client.
public static void clearVoiceMailHistory()
throws SkypeException
SkypeException - If there is a problem with the connection or state at the Skype client.public static User getUser(String id)
id - ID of the User.
public static void addChatMessageListener(ChatMessageListener listener)
throws SkypeException
listener - the Listener to add.
SkypeException - when connection has gone bad or ERROR reply.removeChatMessageListener(ChatMessageListener)public static void removeChatMessageListener(ChatMessageListener listener)
listener - The listener to remove.addChatMessageListener(ChatMessageListener)
public static void addCallListener(CallListener listener)
throws SkypeException
listener - the listener to add.
SkypeException - when connection has gone bad or ERROR reply.CallListenerpublic static void removeCallListener(CallListener listener)
listener - The listener to add.
public static void addVoiceMailListener(VoiceMailListener listener)
throws SkypeException
listener - the added listener
SkypeException - if connection is bad or error is returnedVoicemaListenerpublic static void removeVoiceMailListener(VoiceMailListener listener)
listener - The listener to add.public static void setSkypeExceptionHandler(SkypeExceptionHandler handler)
handler - the handler to use.SkypeExceptionHandler
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||