mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-29 09:26:18 -05:00
fixed compilation
This commit is contained in:
parent
9f6bc0c3fc
commit
b0940890cd
@ -80,7 +80,7 @@ class RsGxsReputationSetItem: public RsReputationItem
|
||||
public:
|
||||
RsGxsReputationSetItem() :RsReputationItem(RS_PKT_SUBTYPE_GXS_REPUTATION_SET_ITEM) {}
|
||||
|
||||
virtual ~RsGxsReputationSetItem();
|
||||
virtual ~RsGxsReputationSetItem() {}
|
||||
virtual void clear();
|
||||
std::ostream &print(std::ostream &out, uint16_t indent = 0);
|
||||
|
||||
@ -99,7 +99,7 @@ class RsGxsReputationUpdateItem: public RsReputationItem
|
||||
public:
|
||||
RsGxsReputationUpdateItem() :RsReputationItem(RS_PKT_SUBTYPE_GXS_REPUTATION_UPDATE_ITEM) {}
|
||||
|
||||
virtual ~RsGxsReputationUpdateItem();
|
||||
virtual ~RsGxsReputationUpdateItem() {}
|
||||
virtual void clear();
|
||||
std::ostream &print(std::ostream &out, uint16_t indent = 0);
|
||||
|
||||
@ -115,7 +115,7 @@ class RsGxsReputationRequestItem: public RsReputationItem
|
||||
public:
|
||||
RsGxsReputationRequestItem() :RsReputationItem(RS_PKT_SUBTYPE_GXS_REPUTATION_REQUEST_ITEM) {}
|
||||
|
||||
virtual ~RsGxsReputationRequestItem();
|
||||
virtual ~RsGxsReputationRequestItem() {}
|
||||
virtual void clear() {}
|
||||
std::ostream &print(std::ostream &out, uint16_t indent = 0);
|
||||
|
||||
|
@ -684,4 +684,10 @@ int p3GxsReputation::sendReputationRequest(RsPeerId peerid)
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
float Reputation::CalculateReputation()
|
||||
{
|
||||
// the calculation of reputation makes the whole thing
|
||||
|
||||
std::cerr << __PRETTY_FUNCTION__ << ": not implemented yet!" << std::endl;
|
||||
return 0.0 ;
|
||||
}
|
||||
|
@ -64,14 +64,14 @@ public:
|
||||
Reputation(const RsGxsId& about)
|
||||
:mGxsId(about), mOwnOpinion(0), mOwnOpinionTs(0), mReputation(0) { return; }
|
||||
|
||||
int32_t CalculateReputation();
|
||||
float CalculateReputation();
|
||||
|
||||
RsGxsId mGxsId;
|
||||
std::map<RsPeerId, int32_t> mOpinions;
|
||||
int32_t mOwnOpinion;
|
||||
time_t mOwnOpinionTs;
|
||||
|
||||
int32_t mReputation;
|
||||
float mReputation;
|
||||
};
|
||||
|
||||
|
||||
@ -91,8 +91,6 @@ class p3GxsReputation: public p3Service, public p3Config, public RsReputations /
|
||||
virtual bool setOwnOpinion(const RsGxsId& key_id, const Opinion& op) ;
|
||||
virtual bool getReputationInfo(const RsGxsId& id,ReputationInfo& info) ;
|
||||
|
||||
virtual bool updateOpinion(const RsGxsId& gxsid, int opinion);
|
||||
|
||||
/***** overloaded from p3Service *****/
|
||||
/*!
|
||||
* This retrieves all chat msg items and also (important!)
|
||||
|
Loading…
Reference in New Issue
Block a user