siprofilefthandler.h
/*
Copyright (c) 2007-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 SIPROFILEFTHANDLER_H__
#define SIPROFILEFTHANDLER_H__
#include "jid.h"
#include <string>
namespace gloox
{
class JID;
class IQ;
class Bytestream;
class GLOOX_API SIProfileFTHandler
{
public:
virtual ~SIProfileFTHandler() {}
virtual void handleFTRequest( const JID& from, const JID& to, const std::string& sid,
const std::string& name, long size, const std::string& hash,
const std::string& date, const std::string& mimetype,
const std::string& desc, int stypes ) = 0;
virtual void handleFTRequestError( const IQ& iq, const std::string& sid ) = 0;
virtual void handleFTBytestream( Bytestream* bs ) = 0;
virtual const std::string handleOOBRequestResult( const JID& from, const JID& to, const std::string& sid ) = 0;
};
}
#endif // SIPROFILEFTHANDLER_H__
gloox::Bytestream
An abstraction of a single bytestream.
Definition bytestream.h:37
gloox::IQ
An abstraction of an IQ stanza.
Definition iq.h:34
gloox::JID
An abstraction of a JID.
Definition jid.h:31
gloox::SIProfileFTHandler
An abstract base class to handle file transfer (FT) requests.
Definition siprofilefthandler.h:37
gloox::SIProfileFTHandler::handleFTRequestError
virtual void handleFTRequestError(const IQ &iq, const std::string &sid)=0
gloox::SIProfileFTHandler::handleFTBytestream
virtual void handleFTBytestream(Bytestream *bs)=0
gloox::SIProfileFTHandler::handleFTRequest
virtual void handleFTRequest(const JID &from, const JID &to, const std::string &sid, const std::string &name, long size, const std::string &hash, const std::string &date, const std::string &mimetype, const std::string &desc, int stypes)=0
gloox::SIProfileFTHandler::~SIProfileFTHandler
virtual ~SIProfileFTHandler()
Definition siprofilefthandler.h:43
gloox::SIProfileFTHandler::handleOOBRequestResult
virtual const std::string handleOOBRequestResult(const JID &from, const JID &to, const std::string &sid)=0
gloox
The namespace for the gloox library.
Definition adhoc.cpp:28