コード例 #1
0
ファイル: auto_resume.py プロジェクト: ashl1/ktorrent-stream
	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)
コード例 #2
0
	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)
コード例 #3
0
	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)
コード例 #4
0
ファイル: auto_remove.py プロジェクト: ashl1/ktorrent-stream
	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)