eventhandler.h
/*
Copyright (c) 2008-2023 by Jakob Schröter <js@camaya.net>
This file is part of the gloox library. http://camaya.net/gloox
This software is distributed under a license. The full license
agreement can be found in the file LICENSE in this distribution.
This software may not be copied, modified, sold or distributed
other than expressed in the named license agreement.
This software is distributed without any warranty.
*/
#ifndef EVENTHANDLER_H__
#define EVENTHANDLER_H__
namespace gloox
{
class Event;
class EventHandler
{
public:
virtual ~EventHandler() {}
virtual void handleEvent( const Event& event ) = 0;
};
}
#endif // EVENTHANDLER_H__
gloox::EventHandler
An base class for event handlers.
Definition eventhandler.h:29
gloox::EventHandler::handleEvent
virtual void handleEvent(const Event &event)=0
gloox::EventHandler::~EventHandler
virtual ~EventHandler()
Definition eventhandler.h:35
gloox::Event
A base class for events.
Definition event.h:29
gloox
The namespace for the gloox library.
Definition adhoc.cpp:28