https://issues.shibboleth.net/jira/browse/SSPCPP-349
[shibboleth/cpp-sp.git] / shibsp / handler / LogoutHandler.h
index b9e2d06..02a4862 100644 (file)
 
 namespace shibsp {
 
+#ifndef SHIBSP_LITE
+    class SHIBSP_API LogoutEvent;
+#endif
+
 #if defined (_MSC_VER)
     #pragma warning( push )
     #pragma warning( disable : 4251 )
@@ -141,6 +145,22 @@ namespace shibsp {
             xmltooling::HTTPResponse& response,
             const char* type
             ) const;
+
+#ifndef SHIBSP_LITE
+        /**
+         * Creates a new LogoutEvent for the event log.
+         *
+         * @param application   the Application associated with the event
+         * @param request       the HTTP client request associated with the event, or nullptr
+         * @param session       the user session associated with the event, or nullptr
+         * @return  a fresh LogoutEvent, prepopulated by the input parameters, or nullptr if an error occurs
+         */
+        virtual LogoutEvent* newLogoutEvent(
+            const Application& application,
+            const xmltooling::HTTPRequest* request=nullptr,
+            const Session* session=nullptr
+            ) const;
+#endif
     };
 
 #if defined (_MSC_VER)