//=============================================================================
// Copyright (c) 2001-2021 FLIR Systems, Inc. All Rights Reserved.
//
// This software is the confidential and proprietary information of FLIR
// Integrated Imaging Solutions, Inc. ("Confidential Information"). You
// shall not disclose such Confidential Information and shall use it only in
// accordance with the terms of the license agreement you entered into
// with FLIR Integrated Imaging Solutions, Inc. (FLIR).
//
// FLIR MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
// SOFTWARE, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
// PURPOSE, OR NON-INFRINGEMENT. FLIR SHALL NOT BE LIABLE FOR ANY DAMAGES
// SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
// THIS SOFTWARE OR ITS DERIVATIVES.
//=============================================================================

#ifndef FLIR_SPINNAKER_SYSTEM_EVENT_HANDLER_H
#define FLIR_SPINNAKER_SYSTEM_EVENT_HANDLER_H

#include "Interface/ISystemEventHandler.h"

namespace Spinnaker
{
    /**
     * @defgroup SpinnakerEventClasses Spinnaker EventHandler Classes
     */
    /*@{*/

    /**
     *  @defgroup SystemEventHandler_h SystemEventHandler Class
     */
    /*@{*/

    /**
     * @brief A handler to interface arrival and removal events on the system. Note that only GEV interface arrivals and
     * removals are currently handled.
     */

    class SPINNAKER_API SystemEventHandler : public ISystemEventHandler
    {
      public:
        /**
         * Default constructor.
         */
        SystemEventHandler();

        /**
         * Virtual destructor.
         */
        virtual ~SystemEventHandler();

        /**
         * Interface arrival event callback. Note that only GEV interface arrivals are currently handled.
         *
         * @param interfaceID The ID of the arrived interface
         */
        virtual void OnInterfaceArrival(std::string interfaceID) = 0;

        /**
         * Interface removal event callback. Note that only GEV interface removals are currently handled.
         *
         * @param interfaceID The ID of the removed interface
         */
        virtual void OnInterfaceRemoval(std::string interfaceID) = 0;

      protected:
        /**
         * Assignment operator.
         */
        SystemEventHandler& operator=(const SystemEventHandler&);
    };
    /*@}*/

    /*@}*/
} // namespace Spinnaker

#endif // FLIR_SPINNAKER_SYSTEM_EVENT_HANDLER_H