You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
72 lines
1.8 KiB
72 lines
1.8 KiB
/*
|
|
jinglevoicesession.h - Define a Jingle voice session.
|
|
|
|
Copyright (c) 2006 by Michaël Larouche <michael.larouche@kdemail.net>
|
|
|
|
Kopete (c) 2001-2006 by the Kopete developers <kopete-devel@kde.org>
|
|
|
|
*************************************************************************
|
|
* *
|
|
* This program is free software; you can redistribute it and/or modify *
|
|
* it under the terms of the GNU General Public License as published by *
|
|
* the Free Software Foundation; either version 2 of the License, or *
|
|
* (at your option) any later version. *
|
|
* *
|
|
*************************************************************************
|
|
*/
|
|
#ifndef JINGLEVOICESESSION_H
|
|
#define JINGLEVOICESESSION_H
|
|
|
|
#include <jinglesession.h>
|
|
|
|
#include <xmpp.h> // XMPP::Jid
|
|
#include <tqvaluelist.h>
|
|
|
|
namespace cricket
|
|
{
|
|
class Call;
|
|
}
|
|
|
|
class JabberAccount;
|
|
class JingleSession;
|
|
|
|
/**
|
|
* Implement a Jingle voice peer-to-peer session that is compatible with Google Talk voice offering.
|
|
*
|
|
* @author Michaël Larouche
|
|
*/
|
|
class JingleVoiceSession : public JingleSession
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
typedef TQValueList<XMPP::Jid> JidList;
|
|
|
|
JingleVoiceSession(JabberAccount *account, const JidList &peers);
|
|
virtual ~JingleVoiceSession();
|
|
|
|
virtual TQString sessionType();
|
|
|
|
public slots:
|
|
virtual void accept();
|
|
virtual void decline();
|
|
virtual void start();
|
|
virtual void terminate();
|
|
|
|
protected slots:
|
|
void receiveStanza(const TQString &stanza);
|
|
|
|
private:
|
|
void setCall(cricket::Call *call);
|
|
|
|
class Private;
|
|
Private *d;
|
|
|
|
class SlotsProxy;
|
|
SlotsProxy *slotsProxy;
|
|
|
|
class JingleITQResponder;
|
|
};
|
|
|
|
#endif
|