half way through enabling GXS avatars into distant chat. Converted AvatarWidget to use a generic ChatId instead of RsPeerId. Still need to add own Id to PopupDistantChatDialog and properly compute own name.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7924 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2015-02-07 22:43:53 +00:00
parent 3b5644c474
commit ccee594a28
16 changed files with 207 additions and 142 deletions

View file

@ -25,6 +25,7 @@
#include <QLabel>
#include <stdint.h>
#include <retroshare/rstypes.h>
#include <retroshare/rsmsgs.h>
namespace Ui {
class AvatarWidget;
@ -48,25 +49,28 @@ public:
QString frameState();
void setFrameType(FrameType type);
void setId(const RsPeerId &id) ;
void setId(const ChatId& id) ;
void setOwnId();
void setDefaultAvatar(const QString &avatar);
void setOwnId(const RsGxsId&);
void setDefaultAvatar(const QString &avatar_file_name);
protected:
void mouseReleaseEvent(QMouseEvent *event);
private slots:
void updateStatus(const QString peerId, int status);
void updateStatus(const QString& peerId, int status);
void updateAvatar(const QString& peerId);
void updateOwnAvatar();
void updateOwnAvatar();
private:
void refreshStatus();
void refreshAvatarImage() ;
void refreshStatus();
void updateStatus(int status);
QString defaultAvatar;
Ui::AvatarWidget *ui;
RsPeerId mId;
ChatId mId;
struct {
bool isOwnId : 1;