qTox  Version: nightly | Commit: bc751c8e1cac455f9690654fcfe0f560d2d7dfdd
Public Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
ToxGroupCall Class Reference

#include <toxcall.h>

Inheritance diagram for ToxGroupCall:
Inheritance graph
Collaboration diagram for ToxGroupCall:
Collaboration graph

Public Member Functions

 ToxGroupCall ()=delete
 
 ToxGroupCall (const Group &group, CoreAV &av, IAudioControl &audio)
 
 ToxGroupCall (ToxGroupCall &&other)=delete
 
 ~ToxGroupCall ()
 
ToxGroupCalloperator= (ToxGroupCall &&other)=delete
 
void removePeer (ToxPk peerId)
 
void playAudioBuffer (const ToxPk &peer, const int16_t *data, int samples, unsigned channels, int sampleRate)
 
- Public Member Functions inherited from ToxCall
 ToxCall (const ToxCall &other)=delete
 
 ToxCall (ToxCall &&other)=delete
 
ToxCalloperator= (const ToxCall &other)=delete
 
ToxCalloperator= (ToxCall &&other)=delete
 
bool isActive () const
 
void setActive (bool value)
 
bool getMuteVol () const
 
void setMuteVol (bool value)
 
bool getMuteMic () const
 
void setMuteMic (bool value)
 
bool getVideoEnabled () const
 
void setVideoEnabled (bool value)
 
bool getNullVideoBitrate () const
 
void setNullVideoBitrate (bool value)
 
CoreVideoSourcegetVideoSource () const
 

Private Slots

void onAudioSourceInvalidated ()
 
void onAudioSinkInvalidated (ToxPk peerId)
 

Private Member Functions

void addPeer (ToxPk peerId)
 
bool havePeer (ToxPk peerId)
 
void clearPeers ()
 

Private Attributes

std::map< ToxPk, std::unique_ptr< IAudioSink > > peers
 Keeps sources for users in group calls. More...
 
std::map< ToxPk, QMetaObject::Connection > sinkInvalid
 
const Groupgroup
 

Additional Inherited Members

- Protected Member Functions inherited from ToxCall
 ToxCall ()=delete
 
 ToxCall (bool VideoEnabled, CoreAV &av, IAudioControl &audio)
 
 ~ToxCall ()
 
- Protected Attributes inherited from ToxCall
bool active {false}
 
CoreAVav {nullptr}
 
IAudioControl & audio
 
bool muteMic {false}
 
bool muteVol {false}
 
CoreVideoSourcevideoSource {nullptr}
 
QMetaObject::Connection videoInConn
 
bool videoEnabled {false}
 
bool nullVideoBitrate {false}
 
std::unique_ptr< IAudioSource > audioSource
 

Detailed Description

Definition at line 115 of file toxcall.h.

Constructor & Destructor Documentation

◆ ToxGroupCall() [1/3]

ToxGroupCall::ToxGroupCall ( )
delete

◆ ToxGroupCall() [2/3]

ToxGroupCall::ToxGroupCall ( const Group group,
CoreAV av,
IAudioControl &  audio 
)

Definition at line 202 of file toxcall.cpp.

◆ ToxGroupCall() [3/3]

ToxGroupCall::ToxGroupCall ( ToxGroupCall &&  other)
delete

◆ ~ToxGroupCall()

ToxGroupCall::~ToxGroupCall ( )

Definition at line 219 of file toxcall.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ addPeer()

void ToxGroupCall::addPeer ( ToxPk  peerId)
private

Definition at line 262 of file toxcall.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ clearPeers()

void ToxGroupCall::clearPeers ( )
private

Definition at line 282 of file toxcall.cpp.

Here is the caller graph for this function:

◆ havePeer()

bool ToxGroupCall::havePeer ( ToxPk  peerId)
private

Definition at line 276 of file toxcall.cpp.

Here is the caller graph for this function:

◆ onAudioSinkInvalidated

void ToxGroupCall::onAudioSinkInvalidated ( ToxPk  peerId)
privateslot

Definition at line 243 of file toxcall.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onAudioSourceInvalidated

void ToxGroupCall::onAudioSourceInvalidated ( )
privateslot

Definition at line 225 of file toxcall.cpp.

◆ operator=()

ToxGroupCall& ToxGroupCall::operator= ( ToxGroupCall &&  other)
delete

◆ playAudioBuffer()

void ToxGroupCall::playAudioBuffer ( const ToxPk peer,
const int16_t *  data,
int  samples,
unsigned  channels,
int  sampleRate 
)

Definition at line 292 of file toxcall.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ removePeer()

void ToxGroupCall::removePeer ( ToxPk  peerId)

Definition at line 249 of file toxcall.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ group

const Group& ToxGroupCall::group
private

Definition at line 137 of file toxcall.h.

◆ peers

QMap ToxGroupCall::peers
private

Keeps sources for users in group calls.

Definition at line 135 of file toxcall.h.

◆ sinkInvalid

std::map<ToxPk, QMetaObject::Connection> ToxGroupCall::sinkInvalid
private

Definition at line 136 of file toxcall.h.


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