def __init__(self): self.auto_resume = False self.hours = 0 self.minutes = 5 self.seconds = 0 KTorrent.connect("suspendStateChanged(bool)",self.suspendedStateChanged) self.timer = KTScriptingPlugin.createTimer(True) self.timer.connect('timeout()',self.timerFired)
def __init__(self): self.auto_resume = False self.hours = 0 self.minutes = 5 self.seconds = 0 KTorrent.connect("pauseStateChanged(bool)",self.pausedStateChanged) self.timer = KTScriptingPlugin.createTimer(True) self.timer.connect('timeout()',self.timerFired)
def __init__(self): self.auto_resume = False self.remove_on_finish_downloading = False self.remove_on_finish_seeding = False self.timer = KTScriptingPlugin.createTimer(True) KTorrent.connect("torrentAdded(const QString &)",self.torrentAdded) tors = KTorrent.torrents() # bind to signals for each torrent for t in tors: self.torrentAdded(t)