mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-09 11:42:33 +00:00
* 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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user