Pair.h 582 B

12345678910111213141516171819202122232425
  1. #pragma once
  2. #include "../nu/refcount.h"
  3. #include "../Components/wac_downloadManager/DownloadCallbackT.h"
  4. class WifiDevice;
  5. class PairDownloader : public DownloadCallbackT<PairDownloader>
  6. {
  7. public:
  8. PairDownloader(WifiDevice *device);
  9. ~PairDownloader();
  10. void OnInit(DownloadToken token);
  11. void OnData(DownloadToken token, void *data, size_t datalen);
  12. void OnCancel(DownloadToken token);
  13. void OnError(DownloadToken token, int error);
  14. void OnFinish(DownloadToken token);
  15. private:
  16. WifiDevice *device;
  17. };
  18. bool IsPaired(uint64_t id);
  19. void SetPaired(uint64_t id, bool status);