mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-11 10:35:22 -04:00
Addition of improvements to photo service - can now add local photos - but these are not shared over the network yet.
Added HashFile() utility function. Also added updated() functions to ranking and photos, so the GUI can update itself when necessary. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@381 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
0c7af5a691
commit
fb229c96da
12 changed files with 163 additions and 19 deletions
|
@ -50,13 +50,19 @@ p3Photo::~p3Photo()
|
|||
return;
|
||||
}
|
||||
|
||||
/* needs update? */
|
||||
bool p3Photo::updated()
|
||||
{
|
||||
return mPhoto->updated();
|
||||
}
|
||||
|
||||
/* access data */
|
||||
bool p3Photo::getPhotoList(std::string id, std::list<std::string> hashs)
|
||||
bool p3Photo::getPhotoList(std::string id, std::list<std::string> &hashs)
|
||||
{
|
||||
return mPhoto->getPhotoList(id, hashs);
|
||||
}
|
||||
|
||||
bool p3Photo::getShowList(std::string id, std::list<std::string> showIds)
|
||||
bool p3Photo::getShowList(std::string id, std::list<std::string> &showIds)
|
||||
{
|
||||
return mPhoto -> getShowList(id, showIds);
|
||||
}
|
||||
|
|
|
@ -36,9 +36,12 @@ class p3Photo: public RsPhoto
|
|||
p3Photo(p3PhotoService *p3ps);
|
||||
virtual ~p3Photo();
|
||||
|
||||
/* changed? */
|
||||
virtual bool updated();
|
||||
|
||||
/* access data */
|
||||
virtual bool getPhotoList(std::string id, std::list<std::string> hashs);
|
||||
virtual bool getShowList(std::string id, std::list<std::string> showIds);
|
||||
virtual bool getPhotoList(std::string id, std::list<std::string> &hashs);
|
||||
virtual bool getShowList(std::string id, std::list<std::string> &showIds);
|
||||
virtual bool getShowDetails(std::string id, std::string showId, RsPhotoShowDetails &detail);
|
||||
virtual bool getPhotoDetails(std::string id, std::string photoId, RsPhotoDetails &detail);
|
||||
|
||||
|
|
|
@ -37,6 +37,11 @@ p3Rank::~p3Rank()
|
|||
{
|
||||
return;
|
||||
}
|
||||
/* needs update? */
|
||||
bool p3Rank::updated()
|
||||
{
|
||||
return mRank->updated();
|
||||
}
|
||||
|
||||
/* Set Sort Methods */
|
||||
bool p3Rank::setSortPeriod(uint32_t period)
|
||||
|
|
|
@ -36,6 +36,9 @@ class p3Rank: public RsRanks
|
|||
p3Rank(p3Ranking *ranking);
|
||||
virtual ~p3Rank();
|
||||
|
||||
/* needs update? */
|
||||
virtual bool updated();
|
||||
|
||||
/* Set Sort Methods */
|
||||
virtual bool setSortPeriod(uint32_t period);
|
||||
virtual bool setSortMethod(uint32_t type);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue