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

#include <toxcall.h>

Inheritance diagram for ToxFriendCall:
Inheritance graph
Collaboration diagram for ToxFriendCall:
Collaboration graph

Public Member Functions

 ToxFriendCall ()=delete
 
 ToxFriendCall (uint32_t friendId, bool VideoEnabled, CoreAV &av, IAudioControl &audio)
 
 ToxFriendCall (ToxFriendCall &&other)=delete
 
ToxFriendCalloperator= (ToxFriendCall &&other)=delete
 
 ~ToxFriendCall ()
 
TOXAV_FRIEND_CALL_STATE getState () const
 
void setState (const TOXAV_FRIEND_CALL_STATE &value)
 
void playAudioBuffer (const int16_t *data, int samples, unsigned channels, int sampleRate) const
 
- 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 ()
 

Private Attributes

QMetaObject::Connection audioSinkInvalid
 
TOXAV_FRIEND_CALL_STATE state {TOXAV_FRIEND_CALL_STATE_NONE}
 State of the peer (not ours!) More...
 
std::unique_ptr< IAudioSink > sink
 
uint32_t friendId
 

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 89 of file toxcall.h.

Constructor & Destructor Documentation

◆ ToxFriendCall() [1/3]

ToxFriendCall::ToxFriendCall ( )
delete

◆ ToxFriendCall() [2/3]

ToxFriendCall::ToxFriendCall ( uint32_t  friendId,
bool  VideoEnabled,
CoreAV av,
IAudioControl &  audio 
)

Definition at line 121 of file toxcall.cpp.

◆ ToxFriendCall() [3/3]

ToxFriendCall::ToxFriendCall ( ToxFriendCall &&  other)
delete

◆ ~ToxFriendCall()

ToxFriendCall::~ToxFriendCall ( )

Definition at line 156 of file toxcall.cpp.

Member Function Documentation

◆ getState()

TOXAV_FRIEND_CALL_STATE ToxFriendCall::getState ( ) const

Definition at line 184 of file toxcall.cpp.

Here is the caller graph for this function:

◆ onAudioSinkInvalidated

void ToxFriendCall::onAudioSinkInvalidated ( )
privateslot

Definition at line 173 of file toxcall.cpp.

◆ onAudioSourceInvalidated

void ToxFriendCall::onAudioSourceInvalidated ( )
privateslot

Definition at line 161 of file toxcall.cpp.

◆ operator=()

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

◆ playAudioBuffer()

void ToxFriendCall::playAudioBuffer ( const int16_t *  data,
int  samples,
unsigned  channels,
int  sampleRate 
) const

Definition at line 194 of file toxcall.cpp.

Here is the caller graph for this function:

◆ setState()

void ToxFriendCall::setState ( const TOXAV_FRIEND_CALL_STATE &  value)

Definition at line 189 of file toxcall.cpp.

Member Data Documentation

◆ audioSinkInvalid

QMetaObject::Connection ToxFriendCall::audioSinkInvalid
private

Definition at line 109 of file toxcall.h.

◆ friendId

uint32_t ToxFriendCall::friendId
private

Definition at line 112 of file toxcall.h.

◆ sink

std::unique_ptr<IAudioSink> ToxFriendCall::sink
private

Definition at line 111 of file toxcall.h.

◆ state

TOXAV_FRIEND_CALL_STATE ToxFriendCall::state {TOXAV_FRIEND_CALL_STATE_NONE}
private

State of the peer (not ours!)

Definition at line 110 of file toxcall.h.


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