2012-07-05 17:26:14 -04:00
|
|
|
#ifndef RSGXSSERVICE_H
|
|
|
|
#define RSGXSSERVICE_H
|
|
|
|
|
|
|
|
|
|
|
|
#include "gxs/rstokenservice.h"
|
|
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* The aim of this class is to abstract
|
|
|
|
* how changes are represented so
|
|
|
|
* they can be determined outside the
|
|
|
|
* client API without explcitly
|
|
|
|
* enumerating all possible changes
|
|
|
|
* at the interface
|
|
|
|
*/
|
2012-07-28 16:01:30 -04:00
|
|
|
class RsGxsNotify
|
2012-07-05 17:26:14 -04:00
|
|
|
{
|
|
|
|
public:
|
2012-07-28 16:01:30 -04:00
|
|
|
RsGxsNotify(){ return; }
|
2012-08-06 17:00:38 -04:00
|
|
|
virtual ~RsGxsNotify() {return; }
|
2012-07-05 17:26:14 -04:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* Relevant to group changes
|
|
|
|
* TODO: extent to indicate whether a meta change or actual data
|
|
|
|
*/
|
2012-07-28 16:01:30 -04:00
|
|
|
class RsGxsGroupChange : public RsGxsNotify
|
2012-07-05 17:26:14 -04:00
|
|
|
{
|
|
|
|
public:
|
2012-07-22 17:38:15 -04:00
|
|
|
std::list<RsGxsGroupId> grpIdList;
|
2012-07-05 17:26:14 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* Relevant to message changes
|
|
|
|
* TODO: extent to indicate whether a meta change or actual data
|
|
|
|
*/
|
2012-07-28 16:01:30 -04:00
|
|
|
class RsGxsMsgChange : public RsGxsNotify
|
2012-07-05 17:26:14 -04:00
|
|
|
{
|
|
|
|
public:
|
2012-07-22 17:38:15 -04:00
|
|
|
std::map<RsGxsGroupId, std::vector<RsGxsMessageId> > msgChangeMap;
|
2012-07-05 17:26:14 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif // RSGXSSERVICE_H
|