From 9bc89b0c3312377ca2a248d344a7a08c64dc61ca Mon Sep 17 00:00:00 2001 From: chrisparker126 Date: Sat, 10 May 2008 21:35:45 +0000 Subject: [PATCH] added code snippet for displaying a usr on blogDialog git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@547 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- retroshare-gui/src/gui/BlogDialog.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/retroshare-gui/src/gui/BlogDialog.cpp b/retroshare-gui/src/gui/BlogDialog.cpp index 6ba8d454c..9517f8b89 100644 --- a/retroshare-gui/src/gui/BlogDialog.cpp +++ b/retroshare-gui/src/gui/BlogDialog.cpp @@ -43,12 +43,30 @@ BlogDialog::BlogDialog(QWidget *parent) void BlogDialog::sendBlog() { QString blogMsg = lineEdit->toPlainText(); + QString debug = "unsuccessful"; blogText->setCurrentFont(mCurrentFont); /* Write blog message to window */ blogText->append(blogMsg); + std::list UsrList; + + /* test to see if load dummy data worked ! */ + + QString blogMsg2; + + if(!rsQblog->getFriendList(UsrList)) + { + blogText->append(debug); // put error on screen if problem getting usr list + } + else + { + blogMsg2 = UsrList.begin()->c_str(); + blogText->append(blogMsg2); // past the first usr list to blog screen + } + + /* Clear lineEdit */ lineEdit->clear();