Module: Skype

Extended by:
AbstractObject::Get, AbstractObject::Invokers, AbstractObject::Notify, AbstractObject::Parser
Defined in:
lib/skype.rb,
lib/skype/sms.rb,
lib/skype/call.rb,
lib/skype/chat.rb,
lib/skype/user.rb,
lib/skype/error.rb,
lib/skype/event.rb,
lib/skype/group.rb,
lib/skype/object.rb,
lib/skype/os/etc.rb,
lib/skype/os/mac.rb,
lib/skype/message.rb,
lib/skype/profile.rb,
lib/skype/version.rb,
lib/skype/menuitem.rb,
lib/skype/os/linux.rb,
lib/skype/voicemail.rb,
lib/skype/chatmember.rb,
lib/skype/os/windows.rb,
lib/skype/application.rb,
lib/skype/chatmessage.rb,
lib/skype/os/notifier.rb,
lib/skype/filetransfer.rb,
lib/skype/sharefunctions.rb,
lib/skype/os/window_event_queue.rb,
lib/skype/os/window_messagehandler.rb

Defined Under Namespace

Modules: OS, ShareFunctions, VERSION Classes: AbstractObject, Application, Call, Chat, ChatMember, ChatMessage, Error, Event, FileTransfer, Group, MenuItem, Message, Profile, SMS, User, VoiceMail

Class Attribute Summary collapse

Attributes included from AbstractObject::Get

#property2callback, #property2symbol

Class Method Summary collapse

Methods included from AbstractObject::Notify

delNotify, notified, notify, setNotify

Methods included from AbstractObject::Get

def_parser, notice

Methods included from AbstractObject::Invokers

invoke_alter, invoke_echo, invoke_get, invoke_one, invoke_set

Class Attribute Details

.property2callbackObject (readonly)

Returns the value of attribute property2callback.



172
173
174
# File 'lib/skype.rb', line 172

def property2callback
  @property2callback
end

.property2symbolObject (readonly)

Returns the value of attribute property2symbol.



172
173
174
# File 'lib/skype.rb', line 172

def property2symbol
  @property2symbol
end

Class Method Details

.app(id) ⇒ Object



157
# File 'lib/skype.rb', line 157

def app(id) Skype::Application.new(id) ; end

.BTNPressed(key) ⇒ Object Also known as: btnp_presse



436
437
438
# File 'lib/skype.rb', line 436

def BTNPressed key
  invoke_echo "BTN_PRESSED #{key}"
end

.BTNReleased(key) ⇒ Object Also known as: btn_released



441
442
443
# File 'lib/skype.rb', line 441

def BTNReleased key
  invoke_echo "BTN_RELEASED #{key}"
end

.call(id) ⇒ Object



139
# File 'lib/skype.rb', line 139

def call(id) Skype::Call.new(id) ; end

.chat(id) ⇒ Object

def profile() Skype::Profile.new nil ; end



145
# File 'lib/skype.rb', line 145

def chat(id) Skype::Chat.new(id) ; end

.chatMember(id) ⇒ Object



149
# File 'lib/skype.rb', line 149

def chatMember(id) Skype::ChatMember.new(id) ; end

.chatMessage(id) ⇒ Object



147
# File 'lib/skype.rb', line 147

def chatMessage(id) Skype::ChatMessage.new(id) ; end

.clearCallHistory(type, handle = '') ⇒ Object Also known as: clear_call_history



644
645
646
# File 'lib/skype.rb', line 644

def clearCallHistory(type, handle='')
  invoke("CLEAR CALLHISTORY #{type} #{handle}") == "CLEAR CALLHISTORY #{type} #{handle}".rstrip
end

.clearChatHistoryObject Also known as: clear_chat_history

History



640
# File 'lib/skype.rb', line 640

def clearChatHistory() invoke('CLEAR CHATHISTORY') == 'CLEAR CHATHISTORY' ; end

.clearVoiceMailHistoryObject Also known as: clear_voice_mail_history



642
# File 'lib/skype.rb', line 642

