~ubuntu-branches/ubuntu/saucy/kopete/saucy-proposed

« back to all changes in this revision

Viewing changes to protocols/jabber/jingle/jabberjinglecontent.h

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2013-06-21 02:22:39 UTC
  • Revision ID: package-import@ubuntu.com-20130621022239-63l3zc8p0nf26pt6
Tags: upstream-4.10.80
ImportĀ upstreamĀ versionĀ 4.10.80

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * jabberjinglecontent.h - A Jingle content.
 
3
 *
 
4
 * Copyright (c) 2008 by Detlev Casanova <detlev.casanova@gmail.com>
 
5
 *
 
6
 * Kopete    (c) by the Kopete developers  <kopete-devel@kde.org>
 
7
 *
 
8
 * *************************************************************************
 
9
 * *                                                                       *
 
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.                                   *
 
14
 * *                                                                       *
 
15
 * *************************************************************************
 
16
 */
 
17
#ifndef JABBER_JINGLE_CONTENT
 
18
#define JABBER_JINGLE_CONTENT
 
19
 
 
20
#include <QObject>
 
21
#include <QString>
 
22
#include <QDomElement>
 
23
 
 
24
namespace XMPP
 
25
{
 
26
        class JingleContent;
 
27
        class JingleSession;
 
28
}
 
29
class JabberJingleSession;
 
30
class MediaManager;
 
31
class MediaSession;
 
32
class JingleRtpSession;
 
33
 
 
34
class JabberJingleContent : public QObject
 
35
{
 
36
        Q_OBJECT
 
37
public:
 
38
        JabberJingleContent(JabberJingleSession* parent = 0, XMPP::JingleContent* c = 0);
 
39
        ~JabberJingleContent();
 
40
 
 
41
        void setContent(XMPP::JingleContent*);
 
42
        //void startWritingRtpData();
 
43
        void startStreaming();
 
44
        QString contentName();
 
45
        QString elementToSdp(const QDomElement&);
 
46
 
 
47
public slots:
 
48
        void slotSendRtpData();
 
49
        void slotIncomingData(const QByteArray&);
 
50
        void slotReadyRead();
 
51
 
 
52
private:
 
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;
 
60
        
 
61
        void prepareRtpOutSession();
 
62
        void prepareRtpInSession();
 
63
};
 
64
 
 
65
#endif