iqhandler.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 IQHANDLER_H__
#define IQHANDLER_H__
#include "iq.h"
namespace gloox
{
class GLOOX_API IqHandler
{
public:
virtual ~IqHandler() {}
virtual bool handleIq( const IQ& iq ) = 0;
virtual void handleIqID( const IQ& iq, int context ) = 0;
};
}
#endif // IQHANDLER_H__
gloox::IQ
An abstraction of an IQ stanza.
Definition iq.h:34
gloox::IqHandler
A virtual interface which can be reimplemented to receive IQ stanzas.
Definition iqhandler.h:32
gloox::IqHandler::handleIqID
virtual void handleIqID(const IQ &iq, int context)=0
gloox::IqHandler::handleIq
virtual bool handleIq(const IQ &iq)=0
gloox::IqHandler::~IqHandler
virtual ~IqHandler()
Definition iqhandler.h:37
gloox
The namespace for the gloox library.
Definition adhoc.cpp:28