mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-29 02:51:45 -04:00
added some minor feature to channels
- clean up of channels old (> storeperiod) cache file downloads called at rsglobal shutdown - added extrafilehash and extra-remove to rschannels, so it chooses appropriate way to add files (correct book-keeping) - added extra files not copied to chan dir if over 100mb (high overhead) - added limit to channels auto-download (1gig) git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2866 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
03d0058ca4
commit
e1c4992680
6 changed files with 241 additions and 19 deletions
|
@ -112,6 +112,19 @@ virtual bool getChannelMessage(std::string cId, std::string mId, ChannelMsgInfo
|
|||
virtual bool ChannelMessageSend(ChannelMsgInfo &info) = 0;
|
||||
|
||||
virtual bool channelSubscribe(std::string cId, bool subscribe) = 0;
|
||||
|
||||
/*!
|
||||
* This hashes a file which is not already shared by client or his peers,
|
||||
* The file is copied into the channels directory if its not too large (> 100mb)
|
||||
* @param path This is full path to file
|
||||
* @param channel Id
|
||||
*/
|
||||
virtual bool channelExtraFileHash(std::string path, std::string chId, FileInfo& fInfo) = 0;
|
||||
|
||||
/*!
|
||||
* This removes hashed extra files, and also removes channels directory copy if it exists
|
||||
*/
|
||||
virtual bool channelExtraFileRemove(std::string hash, std::string chId) = 0;
|
||||
/****************************************/
|
||||
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue