2012-05-21 18:07:43 -04:00
|
|
|
#ifndef RSGXSFLAGS_H
|
|
|
|
#define RSGXSFLAGS_H
|
|
|
|
|
|
|
|
#include "inttypes.h"
|
|
|
|
|
2012-09-04 18:32:52 -04:00
|
|
|
// this serves a single point of call for definining grp and msg modes
|
|
|
|
// GXS. These modes say
|
2012-05-21 18:07:43 -04:00
|
|
|
namespace GXS_SERV {
|
|
|
|
|
|
|
|
|
|
|
|
/*** GROUP FLAGS ***/
|
|
|
|
|
|
|
|
/* type of group */
|
|
|
|
|
2012-09-04 18:32:52 -04:00
|
|
|
static const uint32_t FLAG_GRP_TYPE_MASK = 0;
|
2012-05-21 18:07:43 -04:00
|
|
|
|
|
|
|
// pub key encrypted
|
2012-09-04 18:32:52 -04:00
|
|
|
static const uint32_t FLAG_GRP_TYPE_PRIVATE = 0;
|
2012-05-21 18:07:43 -04:00
|
|
|
|
|
|
|
// single publisher, read only
|
2012-09-04 18:32:52 -04:00
|
|
|
static const uint32_t FLAG_GRP_TYPE_RESTRICTED = 0;
|
2012-05-21 18:07:43 -04:00
|
|
|
|
|
|
|
// anyone can publish
|
2012-09-04 18:32:52 -04:00
|
|
|
static const uint32_t FLAG_GRP_TYPE_PUBLIC = 0;
|
2012-05-21 18:07:43 -04:00
|
|
|
|
|
|
|
|
|
|
|
/* type of msgs allowed */
|
|
|
|
|
2012-09-04 18:32:52 -04:00
|
|
|
static const uint32_t FLAG_MSG_TYPE_MASK = 0;
|
2012-05-21 18:07:43 -04:00
|
|
|
|
|
|
|
// only signee can edit, and sign required
|
2012-09-04 18:32:52 -04:00
|
|
|
static const uint32_t FLAG_MSG_TYPE_SIGNED = 0;
|
2012-05-21 18:07:43 -04:00
|
|
|
|
|
|
|
// no sign required, but signee can edit if signed
|
2012-09-04 18:32:52 -04:00
|
|
|
static const uint32_t FLAG_MSG_TYPE_ANON = 0;
|
2012-05-21 18:07:43 -04:00
|
|
|
|
|
|
|
// anyone can mod but sign must be provided (needed for wikis)
|
2012-09-04 18:32:52 -04:00
|
|
|
static const uint32_t FLAG_MSG_TYPE_SIGNED_SHARED = 0;
|
2012-05-21 18:07:43 -04:00
|
|
|
|
|
|
|
/*** GROUP FLAGS ***/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*** MESSAGE FLAGS ***/
|
|
|
|
|
|
|
|
// indicates message edits an existing message
|
2012-09-04 18:32:52 -04:00
|
|
|
static const uint32_t FLAG_MSG_EDIT = 0;
|
2012-05-21 18:07:43 -04:00
|
|
|
|
|
|
|
// indicates msg is id signed
|
2012-09-04 18:32:52 -04:00
|
|
|
static const uint32_t FLAG_MSG_ID_SIGNED = 0;
|
2012-05-21 18:07:43 -04:00
|
|
|
|
|
|
|
/*** MESSAGE FLAGS ***/
|
|
|
|
|
2012-09-04 18:32:52 -04:00
|
|
|
|
|
|
|
// Subscription Flags. (LOCAL)
|
|
|
|
|
2012-09-13 18:58:42 -04:00
|
|
|
static const uint32_t GROUP_SUBSCRIBE_ADMIN = 0x00000001;
|
|
|
|
static const uint32_t GROUP_SUBSCRIBE_PUBLISH = 0x00000002;
|
|
|
|
static const uint32_t GROUP_SUBSCRIBE_SUBSCRIBED = 0x00000004;
|
|
|
|
static const uint32_t GROUP_SUBSCRIBE_MONITOR = 0x00000008;
|
|
|
|
static const uint32_t GROUP_SUBSCRIBE_MASK = 0x0000000f;
|
2012-09-04 18:32:52 -04:00
|
|
|
|
2012-05-21 18:07:43 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#endif // RSGXSFLAGS_H
|