1 #ifndef __CTAUAPUSHNANAGER_H__
2 #define __CTAUAPUSHMANAGER_H__
4 #include "uabasenodes.h"
6 #include "servermanager.h"
11 #include "../uaclient/uasession.h"
13 class Callback:
public UaClientSdk::UaSessionCallback,
14 public UaClientSdk::UaSubscriptionCallback {
26 UaClientSdk::UaClient::ServerStatus serverStatus) {
27 printf(
"-- Event connectionStatusChanged ----------------------\n");
28 printf(
"clientConnectionId %d \n", clientConnectionId);
29 printf(
"serverStatus %d \n", serverStatus);
30 printf(
"-------------------------------------------------------\n");
35 virtual void dataChange(OpcUa_UInt32 clientSubscriptionHandle,
36 const UaDataNotifications& dataNotifications,
37 const UaDiagnosticInfos& ) {
38 printf(
"-- Event dataChange -----------------------------------\n");
39 printf(
"-------------------------------------------------------\n");
51 virtual void newEvents(OpcUa_UInt32 clientSubscriptionHandle,
52 UaEventFieldLists& eventFieldList) {
53 printf(
"-- Event newEvents ------------------------------------\n");
54 printf(
"-------------------------------------------------------\n");
60 class ControllerObject;
77 UaStatus
connect(UaString& sUrl,
78 UaClientSdk::SessionSecurityInfo& sessionSecurityInfo);
81 void startUp(ServerManager* pServerManager, std::string url);
93 std::list<std::string> listPush;
96 UaClientSdk::UaSession* m_pSession;
97 std::string m_dataIdDescriptorRef;
101 OpcUa_Boolean m_stop;
102 OpcUa_Boolean m_pause;
105 ServerManager* m_pServerManager;