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

#include <avform.h>

Inheritance diagram for AVForm:
Inheritance graph
Collaboration diagram for AVForm:
Collaboration graph

Public Member Functions

 AVForm (IAudioControl &audio, CoreAV *coreAV, CameraSource &camera, IAudioSettings *audioSettings, IVideoSettings *videoSettings)
 
 ~AVForm () override
 
QString getFormName () final
 
- Public Member Functions inherited from GenericForm
 GenericForm (const QPixmap &icon)
 
virtual ~GenericForm ()
 
QPixmap getFormIcon ()
 

Protected Member Functions

void updateVideoModes (int curIndex)
 
- Protected Member Functions inherited from GenericForm
bool eventFilter (QObject *o, QEvent *e) final
 Ignore scroll on different controls. More...
 
void eventsInit ()
 Prevent stealing mouse wheel scroll. More...
 

Private Slots

void on_inDevCombobox_currentIndexChanged (int deviceIndex)
 
void on_outDevCombobox_currentIndexChanged (int deviceIndex)
 
void on_playbackSlider_valueChanged (int sliderSteps)
 
void on_cbEnableTestSound_stateChanged ()
 
void on_microphoneSlider_valueChanged (int sliderSteps)
 
void on_audioThresholdSlider_valueChanged (int sliderSteps)
 
void on_audioQualityComboBox_currentIndexChanged (int index)
 
void on_videoDevCombobox_currentIndexChanged (int index)
 
void on_videoModescomboBox_currentIndexChanged (int index)
 
void rescanDevices ()
 
void setVolume (float value)
 

Private Member Functions

void getAudioInDevices ()
 
void getAudioOutDevices ()
 
void getVideoDevices ()
 
void selectBestModes (QVector< VideoMode > &allVideoModes)
 
void fillCameraModesComboBox ()
 
void fillScreenModesComboBox ()
 
void fillAudioQualityComboBox ()
 
int searchPreferredIndex ()
 
void createVideoSurface ()
 
void killVideoSurface ()
 
void retranslateUi ()
 
void hideEvent (QHideEvent *event) final
 
void showEvent (QShowEvent *event) final
 
void open (const QString &devName, const VideoMode &mode)
 
int getStepsFromValue (qreal val, qreal valMin, qreal valMax)
 
qreal getValueFromSteps (int steps, qreal valMin, qreal valMax)
 
void trackNewScreenGeometry (QScreen *qScreen)
 

Static Private Member Functions

static int getModeSize (VideoMode mode)
 

Private Attributes

IAudioControl & audio
 
CoreAVcoreAV
 
IAudioSettings * audioSettings
 
IVideoSettingsvideoSettings
 
bool subscribedToAudioIn
 
std::unique_ptr< IAudioSink > audioSink
 
std::unique_ptr< IAudioSource > audioSrc
 
VideoSurfacecamVideoSurface
 
CameraSourcecamera
 
QVector< QPair< QString, QString > > videoDeviceList
 
QVector< VideoModevideoModes
 
uint alSource
 
const uint totalSliderSteps = 100
 

Additional Inherited Members

- Public Slots inherited from GenericForm
virtual void reloadTheme ()
 
- Protected Attributes inherited from GenericForm
QPixmap formIcon
 

Detailed Description

Definition at line 40 of file avform.h.

Constructor & Destructor Documentation

◆ AVForm()

AVForm::AVForm ( IAudioControl &  audio,
CoreAV coreAV,
CameraSource camera,
IAudioSettings *  audioSettings,
IVideoSettings videoSettings 
)

Definition at line 47 of file avform.cpp.

◆ ~AVForm()

AVForm::~AVForm ( )
override

Definition at line 115 of file avform.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ createVideoSurface()

void AVForm::createVideoSurface ( )
private

Definition at line 614 of file avform.cpp.

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

◆ fillAudioQualityComboBox()

void AVForm::fillAudioQualityComboBox ( )
private

Definition at line 369 of file avform.cpp.

◆ fillCameraModesComboBox()

void AVForm::fillCameraModesComboBox ( )
private

Definition at line 301 of file avform.cpp.

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

◆ fillScreenModesComboBox()

void AVForm::fillScreenModesComboBox ( )
private

Definition at line 346 of file avform.cpp.

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

◆ getAudioInDevices()

void AVForm::getAudioInDevices ( )
private

Definition at line 491 of file avform.cpp.

Here is the caller graph for this function:

◆ getAudioOutDevices()

void AVForm::getAudioOutDevices ( )
private

Definition at line 510 of file avform.cpp.

Here is the caller graph for this function:

◆ getFormName()

QString AVForm::getFormName ( )
inlinefinalvirtual

Implements GenericForm.

Definition at line 47 of file avform.h.

◆ getModeSize()

int AVForm::getModeSize ( VideoMode  mode)
staticprivate

Definition at line 486 of file avform.cpp.

Here is the caller graph for this function:

◆ getStepsFromValue()

int AVForm::getStepsFromValue ( qreal  val,
qreal  valMin,
qreal  valMax 
)
private

Definition at line 645 of file avform.cpp.

Here is the caller graph for this function:

◆ getValueFromSteps()

qreal AVForm::getValueFromSteps ( int  steps,
qreal  valMin,
qreal  valMax 
)
private

Definition at line 651 of file avform.cpp.