def clearVoiceMailHistory() invoke('CLEAR VOICEMAILHISTORY') == 'CLEAR VOICEMAILHISTORY' ; end

.event(id) ⇒ Object



163
# File 'lib/skype.rb', line 163

def event(id) Skype::Event.new(id) ; end

.fileTransfer(id) ⇒ Object



161
# File 'lib/skype.rb', line 161

def fileTransfer(id) Skype::FileTransfer.new(id) ; end

.focusObject

UserInterFace



316
# File 'lib/skype.rb', line 316

def focus() invoke('FOCUS') == 'FOCUS' end

.forward_os_methodsObject



60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# File 'lib/skype.rb', line 60

def forward_os_methods
  self.class.extend Forwardable
  self.class.def_delegators(:@os,
  :invoke,
  :add_event,
  :del_event,
  :get_event,
  :exist_event?,
  :attach,
  :attach_wait,
  :polling,
  :start_messageloop,
  :messageloop,
  :messagepolling,
  :close
  )
  class << self
    alias addEvent add_event
    alias setEvent add_event
    alias delEvent del_event
    alias getEvent get_event
    alias existEvent? exist_event?
    alias attachWait attach_wait
  end
end

.get_aecObject Also known as: getAEC



275
# File 'lib/skype.rb', line 275

def get_aec() parse :aec, invoke_get("AEC") end

.get_agcObject Also known as: getAGC



268
# File 'lib/skype.rb', line 268

def get_agc() parse :agc, invoke_get("AGC") end

.get_audio_inObject Also known as: getAudioIn



205
# File 'lib/skype.rb', line 205

def get_audio_in() invoke_get("AUDIO_IN") end

.get_audio_outObject Also known as: getAudioOut



212
# File 'lib/skype.rb', line 212

def get_audio_out() invoke_get("AUDIO_OUT") end

.get_auto_awayObject Also known as: getAutoAway



287
# File 'lib/skype.rb', line 287

def get_auto_away() parse :auto_away, invoke_get("AUTOAWAY") end

.get_avatar(filePath, num = 1) ⇒ Object Also known as: getAvatar



233
# File 'lib/skype.rb', line 233

def get_avatar(filePath, num=1) invoke_get("AVATAR #{num} #{filePath}") end

.get_connstatusObject Also known as: getConnstatus



201
# File 'lib/skype.rb', line 201

def get_connstatus() invoke_get("CONNSTATUS") end

.get_contacts_focusedObject Also known as: getContactsFocused



446
# File 'lib/skype.rb', line 446

def get_contacts_focused() parse :contacts_focused, invoke_get("CONTACTS_FOCUSED") end

.get_current_user_handleObject Also known as: getCurrentUserHandle



181
# File 'lib/skype.rb', line 181

def get_current_user_handle() invoke_get("CURRENTUSERHANDLE") end

.get_muteObject Also known as: getMute



226
# File 'lib/skype.rb', line 226

def get_mute() parse :mute, invoke_get("MUTE") end

.get_pc_speakerObject Also known as: getPCSpeaker



261
# File 'lib/skype.rb', line 261

def get_pc_speaker() parse :pc_speaker, invoke_get('PCSPEAKER') end

.get_predictive_dialer_countryObject Also known as: getPredictiveDialerCountry



197
# File 'lib/skype.rb', line 197

def get_predictive_dialer_country() invoke_get("PREDICTIVE_DIALER_COUNTRY") end

.get_privilege(privilege) ⇒ Object Also known as: getPrivilege

privilege SkypeOut | SkypeIn | VoiceMail



190
# File 'lib/skype.rb', line 190

def get_privilege(privilege) parse :privilege, invoke_get("PRIVILEGE #{privilege}") end

.get_ringerObject Also known as: getRinger



219
# File 'lib/skype.rb', line 219

def get_ringer() invoke_get("RINGER") end

.get_ringtone(id = 1) ⇒ Object Also known as: getRingtone



241
# File 'lib/skype.rb', line 241

