mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-17 13:30:36 -04:00
Convert PhotoService to Request / Response data access.
- Added generic RsTokenService interface to simplify requesting data. - Put the thumbnail images inside RsPhotoPhoto. etc. git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-new_cache_system@5202 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
e4ecd898af
commit
d85aff3d0e
4 changed files with 420 additions and 35 deletions
|
@ -30,6 +30,33 @@
|
|||
#include <string>
|
||||
#include <list>
|
||||
|
||||
|
||||
/********** Generic Token Request Interface ***********************
|
||||
* This is packaged here, as most TokenServices will require ID Services too.
|
||||
* The requests can be generic, but the reponses are service specific (dependent on data types).
|
||||
*/
|
||||
|
||||
class RsTokenService
|
||||
{
|
||||
public:
|
||||
|
||||
RsTokenService() { return; }
|
||||
virtual ~RsTokenService() { return; }
|
||||
|
||||
/* Data Requests */
|
||||
virtual bool requestGroupList(uint32_t &token) = 0;
|
||||
virtual bool requestGroupData(uint32_t &token, const std::list<std::string> &ids) = 0;
|
||||
virtual bool requestMsgList(uint32_t &token, const std::list<std::string> &ids) = 0;
|
||||
virtual bool requestMsgData(uint32_t &token, const std::list<std::string> &ids) = 0;
|
||||
|
||||
/* Poll */
|
||||
virtual uint32_t requestStatus(const uint32_t token) = 0;
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
/* The Main Interface Class - for information about your Peers */
|
||||
class RsIdentity;
|
||||
extern RsIdentity *rsIdentity;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue