mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 14:16:16 -04:00
Added status service: p3status
Added status service to core: p3face-startup git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@524 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
02c6d70e30
commit
26d2def720
5 changed files with 162 additions and 5 deletions
|
@ -4,7 +4,7 @@
|
|||
/*
|
||||
* libretroshare/src/rsiface: rsstatus.h
|
||||
*
|
||||
* RetroShare C++ Interface.
|
||||
* RetroShare C++ .
|
||||
*
|
||||
* Copyright 2007-2008 by Vinny Do.
|
||||
*
|
||||
|
@ -26,10 +26,11 @@
|
|||
*
|
||||
*/
|
||||
|
||||
class RsStatusInterface;
|
||||
class RsStatus;
|
||||
|
||||
extern RsStatusInterface *rsStatusInterface;
|
||||
extern RsStatus *rsStatus;
|
||||
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
#include <inttypes.h>
|
||||
|
||||
|
@ -45,7 +46,7 @@ class StatusInfo
|
|||
uint32_t status;
|
||||
};
|
||||
|
||||
class RsStatusInterface
|
||||
class RsStatus
|
||||
{
|
||||
public:
|
||||
virtual bool getStatus(std::string id, StatusInfo& statusInfo) = 0;
|
||||
|
@ -53,4 +54,6 @@ virtual bool setStatus(StatusInfo& statusInfo) = 0;
|
|||
|
||||
};
|
||||
|
||||
std::ostream& operator<<(std::ostream& out, const StatusInfo& statusInfo);
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue