mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-02-17 21:34:10 -05:00
fixed channel edit problem and added some documentation for pqimonitor
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3596 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
f21cc0d746
commit
fa6af9a1ca
@ -86,13 +86,31 @@ uint32_t actions;
|
|||||||
|
|
||||||
class p3ConnectMgr;
|
class p3ConnectMgr;
|
||||||
|
|
||||||
|
/*!
|
||||||
|
* This class should be implemented
|
||||||
|
* to use the information that is passed to it via
|
||||||
|
* from the p3ConnectMngr
|
||||||
|
* Useful information is sent via ticks such as a peer's
|
||||||
|
* state and a peer's action
|
||||||
|
*/
|
||||||
class pqiMonitor
|
class pqiMonitor
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
pqiMonitor() :mConnMgr(NULL) { return; }
|
pqiMonitor() :mConnMgr(NULL) { return; }
|
||||||
virtual ~pqiMonitor() { return; }
|
virtual ~pqiMonitor() { return; }
|
||||||
|
|
||||||
|
/*!
|
||||||
|
* passes a handle the retroshare connection manager
|
||||||
|
*/
|
||||||
void setConnectionMgr(p3ConnectMgr *cm) { mConnMgr = cm; }
|
void setConnectionMgr(p3ConnectMgr *cm) { mConnMgr = cm; }
|
||||||
|
|
||||||
|
/*!
|
||||||
|
* this serves as a call back function for server which has
|
||||||
|
* a handle on the subclass and updates this subclass on the
|
||||||
|
* action of peer's of the client (state and action information)
|
||||||
|
*
|
||||||
|
*@param plist contains list of states and actions of the client's peers
|
||||||
|
*/
|
||||||
virtual void statusChange(const std::list<pqipeer> &plist) = 0;
|
virtual void statusChange(const std::list<pqipeer> &plist) = 0;
|
||||||
//virtual void ownStatusChange(pqipeer &) { return; } // SIGNAL reset or similar.
|
//virtual void ownStatusChange(pqipeer &) { return; } // SIGNAL reset or similar.
|
||||||
//virtual void peerStatus(std::string id, uint32_t mode) = 0;
|
//virtual void peerStatus(std::string id, uint32_t mode) = 0;
|
||||||
|
@ -2497,7 +2497,8 @@ bool p3GroupDistrib::locked_editGroup(std::string grpId, GroupInfo& gi){
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
gi_curr->distribGroup->grpFlags |= RS_DISTRIB_UPDATE;
|
// set new timestamp for grp
|
||||||
|
gi_curr->distribGroup->timestamp = time(NULL);
|
||||||
|
|
||||||
// create new signature for group
|
// create new signature for group
|
||||||
|
|
||||||
@ -2525,6 +2526,9 @@ bool p3GroupDistrib::locked_editGroup(std::string grpId, GroupInfo& gi){
|
|||||||
gi_curr->grpChanged = true;
|
gi_curr->grpChanged = true;
|
||||||
mGroupsRepublish = true;
|
mGroupsRepublish = true;
|
||||||
|
|
||||||
|
// this is removed afterwards
|
||||||
|
gi_curr->distribGroup->grpFlags |= RS_DISTRIB_UPDATE;
|
||||||
|
|
||||||
delete[] data;
|
delete[] data;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user