Small changes to how gui handles files.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@798 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
drbob 2008-11-09 22:21:14 +00:00
parent aee6cb85b4
commit b0d462c93e
5 changed files with 18 additions and 3 deletions

View file

@ -31,6 +31,7 @@
#include "rsiface/rsforums.h"
#include "rsiface/rschannels.h"
#include "rsiface/rsmsgs.h"
#include "rsiface/rsfiles.h"
#include <iostream>
@ -151,6 +152,7 @@ void GeneralMsgDialog::dropEvent(QDropEvent *event)
if (localpath.size() > 0)
{
addAttachment(localpath);
}
}
@ -293,6 +295,13 @@ void GeneralMsgDialog::addAttachment(std::string path)
std::cerr << "GeneralMsgDialog::addAttachment()";
std::cerr << std::endl;
/* add to ExtraList here,
* use default TIMEOUT of 30 days (time to fetch it).
*/
//uint32_t period = 30 * 24 * 60 * 60;
//uint32_t flags = 0;
//rsFiles->ExtraFileHash(localpath, period, flags);
/* add widget in for new destination */
SubFileItem *file = new SubFileItem(path);