def get_ringtone(id=1) invoke_get("RINGTONE #{id}") end

.get_ringtone_status(id = 1) ⇒ Object Also known as: getRingtoneStatus



248
249
250
251
# File 'lib/skype.rb', line 248

def get_ringtone_status(id=1)
  invoke("GET RINGTONE #{id} STATUS") =~ /RINGTONE #{id} ((ON)|(OFF))/
  $2._flag
end

.get_silent_modeObject Also known as: getSilentMode



464
# File 'lib/skype.rb', line 464

def get_silent_mode() parse :silent_mode, invoke_get("SILENT_MODE") end

.get_skype_versionObject Also known as: getSkypeVersion



177
# File 'lib/skype.rb', line 177

def get_skype_version() invoke_get("SKYPEVERSION") end

.get_ui_languageObject Also known as: getUILanguage



450
# File 'lib/skype.rb', line 450

def get_ui_language() invoke_get("UI_LANGUAGE") end

.get_user_statusObject Also known as: getUserStatus



185
# File 'lib/skype.rb', line 185

def get_user_status() invoke_get("USERSTATUS") end

.get_video_inObject Also known as: getVideoIn



303
# File 'lib/skype.rb', line 303

def get_video_in() invoke_get("VIDEO_IN") end

.get_wallpaperObject Also known as: getWallPaper



457
# File 'lib/skype.rb', line 457

def get_wallpaper() invoke_get("WALLPAPER") end

.get_window_stateObject Also known as: getWindowState



320
# File 'lib/skype.rb', line 320

def get_window_state() invoke_get("WINDOWSTATE") end

.group(id) ⇒ Object



159
# File 'lib/skype.rb', line 159

def group(id) Skype::Group.new(id) ; end

.init(app_name, os = RUBY_PLATFORM.downcase) ⇒ Object



37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# File 'lib/skype.rb', line 37

def init app_name, os=RUBY_PLATFORM.downcase
  case os
  when /(mswin(?!ce))|(mingw)|(cygwin)|(bccwin)/
    require 'skype/os/windows.rb'
    init_os Skype::OS::Windows, app_name
  when /(mac)|(darwin)/
    require 'skype/os/mac.rb'
    init_os Skype::OS::Mac, app_name
  when /(linux)/
    require 'skype/os/linux.rb'
    init_os Skype::OS::Linux, app_name
  else
    raise Skype::NotImplementError.new("#{os} is unknown or not support OS")
  end
  @notify = Hash.new
  init_notifier
end

.init_notifierObject



86
87
88
89
90
91
# File 'lib/skype.rb', line 86

def init_notifier
  @notifier = Skype::OS::Notifier.new
  @os.set_notify_selector @notifier.method(:fire)
  @notifier.add nil, method(:notified)
  objectsInit
end

.init_os(os_class, app_name) ⇒ Object



55
56
57
58
# File 'lib/skype.rb', line 55

def init_os os_class, app_name
  @os = os_class.new app_name
  forward_os_methods        
end


165
# File 'lib/skype.rb', line 165

def menuItem(id) Skype::MenuItem.new(id) ; end

.minimizeObject



318
# File 'lib/skype.rb', line 318

def minimize() invoke('MINIMIZE') == 'MINIMIZE' end

.newObject



94
95
96
97
# File 'lib/skype.rb', line 94

def new
  init
  self
end

.notified(msg) ⇒ Object



103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
# File 'lib/skype.rb', line 103

