begun in ernest implementing data access (RsTokenService) interface for gui

added request processing and generalised request base class (switch to casts)
msg request now have grpId option
ci code not part of build


git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-new_cache_system@5310 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
chrisparker126 2012-07-17 21:27:43 +00:00
parent 52a911329e
commit 90c1aa4903
5 changed files with 610 additions and 36 deletions

View file

@ -73,15 +73,63 @@ public:
virtual ~RsTokenService() { return; }
/* Data Requests */
/*!
* Use this to request group related information
* @param token
* @param ansType The type of result (e.g. group data, meta, ids)
* @param opts
* @param groupIds group id to request info for. Leave empty to get info on all groups,
* @return
*/
virtual bool requestGroupInfo(uint32_t &token, uint32_t ansType, const RsTokReqOptions &opts, const std::list<std::string> &groupIds) = 0;
/*!
*
* @param token
* @param ansType
* @param opts
* @param groupIds
* @return
*/
virtual bool requestMsgInfo(uint32_t &token, uint32_t ansType, const RsTokReqOptions &opts, const std::list<std::string> &groupIds) = 0;
/*!
*
* @param token
* @param ansType
* @param opts
* @param msgIds
* @return
*/
virtual bool requestMsgRelatedInfo(uint32_t &token, uint32_t ansType, const RsTokReqOptions &opts, const std::list<std::string> &msgIds) = 0;
virtual bool requestGroupSubscribe(uint32_t &token, const std::string &groupId, bool subscribe) = 0;
/*!
*
* @param token
* @param ansType
* @param opts
* @param grpId
* @return
*/
virtual bool requestGroupSubscribe(uint32_t &token, uint32_t ansType, const RsTokReqOptions &opts, const std::string &grpId) = 0;
/* Poll */
/*!
*
* @param token
* @return
*/
virtual uint32_t requestStatus(const uint32_t token) = 0;
/* Cancel Request */
/*!
*
* @param token
* @return
*/
virtual bool cancelRequest(const uint32_t &token) = 0;