2012-01-11 18:01:29 -05:00
|
|
|
#ifndef RSGXS_H
|
|
|
|
#define RSGXS_H
|
|
|
|
|
|
|
|
/*
|
|
|
|
* libretroshare/src/gxs : rsgxs.h
|
|
|
|
*
|
2012-08-06 17:00:38 -04:00
|
|
|
* Copyright 2012 Christopher Evi-Parker
|
2012-01-11 18:01:29 -05: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".
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2012-08-19 18:15:37 -04:00
|
|
|
#include "gxs/rsgxsdata.h"
|
2012-02-24 16:15:08 -05:00
|
|
|
|
2012-02-12 10:18:05 -05:00
|
|
|
#include <map>
|
2012-09-04 18:32:52 -04:00
|
|
|
#include <vector>
|
2012-01-11 18:01:29 -05:00
|
|
|
|
2012-08-06 17:00:38 -04:00
|
|
|
/* data types used throughout Gxs from netservice to genexchange */
|
2012-03-10 19:05:43 -05:00
|
|
|
|
2016-11-09 10:18:43 -05:00
|
|
|
typedef std::map<RsGxsGroupId, std::vector<RsGxsMsgMetaData*> > GxsMsgMetaResult;
|
2012-11-13 17:36:06 -05:00
|
|
|
typedef std::map<RsGxsGrpMsgIdPair, std::vector<RsGxsMsgMetaData*> > MsgRelatedMetaResult;
|
|
|
|
|
2016-11-09 10:18:43 -05:00
|
|
|
// Default values that are used throughout GXS code
|
|
|
|
|
2017-02-28 02:14:08 -05:00
|
|
|
static const uint32_t RS_GXS_DEFAULT_MSG_STORE_PERIOD = 86400 * 372 ; // 1 year. Default time for which messages are keps in the database.
|
2016-12-05 17:42:44 -05:00
|
|
|
static const uint32_t RS_GXS_DEFAULT_MSG_SEND_PERIOD = 86400 * 30 * 1 ; // one month. Default delay after which we don't send messages
|
|
|
|
static const uint32_t RS_GXS_DEFAULT_MSG_REQ_PERIOD = 86400 * 30 * 1 ; // one month. Default Delay after which we don't request messages
|
2012-11-13 17:36:06 -05:00
|
|
|
|
2012-01-11 18:01:29 -05:00
|
|
|
#endif // RSGXS_H
|