示例#1
0
 void IWFileListModel::changeTorrent(bt::TorrentInterface* tc)
 {
     kt::TorrentFileListModel::changeTorrent(tc);
     mmfile = tc ? IsMultimediaFile(tc->getStats().output_path) : 0;
     preview = false;
     percentage = 0;
 }
示例#2
0
 IWFileListModel::IWFileListModel(bt::TorrentInterface* tc, QObject* parent)
     : TorrentFileListModel(tc, KEEP_FILES, parent)
 {
     mmfile = tc ? IsMultimediaFile(tc->getStats().output_path) : 0;
     preview = false;
     percentage = 0;
 }
示例#3
0
	IWFileTreeModel::IWFileTreeModel(bt::TorrentInterface* tc,QObject* parent)
			: TorrentFileTreeModel(tc,KEEP_FILES,parent)
	{
		mmfile = IsMultimediaFile(tc->getStats().output_path);
		preview = false;
		percentage = 0;

		if (root)
		{
			BitSet d = tc->downloadedChunksBitSet();
			d -= tc->onlySeedChunksBitSet();
			root->initPercentage(tc,d);
		}
	}