mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
ad1bc7f3b8
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8047 b45a01b8-16f6-495d-af2f-9b41ad6348cc
35 lines
768 B
C++
35 lines
768 B
C++
#pragma once
|
|
|
|
#pragma once
|
|
#include "ResourceRouter.h"
|
|
#include "StateTokenServer.h"
|
|
|
|
#include <retroshare/rsfiles.h>
|
|
|
|
namespace resource_api
|
|
{
|
|
|
|
class TransfersHandler: public ResourceRouter, Tickable
|
|
{
|
|
public:
|
|
TransfersHandler(StateTokenServer* sts, RsFiles* files);
|
|
virtual ~TransfersHandler();
|
|
|
|
// from Tickable
|
|
virtual void tick();
|
|
private:
|
|
void handleWildcard(Request& req, Response& resp);
|
|
void handleControlDownload(Request& req, Response& resp);
|
|
void handleDownloads(Request& req, Response& resp);
|
|
|
|
StateTokenServer* mStateTokenServer;
|
|
RsFiles* mFiles;
|
|
|
|
StateToken mStateToken;
|
|
time_t mLastUpdateTS;
|
|
|
|
std::list<RsFileHash> mDownloadsAtLastCheck;
|
|
};
|
|
|
|
} // namespace resource_api
|