ppDownloadRequest.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. // Filename: ppDownloadRequest.h
  2. // Created by: drose (23Jun09)
  3. //
  4. ////////////////////////////////////////////////////////////////////
  5. //
  6. // PANDA 3D SOFTWARE
  7. // Copyright (c) Carnegie Mellon University. All rights reserved.
  8. //
  9. // All use of this software is subject to the terms of the revised BSD
  10. // license. You should have received a copy of this license along
  11. // with this source code in a file named "LICENSE."
  12. //
  13. ////////////////////////////////////////////////////////////////////
  14. #ifndef PPDOWNLOADREQUEST_H
  15. #define PPDOWNLOADREQUEST_H
  16. #include "nppanda3d_common.h"
  17. ////////////////////////////////////////////////////////////////////
  18. // Class : PPDownloadRequest
  19. // Description : An instance of this object is assigned as the
  20. // notifyData for URL requests, to help the plugin
  21. // associate streams with requests.
  22. ////////////////////////////////////////////////////////////////////
  23. class PPDownloadRequest {
  24. public:
  25. enum RequestType {
  26. RT_contents_file,
  27. RT_core_dll,
  28. RT_user,
  29. RT_instance_data
  30. };
  31. inline PPDownloadRequest(RequestType rtype, int user_id = 0);
  32. public:
  33. RequestType _rtype;
  34. int _user_id;
  35. // This is sent true when we have notified the plugin that the
  36. // stream is done.
  37. bool _notified_done;
  38. };
  39. #include "ppDownloadRequest.I"
  40. #endif