Class: Skype::OS::Mac::MessageHandler
- Inherits:
-
OSX::NSObject
- Object
- OSX::NSObject
- Skype::OS::Mac::MessageHandler
- Defined in:
- lib/skype/os/mac.rb
Instance Method Summary collapse
- #_init(os, name) ⇒ Object
- #clientApplicationName ⇒ Object
- #skypeAttachResponse(status) ⇒ Object
- #skypeBecameAvilable ⇒ Object
- #skypeBecameUnavilable ⇒ Object
-
#skypeNotificationReceived(notification_string) ⇒ Object
addRubyMethod_withType ‘skypeNotificationReceived:’, ‘v@:i’.
Instance Method Details
#_init(os, name) ⇒ Object
14 15 16 17 |
# File 'lib/skype/os/mac.rb', line 14 def _init os, name @os = os @clientApplicationName = name end |
#clientApplicationName ⇒ Object
19 20 21 |
# File 'lib/skype/os/mac.rb', line 19 def clientApplicationName @clientApplicationName end |
#skypeAttachResponse(status) ⇒ Object
24 25 26 27 28 29 30 31 |
# File 'lib/skype/os/mac.rb', line 24 def skypeAttachResponse status if status == 1 @os.attached = true OSX::SkypeAPI.sendSkypeCommand('PROTOCOL 9999') else @os.attached = false end end |
#skypeBecameAvilable ⇒ Object
33 34 |
# File 'lib/skype/os/mac.rb', line 33 def skypeBecameAvilable end |
#skypeBecameUnavilable ⇒ Object
36 37 |
# File 'lib/skype/os/mac.rb', line 36 def skypeBecameUnavilable end |
#skypeNotificationReceived(notification_string) ⇒ Object
addRubyMethod_withType ‘skypeNotificationReceived:’, ‘v@:i’
40 41 42 43 44 45 46 47 48 49 |
# File 'lib/skype/os/mac.rb', line 40 def skypeNotificationReceived notification_string p "[#{notification_string.to_s}]" if @os.debug if notification_string.to_s =~ /^#(\d+) (.+)$/m send_count = $1.to_i; res = $2 @os.response[send_count] = notification_string.to_s else @os.push_queue notification_string.to_s end end |