* Used different ncurses calls in the file list so that UTF8 filenames

should show up properly.

* More cleanup of Views.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1050 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2008-04-02 17:11:44 +00:00
parent 03c544d07d
commit aab493caad
11 changed files with 119 additions and 19 deletions
+13
View File
@@ -181,6 +181,19 @@ add_variable(key, NULL, NULL, &rpc::CommandVariable::get_string, NULL, std::stri
// DOWNLOAD RELATED COMMANDS
//
#define CMD_V(prefix, postfix, type, defaultValue) \
add_variable(prefix "" postfix, prefix "set_" postfix, NULL, &rpc::CommandVariable::get_##type, &rpc::CommandVariable::set_##type, defaultValue);
#define CMD_G_SLOT(key, function, slot, parm, doc) \
commandAnySlotsItr->set_slot(slot); \
rpc::commands.insert_type(key, commandAnySlotsItr++, &rpc::CommandSlot<rpc::target_type>::function, rpc::CommandMap::flag_dont_delete | rpc::CommandMap::flag_public_xmlrpc, parm, doc);
#define CMD_G(key, slot) \
CMD_G_SLOT(key, call_unknown, slot, "i:", "")
#define CMD_G_STRING(key, slot) \
CMD_G_SLOT(key, call_string, slot, "i:", "")
#define CMD_D_SLOT(key, function, slot, parm, doc) \
commandDownloadSlotsItr->set_slot(slot); \
rpc::commands.insert_type(key, commandDownloadSlotsItr++, &rpc::CommandSlot<core::Download*>::function, rpc::CommandMap::flag_dont_delete | rpc::CommandMap::flag_public_xmlrpc, parm, doc);