flexoffhandler.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 FLEXOFFHANDLER_H__
#define FLEXOFFHANDLER_H__
#include "disco.h"
#include "gloox.h"
namespace gloox
{
enum FlexibleOfflineResult
{
FomrRemoveSuccess,
FomrRequestSuccess,
FomrForbidden,
FomrItemNotFound,
FomrUnknownError
};
class GLOOX_API FlexibleOfflineHandler
{
public:
virtual ~FlexibleOfflineHandler() {}
virtual void handleFlexibleOfflineSupport( bool support ) = 0;
virtual void handleFlexibleOfflineMsgNum( int num ) = 0;
virtual void handleFlexibleOfflineMessageHeaders( const Disco::ItemList& headers ) = 0;
virtual void handleFlexibleOfflineResult( FlexibleOfflineResult foResult ) = 0;
};
}
#endif // FLEXOFFHANDLER_H__
gloox::Disco::ItemList
std::list< Item * > ItemList
Definition disco.h:266
gloox::FlexibleOfflineHandler
Implementation of this virtual interface allows for retrieval of offline messages following XEP-0030.
Definition flexoffhandler.h:44
gloox::FlexibleOfflineHandler::handleFlexibleOfflineResult
virtual void handleFlexibleOfflineResult(FlexibleOfflineResult foResult)=0
gloox::FlexibleOfflineHandler::handleFlexibleOfflineMsgNum
virtual void handleFlexibleOfflineMsgNum(int num)=0
gloox::FlexibleOfflineHandler::~FlexibleOfflineHandler
virtual ~FlexibleOfflineHandler()
Definition flexoffhandler.h:49
gloox::FlexibleOfflineHandler::handleFlexibleOfflineSupport
virtual void handleFlexibleOfflineSupport(bool support)=0
gloox::FlexibleOfflineHandler::handleFlexibleOfflineMessageHeaders
virtual void handleFlexibleOfflineMessageHeaders(const Disco::ItemList &headers)=0
gloox
The namespace for the gloox library.
Definition adhoc.cpp:28
gloox::FlexibleOfflineResult
FlexibleOfflineResult
Definition flexoffhandler.h:27
gloox::FomrItemNotFound
@ FomrItemNotFound
Definition flexoffhandler.h:32
gloox::FomrUnknownError
@ FomrUnknownError
Definition flexoffhandler.h:33
gloox::FomrForbidden
@ FomrForbidden
Definition flexoffhandler.h:30
gloox::FomrRequestSuccess
@ FomrRequestSuccess
Definition flexoffhandler.h:29
gloox::FomrRemoveSuccess
@ FomrRemoveSuccess
Definition flexoffhandler.h:28