Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added new classes, and base class for records
New classes 'SkypeChatDBB', 'SkypeChat' 'SkypeChatMemberDBB', 'SkypeChatMember' Added unknown parameters to record descriptions. Parser will warn about new unknown fields. Simple example of D-Bus Skype API. Might be useful in finding out meaning of unknown fields.
- Loading branch information
Showing
3 changed files
with
146 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/usr/bin/env python | ||
import dbus | ||
import sys | ||
try: | ||
skype = dbus.SystemBus().get_object('com.Skype.API', '/com/Skype') | ||
except: | ||
try: | ||
skype = dbus.SessionBus().get_object('com.Skype.API', '/com/Skype') | ||
except: | ||
print "Can't find Skype API" | ||
sys.exit() | ||
|
||
print skype.Invoke("NAME python") | ||
print skype.Invoke("PROTOCOL 9999") | ||
print skype.Invoke("SEARCH CHATS") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters