messagehandler.h
/*
Copyright (c) 2004-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 MESSAGEHANDLER_H__
#define MESSAGEHANDLER_H__
#include "macros.h"
namespace gloox
{
class MessageSession;
class Message;
class GLOOX_API MessageHandler
{
public:
virtual ~MessageHandler() {}
virtual void handleMessage( const Message& msg, MessageSession* session = 0 ) = 0;
};
}
#endif // MESSAGEHANDLER_H__
gloox::MessageHandler
A virtual interface which can be reimplemented to receive incoming message stanzas.
Definition messagehandler.h:37
gloox::MessageHandler::~MessageHandler
virtual ~MessageHandler()
Definition messagehandler.h:42
gloox::MessageHandler::handleMessage
virtual void handleMessage(const Message &msg, MessageSession *session=0)=0
gloox::MessageSession
An abstraction of a message session between any two entities.
Definition messagesession.h:146
gloox::Message
An abstraction of a message stanza.
Definition message.h:34
gloox
The namespace for the gloox library.
Definition adhoc.cpp:28