2012-05-01 16:52:07 -04:00
|
|
|
#ifndef RSGXSITEMS_H
|
|
|
|
#define RSGXSITEMS_H
|
|
|
|
|
|
|
|
/*
|
|
|
|
* libretroshare/src/serialiser: rsgxsitems.h
|
|
|
|
*
|
|
|
|
* RetroShare Serialiser.
|
|
|
|
*
|
2012-05-21 18:07:43 -04:00
|
|
|
* Copyright 2012 Christopher Evi-Parker, Robert Fernie.
|
2012-05-01 16:52:07 -04:00
|
|
|
*
|
|
|
|
* 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 "serialiser/rsserviceids.h"
|
|
|
|
#include "serialiser/rsserial.h"
|
|
|
|
#include "serialiser/rstlvtypes.h"
|
|
|
|
#include "serialiser/rstlvkeys.h"
|
2013-02-28 16:58:38 -05:00
|
|
|
#include "retroshare/rsgxsifacetypes.h"
|
2012-05-01 16:52:07 -04:00
|
|
|
|
2012-10-21 11:48:18 -04:00
|
|
|
std::ostream &operator<<(std::ostream &out, const RsGroupMetaData &meta);
|
|
|
|
std::ostream &operator<<(std::ostream &out, const RsMsgMetaData &meta);
|
|
|
|
|
2012-05-01 16:52:07 -04:00
|
|
|
|
2012-07-26 17:48:54 -04:00
|
|
|
class RsGxsGrpItem : public RsItem
|
|
|
|
{
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
2012-07-31 17:27:34 -04:00
|
|
|
RsGxsGrpItem(uint16_t service, uint8_t subtype)
|
|
|
|
: RsItem(RS_PKT_VERSION_SERVICE, service, subtype) { return; }
|
2012-07-26 17:48:54 -04:00
|
|
|
virtual ~RsGxsGrpItem(){}
|
|
|
|
|
2012-08-25 11:48:55 -04:00
|
|
|
|
2012-07-26 17:48:54 -04:00
|
|
|
RsGroupMetaData meta;
|
|
|
|
};
|
|
|
|
|
|
|
|
class RsGxsMsgItem : public RsItem
|
|
|
|
{
|
|
|
|
|
|
|
|
public:
|
2012-07-31 17:27:34 -04:00
|
|
|
RsGxsMsgItem(uint16_t service, uint8_t subtype)
|
|
|
|
: RsItem(RS_PKT_VERSION_SERVICE, service, subtype) { return; }
|
2012-07-26 17:48:54 -04:00
|
|
|
virtual ~RsGxsMsgItem(){}
|
|
|
|
|
|
|
|
RsMsgMetaData meta;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-07-05 17:26:14 -04:00
|
|
|
|
2012-05-01 16:52:07 -04:00
|
|
|
#endif // RSGXSITEMS_H
|