Created a root ui.

git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@321 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2005-03-03 21:27:27 +00:00
parent fd0c10d962
commit 8d36f7c374
5 changed files with 90 additions and 35 deletions
+33
View File
@@ -0,0 +1,33 @@
#ifndef RTORRENT_UI_ROOT_H
#define RTORRENT_UI_ROOT_H
#include "input/bindings.h"
namespace ui {
class DownloadList;
class Root {
public:
Root(Control* c) : m_shutdownReceived(false), m_control(c), m_downloadList(NULL) {}
void init();
void cleanup();
bool get_shutdown_received() { return m_shutdownReceived; }
void set_shutdown_received(bool v) { m_shutdownReceived = v; }
private:
void setup_keys();
bool m_shutdownReceived;
Control* m_control;
DownloadList* m_downloadList;
input::Bindings m_bindings;
};
}
#endif