gloox
1.1-svn
|
#include <jingledtmf.h>
Public Member Functions | |
DTMF (const std::string &code, int volume, int duration=100) | |
DTMF (const Tag *tag) | |
virtual | ~DTMF () |
const std::string & | code () const |
int | volume () const |
int | duration () const |
virtual const std::string & | filterString () const |
virtual Tag * | tag () const |
virtual DTMF * | clone () const |
Public Member Functions inherited from Plugin | |
virtual | ~Plugin () |
An abstraction of a Jingle DTMF element, of XEP-0181.
Definition at line 36 of file jingledtmf.h.
DTMF | ( | const std::string & | code, |
int | volume, | ||
int | duration = 100 |
||
) |
Constructs a new DTMF object.
code | The DTMF code to generate. |
volume | The volume, ranges from 0 to -63 dBm0. Thus, a larger value denotes a lower volume. |
duration | The duration if the tone, in ms, defaults to 100ms. |
Definition at line 26 of file jingledtmf.cpp.
Constructs a new DTMF object from the given Tag.
tag | The Tag to parse. |
Definition at line 31 of file jingledtmf.cpp.
|
inlinevirtual |
Virtual destructor.
Definition at line 57 of file jingledtmf.h.
|
inlinevirtual |
Creates an identical deep copy of the current instance.
Implements Plugin.
Definition at line 84 of file jingledtmf.h.
|
inline |
Returns the DTMF tone to generate.
Definition at line 63 of file jingledtmf.h.
|
inline |
Returns the duration of the tone.
Definition at line 75 of file jingledtmf.h.
|
virtual |
Returns an XPath expression that describes a path to child elements of a jingle element that a plugin handles.
Implements Plugin.
Definition at line 42 of file jingledtmf.cpp.
|
virtual |
Returns a Tag representation of the plugin.
Implements Plugin.
Definition at line 48 of file jingledtmf.cpp.
|
inline |
Returns the volume, ranges from 0 to -63 dBm0. Thus, a larger value denotes a lower volume.
Definition at line 69 of file jingledtmf.h.