mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-15 20:42:29 -04:00
Changes to WikiDialog GUI to convert to Request / Response data model.
Also: - modified TokenQueue to include MSGRELATEDLIST & new Request Options. - updated PhotoDialog to include new Options for requests. git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-new_cache_system@5205 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
a27cecc522
commit
de8f4f283c
7 changed files with 590 additions and 38 deletions
|
@ -39,13 +39,13 @@ TokenQueue::TokenQueue(RsTokenService *service, TokenResponse *resp)
|
|||
return;
|
||||
}
|
||||
|
||||
bool TokenQueue::genericRequest(uint32_t basictype, std::list<std::string> ids, uint32_t usertype)
|
||||
bool TokenQueue::genericRequest(uint32_t basictype, const RsTokReqOptions &opts, std::list<std::string> ids, uint32_t usertype)
|
||||
{
|
||||
uint32_t token;
|
||||
switch(basictype)
|
||||
{
|
||||
case TOKENREQ_GROUPLIST:
|
||||
mService->requestGroupList(token);
|
||||
mService->requestGroupList(token, opts);
|
||||
break;
|
||||
|
||||
case TOKENREQ_GROUPDATA:
|
||||
|
@ -53,7 +53,11 @@ bool TokenQueue::genericRequest(uint32_t basictype, std::list<std::string> ids,
|
|||
break;
|
||||
|
||||
case TOKENREQ_MSGLIST:
|
||||
mService->requestMsgList(token, ids);
|
||||
mService->requestMsgList(token, opts, ids);
|
||||
break;
|
||||
|
||||
case TOKENREQ_MSGRELATEDLIST:
|
||||
mService->requestMsgRelatedList(token, opts, ids);
|
||||
break;
|
||||
|
||||
case TOKENREQ_MSGDATA:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue