Interface for status service.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@516 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
vinnyx 2008-04-24 12:11:59 +00:00
parent 86d191d932
commit 39eb8a3091

View File

@ -0,0 +1,21 @@
#include <string.h>
#include <inttypes.h>
const uint32_t RS_STATUS_OFFLINE = 0x0001;
const uint32_t RS_STATUS_AWAY = 0x0002;
const uint32_t RS_STATUS_BUSY = 0x0003;
const uint32_t RS_STATUS_ONLINE = 0x0004;
class StatusInfo
{
std::string id;
uint32_t status;
};
class RsStatusInterface
{
public:
virtual bool getStatus(std::string id, StatusInfo& statusInfo) = 0;
virtual bool setStatus(StatusInfo& statusInfo) = 0;
};