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:
chrisparker126 2010-10-03 21:48:19 +00:00
parent f21cc0d746
commit fa6af9a1ca
2 changed files with 23 additions and 1 deletions

View File

@ -86,13 +86,31 @@ uint32_t actions;
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
{
public:
pqiMonitor() :mConnMgr(NULL) { return; }
virtual ~pqiMonitor() { return; }
/*!
* passes a handle the retroshare connection manager
*/
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 ownStatusChange(pqipeer &) { return; } // SIGNAL reset or similar.
//virtual void peerStatus(std::string id, uint32_t mode) = 0;

View File

@ -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
@ -2525,6 +2526,9 @@ bool p3GroupDistrib::locked_editGroup(std::string grpId, GroupInfo& gi){
gi_curr->grpChanged = true;
mGroupsRepublish = true;
// this is removed afterwards
gi_curr->distribGroup->grpFlags |= RS_DISTRIB_UPDATE;
delete[] data;
return true;