removed channel delete feature

added optimisation suggestion with load/savelist

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3920 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
chrisparker126 2010-12-18 19:35:07 +00:00
parent d3a6f7316c
commit 2f559dae96
37 changed files with 133 additions and 388 deletions

View file

@ -472,13 +472,14 @@ RsSerialiser *p3turtle::setupSerialiser()
return rss ;
}
std::list<RsItem*> p3turtle::saveList(bool& cleanup)
bool p3turtle::saveList(bool& cleanup, std::list<RsItem*>& lst)
{
#ifdef P3TURTLE_DEBUG
std::cerr << "p3turtle: saving list..." << std::endl ;
#endif
cleanup = true ;
std::list<RsItem*> lst ;
;
#ifdef TO_REMOVE
RsTurtleSearchResultItem *item = new RsTurtleSearchResultItem ;
item->PeerId("") ;
@ -497,7 +498,7 @@ std::list<RsItem*> p3turtle::saveList(bool& cleanup)
}
lst.push_back(item) ;
#endif
return lst ;
return true ;
}
#ifdef TO_REMOVE

View file

@ -260,8 +260,8 @@ class p3turtle: public p3Service, public pqiMonitor, public RsTurtle,/* public f
/************* from p3Config *******************/
virtual RsSerialiser *setupSerialiser() ;
virtual std::list<RsItem*> saveList(bool& cleanup) ;
virtual bool loadList(std::list<RsItem*> load) { return true; }
virtual bool saveList(bool& cleanup, std::list<RsItem*>&) ;
virtual bool loadList(std::list<RsItem*>& load) { return true; }
/************* Communication with ftserver *******************/
/// Does the turtle router manages tunnels to this peer ? (this is not a