mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-12-02 05:15:08 -05:00
commit
b138263878
25 changed files with 666 additions and 367 deletions
|
|
@ -115,8 +115,7 @@ namespace GXS_SERV {
|
|||
/** START GXS Grp status flags **/
|
||||
|
||||
static const uint32_t GXS_GRP_STATUS_UNPROCESSED = 0x000000100;
|
||||
|
||||
static const uint32_t GXS_GRP_STATUS_UNREAD = 0x00000200;
|
||||
static const uint32_t GXS_GRP_STATUS_UNREAD = 0x000000200;
|
||||
|
||||
/** END GXS Grp status flags **/
|
||||
}
|
||||
|
|
|
|||
|
|
@ -28,8 +28,15 @@
|
|||
|
||||
#include "retroshare/rstokenservice.h"
|
||||
#include "retroshare/rsgxsifacehelper.h"
|
||||
#include "serialiser/rstlvidset.h"
|
||||
|
||||
// Forum Service message flags, to be used in RsMsgMetaData::mMsgFlags
|
||||
// Gxs imposes to use the first two bytes (lower bytes) of mMsgFlags for private forum flags, the upper bytes being used for internal GXS stuff.
|
||||
|
||||
static const uint32_t RS_GXS_FORUM_MSG_FLAGS_MASK = 0x0000000f ;
|
||||
static const uint32_t RS_GXS_FORUM_MSG_FLAGS_MODERATED = 0x00000001 ;
|
||||
|
||||
#define IS_FORUM_MSG_MODERATION(flags) (flags & RS_GXS_FORUM_MSG_FLAGS_MODERATED)
|
||||
|
||||
/* The Main Interface Class - for information about your Peers */
|
||||
class RsGxsForums;
|
||||
|
|
@ -40,6 +47,11 @@ class RsGxsForumGroup
|
|||
public:
|
||||
RsGroupMetaData mMeta;
|
||||
std::string mDescription;
|
||||
|
||||
// What's below is optional, and handled by the serialiser
|
||||
|
||||
RsTlvGxsIdSet mAdminList;
|
||||
RsTlvGxsMsgIdSet mPinnedPosts;
|
||||
};
|
||||
|
||||
class RsGxsForumMsg
|
||||
|
|
|
|||
|
|
@ -138,7 +138,7 @@ struct RsMsgMetaData : RsSerializable
|
|||
std::string mMsgName;
|
||||
time_t mPublishTs;
|
||||
|
||||
/// the first 16 bits for service, last 16 for GXS
|
||||
/// the lower 16 bits for service, upper 16 bits for GXS
|
||||
uint32_t mMsgFlags;
|
||||
|
||||
// BELOW HERE IS LOCAL DATA, THAT IS NOT FROM MSG.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue