lastactivityhandler.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 LASTACTIVITYHANDLER_H__
#define LASTACTIVITYHANDLER_H__
#include "gloox.h"
#include "jid.h"
namespace gloox
{
class GLOOX_API LastActivityHandler
{
public:
virtual ~LastActivityHandler() {}
virtual void handleLastActivityResult( const JID& jid, long seconds, const std::string& status ) = 0;
virtual void handleLastActivityError( const JID& jid, StanzaError error ) = 0;
};
}
#endif // LASTACTIVITYHANDLER_H__
gloox::JID
An abstraction of a JID.
Definition jid.h:31
gloox::LastActivityHandler
This is an virtual interface that, once reimplemented, allows to receive the results of Last-Activity...
Definition lastactivityhandler.h:31
gloox::LastActivityHandler::~LastActivityHandler
virtual ~LastActivityHandler()
Definition lastactivityhandler.h:36
gloox::LastActivityHandler::handleLastActivityResult
virtual void handleLastActivityResult(const JID &jid, long seconds, const std::string &status)=0
gloox::LastActivityHandler::handleLastActivityError
virtual void handleLastActivityError(const JID &jid, StanzaError error)=0
gloox
The namespace for the gloox library.
Definition adhoc.cpp:28
gloox::StanzaError
StanzaError
Definition gloox.h:872