コード例 #1
0
ファイル: HaliteDialog.cpp プロジェクト: jR4v/Halite
void HaliteDialog::OnRemove(UINT, int, HWND)
{
	if (hal::torrent_details_ptr torrent = hal::bittorrent().torrentDetails().focused_torrent()) 
	{
		hal::bittorrent().remove_torrent(torrent->uuid());
		torrentsList().erase_torrent_name(torrent->uuid());
	}
}
コード例 #2
0
ファイル: reciever.cpp プロジェクト: hhrt/trem
void Reciever::success() {
  std::cout << "Operation \'" << operation(session->tag())
            << "\', result: \'" << session->result().toAscii().data() << "\'\n";
  switch(session->tag()) {
    case GetTorrentsList:
    std::cout << "torrents count: \'" << session->torrentsCount() << "\'\n";
    std::cout << "Torrents:\n";
    torrentsList();
    break;
   /* case StopTorrents:
    break;
    case StartTorrents:
    break;*/
    defaults:
    std::cout << "Unknown tag.\n";
  }
  emit term();
};