* Renamed pex_{enabled,active} to is_pex_*.

* Changed the download info screen to only use commands.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@972 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2007-09-03 00:59:34 +00:00
parent 1cc1374c7a
commit 95516fe3b5
7 changed files with 167 additions and 54 deletions
+10 -3
View File
@@ -167,7 +167,12 @@ public:
static const int flag_fixed_width = (1 << 8);
TextElementCommand(const char* command) : m_command(command) {}
TextElementCommand(const char* command, int flags, int attributes, extent_type length) :
m_flags(flags),
m_attributes(attributes),
m_length(length),
m_command(command),
m_commandEnd(command + std::strlen(command)) {}
int flags() const { return m_flags; }
void set_flags(int flags) { m_flags = flags; }
@@ -177,15 +182,17 @@ public:
virtual char* print(char* first, char* last, Canvas::attributes_list* attributes, rpc::target_type target);
virtual extent_type max_length() { return m_length; }
protected:
int m_flags;
int m_attributes;
extent_type m_length;
const char* m_command;
const char* m_commandEnd;
};
}
#endif