Here is the caller graph for this function:

◆ getVideoDevices()

void AVForm::getVideoDevices ( )
private

Definition at line 468 of file avform.cpp.

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

◆ hideEvent()

void AVForm::hideEvent ( QHideEvent *  event)
finalprivate

Definition at line 121 of file avform.cpp.

Here is the call graph for this function:

◆ killVideoSurface()

void AVForm::killVideoSurface ( )
private

Definition at line 626 of file avform.cpp.

Here is the caller graph for this function:

◆ on_audioQualityComboBox_currentIndexChanged

void AVForm::on_audioQualityComboBox_currentIndexChanged ( int  index)
privateslot

Definition at line 463 of file avform.cpp.

◆ on_audioThresholdSlider_valueChanged

void AVForm::on_audioThresholdSlider_valueChanged ( int  sliderSteps)
privateslot

Definition at line 607 of file avform.cpp.

Here is the call graph for this function:

◆ on_cbEnableTestSound_stateChanged

void AVForm::on_cbEnableTestSound_stateChanged ( )
privateslot

Definition at line 591 of file avform.cpp.

◆ on_inDevCombobox_currentIndexChanged

void AVForm::on_inDevCombobox_currentIndexChanged ( int  deviceIndex)
privateslot

Definition at line 529 of file avform.cpp.

Here is the call graph for this function:

◆ on_microphoneSlider_valueChanged

void AVForm::on_microphoneSlider_valueChanged ( int  sliderSteps)
privateslot

Definition at line 600 of file avform.cpp.

Here is the call graph for this function:

◆ on_outDevCombobox_currentIndexChanged

void AVForm::on_outDevCombobox_currentIndexChanged ( int  deviceIndex)
privateslot

Definition at line 553 of file avform.cpp.

◆ on_playbackSlider_valueChanged

void AVForm::on_playbackSlider_valueChanged ( int  sliderSteps)
privateslot

Definition at line 574 of file avform.cpp.

Here is the call graph for this function:

◆ on_videoDevCombobox_currentIndexChanged

void AVForm::on_videoDevCombobox_currentIndexChanged ( int  index)
privateslot

Definition at line 436 of file avform.cpp.

Here is the call graph for this function:

◆ on_videoModescomboBox_currentIndexChanged

void AVForm::on_videoModescomboBox_currentIndexChanged ( int  index)
privateslot

Definition at line 178 of file avform.cpp.

Here is the call graph for this function:

◆ open()

void AVForm::open ( const QString &  devName,
const VideoMode mode 
)
private

Definition at line 154 of file avform.cpp.

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

◆ rescanDevices

void AVForm::rescanDevices ( )
privateslot

Definition at line 166 of file avform.cpp.

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

◆ retranslateUi()

void AVForm::retranslateUi ( )
private

Definition at line 640 of file avform.cpp.

◆ searchPreferredIndex()

int AVForm::searchPreferredIndex ( )
private

Definition at line 330 of file avform.cpp.

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

◆ selectBestModes()

void AVForm::selectBestModes ( QVector< VideoMode > &  allVideoModes)
private

Definition at line 223 of file avform.cpp.

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

◆ setVolume

void AVForm::setVolume ( float  value)
privateslot

Definition at line 173 of file avform.cpp.

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

◆ showEvent()

void AVForm::showEvent ( QShowEvent *  event)
finalprivate

Definition at line 135 of file avform.cpp.

Here is the call graph for this function:

◆ trackNewScreenGeometry()

void AVForm::trackNewScreenGeometry ( QScreen *  qScreen)
private

Definition at line 162 of file avform.cpp.

Here is the call graph for this function:

◆ updateVideoModes()

void AVForm::updateVideoModes ( int  curIndex)
protected

Definition at line 385 of file avform.cpp.

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

Member Data Documentation

◆ alSource

uint AVForm::alSource
private

Definition at line 110 of file avform.h.

◆ audio

IAudioControl& AVForm::audio
private

Definition at line 98 of file avform.h.

◆ audioSettings

IAudioSettings* AVForm::audioSettings
private

Definition at line 100 of file avform.h.

◆ audioSink

std::unique_ptr<IAudioSink> AVForm::audioSink
private

Definition at line 104 of file avform.h.

◆ audioSrc

std::unique_ptr<IAudioSource> AVForm::audioSrc
private

Definition at line 105 of file avform.h.

◆ camera

CameraSource& AVForm::camera
private

Definition at line 107 of file avform.h.

◆ camVideoSurface

VideoSurface* AVForm::camVideoSurface
private

Definition at line 106 of file avform.h.

◆ coreAV

CoreAV* AVForm::coreAV
private

Definition at line 99 of file avform.h.

◆ subscribedToAudioIn

bool AVForm::subscribedToAudioIn
private

Definition at line 103 of file avform.h.

◆ totalSliderSteps

const uint AVForm::totalSliderSteps = 100
private

Definition at line 111 of file avform.h.

◆ videoDeviceList

QVector<QPair<QString, QString> > AVForm::videoDeviceList
private

Definition at line 108 of file avform.h.

◆ videoModes

QVector<VideoMode> AVForm::videoModes
private

Definition at line 109 of file avform.h.

◆ videoSettings

IVideoSettings* AVForm::videoSettings
private

Definition at line 101 of file avform.h.


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