mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-29 02:51:45 -04:00
made own avatar persistent. Next task will be to make friends avatars persistent too
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1088 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
12113df4b7
commit
3d2514238e
4 changed files with 143 additions and 30 deletions
|
@ -39,7 +39,7 @@
|
|||
#include "services/p3service.h"
|
||||
#include "pqi/p3connmgr.h"
|
||||
|
||||
class p3ChatService: public p3Service
|
||||
class p3ChatService: public p3Service, public pqiConfig
|
||||
{
|
||||
public:
|
||||
p3ChatService(p3ConnectMgr *cm);
|
||||
|
@ -63,7 +63,13 @@ class p3ChatService: public p3Service
|
|||
|
||||
std::list<RsChatItem *> getChatQueue();
|
||||
|
||||
/*** Overloaded from pqiConfig ****/
|
||||
virtual bool loadConfiguration(std::string &loadHash);
|
||||
virtual bool saveConfiguration();
|
||||
|
||||
private:
|
||||
RsMutex mChatMtx;
|
||||
|
||||
class AvatarInfo ;
|
||||
|
||||
/// Send avatar info to peer in jpeg format.
|
||||
|
@ -75,6 +81,8 @@ class p3ChatService: public p3Service
|
|||
/// Sends a request for an avatar to the peer of given id
|
||||
void sendAvatarRequest(const std::string& peer_id) ;
|
||||
|
||||
RsChatItem *makeOwnAvatarItem() ;
|
||||
|
||||
p3ConnectMgr *mConnMgr;
|
||||
|
||||
AvatarInfo *_own_avatar ;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue