2
* jabberjinglecontent.h - A Jingle content.
4
* Copyright (c) 2008 by Detlev Casanova <detlev.casanova@gmail.com>
6
* Kopete (c) by the Kopete developers <kopete-devel@kde.org>
8
* *************************************************************************
10
* * This program is free software; you can redistribute it and/or modify *
11
* * it under the terms of the GNU General Public License as published by *
12
* * the Free Software Foundation; either version 2 of the License, or *
13
* * (at your option) any later version. *
15
* *************************************************************************
17
#ifndef JABBER_JINGLE_CONTENT
18
#define JABBER_JINGLE_CONTENT
22
#include <QDomElement>
29
class JabberJingleSession;
32
class JingleRtpSession;
34
class JabberJingleContent : public QObject
38
JabberJingleContent(JabberJingleSession* parent = 0, XMPP::JingleContent* c = 0);
39
~JabberJingleContent();
41
void setContent(XMPP::JingleContent*);
42
//void startWritingRtpData();
43
void startStreaming();
44
QString contentName();
45
QString elementToSdp(const QDomElement&);
48
void slotSendRtpData();
49
void slotIncomingData(const QByteArray&);
53
XMPP::JingleContent *m_content;
54
XMPP::JingleSession *m_jingleSession;
55
MediaManager *m_mediaManager;
56
MediaSession *m_mediaSession;
57
JingleRtpSession *m_rtpInSession;
58
JingleRtpSession *m_rtpOutSession;
59
JabberJingleSession *m_jabberSession;
61
void prepareRtpOutSession();
62
void prepareRtpInSession();