mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-23 22:49:37 -05:00
added ownStatusMessageChanged
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1719 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
add990abd5
commit
e6b191bb9b
@ -147,6 +147,8 @@ int main(int argc, char *argv[])
|
|||||||
QObject::connect(notify,SIGNAL(chatStatusChanged(const QString&,const QString&,bool)),w->peersDialog,SLOT(updatePeerStatusString(const QString&,const QString&,bool)));
|
QObject::connect(notify,SIGNAL(chatStatusChanged(const QString&,const QString&,bool)),w->peersDialog,SLOT(updatePeerStatusString(const QString&,const QString&,bool)));
|
||||||
QObject::connect(notify,SIGNAL(peerHasNewAvatar(const QString&)),w->peersDialog,SLOT(updatePeersAvatar(const QString&)));
|
QObject::connect(notify,SIGNAL(peerHasNewAvatar(const QString&)),w->peersDialog,SLOT(updatePeersAvatar(const QString&)));
|
||||||
QObject::connect(notify,SIGNAL(ownAvatarChanged()),w->peersDialog,SLOT(updateAvatar()));
|
QObject::connect(notify,SIGNAL(ownAvatarChanged()),w->peersDialog,SLOT(updateAvatar()));
|
||||||
|
QObject::connect(notify,SIGNAL(ownStatusMessageChanged()),w->peersDialog,SLOT(loadmypersonalstatus()));
|
||||||
|
|
||||||
QObject::connect(notify,SIGNAL(logInfoChanged(const QString&)),w->networkDialog,SLOT(setLogInfo(QString))) ;
|
QObject::connect(notify,SIGNAL(logInfoChanged(const QString&)),w->networkDialog,SLOT(setLogInfo(QString))) ;
|
||||||
|
|
||||||
QObject::connect(ConfCertDialog::instance(),SIGNAL(configChanged()),w->networkDialog,SLOT(insertConnect())) ;
|
QObject::connect(ConfCertDialog::instance(),SIGNAL(configChanged()),w->networkDialog,SLOT(insertConnect())) ;
|
||||||
|
@ -44,6 +44,12 @@ void NotifyQt::notifyOwnAvatarChanged()
|
|||||||
emit ownAvatarChanged() ;
|
emit ownAvatarChanged() ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void NotifyQt::notifyOwnStatusMessageChanged()
|
||||||
|
{
|
||||||
|
std::cerr << "Notifyqt:: notified that own avatar changed" << std::endl ;
|
||||||
|
emit ownStatusMessageChanged() ;
|
||||||
|
}
|
||||||
|
|
||||||
void NotifyQt::notifyPeerHasNewAvatar(std::string peer_id)
|
void NotifyQt::notifyPeerHasNewAvatar(std::string peer_id)
|
||||||
{
|
{
|
||||||
std::cerr << "notifyQt: notification of new avatar." << std::endl ;
|
std::cerr << "notifyQt: notification of new avatar." << std::endl ;
|
||||||
|
@ -39,6 +39,7 @@ class NotifyQt: public QObject, public NotifyBase
|
|||||||
virtual void notifyTurtleSearchResult(uint32_t search_id,const std::list<TurtleFileInfo>& found_files);
|
virtual void notifyTurtleSearchResult(uint32_t search_id,const std::list<TurtleFileInfo>& found_files);
|
||||||
virtual void notifyPeerHasNewAvatar(std::string peer_id) ;
|
virtual void notifyPeerHasNewAvatar(std::string peer_id) ;
|
||||||
virtual void notifyOwnAvatarChanged() ;
|
virtual void notifyOwnAvatarChanged() ;
|
||||||
|
virtual void notifyOwnStatusMessageChanged() ;
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
// It's beneficial to send info to the GUI using signals, because signals are thread-safe
|
// It's beneficial to send info to the GUI using signals, because signals are thread-safe
|
||||||
@ -58,6 +59,7 @@ class NotifyQt: public QObject, public NotifyBase
|
|||||||
void gotTurtleSearchResult(qulonglong search_id,FileDetail file) const ;
|
void gotTurtleSearchResult(qulonglong search_id,FileDetail file) const ;
|
||||||
void peerHasNewAvatar(const QString& peer_id) const ;
|
void peerHasNewAvatar(const QString& peer_id) const ;
|
||||||
void ownAvatarChanged() const ;
|
void ownAvatarChanged() const ;
|
||||||
|
void ownStatusMessageChanged() const ;
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
|
|
||||||
|
@ -206,6 +206,7 @@ class NotifyBase
|
|||||||
virtual void notifyTurtleSearchResult(uint32_t search_id,const std::list<TurtleFileInfo>& files) { (void)files; }
|
virtual void notifyTurtleSearchResult(uint32_t search_id,const std::list<TurtleFileInfo>& files) { (void)files; }
|
||||||
virtual void notifyPeerHasNewAvatar(std::string peer_id) { (void)peer_id; }
|
virtual void notifyPeerHasNewAvatar(std::string peer_id) { (void)peer_id; }
|
||||||
virtual void notifyOwnAvatarChanged() {}
|
virtual void notifyOwnAvatarChanged() {}
|
||||||
|
virtual void notifyOwnStatusMessageChanged() {}
|
||||||
};
|
};
|
||||||
|
|
||||||
const int NOTIFY_LIST_NEIGHBOURS = 1;
|
const int NOTIFY_LIST_NEIGHBOURS = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user