comparison Platforms/Generic/WebServiceGetCommand.h @ 299:3897f9f28cfa am-callable-and-promise

backup work in progress: updated messaging framework with ICallable
author am@osimis.io
date Fri, 14 Sep 2018 16:44:01 +0200
parents 87376a645ee1
children b4abaeb783b1
comparison
equal deleted inserted replaced
298:f58bfb7bbcc9 299:3897f9f28cfa
11 * 11 *
12 * This program is distributed in the hope that it will be useful, but 12 * This program is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of 13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Affero General Public License for more details. 15 * Affero General Public License for more details.
16 * 16 *
17 * You should have received a copy of the GNU Affero General Public License 17 * You should have received a copy of the GNU Affero General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>. 18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 **/ 19 **/
20 20
21 21
36 Orthanc::IDynamicObject* payload /* takes ownership */, 36 Orthanc::IDynamicObject* payload /* takes ownership */,
37 NativeStoneApplicationContext& context); 37 NativeStoneApplicationContext& context);
38 38
39 virtual void Execute(); 39 virtual void Execute();
40 }; 40 };
41
42 class NewWebServiceGetCommand : public NewWebServiceCommandBase
43 {
44 public:
45 NewWebServiceGetCommand(MessageBroker& broker,
46 MessageHandler<IWebService::NewHttpRequestSuccessMessage>* successCallback, // takes ownership
47 MessageHandler<IWebService::NewHttpRequestErrorMessage>* failureCallback, // takes ownership
48 const Orthanc::WebServiceParameters& parameters,
49 const std::string& uri,
50 const IWebService::Headers& headers,
51 Orthanc::IDynamicObject* payload /* takes ownership */,
52 NativeStoneApplicationContext& context);
53
54 virtual void Execute();
55 };
56
41 } 57 }