ws_packageprocessService.hpp 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /*##############################################################################
  2. HPCC SYSTEMS software Copyright (C) 2012 HPCC Systems.
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. ############################################################################## */
  13. #ifndef _ESPWIZ_ws_packageprocess_HPP__
  14. #define _ESPWIZ_ws_packageprocess_HPP__
  15. #include "ws_packageprocess_esp.ipp"
  16. class CWsPackageProcessSoapBindingEx : public CWsPackageProcessSoapBinding
  17. {
  18. public:
  19. CWsPackageProcessSoapBindingEx(IPropertyTree *cfg, const char *name, const char *process, http_soap_log_level llevel=hsl_none) : CWsPackageProcessSoapBinding(cfg, name, process, llevel)
  20. {
  21. }
  22. virtual void getNavigationData(IEspContext &context, IPropertyTree & data)
  23. {
  24. //Add navigation link here
  25. }
  26. };
  27. class CWsPackageProcessEx : public CWsPackageProcess
  28. {
  29. public:
  30. IMPLEMENT_IINTERFACE;
  31. virtual ~CWsPackageProcessEx(){};
  32. virtual void init(IPropertyTree *cfg, const char *process, const char *service);
  33. virtual bool onEcho(IEspContext &context, IEspEchoRequest &req, IEspEchoResponse &resp);
  34. virtual bool onAddPackage(IEspContext &context, IEspAddPackageRequest &req, IEspAddPackageResponse &resp);
  35. virtual bool onDeletePackage(IEspContext &context, IEspDeletePackageRequest &req, IEspDeletePackageResponse &resp);
  36. virtual bool onActivatePackage(IEspContext &context, IEspActivatePackageRequest &req, IEspActivatePackageResponse &resp);
  37. virtual bool onDeActivatePackage(IEspContext &context, IEspDeActivatePackageRequest &req, IEspDeActivatePackageResponse &resp);
  38. virtual bool onListPackage(IEspContext &context, IEspListPackageRequest &req, IEspListPackageResponse &resp);
  39. virtual bool onGetPackage(IEspContext &context, IEspGetPackageRequest &req, IEspGetPackageResponse &resp);
  40. virtual bool onValidatePackage(IEspContext &context, IEspValidatePackageRequest &req, IEspValidatePackageResponse &resp);
  41. };
  42. #endif //_ESPWIZ_ws_packageprocess_HPP__