mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-12 04:24:27 +00:00
Update bindings to include queueing and file_renamed_alert
This commit is contained in:
parent
772f80e622
commit
8359ade3f2
@ -265,5 +265,10 @@ void bind_alert()
|
||||
)
|
||||
.def_readonly("resume_data", &save_resume_data_alert::resume_data)
|
||||
;
|
||||
|
||||
|
||||
class_<file_renamed_alert, bases<torrent_alert>, noncopyable>(
|
||||
"file_renamed_alert", no_init
|
||||
)
|
||||
.def_readonly("name", &file_renamed_alert::name)
|
||||
;
|
||||
}
|
||||
|
@ -267,6 +267,15 @@ void bind_torrent_handle()
|
||||
.def("is_paused", _(&torrent_handle::is_paused))
|
||||
.def("pause", _(&torrent_handle::pause))
|
||||
.def("resume", _(&torrent_handle::resume))
|
||||
|
||||
.def_readonly("is_auto_managed", _(&torrent_handle::is_auto_managed))
|
||||
.def("auto_managed", _(&torrent_handle::auto_managed))
|
||||
.def_readonly("queue_position", _(&torrent_handle::queue_position))
|
||||
.def("queue_position_up", _(&torrent_handle::queue_position_up))
|
||||
.def("queue_position_down", _(&torrent_handle::queue_position_down))
|
||||
.def("queue_position_top", _(&torrent_handle::queue_position_top))
|
||||
.def("queue_position_bottom", _(&torrent_handle::queue_position_bottom))
|
||||
|
||||
#ifndef TORRENT_DISABLE_RESOLVE_COUNTRIES
|
||||
.def("resolve_countries", _(resolve_countries0))
|
||||
.def("resolve_countries", _(resolve_countries1))
|
||||
@ -283,6 +292,7 @@ void bind_torrent_handle()
|
||||
.def("prioritize_files", prioritize_files)
|
||||
.def("use_interface", &torrent_handle::use_interface)
|
||||
.def("write_resume_data", _(&torrent_handle::write_resume_data))
|
||||
.def("save_resume_data", _(&torrent_handle::save_resume_data))
|
||||
.def("force_reannounce", _(force_reannounce0))
|
||||
.def("force_reannounce", force_reannounce)
|
||||
.def("scrape_tracker", _(&torrent_handle::scrape_tracker))
|
||||
|
@ -68,6 +68,12 @@ void bind_torrent_status()
|
||||
.def_readonly("storage_mode", &torrent_status::storage_mode)
|
||||
.def_readonly("up_bandwidth_queue", &torrent_status::up_bandwidth_queue)
|
||||
.def_readonly("down_bandwidth_queue", &torrent_status::down_bandwidth_queue)
|
||||
.def_readonly("all_time_upload", &torrent_status::all_time_upload)
|
||||
.def_readonly("all_time_download", &torrent_status::all_time_download)
|
||||
.def_readonly("active_time", &torrent_status::active_time)
|
||||
.def_readonly("seeding_time", &torrent_status::seeding_time)
|
||||
.def_readonly("seed_rank", &torrent_status::seed_rank)
|
||||
.def_readonly("last_scrape", &torrent_status::last_scrape)
|
||||
;
|
||||
|
||||
enum_<torrent_status::state_t>("states")
|
||||
|
Loading…
x
Reference in New Issue
Block a user