Hot Door CORE  0.7.1
Adobe® Illustrator® Plug-in Library
hdicoreInternetGET.h
Go to the documentation of this file.
1 
7 #ifndef __HDI_CORE_INTERNET_GET__
8 #define __HDI_CORE_INTERNET_GET__
9 
10 #include <string>
11 
12 #include "hdicoreTypes.h"
13 
14 namespace hdi
15 {
16  namespace plugin
17  {
18  class InternetGET;
19  }
20 
21  namespace core
22  {
23  class Callback;
24 
29  {
30  public:
44  const std::string& url_,
45  const Callback& success_,
46  const Callback& failure_
47  );
48 
68  static InternetGET* Async(
69  const std::string& url_,
70  const Callback& success_,
71  const Callback& failure_
72  );
73 
79  virtual ~InternetGET();
80 
88  virtual bool asynchronous() const;
89 
95  virtual void run();
96 
104  virtual bool running() const;
105 
119  virtual std::string content() const;
120 
131  virtual InternetError errorCode() const;
132 
145  virtual int32_t platformErrorCode() const;
146 
157  virtual std::string error() const;
158 
159 
160  private:
164  plugin::InternetGET* __impl;
165 
171  InternetGET();
172 
178  InternetGET(const InternetGET&);
179 
185  InternetGET& operator=(const InternetGET&);
186  };
187  }
188 }
189 
190 #endif
191 // __HDI_CORE_INTERNET_GET__
InternetError
Describes common HTTP error codes between platforms, for convenience.
Definition: hdicoreTypes.h:610
Allows for the creation of simple HTTP(S) GET clients to acquire data from a given URL...
Definition: hdicoreInternetGET.h:28
Base class for templated __Callback class.
Definition: hdicoreCallback.h:67
Header file for a wide variety of necessary typedefs, enums, and forwards declarations.
Definition: hdicoreaiArray.h:12