gloox  1.1-svn
Public Types | Public Member Functions | List of all members
Content Class Reference

#include <jinglecontent.h>

Inheritance diagram for Content:
Inheritance graph
[legend]

Public Types

enum  Creator { CInitiator, CResponder, InvalidCreator }
enum  Senders { SInitiator, SResponder, SBoth, InvalidSender }

Public Member Functions

 Content (Description *desc, Transport *trans, const std::string &name, Creator creator=CInitiator, Senders senders=SBoth, const std::string &disposition=EmptyString)
virtual ~Content ()
virtual const std::string & filterString () const
virtual Tagtag () const
virtual Pluginclone () const
- Public Member Functions inherited from Plugin
virtual ~Plugin ()

Detailed Description

An abstraction of a Jingle Content Type.

You should not need to use this class directly. See Jingle::Session for more info on Jingle.

Author
Jakob Schroeter js@ca.nosp@m.maya.nosp@m..net
Since
1.1

Definition at line 41 of file jinglecontent.h.

Member Enumeration Documentation

enum Creator

The original creator of the content type.

Enumerator:
CInitiator 

The creator is the initiator of the session.

CResponder 

The creator is the responder.

InvalidCreator 

Invalid value.

Definition at line 47 of file jinglecontent.h.

enum Senders

The parties in the session that will be generating content.

Enumerator:
SInitiator 

The initiator sends content.

SResponder 

The responder sends content.

SBoth 

Both parties send content( default).

InvalidSender 

Invalid value.

Definition at line 57 of file jinglecontent.h.

Constructor & Destructor Documentation

Content ( Description desc,
Transport trans,
const std::string &  name,
Creator  creator = CInitiator,
Senders  senders = SBoth,
const std::string &  disposition = EmptyString 
)

Creates a new Content wrapper.

Definition at line 46 of file jinglecontent.cpp.

~Content ( )
virtual

Virtual destructor.

Definition at line 59 of file jinglecontent.cpp.

Member Function Documentation

Plugin * clone ( ) const
virtual

Creates an identical deep copy of the current instance.

Returns
An identical deep copy of the current instance.

Implements Plugin.

Definition at line 88 of file jinglecontent.cpp.

const std::string & filterString ( ) const
virtual

Returns an XPath expression that describes a path to child elements of a jingle element that a plugin handles.

Returns
The plugin's filter string.

Implements Plugin.

Definition at line 63 of file jinglecontent.cpp.

Tag * tag ( ) const
virtual

Returns a Tag representation of the plugin.

Returns
A Tag representation of the plugin.

Implements Plugin.

Definition at line 69 of file jinglecontent.cpp.


The documentation for this class was generated from the following files: