add GXS ID creation option for forum/channel/[...] posting. (Patch from Phenom)

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7437 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2014-07-06 11:19:58 +00:00
parent e25a8eda97
commit 24ad4b8880
30 changed files with 808 additions and 341 deletions

View file

@ -30,7 +30,7 @@
#include "gui/chat/ChatDialog.h"
#include <retroshare/rspeers.h>
#include <retroshare/rsidentity.h>
//#include <retroshare/rsidentity.h> //On header
#include "retroshare/rsgxsflags.h"
#include "retroshare/rsmsgs.h"

View file

@ -37,6 +37,7 @@ IdEditDialog::IdEditDialog(QWidget *parent)
: QDialog(parent, Qt::WindowSystemMenuHint | Qt::WindowTitleHint | Qt::WindowCloseButtonHint)
{
mIsNew = true;
mLastIdName="";
ui.setupUi(this);
@ -445,6 +446,7 @@ void IdEditDialog::createId()
uint32_t dummyToken = 0;
rsIdentity->createIdentity(dummyToken, params);
mLastIdName = groupname;
close();
}
@ -465,6 +467,8 @@ void IdEditDialog::updateId()
uint32_t dummyToken = 0;
rsIdentity->updateIdentity(dummyToken, mEditGroup);
mLastIdName = groupname;
close();
}

View file

@ -31,6 +31,7 @@
#include "util/TokenQueue.h"
#include <retroshare/rsidentity.h>
#include <retroshare/rsgxsifacetypes.h>
#include <QString>
class UIStateHelper;
@ -46,6 +47,8 @@ public:
void loadRequest(const TokenQueue *queue, const TokenRequest &req);
std::string getLastIdName() {return mLastIdName;}
private slots:
void idTypeToggled(bool checked);
void submit();
@ -77,6 +80,7 @@ protected:
RsGxsIdGroup mEditGroup;
TokenQueue *mIdQueue;
std::string mLastIdName;
};
#endif