mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-21 23:40:26 -04:00
Improvements to make more complete Feed System Demo.
* Major Work on SubFileItem to display possible attachment/file states. * Added Download / Save buttons to SubFileItem. * Enabled Correct Name / Transfer state display in SubFileItem. * Disabled 'Local' Checks temporarily in SubFileItem. (for demo) * Disabled 'Remote' Drops temporarily in GeneralMsgDialog. (for demo) * Added File Details to TransferFeed. * Add 'Online' List to PeersFeed. * extended Msg Attachments to handle local/remote, and check for attachment errors. * enabled Attachment removal. * Updated RS Interface files. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@637 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
9629c6923c
commit
2ba752fbfb
13 changed files with 664 additions and 80 deletions
|
@ -43,7 +43,8 @@ public:
|
|||
/** Default Destructor */
|
||||
|
||||
void addAttachment(std::string path);
|
||||
void addAttachment(std::string hash, std::string fname, uint64_t size);
|
||||
void addAttachment(std::string hash, std::string fname, uint64_t size,
|
||||
bool local, std::string srcId);
|
||||
|
||||
void addDestination(uint32_t type, std::string grpId, std::string inReplyTo);
|
||||
void setMsgType(uint32_t type);
|
||||
|
@ -53,6 +54,7 @@ virtual void dragEnterEvent(QDragEnterEvent *event);
|
|||
virtual void dropEvent(QDropEvent *event);
|
||||
|
||||
private slots:
|
||||
void checkAttachmentReady();
|
||||
void updateGroupId();
|
||||
void newDestination();
|
||||
void cancelMsg();
|
||||
|
@ -69,6 +71,8 @@ void sendMessage(uint32_t type, std::string grpId, std::string inReplyTo,
|
|||
/* maps of files and destinations */
|
||||
std::list<SubDestItem *> mDestinations;
|
||||
std::list<SubFileItem *> mAttachments;
|
||||
|
||||
bool mCheckAttachment;
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue