messageeventhandler.h
/*
Copyright (c) 2005-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 MESSAGEEVENTHANDLER_H__
#define MESSAGEEVENTHANDLER_H__
#include "gloox.h"
namespace gloox
{
class JID;
class GLOOX_API MessageEventHandler
{
public:
virtual ~MessageEventHandler() {}
virtual void handleMessageEvent( const JID& from, MessageEventType event ) = 0;
};
}
#endif // MESSAGEEVENTHANDLER_H__
gloox::JID
An abstraction of a JID.
Definition jid.h:31
gloox::MessageEventHandler
A virtual interface that enables an object to be notified about Message Events (XEP-0022).
Definition messageeventhandler.h:32
gloox::MessageEventHandler::~MessageEventHandler
virtual ~MessageEventHandler()
Definition messageeventhandler.h:37
gloox::MessageEventHandler::handleMessageEvent
virtual void handleMessageEvent(const JID &from, MessageEventType event)=0
gloox
The namespace for the gloox library.
Definition adhoc.cpp:28
gloox::MessageEventType
MessageEventType
Definition gloox.h:1090