Initial community commit
This commit is contained in:
parent
537bcbc862
commit
fc06254474
16440 changed files with 4239995 additions and 2 deletions
25
Src/Plugins/Portable/pmp_wifi/Pair.h
Normal file
25
Src/Plugins/Portable/pmp_wifi/Pair.h
Normal file
|
@ -0,0 +1,25 @@
|
|||
#pragma once
|
||||
|
||||
#include "../nu/refcount.h"
|
||||
#include "../Components/wac_downloadManager/DownloadCallbackT.h"
|
||||
|
||||
class WifiDevice;
|
||||
|
||||
class PairDownloader : public DownloadCallbackT<PairDownloader>
|
||||
{
|
||||
public:
|
||||
PairDownloader(WifiDevice *device);
|
||||
~PairDownloader();
|
||||
|
||||
void OnInit(DownloadToken token);
|
||||
void OnData(DownloadToken token, void *data, size_t datalen);
|
||||
void OnCancel(DownloadToken token);
|
||||
void OnError(DownloadToken token, int error);
|
||||
void OnFinish(DownloadToken token);
|
||||
|
||||
private:
|
||||
WifiDevice *device;
|
||||
};
|
||||
|
||||
bool IsPaired(uint64_t id);
|
||||
void SetPaired(uint64_t id, bool status);
|
Loading…
Add table
Add a link
Reference in a new issue