mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-17 18:40:49 -04:00
laid groundwork for newcache posted
re-enabled postedVEG added convenience base class for gxs services fixed posted and gxs gui removed tokenservicev2, now just tokenservice git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-gxs-b1@5641 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
a57d627074
commit
8f2d85ed52
32 changed files with 1202 additions and 761 deletions
|
@ -36,7 +36,7 @@
|
|||
#define GXSCOMMENTS_LOADTHREAD 1
|
||||
|
||||
// Temporarily make this specific.
|
||||
#include "retroshare/rsposted.h"
|
||||
#include "retroshare/rspostedVEG.h"
|
||||
|
||||
|
||||
GxsCommentTreeWidget::GxsCommentTreeWidget(QWidget *parent)
|
||||
|
@ -46,10 +46,10 @@ GxsCommentTreeWidget::GxsCommentTreeWidget(QWidget *parent)
|
|||
return;
|
||||
}
|
||||
|
||||
void GxsCommentTreeWidget::setup(RsTokenService *service)
|
||||
void GxsCommentTreeWidget::setup(RsTokenServiceVEG *service)
|
||||
{
|
||||
mRsService = service;
|
||||
mTokenQueue = new TokenQueue(service, this);
|
||||
mTokenQueue = new TokenQueueVEG(service, this);
|
||||
|
||||
return;
|
||||
}
|
||||
|
@ -72,7 +72,7 @@ void GxsCommentTreeWidget::service_requestComments(std::string threadId)
|
|||
std::cerr << "GxsCommentTreeWidget::service_requestComments(" << threadId << ")";
|
||||
std::cerr << std::endl;
|
||||
|
||||
RsTokReqOptions opts;
|
||||
RsTokReqOptionsVEG opts;
|
||||
|
||||
opts.mOptions = RS_TOKREQOPT_MSG_THREAD | RS_TOKREQOPT_MSG_LATEST;
|
||||
opts.mFlagsFilter = RSPOSTED_MSGTYPE_COMMENT;
|
||||
|
@ -212,7 +212,7 @@ void GxsCommentTreeWidget::service_loadThread(const uint32_t &token)
|
|||
std::cerr << std::endl;
|
||||
|
||||
RsPostedComment comment;
|
||||
while(rsPosted->getComment(token, comment))
|
||||
while(rsPostedVEG->getComment(token, comment))
|
||||
{
|
||||
/* convert to a QTreeWidgetItem */
|
||||
std::cerr << "GxsCommentTreeWidget::service_loadThread() Got Comment: " << comment;
|
||||
|
@ -286,7 +286,7 @@ QTreeWidgetItem *GxsCommentTreeWidget::service_createMissingItem(std::string par
|
|||
}
|
||||
|
||||
|
||||
void GxsCommentTreeWidget::loadRequest(const TokenQueue *queue, const TokenRequest &req)
|
||||
void GxsCommentTreeWidget::loadRequest(const TokenQueueVEG *queue, const TokenRequestVEG &req)
|
||||
{
|
||||
std::cerr << "GxsCommentTreeWidget::loadRequest() UserType: " << req.mUserType;
|
||||
std::cerr << std::endl;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue