comparison Plugins/Engine/OrthancPlugins.h @ 1741:06addfcd1d4c

OrthancStarted and OrthancStopped events in plugins
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 23 Oct 2015 16:49:17 +0200
parents 5e99a70b0635
children 8790488ae98b
comparison
equal deleted inserted replaced
1740:5e99a70b0635 1741:06addfcd1d4c
128 void DrawText(const void* parameters); 128 void DrawText(const void* parameters);
129 129
130 void ApplyDicomToJson(_OrthancPluginService service, 130 void ApplyDicomToJson(_OrthancPluginService service,
131 const void* parameters); 131 const void* parameters);
132 132
133 void SignalChangeInternal(OrthancPluginChangeType changeType,
134 OrthancPluginResourceType resourceType,
135 const char* resource);
136
133 public: 137 public:
134 OrthancPlugins(); 138 OrthancPlugins();
135 139
136 virtual ~OrthancPlugins(); 140 virtual ~OrthancPlugins();
137 141
184 PluginsManager& GetManager(); 188 PluginsManager& GetManager();
185 189
186 const PluginsManager& GetManager() const; 190 const PluginsManager& GetManager() const;
187 191
188 PluginsErrorDictionary& GetErrorDictionary(); 192 PluginsErrorDictionary& GetErrorDictionary();
193
194 void SignalOrthancStarted()
195 {
196 SignalChangeInternal(OrthancPluginChangeType_OrthancStarted, OrthancPluginResourceType_None, NULL);
197 }
198
199 void SignalOrthancStopped()
200 {
201 SignalChangeInternal(OrthancPluginChangeType_OrthancStopped, OrthancPluginResourceType_None, NULL);
202 }
189 }; 203 };
190 } 204 }
191 205
192 #endif 206 #endif