mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-09 06:42:19 -04:00
fixed permission of drap+dropped files. all attached files get added to extra list, but with different permission flags depending on the client. From that, we compute sharing permissions : turtle, or direct transfer only
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5808 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
9000cf9034
commit
f61a50c5a6
12 changed files with 57 additions and 25 deletions
|
@ -22,6 +22,7 @@
|
|||
#ifndef _ATTACH_FILE_ITEM_DIALOG_H
|
||||
#define _ATTACH_FILE_ITEM_DIALOG_H
|
||||
|
||||
#include <retroshare/rsfiles.h>
|
||||
#include "ui_AttachFileItem.h"
|
||||
#include <stdint.h>
|
||||
|
||||
|
@ -45,8 +46,8 @@ class AttachFileItem : public QWidget, private Ui::AttachFileItem
|
|||
|
||||
public:
|
||||
/** Default Constructor */
|
||||
AttachFileItem(const QString& localpath);
|
||||
AttachFileItem(const std::string& hash, const QString& name, uint64_t size, uint32_t flags, const std::string& srcId);
|
||||
AttachFileItem(const QString& localpath,TransferRequestFlags flags);
|
||||
AttachFileItem(const std::string& hash, const QString& name, uint64_t size, uint32_t flags,TransferRequestFlags tflags, const std::string& srcId);
|
||||
|
||||
const std::string& FileHash() { return mFileHash; }
|
||||
const QString& FileName() { return mFileName; }
|
||||
|
@ -75,6 +76,7 @@ private:
|
|||
uint32_t mMode;
|
||||
uint32_t mType;
|
||||
uint64_t mDivisor;
|
||||
TransferRequestFlags mFlags ;
|
||||
|
||||
/* for display purposes */
|
||||
float amountDone;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue