mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-16 10:30:01 -04:00
Mods:
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
This commit is contained in:
parent
f05d2f9b09
commit
081b59ee1a
27 changed files with 1529 additions and 395 deletions
5
libretroshare/src/services/p3photoserviceV2.cc
Normal file
5
libretroshare/src/services/p3photoserviceV2.cc
Normal file
|
@ -0,0 +1,5 @@
|
|||
#include "p3photoserviceV2.h"
|
||||
|
||||
p3PhotoServiceV2::p3PhotoServiceV2()
|
||||
{
|
||||
}
|
57
libretroshare/src/services/p3photoserviceV2.h
Normal file
57
libretroshare/src/services/p3photoserviceV2.h
Normal file
|
@ -0,0 +1,57 @@
|
|||
#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
|
Loading…
Add table
Add a link
Reference in a new issue