mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-22 05:14:31 -04:00
Fixed config forward compatibility problem
- note to self: C++ binary file not same as C binary file git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2510 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
0b4bc0f2eb
commit
6054890725
6 changed files with 357 additions and 165 deletions
|
@ -251,8 +251,14 @@ bool p3Blogs::BlogMessageSend(BlogMsgInfo &info)
|
|||
|
||||
bool p3Blogs::BlogMessageReply(BlogMsgInfo& reply){
|
||||
|
||||
if(reply.msgIdReply.empty())
|
||||
// ensure it has a value
|
||||
if(isReply(reply)){
|
||||
std::cerr << "p3Blogs::BlogMessageReply()" << " This is not a reply " << std::endl;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
// also check that msgId exists for group
|
||||
|
||||
return BlogMessageSend(reply);
|
||||
}
|
||||
|
@ -306,6 +312,23 @@ bool p3Blogs::blogSubscribe(std::string cId, bool subscribe)
|
|||
}
|
||||
|
||||
|
||||
bool p3Blogs::deleteBlogMsg(std::string cId, std::string mId){
|
||||
return false;
|
||||
}
|
||||
|
||||
bool p3Blogs::isBlogDeleted(std::string cId){
|
||||
return false;
|
||||
}
|
||||
|
||||
bool p3Blogs::isBlogMsgDeleted(std::string cId, std::string mId){
|
||||
return false;
|
||||
}
|
||||
|
||||
bool p3Blogs::deleteBlog(std::string cId){
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
/***************************************************************************************/
|
||||
/****************** Event Feedback (Overloaded form p3distrib) *************************/
|
||||
/***************************************************************************************/
|
||||
|
|
|
@ -45,24 +45,75 @@ virtual ~p3Blogs();
|
|||
/****************************************/
|
||||
/********* rsBlogs Interface ***********/
|
||||
|
||||
|
||||
/**
|
||||
* check if any of the blogs has been changed
|
||||
* @param blogIds list blogs by ids to be checked
|
||||
* @return false if changed and vice versa
|
||||
*/
|
||||
virtual bool blogsChanged(std::list<std::string> &blogIds);
|
||||
|
||||
/**
|
||||
* creates a new blog
|
||||
*/
|
||||
virtual std::string createBlog(std::wstring blogName, std::wstring blogDesc, uint32_t blogFlags);
|
||||
|
||||
/**
|
||||
* @param cId the id for the blog
|
||||
* @param BloogInfo blog information is stored here
|
||||
*/
|
||||
virtual bool getBlogInfo(std::string cId, BlogInfo &ci);
|
||||
virtual bool getBlogList(std::list<BlogInfo> &chanList);
|
||||
|
||||
/**
|
||||
* get list of blogs from the group peer belongs to
|
||||
*/
|
||||
virtual bool getBlogList(std::list<BlogInfo> &blogList);
|
||||
|
||||
/**
|
||||
* Returns a list of all the messages sent
|
||||
* @param cId group id
|
||||
* @param msgs
|
||||
*/
|
||||
virtual bool getBlogMsgList(std::string cId, std::list<BlogMsgSummary> &msgs);
|
||||
virtual bool getBlogMessage(std::string cId, std::string mId, BlogMsgInfo &msg);
|
||||
|
||||
virtual bool BlogMessageSend(BlogMsgInfo &info);
|
||||
|
||||
|
||||
/**
|
||||
* subscribes or unsubscribes peer to a blog message
|
||||
* @param cId the id of the blog message peer wants to subscribe
|
||||
* @param subscribe set to true to subscribe, false otherwise
|
||||
*/
|
||||
virtual bool blogSubscribe(std::string cId, bool subscribe);
|
||||
|
||||
|
||||
/**
|
||||
* send a reply to a blog msg, ensure msgIdReply has valid id to a message
|
||||
*/
|
||||
virtual bool BlogMessageReply(BlogMsgInfo &info);
|
||||
|
||||
/**
|
||||
* check if a particular blog is a reply
|
||||
* @return false if not a reply, true otherwise
|
||||
*/
|
||||
virtual bool isReply(BlogMsgInfo& info);
|
||||
|
||||
/**
|
||||
* Deletes a blog by group id
|
||||
*
|
||||
*/
|
||||
virtual bool deleteBlog(std::string cId);
|
||||
|
||||
/**
|
||||
* Delete a blog message
|
||||
* @param cId the group id the blog message belongs to
|
||||
* @param mId the message id within the group
|
||||
*/
|
||||
virtual bool deleteBlogMsg(std::string cId, std::string mId);
|
||||
|
||||
virtual bool isBlogDeleted(std::string cId);
|
||||
|
||||
virtual bool isBlogMsgDeleted(std::string cId, std::string mId);
|
||||
/***************************************************************************************/
|
||||
/****************** Event Feedback (Overloaded form p3distrib) *************************/
|
||||
/***************************************************************************************/
|
||||
|
|
|
@ -117,6 +117,10 @@ const uint32_t GROUP_KEY_DISTRIB_PRIVATE = 0x0020;
|
|||
const uint32_t GROUP_KEY_DISTRIB_ADMIN = 0x0040;
|
||||
#endif
|
||||
|
||||
|
||||
/*!
|
||||
* allows group members to access
|
||||
*/
|
||||
class GroupKey
|
||||
{
|
||||
public:
|
||||
|
@ -130,6 +134,8 @@ class GroupKey
|
|||
EVP_PKEY *key;
|
||||
};
|
||||
|
||||
|
||||
|
||||
class GroupInfo
|
||||
{
|
||||
public:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue