mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-16 11:24:24 -05:00
081b59ee1a
Updated dataservice tests and fixed subsequent bugs added bug fixes for RetroDb and fixed postability issue (removed map.at use) Added: Data access module used as token service gxs service backend (RsGenExchange) RsPhotoV2 which is a modification to deal with different interface provided by RsGenExchange also added subsequent p3photoserviceV2 NxsTestHub to help with testing nxsnetservice (RsGxsNetService is not yet working) git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-new_cache_system@5274 b45a01b8-16f6-495d-af2f-9b41ad6348cc
58 lines
1.4 KiB
C++
58 lines
1.4 KiB
C++
#ifndef P3PHOTOSERVICEV2_H
|
|
#define P3PHOTOSERVICEV2_H
|
|
|
|
#include "gxs/rsgenexchange.h"
|
|
#include "retroshare/rsphotoV2.h"
|
|
#include "gxs/rstokenservice.h"
|
|
|
|
class p3PhotoServiceV2 : public RsPhotoV2, public RsGenExchange
|
|
{
|
|
public:
|
|
|
|
p3PhotoServiceV2();
|
|
|
|
public:
|
|
|
|
bool updated();
|
|
|
|
public:
|
|
|
|
/** Requests **/
|
|
|
|
void groupsChanged(std::list<std::string>& grpIds);
|
|
|
|
|
|
void msgsChanged(std::map<std::string,
|
|
std::vector<std::string> >& msgs);
|
|
|
|
RsTokenService* getTokenService();
|
|
|
|
bool getGroupList(const uint32_t &token,
|
|
std::list<std::string> &groupIds);
|
|
bool getMsgList(const uint32_t &token,
|
|
std::list<std::string> &msgIds);
|
|
|
|
/* Generic Summary */
|
|
bool getGroupSummary(const uint32_t &token,
|
|
std::list<RsGroupMetaData> &groupInfo);
|
|
|
|
bool getMsgSummary(const uint32_t &token,
|
|
MsgMetaResult &msgInfo);
|
|
|
|
/* Specific Service Data */
|
|
bool getAlbum(const uint32_t &token, RsPhotoAlbum &album);
|
|
bool getPhoto(const uint32_t &token, PhotoResult &photo);
|
|
|
|
|
|
|
|
public:
|
|
|
|
/** Modifications **/
|
|
|
|
bool submitAlbumDetails(RsPhotoAlbum &album, bool isNew);
|
|
bool submitPhoto(RsPhotoPhoto &photo, bool isNew);
|
|
bool subscribeToAlbum(const std::string& grpId, bool subscribe);
|
|
};
|
|
|
|
#endif // P3PHOTOSERVICEV2_H
|