CHUI-280 : Add print out debug methods
parent
ad070b9155
commit
ca7abc4c3b
|
|
@ -159,6 +159,18 @@ void LLConversationItemSession::setParticipantIsModerator(const LLUUID& particip
|
|||
}
|
||||
}
|
||||
|
||||
void LLConversationItemSession::dumpDebugData()
|
||||
{
|
||||
llinfos << "Merov debug : session, uuid = " << mUUID << ", name = " << mName << ", is loaded = " << mIsLoaded << llendl;
|
||||
LLConversationItemParticipant* participant = NULL;
|
||||
child_list_t::iterator iter;
|
||||
for (iter = mChildren.begin(); iter != mChildren.end(); iter++)
|
||||
{
|
||||
participant = dynamic_cast<LLConversationItemParticipant*>(*iter);
|
||||
participant->dumpDebugData();
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// LLConversationItemParticipant
|
||||
//
|
||||
|
|
@ -175,4 +187,8 @@ LLConversationItemParticipant::LLConversationItemParticipant(const LLUUID& uuid,
|
|||
{
|
||||
}
|
||||
|
||||
void LLConversationItemParticipant::dumpDebugData()
|
||||
{
|
||||
llinfos << "Merov debug : participant, uuid = " << mUUID << ", name = " << mName << ", muted = " << mIsMuted << ", moderator = " << mIsModerator << llendl;
|
||||
}
|
||||
// EOF
|
||||
|
|
|
|||
|
|
@ -127,6 +127,8 @@ public:
|
|||
|
||||
bool isLoaded() { return mIsLoaded; }
|
||||
|
||||
void dumpDebugData();
|
||||
|
||||
private:
|
||||
bool mIsLoaded; // true if at least one participant has been added to the session, false otherwise
|
||||
};
|
||||
|
|
@ -143,6 +145,8 @@ public:
|
|||
void setIsMuted(bool is_muted) { mIsMuted = is_muted; }
|
||||
void setIsModerator(bool is_moderator) { mIsModerator = is_moderator; }
|
||||
|
||||
void dumpDebugData();
|
||||
|
||||
private:
|
||||
bool mIsMuted; // default is false
|
||||
bool mIsModerator; // default is false
|
||||
|
|
|
|||
Loading…
Reference in New Issue