Salome HOME
NRI : Add Loader.
[modules/kernel.git] / src / Notification / NOTIFICATION_Supplier.hxx
1 //  File      : NOTIFICATION_Supplier.hxx
2 //  Created   : 1 Avril 2002
3 //  Author    : Laurent DADA / Francis KLOSS
4 //  Project   : SALOME
5 //  Module    : Notification Supplier
6 //  Copyright : CEA / Open CASCADE
7
8 #ifndef NOTIFICATION_Supplier_HXX
9 #define NOTIFICATION_Supplier_HXX
10
11 class NOTIFICATION_Supplier: public POA_CosNotifyComm::StructuredPushSupplier {
12   public:
13     NOTIFICATION_Supplier(const char* instanceName, bool notif);
14     virtual ~NOTIFICATION_Supplier();
15     void Send(const char* graph, const char* node, const char* type, const char* message);
16
17   private:
18     void disconnect_structured_push_supplier();
19     void subscription_change(const CosN_EventTypeSeq& added, const CosN_EventTypeSeq& deled);
20
21     bool  _ok;
22     const char* _sender;
23     long  _counter;
24     CosNA_StructuredProxyPushConsumer_var proxy_consumer;
25     static long _stamp;
26 };
27
28 #endif