mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-28 17:09:34 -05:00
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:
parent
86d191d932
commit
39eb8a3091
21
libretroshare/src/rsiface/rsstatus.h
Normal file
21
libretroshare/src/rsiface/rsstatus.h
Normal 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;
|
||||
|
||||
};
|
Loading…
Reference in New Issue
Block a user