Hot Door CORE  0.7.1
Adobe® Illustrator® Plug-in Library
hdicoreInternetPOST.h
Go to the documentation of this file.
1 
7 #ifndef __HDI_CORE_INTERNET_POST__
8 #define __HDI_CORE_INTERNET_POST__
9 
10 #include <string>
11 
12 #include "hdicoreTypes.h"
13 
14 namespace hdi
15 {
16  namespace plugin
17  {
18  class InternetPOST;
19  }
20 
21  namespace core
22  {
23  class Callback;
24  class DictionaryPref;
25 
30  {
31  public:
48  const std::string& url_,
49  const DictionaryPref& data_,
50  const Callback& success_,
51  const Callback& failure_
52  );
53 
77  static InternetPOST* Async(
78  const std::string& url_,
79  const DictionaryPref& data_,
80  const Callback& success_,
81  const Callback& failure_
82  );
83 
89  virtual ~InternetPOST();
90 
98  virtual bool asynchronous() const;
99 
105  virtual void run();
106 
114  virtual bool running() const;
115 
129  virtual std::string content() const;
130 
141  virtual InternetError errorCode() const;
142 
155  virtual int32_t platformErrorCode() const;
156 
167  virtual std::string error() const;
168 
169 
170  private:
174  plugin::InternetPOST* __impl;
175 
181  InternetPOST();
182 
188  InternetPOST(const InternetPOST&);
189 
195  InternetPOST& operator=(const InternetPOST&);
196  };
197  }
198 }
199 
200 #endif
201 // __HDI_CORE_INTERNET_POST__
InternetError
Describes common HTTP error codes between platforms, for convenience.
Definition: hdicoreTypes.h:610
Acts as a dictionary-style container to store any other persistent data types, including arrays and d...
Definition: hdicoreDictionaryPref.h:55
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
Allows for the creation of simple HTTP(S) POST clients to post to, and acquire data from...
Definition: hdicoreInternetPOST.h:29