def notified msg
  skypeProperty = nil
  propertyReg = '(?:' + [
    'CONTACTS FOCUSED',
    'RINGTONE 1 STATUS',
    'RINGTONE 1',
    '[^ ]+'
  ].join(')|(?:') + ')'
  
  if msg =~ /^(#{propertyReg}) (.+)$/m
    skypeProperty = $1; value = $2
    #property = self::P2M[skypeProperty].to_s.downcase.to_sym if self::P2M[skypeProperty].class == Symbol
    #value = self::V2O[skypeProperty].call value if self::V2O[skypeProperty]
    property = @property2symbol[skypeProperty].to_s.downcase.to_sym if @property2symbol[skypeProperty].class == Symbol
    value = @property2callback[skypeProperty].call value if @property2callback[skypeProperty]

    if @notify[nil]
      @notify[nil][nil].call property, value if @notify[nil][nil]
      @notify[nil][value].call property if @notify[nil][value]
    end
    if @notify[property]
      @notify[property][nil].call value if @notify[property][nil]
      @notify[property][value].call if @notify[property][value]
    end
  end
end

.objectsInitObject



130
131
132
133
134
135
# File 'lib/skype.rb', line 130

def objectsInit
  [Skype::User,Skype::Profile,Skype::Call,Skype::Message,Skype::Chat,Skype::ChatMessage,Skype::ChatMember,Skype::VoiceMail,Skype::SMS,Skype::Application,Skype::Group,Skype::FileTransfer,Skype::Event,Skype::MenuItem].each do |klass|
    #@os.add_notify /^#{klass::OBJECT_NAME} (.+)$/m, klass.method(:notified)
    @notifier.add /^#{klass::OBJECT_NAME} (.+)$/m, klass.method(:notified)
  end
end

.open(prop, *value) ⇒ Object



327
328
329
330
331
332
333
334
# File 'lib/skype.rb', line 327

def open prop, *value
  begin
    "OPEN #{prop} #{value.join(' ')}".rstrip == invoke("OPEN #{prop} #{value.join(' ')}".rstrip)
  rescue => e
    e.backtrace.shift
    raise e
  end
end

.openAddAFriend(user = '') ⇒ Object Also known as: open_add_a_friend



346
347
348
# File 'lib/skype.rb', line 346

def openAddAFriend user=''
  open 'ADDAFRIEND', user.to_s
end

.openAuthorization(user) ⇒ Object Also known as: open_authorization



431
432
433
# File 'lib/skype.rb', line 431

def openAuthorization user
  open 'AUTHORIZATION', user
end

.openBlockedUsersObject Also known as: open_blocked_users



416
417
418
# File 'lib/skype.rb', line 416

def openBlockedUsers
  open 'BLOCKEDUSERS'
end

.openCallHistoryObject Also known as: open_call_history



396
397
398
# File 'lib/skype.rb', line 396

def openCallHistory
  open 'CALLHISTORY'
end

.openChat(chat) ⇒ Object Also known as: open_chat



356
357
358
# File 'lib/skype.rb', line 356

def openChat chat
  open 'CHAT', chat
end

.openConferenceObject Also known as: open_conference



381
382
383
# File 'lib/skype.rb', line 381

def openConference
  open 'CONFERENCE'
end

.openContactsObject Also known as: open_contancts



401
402
403
# File 'lib/skype.rb', line 401

def openContacts
  open 'CONTACTS'
end

.openDialPadObject Also known as: open_dial_pad



406
407
408
# File 'lib/skype.rb', line 406

def openDialPad
  open 'DIALPAD'
end

.openFileTransfer(path = nil, *users) ⇒ Object Also known as: open_file_trasfer



361
362
363
# File 'lib/skype.rb', line 361

def openFileTransfer path=nil, *users
  open 'FILETRANSFER', "#{users.join(', ')}",path ? "IN #{path}" : ''
end

.openGettingStartedObject Also known as: open_getting_started



426
427
428
# File 'lib/skype.rb', line 426

def openGettingStarted
  open 'GETTINGSTARTED'
end

.openIM(user, msg = '') ⇒ Object Also known as: open_im



351
352
353
# File 'lib/skype.rb', line 351

def openIM user, msg=''
  open 'IM', user.to_s, msg
end

.openImportContactsObject Also known as: open_import_contacts



421
422
423
# File 'lib/skype.rb', line 421

def openImportContacts
  open 'IMPORTCONTACTS'
end

.openLiveTabObject Also known as: open_live_tab



366
367
368
# File 'lib/skype.rb', line 366

def openLiveTab
  open 'LIVETAB'
end

.openOptions(page = '') ⇒ Object Also known as: open_options



391
392
393
# File 'lib/skype.rb', line 391

def openOptions page=''
  open 'OPTIONS', page
end

.openProfileObject Also known as: open_profile



371
372
373
# File 'lib/skype.rb', line 371

def openProfile
  open 'PROFILE'
end

.openSearchObject Also known as: open_search



386
387
388
# File 'lib/skype.rb', line 386

def openSearch
  open 'SEARCH'
end

.openSendContacts(*users) ⇒ Object Also known as: open_send_contancts



411
412
413
# File 'lib/skype.rb', line 411

def openSendContacts *users
  open 'SENDCONTACTS', users.join(' ')
end

.openUserInfo(user) ⇒ Object Also known as: open_user_info



376
377
378
# File 'lib/skype.rb', line 376

def openUserInfo user
  open 'USERINFO', user.to_s
end

.openVideoTest(id = '') ⇒ Object Also known as: open_video_test



336
337
338
# File 'lib/skype.rb', line 336

def openVideoTest id=''
  open 'VIDEOTEST', id
end

.openVoiceMail(id) ⇒ Object Also known as: open_voice_mail



341
342
343
# File 'lib/skype.rb', line 341

def openVoiceMail id
  open 'VOICEMAIL', id
end

.osObject



99
100
101
# File 'lib/skype.rb', line 99

def os
  @os
end

.pingObject



310
311
312
# File 'lib/skype.rb', line 310

def ping
  invoke("PING") == "PONG"
end

.reset_idle_timerObject Also known as: resetIdleTimer

notice?



283
# File 'lib/skype.rb', line 283

def reset_idle_timer() invoke("RESETIDLETIMER") == "RESETIDLETIMER" end

.search(prop, preffix = prop, val = '') ⇒ Object

Search



473
474
475
476
477
478
479
480
481
# File 'lib/skype.rb', line 473

def search prop, preffix=prop, val=''
  ret = invoke "SEARCH #{prop} #{val}"
  ret =~ /^#{preffix} (.+)$/
  if $1
    $1.split(', ')
  else
    []
  end
end

.searchActiveCallsObject Also known as: search_active_calls



501
502
503
504
505
# File 'lib/skype.rb', line 501

def searchActiveCalls
  search('ACTIVECALLS','CALLS').map do |id|
    call(id)
  end
end

.searchActiveChatsObject Also known as: search_active_chats



555
556
557
558
559
# File 'lib/skype.rb', line 555

def searchActiveChats
  search('ACTIVECHATS','CHATS').map do |id|
    chat id
  end
end

.searchActiveFileTransfersObject Also known as: search_active_file_transfers



609
610
611
612
613
# File 'lib/skype.rb', line 609

def searchActiveFileTransfers
  search('ACTIVEFILETRANSFERS','FILETRANSFERS').map do |id|
    fileTransfer id
  end
end

.searchBookMarkedChatsObject Also known as: search_book_marked_chats



573
574
575
576
577
# File 'lib/skype.rb', line 573

def searchBookMarkedChats
  search('BOOKMARKEDCHATS','CHATS').map do |id|
    chat id
  end
end

.searchCalls(target) ⇒ Object Also known as: search_calls



495
496
497
498
499
# File 'lib/skype.rb', line 495

def searchCalls target
  search('CALLS','CALLS',target).map do |id|
    call(id)
  end
end

.searchChatMessages(target = '') ⇒ Object Also known as: search_chat_messages



579
580
581
582
583
# File 'lib/skype.rb', line 579

def searchChatMessages target=''
  search('CHATMESSAGES','CHATMESSAGES', target).map do |id|
    chatMessage id
  end
end

.searchChatsObject Also known as: search_chats



549
550
551
552
553
# File 'lib/skype.rb', line 549

def searchChats
  search('CHATS').map do |id|
    chat id
  end
end

.searchFileTransfersObject Also known as: search_file_transfers



603
604
605
606
607
# File 'lib/skype.rb', line 603

def searchFileTransfers
  search('FILETRANSFERS').map do |id|
    fileTransfer id
  end
end

.searchFriendsObject Also known as: search_friends



483
484
485
486
487
# File 'lib/skype.rb', line 483

def searchFriends
  search('FRIENDS','USERS').map do |handle|
    user(handle)
  end
end

.searchGroups(type = '') ⇒ Object Also known as: search_groups



597
598
599
600
601
# File 'lib/skype.rb', line 597

def searchGroups type=''
  search('GROUPS','GROUPS',type).map do |id|
    group id
  end
end

.searchMessages(target = '') ⇒ Object Also known as: search_messages



537
538
539
540
541
# File 'lib/skype.rb', line 537

def searchMessages(target='')
  search('MESSAGES', 'MESSAGES', target).map do |id|
    message id
  end
end

.searchMissedCallsObject Also known as: search_missed_calls



507
508
509
510
511
# File 'lib/skype.rb', line 507

def searchMissedCalls
  search('MISSEDCALLS','CALLS').map do |id|
    call(id)
  end
end

.searchMissedChatMessagesObject Also known as: search_missed_chat_messages



585
586
587
588
589
# File 'lib/skype.rb', line 585

def searchMissedChatMessages
  search('MISSEDCHATMESSAGES','CHATMESSAGES').map do |id|
    chatMessage id
  end
end

.searchMissedChatsObject Also known as: search_missed_chats



561
562
563
564
565
# File 'lib/skype.rb', line 561

def searchMissedChats
  search('MISSEDCHATS','CHATS').map do |id|
    chat id
  end
end

.searchMissedMessagesObject Also known as: search_missed_messages



543
544
545
546
547
# File 'lib/skype.rb', line 543

def searchMissedMessages
  search('MISSEDMESSAGES','MESSAGES').map do |id|
    message id
  end
end

.searchMissedSMSsObject Also known as: search_missed_smss



519
520
521
522
523
# File 'lib/skype.rb', line 519

def searchMissedSMSs
  search('MISSEDSMSS','SMSS').map do |id|
    sms(id)
  end
end

.searchMissedVoiceMailsObject Also known as: search_missed_voice_mails



531
532
533
534
535
# File 'lib/skype.rb', line 531

def searchMissedVoiceMails
  search('MISSEDVOICEMAILS','VOICEMAILS').map do |id|
    voiceMail id
  end
end

.searchRecentChatsObject Also known as: search_recent_chats



567
568
569
570
571
# File 'lib/skype.rb', line 567

def searchRecentChats
  search('RECENTCHATS','CHATS').map do |id|
    chat id
  end
end

.searchSMSsObject Also known as: search_smss



513
514
515
516
517
# File 'lib/skype.rb', line 513

def searchSMSs
  search('SMSS').map do |id|
    sms(id)
  end
end

.searchUsers(target) ⇒ Object Also known as: search_users



489
490
491
492
493
# File 'lib/skype.rb', line 489

def searchUsers target
  search('USERS','USERS',target).map do |handle|
    user(handle)
  end
end

.searchUsersWaitingMyAuthorizationObject Also known as: search_users_waiting_my_authorization



591
592
593
594
595
# File 'lib/skype.rb', line 591

def searchUsersWaitingMyAuthorization
  search('USERSWAITINGMYAUTHORIZATION','USERS').map do |handle|
    user handle
  end
end

.searchVoiceMailsObject Also known as: search_voice_mails



525
526
527
528
529
# File 'lib/skype.rb', line 525

def searchVoiceMails
  search('VOICEMAILS').map do |id|
    voiceMail(id)
  end
end

.set_aec(flag) ⇒ Object Also known as: setAEC



279
# File 'lib/skype.rb', line 279

def set_aec(flag) parse :aec, invoke_set("AEC", flag._swi) end

.set_agc(flag) ⇒ Object Also known as: setAGC



272
# File 'lib/skype.rb', line 272

def set_agc(flag) parse :agc, invoke_set("AGC", flag._swi) end

.set_audio_in(device) ⇒ Object Also known as: setAudioIn



209
# File 'lib/skype.rb', line 209

def set_audio_in(device) invoke_set "AUDIO_IN", device  end

.set_audio_out(device) ⇒ Object Also known as: setAudioOut



216
# File 'lib/skype.rb', line 216

def set_audio_out(device) invoke_set "AUDIO_OUT", device ; end

.set_auto_away(flag) ⇒ Object Also known as: setAutoAway



300
# File 'lib/skype.rb', line 300

def set_auto_away(flag) parse :auto_away, invoke_set('AUTOAWAY', flag._swi) end

.set_avatar(filePath, idx = "", num = 1) ⇒ Object Also known as: setAvatar



236
237
238
# File 'lib/skype.rb', line 236

def set_avatar(filePath, idx="", num=1)
  invoke_set("AVATAR", "#{num} #{filePath}#{idx.empty? ? '' : ':'+idx.to_s}").split(' ')[1..-1].join(' ')
end

.set_mute(flag) ⇒ Object Also known as: setMute



230
# File 'lib/skype.rb', line 230

def set_mute(flag) parse :mute, invoke_set("MUTE", flag._swi) ;end

.set_pc_speaker(flag) ⇒ Object Also known as: setPCSpeaker



265
# File 'lib/skype.rb', line 265

def set_pc_speaker(flag) parse :pc_speaker, invoke_set("PCSPEAKER", flag._swi) ; end

.set_ringer(device) ⇒ Object Also known as: setRinger



223
# File 'lib/skype.rb', line 223

def set_ringer(device) invoke_set("RINGER", device) ; end

.set_ringtone(filePath, idx = "", id = 1) ⇒ Object Also known as: setRingtone



245
# File 'lib/skype.rb', line 245

def set_ringtone(filePath, idx="", id=1) invoke_set("RINGTONE","#{id} #{filePath}:#{idx}")  end

.set_ringtone_status(flag, id = 1) ⇒ Object Also known as: setRingtoneStatus



255
256
257
258
# File 'lib/skype.rb', line 255

def set_ringtone_status(flag, id=1)
  invoke("SET RINGTONE #{id} STATUS #{flag._swi}") =~ /RINGTONE #{id} ((ON)|(OFF))/
  $2._flag
end

.set_silent_mode(flag) ⇒ Object Also known as: setSilentMode



468
# File 'lib/skype.rb', line 468

def set_silent_mode(flag) parse :silent_mode, invoke_set('SILENT_MODE', flag._swi) end

.set_ui_language(lang) ⇒ Object Also known as: setUILanguage



454
# File 'lib/skype.rb', line 454

def set_ui_language(lang) invoke_set("UI_LANGUAGE", lang) end

.set_user_status(status) ⇒ Object Also known as: setUserStatus



194
# File 'lib/skype.rb', line 194

def set_user_status(status) invoke_set("USERSTATUS", status) end

.set_video_in(device) ⇒ Object Also known as: setVideoIn



307
# File 'lib/skype.rb', line 307

def set_video_in(device) invoke_set("VIDEO_IN", device) end

.set_wallpaper(filePath) ⇒ Object Also known as: setWallpaper



461
# File 'lib/skype.rb', line 461

def set_wallpaper(filePath) invoke_set('WALLPAPER', filePath) end

.set_window_state(state) ⇒ Object Also known as: setWindowState



324
# File 'lib/skype.rb', line 324

def set_window_state(state) invoke_set("WINDOWSTATE", state) end

.sms(id) ⇒ Object



155
# File 'lib/skype.rb', line 155

def sms(id) Skype::SMS.new(id) ; end

.user(id) ⇒ Object



137
# File 'lib/skype.rb', line 137

def user(id) Skype::User.new(id) ; end

.voiceMail(id) ⇒ Object

def message(id) Skype::Message.new(id) ; end



153
# File 'lib/skype.rb', line 153

def voiceMail(id) Skype::VoiceMail.new(id) ; end