gloox
1.0.16
|
#include <jinglefiletransfer.h>
Classes | |
struct | File |
Public Types | |
enum | Type { Offer, Request, Checksum, Abort, Received, Invalid } |
typedef std::list< File > | FileList |
Public Member Functions | |
FileTransfer (Type type, const FileList &files) | |
FileTransfer (const Tag *tag=0) | |
virtual | ~FileTransfer () |
Type | type () const |
const FileList & | files () const |
virtual const StringList | features () const |
virtual const std::string & | filterString () const |
virtual Tag * | tag () const |
virtual Plugin * | newInstance (const Tag *tag) const |
virtual Plugin * | clone () const |
Public Member Functions inherited from Plugin | |
Plugin (JinglePluginType type) | |
virtual | ~Plugin () |
void | addPlugin (const Plugin *plugin) |
const Plugin * | findPlugin (int type) const |
template<class T > | |
const T * | findPlugin (int type) const |
const PluginList & | plugins () const |
JinglePluginType | pluginType () const |
An abstraction of the signaling part of Jingle File Transfer (XEP-0234), implemented as a Jingle::Plugin.
XEP Version: 0.15
Definition at line 37 of file jinglefiletransfer.h.
A list of file information structs.
Definition at line 70 of file jinglefiletransfer.h.
enum Type |
The type of a FileTransfer instance.
Definition at line 44 of file jinglefiletransfer.h.
FileTransfer | ( | Type | type, |
const FileList & | files | ||
) |
Creates a new instance.
type | The type of the object. |
files | A list of files to offer, request, acknowledge, ... Most of the time this list will contain only one file. |
Definition at line 36 of file jinglefiletransfer.cpp.
FileTransfer | ( | const Tag * | tag = 0 | ) |
Creates a new instance from the given Tag
tag | The Tag to parse. |
Definition at line 41 of file jinglefiletransfer.cpp.
|
inlinevirtual |
Virtual destructor.
Definition at line 89 of file jinglefiletransfer.h.
|
inlinevirtual |
Creates an identical deep copy of the current instance.
Implements Plugin.
Definition at line 116 of file jinglefiletransfer.h.
|
virtual |
Reimplement this function if your plugin wants to add anything to the list of features announced via Disco.
Reimplemented from Plugin.
Definition at line 95 of file jinglefiletransfer.cpp.
|
inline |
Returns a list of embedded file infos.
Definition at line 101 of file jinglefiletransfer.h.
|
virtual |
Returns an XPath expression that describes a path to child elements of a jingle element that the plugin handles. The result should be a single Tag.
Implements Plugin.
Definition at line 102 of file jinglefiletransfer.cpp.
Returns a new instance of the same plugin type, based on the Tag provided.
tag | The Tag to parse and create a new instance from. |
Implements Plugin.
Definition at line 111 of file jinglefiletransfer.cpp.
|
virtual |
Returns a Tag representation of the plugin.
Implements Plugin.
Definition at line 116 of file jinglefiletransfer.cpp.
|
inline |