Loads correctly formated torrents from session dir when starting.

git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@294 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2005-02-20 17:21:23 +00:00
parent fa9a2d7e86
commit c4d548bafd
8 changed files with 83 additions and 22 deletions
+8 -3
View File
@@ -2,13 +2,13 @@
#define RTORRENT_UTILS_DIRECTORY_H
#include <string>
#include <vector>
#include <list>
namespace utils {
class Directory : private std::vector<std::string> {
class Directory : private std::list<std::string> {
public:
typedef std::vector<std::string> Base;
typedef std::list<std::string> Base;
using Base::iterator;
using Base::const_iterator;
@@ -23,6 +23,8 @@ public:
using Base::empty;
using Base::size;
using Base::erase;
Directory() {}
Directory(const std::string& path) : m_path(path) {}
@@ -30,6 +32,9 @@ public:
const std::string& get_path() { return m_path; }
// Make a list with full path names.
Base make_list();
private:
std::string m_path;
};