mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-02 05:02:33 -04:00

(set for 5 attempts before message is dropped) moved rstokenservice.h to retroshare interface folder groups do not sync anymore unless user is subscribed to it git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6194 b45a01b8-16f6-495d-af2f-9b41ad6348cc
137 lines
2.5 KiB
C++
137 lines
2.5 KiB
C++
#ifndef RSGXSREQUESTTYPES_H_
|
|
#define RSGXSREQUESTTYPES_H_
|
|
|
|
/*
|
|
* libretroshare/src/gxs: rgxsrequesttypes.h
|
|
*
|
|
* Type introspect request types for data access request implementation
|
|
*
|
|
* Copyright 2012-2012 by Christopher Evi-Parker
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Library General Public
|
|
* License Version 2 as published by the Free Software Foundation.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Library General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Library General Public
|
|
* License along with this library; if not, write to the Free Software
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
|
* USA.
|
|
*
|
|
* Please report all bugs and problems to "retroshare@lunamutt.com".
|
|
*
|
|
*/
|
|
|
|
#include "retroshare/rstokenservice.h"
|
|
#include "gxs/rsgds.h"
|
|
|
|
class GxsRequest
|
|
{
|
|
|
|
public:
|
|
|
|
|
|
virtual ~GxsRequest() { return; }
|
|
uint32_t token;
|
|
uint32_t reqTime;
|
|
|
|
uint32_t ansType;
|
|
uint32_t reqType;
|
|
RsTokReqOptions Options;
|
|
|
|
uint32_t status;
|
|
};
|
|
|
|
class GroupMetaReq : public GxsRequest
|
|
{
|
|
|
|
public:
|
|
std::list<std::string> mGroupIds;
|
|
std::list<RsGxsGrpMetaData*> mGroupMetaData;
|
|
};
|
|
|
|
class GroupIdReq : public GxsRequest
|
|
{
|
|
|
|
public:
|
|
|
|
std::list<std::string> mGroupIds;
|
|
std::list<std::string> mGroupIdResult;
|
|
};
|
|
|
|
class GroupDataReq : public GxsRequest
|
|
{
|
|
|
|
public:
|
|
std::list<RsGxsGroupId> mGroupIds;
|
|
std::list<RsNxsGrp*> mGroupData;
|
|
};
|
|
|
|
|
|
class MsgIdReq : public GxsRequest
|
|
{
|
|
|
|
public:
|
|
|
|
GxsMsgReq mMsgIds;
|
|
GxsMsgIdResult mMsgIdResult;
|
|
};
|
|
|
|
class MsgMetaReq : public GxsRequest
|
|
{
|
|
|
|
public:
|
|
GxsMsgReq mMsgIds;
|
|
GxsMsgMetaResult mMsgMetaData;
|
|
};
|
|
|
|
class MsgDataReq : public GxsRequest
|
|
{
|
|
|
|
public:
|
|
GxsMsgReq mMsgIds;
|
|
NxsMsgDataResult mMsgData;
|
|
};
|
|
|
|
class MsgRelatedInfoReq : public GxsRequest
|
|
{
|
|
|
|
public:
|
|
std::vector<RsGxsGrpMsgIdPair> mMsgIds;
|
|
MsgRelatedIdResult mMsgIdResult;
|
|
MsgRelatedMetaResult mMsgMetaResult;
|
|
NxsMsgRelatedDataResult mMsgDataResult;
|
|
};
|
|
|
|
class GroupSetFlagReq : public GxsRequest
|
|
{
|
|
public:
|
|
|
|
const static uint32_t FLAG_SUBSCRIBE;
|
|
const static uint32_t FLAG_STATUS;
|
|
|
|
uint8_t type;
|
|
uint32_t flag;
|
|
uint32_t flagMask;
|
|
RsGxsGroupId grpId;
|
|
|
|
};
|
|
|
|
class MessageSetFlagReq : public GxsRequest
|
|
{
|
|
public:
|
|
|
|
const static uint32_t FLAG_STATUS;
|
|
|
|
uint8_t type;
|
|
uint32_t flag;
|
|
uint32_t flagMask;
|
|
RsGxsGrpMsgIdPair msgId;
|
|
};
|
|
|
|
|
|
#endif /* RSGXSREQUESTTYPES_H_ */
|