* Added view_event_{added,removed} commands that sets a command to be

triggered when a download is added/removed from the specified view.

* Minor compiler errors fixed.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1045 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2008-03-20 11:50:57 +00:00
parent 7062935724
commit 199bd1985c
8 changed files with 90 additions and 41 deletions
+6
View File
@@ -118,6 +118,9 @@ public:
void clear_filter_on();
void set_event_added(const std::string& cmd) { m_eventAdded = cmd; }
void set_event_removed(const std::string& cmd) { m_eventRemoved = cmd; }
// The time of the last change to the view, semantics of this is
// user-dependent. Used by f.ex. ViewManager to decide if it should
// sort and/or filter a view.
@@ -159,6 +162,9 @@ private:
std::string m_filter;
std::string m_eventAdded;
std::string m_eventRemoved;
rak::timer m_lastChanged;
signal_type m_signalChanged;
};