mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 14:16:16 -04:00
added empty rsFriendServer struct and basic UI functionality
This commit is contained in:
parent
3f6503dfc3
commit
21ea281df4
8 changed files with 166 additions and 17 deletions
|
@ -145,6 +145,7 @@ PUBLIC_HEADERS = retroshare/rsdisc.h \
|
|||
retroshare/rsrtt.h \
|
||||
retroshare/rsconfig.h \
|
||||
retroshare/rsversion.h \
|
||||
retroshare/rsfriendserver.h \
|
||||
retroshare/rsservicecontrol.h \
|
||||
retroshare/rsgxsdistsync.h
|
||||
|
||||
|
|
20
libretroshare/src/retroshare/rsfriendserver.h
Normal file
20
libretroshare/src/retroshare/rsfriendserver.h
Normal file
|
@ -0,0 +1,20 @@
|
|||
#include <functional>
|
||||
#include <thread>
|
||||
#include "util/rstime.h"
|
||||
|
||||
class RsFriendServer
|
||||
{
|
||||
public:
|
||||
void start() {}
|
||||
void stop() {}
|
||||
|
||||
void checkServerAddress_async(const std::string&,uint16_t, const std::function<void (bool result_status)>& callback)
|
||||
{
|
||||
std::this_thread::sleep_for(std::chrono::seconds(1));
|
||||
callback(true);
|
||||
}
|
||||
void setServerAddress(const std::string&,uint16_t) {}
|
||||
void setFriendsToRequest(uint32_t) {}
|
||||
};
|
||||
|
||||
extern RsFriendServer *rsFriendServer;
|
Loading…
Add table
Add a link
Reference in a new issue