myth-dbus/tests/channel-list.py
author renatofilho
Wed Oct 24 20:01:02 2007 +0100 (2007-10-24)
branchtrunk
changeset 865 3eeb6b565018
permissions -rw-r--r--
[svn r871] created myth dbus service
renatofilho@865
     1
import dbus
renatofilho@865
     2
bus = dbus.SessionBus()
renatofilho@865
     3
renatofilho@865
     4
proxy = bus.get_object ('br.org.indt.GMyth', '/br/org/indt/GMyth')
renatofilho@865
     5
iface = dbus.Interface (proxy, dbus_interface='br.org.indt.GMyth')
renatofilho@865
     6
iface.Connect ('192.168.2.222', 6543, 'mythtv', 'mythtv')
renatofilho@865
     7
print iface.Connected ()
renatofilho@865
     8
print iface.GetChannelList ()
renatofilho@865
     9
print "--------------------------------------------------------"
renatofilho@865
    10
print iface.GetRecordedList ()
renatofilho@865
    11
#print iface.FileExists ("teste.nuv")
renatofilho@865
    12
#print iface.GetProgramList (1003, ')