* Starting work on ElementText for displaying generic information.

* If a storage error was thrown from make_directory in
EntryList::open, it would try to erase a FileMeta that wasn't inserted.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@753 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2006-08-09 19:55:34 +00:00
parent ba28df3ff2
commit ca58b43d8b
17 changed files with 360 additions and 67 deletions
+6 -3
View File
@@ -60,12 +60,12 @@ class Download : public ElementBase {
public:
typedef display::WindowDownloadStatusbar WDownloadStatus;
typedef core::Download* DPtr;
typedef std::list<torrent::Peer> PList;
typedef enum {
DISPLAY_MENU,
DISPLAY_PEER_LIST,
DISPLAY_INFO,
DISPLAY_FILE_LIST,
DISPLAY_TRACKER_LIST,
DISPLAY_CHUNKS_SEEN,
@@ -73,7 +73,7 @@ public:
DISPLAY_MAX_SIZE
} Display;
Download(DPtr d);
Download(core::Download* d);
~Download();
void activate(display::Frame* frame, bool focus = true);
@@ -93,13 +93,16 @@ private:
Download(const Download&);
void operator = (const Download&);
inline ElementBase* create_menu();
inline ElementBase* create_info();
void receive_max_uploads(int t);
void receive_min_peers(int t);
void receive_max_peers(int t);
void bind_keys();
DPtr m_download;
core::Download* m_download;
Display m_state;
ElementBase* m_uiArray[DISPLAY_MAX_SIZE];