mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-29 11:01:22 -04:00
Moved the tag feature in messages from the gui to the libretroshare.
Changed rsmsg interface and item classes so need full recompile. Created new notifier for tag changes - NOTIFY_LIST_MESSAGE_TAGS. Changed serialiser tests for message items. After that all tags are reset to standard and all assigned tags to messages are lost. Please delete the file msg_locale.cfg in your profile directory. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3381 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
340982b996
commit
52183a0c75
18 changed files with 708 additions and 515 deletions
|
@ -92,39 +92,45 @@ bool p3Msgs::MessageDelete(std::string mid)
|
|||
//std::cerr << "p3Msgs::MessageDelete() ";
|
||||
//std::cerr << "mid: " << mid << std::endl;
|
||||
|
||||
mMsgSrv -> removeMsgId(mid);
|
||||
|
||||
return 1;
|
||||
return mMsgSrv -> removeMsgId(mid);
|
||||
}
|
||||
|
||||
bool p3Msgs::MessageRead(std::string mid)
|
||||
bool p3Msgs::MessageRead(std::string mid, bool bUnreadByUser)
|
||||
{
|
||||
//std::cerr << "p3Msgs::MessageRead() ";
|
||||
//std::cerr << "mid: " << mid << std::endl;
|
||||
|
||||
mMsgSrv -> markMsgIdRead(mid);
|
||||
|
||||
return 1;
|
||||
return mMsgSrv -> markMsgIdRead(mid, bUnreadByUser);
|
||||
}
|
||||
|
||||
bool p3Msgs::MessageGetTagTypes(MsgTagType& tags)
|
||||
bool p3Msgs::getMessageTagTypes(MsgTagType& tags)
|
||||
{
|
||||
mMsgSrv->MessageGetTagTypes(tags);
|
||||
return mMsgSrv->getMessageTagTypes(tags);
|
||||
}
|
||||
|
||||
bool p3Msgs::MessageGetMsgTag(std::string msgId, MsgTagInfo& info)
|
||||
bool p3Msgs::setMessageTagType(uint32_t tagId, std::string& text, uint32_t rgb_color)
|
||||
{
|
||||
mMsgSrv->MessageGetMsgTag(msgId, info);
|
||||
return mMsgSrv->setMessageTagType(tagId, text, rgb_color);
|
||||
}
|
||||
|
||||
bool p3Msgs::MessageSetTagType(std::string& text, uint32_t tag_id, uint32_t rgb_color)
|
||||
bool p3Msgs::removeMessageTagType(uint32_t tagId)
|
||||
{
|
||||
mMsgSrv->MessageSetTagType(text, tag_id, rgb_color);
|
||||
return mMsgSrv->removeMessageTagType(tagId);
|
||||
}
|
||||
|
||||
bool p3Msgs::MessageSetMsgTag(MsgTagInfo& tagInfo)
|
||||
bool p3Msgs::getMessageTag(std::string msgId, MsgTagInfo& info)
|
||||
{
|
||||
mMsgSrv->MessageSetMsgTag(tagInfo);
|
||||
return mMsgSrv->getMessageTag(msgId, info);
|
||||
}
|
||||
|
||||
bool p3Msgs::setMessageTag(std::string msgId, uint32_t tagId, bool set)
|
||||
{
|
||||
return mMsgSrv->setMessageTag(msgId, tagId, set);
|
||||
}
|
||||
|
||||
bool p3Msgs::resetMessageStandardTagTypes(MsgTagType& tags)
|
||||
{
|
||||
return mMsgSrv->resetMessageStandardTagTypes(tags);
|
||||
}
|
||||
|
||||
/****************************************/
|
||||
|
|
|
@ -61,13 +61,17 @@ class p3Msgs: public RsMsgs
|
|||
virtual bool MessageToDraft(MessageInfo &info);
|
||||
virtual bool MessageToTrash(std::string mid, bool bTrash);
|
||||
virtual bool MessageDelete(std::string mid);
|
||||
virtual bool MessageRead(std::string mid);
|
||||
virtual bool MessageRead(std::string mid, bool bUnreadByUser);
|
||||
|
||||
virtual bool MessageGetTagTypes(MsgTagType& tags);
|
||||
virtual bool MessageGetMsgTag(std::string msgId, MsgTagInfo& info);
|
||||
virtual bool getMessageTagTypes(MsgTagType& tags);
|
||||
virtual bool setMessageTagType(uint32_t tagId, std::string& text, uint32_t rgb_color);
|
||||
virtual bool removeMessageTagType(uint32_t tagId);
|
||||
|
||||
virtual bool MessageSetTagType(std::string& text, uint32_t tag_id, uint32_t rgb_color);
|
||||
virtual bool MessageSetMsgTag(MsgTagInfo& );
|
||||
virtual bool getMessageTag(std::string msgId, MsgTagInfo& info);
|
||||
/* set == false && tagId == 0 --> remove all */
|
||||
virtual bool setMessageTag(std::string msgId, uint32_t tagId, bool set);
|
||||
|
||||
virtual bool resetMessageStandardTagTypes(MsgTagType& tags);
|
||||
|
||||
/*!
|
||||
* gets avatar from peer, image data in jpeg format
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue