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