From ca7abc4c3be9310f4e5fec00b7d6ffadaba58ff0 Mon Sep 17 00:00:00 2001
From: Merov Linden <merov@lindenlab.com>
Date: Wed, 29 Aug 2012 10:07:55 -0700
Subject: CHUI-280 : Add print out debug methods

---
 indra/newview/llconversationmodel.cpp | 16 ++++++++++++++++
 indra/newview/llconversationmodel.h   |  4 ++++
 2 files changed, 20 insertions(+)

(limited to 'indra/newview')

diff --git a/indra/newview/llconversationmodel.cpp b/indra/newview/llconversationmodel.cpp
index dbf5ac6e03..d7f9093a4a 100644
--- a/indra/newview/llconversationmodel.cpp
+++ b/indra/newview/llconversationmodel.cpp
@@ -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
diff --git a/indra/newview/llconversationmodel.h b/indra/newview/llconversationmodel.h
index aa79e5aeb0..af3756c45d 100644
--- a/indra/newview/llconversationmodel.h
+++ b/indra/newview/llconversationmodel.h
@@ -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
-- 
cgit v1.2.3