Lines Matching refs:id
79 myIdToTorrent.insert( t->id( ), t );
80 myIdToRow.insert( t->id( ), myTorrents.size( ) );
99 TorrentModel :: getTorrentFromId( int id )
101 id_to_torrent_t::iterator it( myIdToTorrent.find( id ) );
106 TorrentModel :: getTorrentFromId( int id ) const
108 id_to_torrent_t::const_iterator it( myIdToTorrent.find( id ) );
153 int64_t id;
154 if( tr_bencDictFindInt( child, "id", &id ) )
156 newIds.insert( id );
158 Torrent * tor = getTorrentFromId( id );
161 tor = new Torrent( myPrefs, id );
174 addIds.insert( tor->id() );
192 addIds.insert( tor->id( ) );
204 foreach( int id, removedIds )
205 removeTorrent( id );
210 TorrentModel :: removeTorrent( int id )
212 const int row = myIdToRow.value( id, -1 );
215 Torrent * tor = myIdToTorrent.value( id, 0 );
222 myIdToRow.remove( id );
223 myIdToTorrent.remove( id );
254 ids.insert( tor->id( ) );