mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-12-16 17:13:58 -05:00
added post into forum menu entry in SharedFilesDialog
This commit is contained in:
parent
0c97d5bc3c
commit
9ad635a665
6 changed files with 87 additions and 20 deletions
|
|
@ -22,6 +22,7 @@
|
|||
#include "GxsForumsDialog.h"
|
||||
#include "GxsForumGroupDialog.h"
|
||||
#include "GxsForumThreadWidget.h"
|
||||
#include "CreateGxsForumMsg.h"
|
||||
#include "GxsForumUserNotify.h"
|
||||
#include "gui/notifyqt.h"
|
||||
#include "gui/gxs/GxsGroupShareKey.h"
|
||||
|
|
@ -60,6 +61,24 @@ QString GxsForumsDialog::getHelpString() const
|
|||
return hlp_str ;
|
||||
}
|
||||
|
||||
void GxsForumsDialog::shareInMessage(const RsGxsGroupId& forum_id,const QList<RetroShareLink>& file_links)
|
||||
{
|
||||
CreateGxsForumMsg *msgDialog = new CreateGxsForumMsg(forum_id,RsGxsMessageId(),RsGxsMessageId(),RsGxsId()) ;
|
||||
|
||||
QString txt ;
|
||||
for(QList<RetroShareLink>::const_iterator it(file_links.begin());it!=file_links.end();++it)
|
||||
txt += (*it).toHtml() + "\n" ;
|
||||
|
||||
if(!file_links.empty())
|
||||
{
|
||||
QString subject = (*file_links.begin()).name() ;
|
||||
msgDialog->setSubject(subject);
|
||||
}
|
||||
|
||||
msgDialog->insertPastedText(txt);
|
||||
msgDialog->show();
|
||||
}
|
||||
|
||||
UserNotify *GxsForumsDialog::getUserNotify(QObject *parent)
|
||||
{
|
||||
return new GxsForumUserNotify(rsGxsForums, parent);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue