mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-13 19:42:28 -04:00
Compilation fix. Rs compiles now, group and message creation work ok, more testing to do still
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7192 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
5b472c34e2
commit
e2c8c6e141
9 changed files with 14 additions and 14 deletions
|
@ -1361,7 +1361,7 @@ int RsServer::StartupRetroShare()
|
||||||
std::string currGxsDir = rsAccounts.PathAccountDirectory() + "/GXS_phase2";
|
std::string currGxsDir = rsAccounts.PathAccountDirectory() + "/GXS_phase2";
|
||||||
|
|
||||||
#ifdef GXS_DEV_TESTNET // Different Directory for testing.
|
#ifdef GXS_DEV_TESTNET // Different Directory for testing.
|
||||||
currGxsDir += "_TESTNET9";
|
currGxsDir += "_TESTNET10";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if(!priorGxsDir.empty())
|
if(!priorGxsDir.empty())
|
||||||
|
|
|
@ -31,6 +31,7 @@
|
||||||
#include "serialiser/rsserviceids.h"
|
#include "serialiser/rsserviceids.h"
|
||||||
#include "serialiser/rsserial.h"
|
#include "serialiser/rsserial.h"
|
||||||
#include "serialiser/rstlvtypes.h"
|
#include "serialiser/rstlvtypes.h"
|
||||||
|
#include "retroshare/rsgxsifacetypes.h"
|
||||||
|
|
||||||
#define RS_PKT_SUBTYPE_GXSREPUTATION_CONFIG_ITEM 0x01
|
#define RS_PKT_SUBTYPE_GXSREPUTATION_CONFIG_ITEM 0x01
|
||||||
#define RS_PKT_SUBTYPE_GXSREPUTATION_SET_ITEM 0x02
|
#define RS_PKT_SUBTYPE_GXSREPUTATION_SET_ITEM 0x02
|
||||||
|
@ -96,7 +97,7 @@ virtual ~RsGxsReputationUpdateItem();
|
||||||
virtual void clear();
|
virtual void clear();
|
||||||
std::ostream &print(std::ostream &out, uint16_t indent = 0);
|
std::ostream &print(std::ostream &out, uint16_t indent = 0);
|
||||||
|
|
||||||
std::map<std::string, uint32_t> mOpinions; // GxsId -> Opinion.
|
std::map<RsGxsId, uint32_t> mOpinions; // GxsId -> Opinion.
|
||||||
uint32_t mLatestUpdate;
|
uint32_t mLatestUpdate;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -256,7 +256,7 @@ bool p3GxsReputation::SendReputations(RsGxsReputationRequestItem *request)
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string gxsId = rit->first.toStdString();
|
RsGxsId gxsId = rit->first;
|
||||||
pkt->mOpinions[gxsId] = ConvertToSerialised(rit->second.mOwnOpinion, true);
|
pkt->mOpinions[gxsId] = ConvertToSerialised(rit->second.mOwnOpinion, true);
|
||||||
pkt->mLatestUpdate = rit->second.mOwnOpinionTs;
|
pkt->mLatestUpdate = rit->second.mOwnOpinionTs;
|
||||||
if (pkt->mLatestUpdate == (uint32_t) now)
|
if (pkt->mLatestUpdate == (uint32_t) now)
|
||||||
|
@ -307,7 +307,7 @@ bool p3GxsReputation::RecvReputations(RsGxsReputationUpdateItem *item)
|
||||||
|
|
||||||
RsPeerId peerid = item->PeerId();
|
RsPeerId peerid = item->PeerId();
|
||||||
|
|
||||||
std::map<std::string, uint32_t>::iterator it;
|
std::map<RsGxsId, uint32_t>::iterator it;
|
||||||
for(it = item->mOpinions.begin(); it != item->mOpinions.end(); it++)
|
for(it = item->mOpinions.begin(); it != item->mOpinions.end(); it++)
|
||||||
{
|
{
|
||||||
RsStackMutex stack(mReputationMtx); /****** LOCKED MUTEX *******/
|
RsStackMutex stack(mReputationMtx); /****** LOCKED MUTEX *******/
|
||||||
|
|
|
@ -37,7 +37,6 @@
|
||||||
#include "retroshare/rsidentity.h"
|
#include "retroshare/rsidentity.h"
|
||||||
#include "services/p3service.h"
|
#include "services/p3service.h"
|
||||||
|
|
||||||
//typedef std::string RsPeerId;
|
|
||||||
|
|
||||||
class p3LinkMgr;
|
class p3LinkMgr;
|
||||||
|
|
||||||
|
|
|
@ -391,7 +391,7 @@ void CreateCircleDialog::updateCircleGUI()
|
||||||
std::cerr << "CreateCircleDialog::updateCircleGUI() : EXTERNAL CIRCLETYPE";
|
std::cerr << "CreateCircleDialog::updateCircleGUI() : EXTERNAL CIRCLETYPE";
|
||||||
std::cerr << std::endl;
|
std::cerr << std::endl;
|
||||||
|
|
||||||
if (mCircleGroup.mMeta.mCircleId == mCircleGroup.mMeta.mGroupId)
|
if (mCircleGroup.mMeta.mCircleId.toStdString() == mCircleGroup.mMeta.mGroupId.toStdString())
|
||||||
{
|
{
|
||||||
ui.radioButton_Restricted->setChecked(true);
|
ui.radioButton_Restricted->setChecked(true);
|
||||||
}
|
}
|
||||||
|
|
|
@ -548,7 +548,7 @@ void IdDialog::modifyReputation()
|
||||||
std::cerr << "IdDialog::modifyReputation()";
|
std::cerr << "IdDialog::modifyReputation()";
|
||||||
std::cerr << std::endl;
|
std::cerr << std::endl;
|
||||||
|
|
||||||
std::string id = ui.lineEdit_KeyId->text().toStdString();
|
RsGxsId id(ui.lineEdit_KeyId->text().toStdString());
|
||||||
|
|
||||||
int mod = 0;
|
int mod = 0;
|
||||||
if (ui.repMod_Accept->isChecked())
|
if (ui.repMod_Accept->isChecked())
|
||||||
|
|
|
@ -191,10 +191,10 @@ void PostedListDialog::groupListCustomPopupMenu(QPoint /*point*/)
|
||||||
contextMnu.addSeparator();
|
contextMnu.addSeparator();
|
||||||
|
|
||||||
action = contextMnu.addAction(QIcon(IMAGE_SHOW), tr("Show Topic Details"), this, SLOT(showTopic()));
|
action = contextMnu.addAction(QIcon(IMAGE_SHOW), tr("Show Topic Details"), this, SLOT(showTopic()));
|
||||||
action->setEnabled (!mCurrTopicId.empty());
|
action->setEnabled (!mCurrTopicId.isNull());
|
||||||
|
|
||||||
action = contextMnu.addAction(QIcon(IMAGE_EDIT), tr("Edit Topic Details"), this, SLOT(editTopic()));
|
action = contextMnu.addAction(QIcon(IMAGE_EDIT), tr("Edit Topic Details"), this, SLOT(editTopic()));
|
||||||
action->setEnabled (!mCurrTopicId.empty() && IS_GROUP_ADMIN(subscribeFlags));
|
action->setEnabled (!mCurrTopicId.isNull() && IS_GROUP_ADMIN(subscribeFlags));
|
||||||
|
|
||||||
contextMnu.exec(QCursor::pos());
|
contextMnu.exec(QCursor::pos());
|
||||||
}
|
}
|
||||||
|
@ -378,7 +378,7 @@ void PostedListDialog::newTopic()
|
||||||
|
|
||||||
void PostedListDialog::showTopic()
|
void PostedListDialog::showTopic()
|
||||||
{
|
{
|
||||||
if (mCurrTopicId.empty()) {
|
if (mCurrTopicId.isNull()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -388,7 +388,7 @@ void PostedListDialog::showTopic()
|
||||||
|
|
||||||
void PostedListDialog::editTopic()
|
void PostedListDialog::editTopic()
|
||||||
{
|
{
|
||||||
if (mCurrTopicId.empty()) {
|
if (mCurrTopicId.isNull()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -633,7 +633,7 @@ void WikiDialog::groupListCustomPopupMenu(QPoint /*point*/)
|
||||||
contextMnu.addSeparator();
|
contextMnu.addSeparator();
|
||||||
|
|
||||||
action = contextMnu.addAction(QIcon(IMAGE_INFO), tr("Show Wiki Group"), this, SLOT(showGroupDetails()));
|
action = contextMnu.addAction(QIcon(IMAGE_INFO), tr("Show Wiki Group"), this, SLOT(showGroupDetails()));
|
||||||
action->setEnabled (!mGroupId.empty ());
|
action->setEnabled (!mGroupId.isNull());
|
||||||
|
|
||||||
action = contextMnu.addAction(QIcon(IMAGE_EDIT), tr("Edit Wiki Group"), this, SLOT(editGroupDetails()));
|
action = contextMnu.addAction(QIcon(IMAGE_EDIT), tr("Edit Wiki Group"), this, SLOT(editGroupDetails()));
|
||||||
action->setEnabled (!mGroupId.isNull() && IS_GROUP_ADMIN(subscribeFlags));
|
action->setEnabled (!mGroupId.isNull() && IS_GROUP_ADMIN(subscribeFlags));
|
||||||
|
|
|
@ -370,7 +370,7 @@ void GxsChannelDialog::openChat(const RsPeerId & /*peerId*/)
|
||||||
|
|
||||||
void GxsChannelDialog::editChannelDetail()
|
void GxsChannelDialog::editChannelDetail()
|
||||||
{
|
{
|
||||||
if (mChannelId.empty()) {
|
if (mChannelId.isNull()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -799,7 +799,7 @@ void GxsChannelDialog::subscribeChannel()
|
||||||
|
|
||||||
void GxsChannelDialog::showChannelDetails()
|
void GxsChannelDialog::showChannelDetails()
|
||||||
{
|
{
|
||||||
if (mChannelId.empty()) {
|
if (mChannelId.isNull()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue