suppressed #ifdef TURTLE_HOPPING from libretroshare, as it s not anymore needed.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1094 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2009-03-22 14:08:02 +00:00
parent 99baceae7e
commit 4ef56e1b79
7 changed files with 40 additions and 40 deletions

View file

@ -56,9 +56,11 @@ struct TurtleFileInfo
class RsTurtle
{
public:
RsTurtle() {}
RsTurtle() { _sharing_strategy = SHARE_ENTIRE_NETWORK ;}
virtual ~RsTurtle() {}
enum FileSharingStrategy { SHARE_ENTIRE_NETWORK, SHARE_FRIENDS_ONLY } ;
// Lauches a search request through the pipes, and immediately returns
// the request id, which will be further used by the gui to store results
// as they come back.
@ -70,6 +72,14 @@ class RsTurtle
// initialization process.
//
virtual void turtleDownload(const std::string& file_hash) = 0 ;
// Sets the file sharing strategy. It concerns all local files. It would
// be better to handle this for each file, of course.
void setFileSharingStrategy(FileSharingStrategy f) { _sharing_strategy = f ; }
protected:
FileSharingStrategy _sharing_strategy ;
};
#endif