You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

141 lines
8.6 KiB

7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. /* soapPullPointSubscriptionBindingService.h
  2. Generated by gSOAP 2.8.17r from onvif.h
  3. Copyright(C) 2000-2013, Robert van Engelen, Genivia Inc. All Rights Reserved.
  4. The generated code is released under one of the following licenses:
  5. GPL or Genivia's license for commercial use.
  6. This program is released under the GPL with the additional exemption that
  7. compiling, linking, and/or using OpenSSL is allowed.
  8. */
  9. #ifndef soapPullPointSubscriptionBindingService_H
  10. #define soapPullPointSubscriptionBindingService_H
  11. #include "soapH.h"
  12. class SOAP_CMAC PullPointSubscriptionBindingService : public soap
  13. { public:
  14. /// Constructor
  15. PullPointSubscriptionBindingService();
  16. /// Construct from another engine state
  17. PullPointSubscriptionBindingService(const struct soap&);
  18. /// Constructor with engine input+output mode control
  19. PullPointSubscriptionBindingService(soap_mode iomode);
  20. /// Constructor with engine input and output mode control
  21. PullPointSubscriptionBindingService(soap_mode imode, soap_mode omode);
  22. /// Destructor, also frees all deserialized data
  23. virtual ~PullPointSubscriptionBindingService();
  24. /// Delete all deserialized data (with soap_destroy and soap_end)
  25. virtual void destroy();
  26. /// Delete all deserialized data and reset to defaults
  27. virtual void reset();
  28. /// Initializer used by constructor
  29. virtual void PullPointSubscriptionBindingService_init(soap_mode imode, soap_mode omode);
  30. /// Create a copy
  31. virtual PullPointSubscriptionBindingService *copy() SOAP_PURE_VIRTUAL;
  32. /// Close connection (normally automatic)
  33. virtual int soap_close_socket();
  34. /// Force close connection (can kill a thread blocked on IO)
  35. virtual int soap_force_close_socket();
  36. /// Return sender-related fault to sender
  37. virtual int soap_senderfault(const char *string, const char *detailXML);
  38. /// Return sender-related fault with SOAP 1.2 subcode to sender
  39. virtual int soap_senderfault(const char *subcodeQName, const char *string, const char *detailXML);
  40. /// Return receiver-related fault to sender
  41. virtual int soap_receiverfault(const char *string, const char *detailXML);
  42. /// Return receiver-related fault with SOAP 1.2 subcode to sender
  43. virtual int soap_receiverfault(const char *subcodeQName, const char *string, const char *detailXML);
  44. /// Print fault
  45. virtual void soap_print_fault(FILE*);
  46. #ifndef WITH_LEAN
  47. /// Print fault to stream
  48. #ifndef WITH_COMPAT
  49. virtual void soap_stream_fault(std::ostream&);
  50. #endif
  51. /// Put fault into buffer
  52. virtual char *soap_sprint_fault(char *buf, size_t len);
  53. #endif
  54. /// Disables and removes SOAP Header from message
  55. virtual void soap_noheader();
  56. /// Put SOAP Header in message
  57. virtual void soap_header(struct _wsse__Security *wsse__Security, char *wsa__MessageID, struct wsa__Relationship *wsa__RelatesTo, struct wsa__EndpointReferenceType *wsa__From, struct wsa__EndpointReferenceType *wsa__ReplyTo, struct wsa__EndpointReferenceType *wsa__FaultTo, char *wsa__To, char *wsa__Action, struct wsdd__AppSequenceType *wsdd__AppSequence, char *wsa5__MessageID, struct wsa5__RelatesToType *wsa5__RelatesTo, struct wsa5__EndpointReferenceType *wsa5__From, struct wsa5__EndpointReferenceType *wsa5__ReplyTo, struct wsa5__EndpointReferenceType *wsa5__FaultTo, char *wsa5__To, char *wsa5__Action, struct chan__ChannelInstanceType *chan__ChannelInstance);
  58. /// Get SOAP Header structure (NULL when absent)
  59. virtual const SOAP_ENV__Header *soap_header();
  60. /// Run simple single-thread iterative service on port until a connection error occurs (returns error code or SOAP_OK), use this->bind_flag = SO_REUSEADDR to rebind for a rerun
  61. virtual int run(int port);
  62. /// Bind service to port (returns master socket or SOAP_INVALID_SOCKET)
  63. virtual SOAP_SOCKET bind(const char *host, int port, int backlog);
  64. /// Accept next request (returns socket or SOAP_INVALID_SOCKET)
  65. virtual SOAP_SOCKET accept();
  66. #if defined(WITH_OPENSSL) || defined(WITH_GNUTLS)
  67. /// Then accept SSL handshake, when SSL is used
  68. virtual int ssl_accept();
  69. #endif
  70. /// Serve this request (returns error code or SOAP_OK)
  71. virtual int serve();
  72. /// Used by serve() to dispatch a request (returns error code or SOAP_OK)
  73. virtual int dispatch();
  74. ///
  75. /// Service operations (you should define these):
  76. /// Note: compile with -DWITH_PURE_VIRTUAL for pure virtual methods
  77. ///
  78. /// Web service operation 'PullMessages' (returns error code or SOAP_OK)
  79. virtual int PullMessages(_tev__PullMessages *tev__PullMessages, _tev__PullMessagesResponse *tev__PullMessagesResponse) SOAP_PURE_VIRTUAL;
  80. /// Web service operation 'Seek' (returns error code or SOAP_OK)
  81. virtual int Seek(_tev__Seek *tev__Seek, _tev__SeekResponse *tev__SeekResponse) SOAP_PURE_VIRTUAL;
  82. /// Web service operation 'SetSynchronizationPoint' (returns error code or SOAP_OK)
  83. virtual int SetSynchronizationPoint(_tev__SetSynchronizationPoint *tev__SetSynchronizationPoint, _tev__SetSynchronizationPointResponse *tev__SetSynchronizationPointResponse) SOAP_PURE_VIRTUAL;
  84. /// Web service operation 'GetServiceCapabilities' (returns error code or SOAP_OK)
  85. virtual int GetServiceCapabilities(_tev__GetServiceCapabilities *tev__GetServiceCapabilities, _tev__GetServiceCapabilitiesResponse *tev__GetServiceCapabilitiesResponse) SOAP_PURE_VIRTUAL;
  86. /// Web service operation 'CreatePullPointSubscription' (returns error code or SOAP_OK)
  87. virtual int CreatePullPointSubscription(_tev__CreatePullPointSubscription *tev__CreatePullPointSubscription, _tev__CreatePullPointSubscriptionResponse *tev__CreatePullPointSubscriptionResponse) SOAP_PURE_VIRTUAL;
  88. /// Web service operation 'GetEventProperties' (returns error code or SOAP_OK)
  89. virtual int GetEventProperties(_tev__GetEventProperties *tev__GetEventProperties, _tev__GetEventPropertiesResponse *tev__GetEventPropertiesResponse) SOAP_PURE_VIRTUAL;
  90. /// Web service operation 'Renew' (returns error code or SOAP_OK)
  91. virtual int Renew(_wsnt__Renew *wsnt__Renew, _wsnt__RenewResponse *wsnt__RenewResponse) SOAP_PURE_VIRTUAL;
  92. /// Web service operation 'Unsubscribe' (returns error code or SOAP_OK)
  93. virtual int Unsubscribe(_wsnt__Unsubscribe *wsnt__Unsubscribe, _wsnt__UnsubscribeResponse *wsnt__UnsubscribeResponse) SOAP_PURE_VIRTUAL;
  94. /// Web service operation 'Subscribe' (returns error code or SOAP_OK)
  95. virtual int Subscribe(_wsnt__Subscribe *wsnt__Subscribe, _wsnt__SubscribeResponse *wsnt__SubscribeResponse) SOAP_PURE_VIRTUAL;
  96. /// Web service operation 'GetCurrentMessage' (returns error code or SOAP_OK)
  97. virtual int GetCurrentMessage(_wsnt__GetCurrentMessage *wsnt__GetCurrentMessage, _wsnt__GetCurrentMessageResponse *wsnt__GetCurrentMessageResponse) SOAP_PURE_VIRTUAL;
  98. /// Web service one-way operation 'Notify' (return error code, SOAP_OK (no response), or send_Notify_empty_response())
  99. virtual int Notify(_wsnt__Notify *wsnt__Notify) SOAP_PURE_VIRTUAL;
  100. virtual int send_Notify_empty_response(int httpcode) { return soap_send_empty_response(this, httpcode); }
  101. /// Web service operation 'GetMessages' (returns error code or SOAP_OK)
  102. virtual int GetMessages(_wsnt__GetMessages *wsnt__GetMessages, _wsnt__GetMessagesResponse *wsnt__GetMessagesResponse) SOAP_PURE_VIRTUAL;
  103. /// Web service operation 'DestroyPullPoint' (returns error code or SOAP_OK)
  104. virtual int DestroyPullPoint(_wsnt__DestroyPullPoint *wsnt__DestroyPullPoint, _wsnt__DestroyPullPointResponse *wsnt__DestroyPullPointResponse) SOAP_PURE_VIRTUAL;
  105. /// Web service one-way operation 'Notify' (return error code, SOAP_OK (no response), or send_Notify_empty_response())
  106. virtual int Notify_(_wsnt__Notify *wsnt__Notify) SOAP_PURE_VIRTUAL;
  107. virtual int send_Notify__empty_response(int httpcode) { return soap_send_empty_response(this, httpcode); }
  108. /// Web service operation 'CreatePullPoint' (returns error code or SOAP_OK)
  109. virtual int CreatePullPoint(_wsnt__CreatePullPoint *wsnt__CreatePullPoint, _wsnt__CreatePullPointResponse *wsnt__CreatePullPointResponse) SOAP_PURE_VIRTUAL;
  110. /// Web service operation 'Renew' (returns error code or SOAP_OK)
  111. virtual int Renew_(_wsnt__Renew *wsnt__Renew, _wsnt__RenewResponse *wsnt__RenewResponse) SOAP_PURE_VIRTUAL;
  112. /// Web service operation 'Unsubscribe' (returns error code or SOAP_OK)
  113. virtual int Unsubscribe_(_wsnt__Unsubscribe *wsnt__Unsubscribe, _wsnt__UnsubscribeResponse *wsnt__UnsubscribeResponse) SOAP_PURE_VIRTUAL;
  114. /// Web service operation 'PauseSubscription' (returns error code or SOAP_OK)
  115. virtual int PauseSubscription(_wsnt__PauseSubscription *wsnt__PauseSubscription, _wsnt__PauseSubscriptionResponse *wsnt__PauseSubscriptionResponse) SOAP_PURE_VIRTUAL;
  116. /// Web service operation 'ResumeSubscription' (returns error code or SOAP_OK)
  117. virtual int ResumeSubscription(_wsnt__ResumeSubscription *wsnt__ResumeSubscription, _wsnt__ResumeSubscriptionResponse *wsnt__ResumeSubscriptionResponse) SOAP_PURE_VIRTUAL;
  118. };
  119. #endif